Creates a sales invoice line. documentId must contain the SystemId of the sales invoice.
Lines can only be created, modified or deleted while the invoice is a draft (not posted).
GUID for targeted Company
Item line (documentId required)
{
"documentId": "d73cb715-0a0e-f011-9346-002248a0b478",
"lineType": "Item",
"lineObjectNumber": "Z0000001",
"locationCode": "CENTRINIS",
"quantity": 20,
"unitPrice": 100.1234,
"shortcutDimension1Code": "PARD",
"shortcutDimension2Code": "333"
}Payload to create or update a sales invoice line. Lines can only be changed on draft invoices.
documentId is required when the line is created through the root salesInvoiceLines endpoint.
shortcutDimension1Code and shortcutDimension2Code are applied only when not empty.
Created
SystemId of the sales invoice. Cannot be changed.
Line No. Cannot be changed, delete and insert the line again.
Item or G/L account number, depending on lineType. Cannot be changed once set.
Dimension set line (standard page "APIV2 - Dimension Set Lines").
If the customer, vendor, G/L account or item has default dimensions, overriding them on a document line needs additional PATCH requests;
without default dimensions, send the dimensions with the line in the same request.
For documents with hundreds of lines, post dimensions in a separate $batch request.
SystemId of the dimension (not of the line)
Location (standard page "APIV2 - Locations").
Bad Request
Unauthorized