Quick start
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. Here's an example of how straightforward it can be:
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. For advanced use cases, continue with the following guide on coming pages or explore our full API documentation right away.
Overview of Customer Invoicing & Accounts Receivable
In this coming section of the documentation, Customer Invoicing & Accounts Receivable, we have collected all high-level information about how you can create invoices and how they are distributed, visualised and received by the customers.
Was this page helpful?