Updates a line of the sales invoice. documentId, sequence and lineObjectNumber cannot be changed.
Lines can only be created, modified or deleted while the invoice is a draft (not posted).
ETag for concurrency (use * to force update)
GUID for targeted Company
SystemId (GUID) of the sales invoice
SystemId (GUID) of the sales invoice line
Change quantity and price
{
"quantity": 10,
"unitPrice": 95.5
}Change shortcut dimensions
{
"shortcutDimension1Code": "PARD",
"shortcutDimension2Code": "444"
}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.
OK
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
Not Found