Skip to main content
POST
New Invoice

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
integer<int32>
required

The id of the sales order to create the invoice for.

Body

application/json

The parameter for invoice creation.

Model Class: CreateSalesInvoiceRequest

InvoiceOnlyDeliveredQuantity
boolean

If true, only the delivered quantities of the sales order line items are added to the new invoice.

AsDraft
boolean

If true, the invoice is created as draft. An invoice draft has no invoice number yet and can be edited until finalized.

Response

The created invoice.

Model Class: SalesInvoiceResponse

Id
integer<int32>
required

Unique ID to identify an invoice.

SalesInvoiceNumber
string
required

The number of the invoice. The value is empty if the invoice was created as draft.