Creates a purchase invoice line without the parent document in the URL. documentId must contain the SystemId of the purchase invoice.
Lines can only be created, modified or deleted while the document is a draft (not posted).
GUID for targeted Company
OData $expand for purchase invoice lines. Supported navigations: dimensionSetLines, location.
Item line (documentId required)
{
"documentId": "7c41e2a9-5d1b-f011-9346-002248a0b478",
"lineType": "Item",
"lineObjectNumber": "Z0000001",
"locationCode": "SAND1",
"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