latestSwagger 2.02026-08-2181213270.0 KB

0a9c1f8784f2

Invoice

Create an invoice.

  • If you create an invoice that will need to be edited afterwards, create a draft invoice with the <code>is_draft</code> parameter. Otherwise set <code>is_draft</code> to false.
  • This endpoint requires the base64-encoded value of the PDF of the invoice. You can for example use base64guru.
post/invoices

Request body

currency'EUR' | 'GBP' nullable

Currency of the invoice. Use ISO 4217 currency code.

documentstring required

PDF binary (format base64 string)

due_atstring date-time nullable
invoice_numberstring nullable

Invoice number as displayed on the invoice

is_draftboolean nullable

True by default, set to false if you want to create and validate invoice in one API call.

issued_atstring date-time nullable
metadataobject nullable

This object is yours, it enables you to add custom data.

net_amountinteger nullable

Amount before tax, in cents

tax_amountinteger nullable

Amount of tax, in cents

to_pay_amountinteger nullable

Remaining amount due by buyer to seller, in cents. Set at 0 for fully paid invoices.

total_amountinteger nullable

Sum of net amount and tax amount, in cents

Response

Created