v2

latestSwagger 2.02026-08-0187117271.9 KB
Orders
Invoice

Create an invoice for an existing order. This request is extra throttled by order and api key to a maximum of 1 per 5 minutes.

post/api/v1/orders/CreateInvoice/{id}

Path parameters

idinteger required

The internal billbee id of the order

Query parameters

includeInvoicePdfboolean

If true, the PDF is included in the response as base64 encoded string

templateIdinteger

You can pass the id of an invoice template to overwrite the assigned template for invoice creation

sendToCloudIdinteger

You can pass the id of a connected cloud printer/storage to send the invoice to it

Response

OK

ErrorMessagestring
ErrorCode0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31
ErrorDescription0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31