B2B Invoicing - Quickstart
Get up and running in no time
With Payer's Invoice API, generating and sending an invoice is as simple as making one HTTP POST request.
curl --request POST \
--url 'https://b2b.payer.se/api/v3/invoices' \
--header 'Authorization: Bearer {token}' \
--data '{
"invoiceCustomer": {
"address": {
"companyName": "ABC Corp",
"emailAddress": "customer@example.com",
"streetAddress1": "123 Main Street",
"zipCode": "12345",
"city": "Stockholm",
"countryCode": "SE"
// Additional fields is be added here, such as phoneNumber, email etc.
},
// Additional customer-level information can go here
},
"items": [
{
"articleNumber": "10",
"description": "Product A",
"quantity": 2,
"unitPriceExcludingVat": 199.99,
"vatPercentage": 25
// Add more fields like costCenter, additionalDetail, etc., if needed
}
],
"deliveryType": "EINVOICE",
"draft": false,
"sendInvoice": true
}'
What Happens Next?
Once this example request is sent:
- The invoice is created in real-time and returned inte the API Response
- The invoice is distributed immediately (if sendInvoice=true and draft=false) as an e/EDI-invoice.
With just these components, you can send a ready-to-use invoices to your customer and get paid faster and with less time spent.
For advanced use cases, continue with the following guide on coming pages or read about the rest of the functionalities and APIs in the plattform. Or go and explore our full API documentation right away.
Was this page helpful?