Send an invoice
Issues the draft (it gets its invoice number and KID) and emails it to the client as a PDF, exactly as sending it from the Envoi app does. No request body.
In the test environment the email is captured and never delivered.
A 409 is stored under the Idempotency-Key like any answer below 500: after fixing the cause (for example
after Envoi has verified the account), send again with a new key. A 502 is not stored, so the same key
may be retried.
Authorizations
OAuth 2.0 client credentials. The token request also needs the audience form field (the Account ID), which OAuth tooling does not always send; see POST /v1/oauth/token.
Headers
Required on every POST, at most 255 characters. Use a new UUID for each logical operation. The first request with a key runs, and its answer (any status below 500) is stored for 7 days. A retry with the same key, method, path and body gets the stored answer again with Idempotency-Replayed: true, and nothing runs twice. The same key with a different body or path is 422 idempotency-key-reused; the same key while the first request is still running is 409 idempotency-key-in-progress. A 5xx answer is not stored, so the same key may be retried. A key belongs to the API client's grant (one environment).
255Path Parameters
The draft invoice's id.
Response
The sent invoice.
An invoice or credit note.
The invoice's id.
invoice or credit_note.
draft, sent, viewed, paid, overdue, reminded, collection_warning, credited or bounced.
The invoice date.
The due date.
Your reference, for example an order number; empty when none.
The client on an invoice: the name and address the invoice is made out to.
Always NOK in v1.
Total without VAT.
Total VAT.
Total with VAT.
How much has been paid.
How much is still owed.
The invoice lines.
The payments recorded on it.
When it was created (UTC).
When it last changed (UTC).
The issued credit notes against the invoice; outstandingAmount is net of it.
The invoice number, or null on a draft (it gets one when it is sent).
The KID (payment reference), or null when there is none (always on a draft).
The date it was paid in full, or null.
A note printed on the invoice, or null.