Create Invoice

View as Markdown

Creates an invoice. items is required. allow_post is optional; when true, the invoice is posted immediately after creation (the project must have allow_create_and_post enabled, otherwise the request is rejected with 400).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active project.

Request

This endpoint expects an object.
itemslist of objectsRequired
subjectstringRequired
due_datedatetimeRequired
order_idstringRequired
allow_postbooleanRequired
adjustmentslist of objectsRequired
customer_idstringRequiredformat: "uuid"
invoice_datedatetimeRequired
reverse_chargebooleanRequired
sales_personnel_idstringRequiredformat: "uuid"

Response

Created
dataobject
statusboolean
messagestring