Creates a line on a draft purchase invoice. documentId is taken from the parent invoice.
Specify either itemId or accountId, not both; or set lineType and lineObjectNumber.
GUID for targeted Company
SystemId (GUID) of the purchase invoice
OData $expand for purchase invoice lines. Supported navigations: dimensionSetLines, location.
Item line
{
"lineObjectNumber": "Z0000001",
"locationCode": "SAND1",
"description": "Sulankstoma kėdė",
"unitOfMeasureCode": "VNT",
"unitCost": 100.1234,
"quantity": 20,
"taxCode": "A PREK21"
}Writable purchase invoice line fields. documentId is filled automatically when the line is created
under a purchase invoice. documentId, sequence and lineObjectNumber 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)
Created
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