Creates a line on a draft purchase credit memo. documentId is taken from the parent credit memo.
Specify either itemId or accountId, not both; or set lineType and lineObjectNumber.
GUID for targeted Company
SystemId (GUID) of the purchase credit memo
OData $expand for purchase credit memo lines. Supported navigations: dimensionSetLines, location.
Item line
{
"lineType": "Item",
"lineObjectNumber": "BENZINAS95",
"description": "Benzinas 95",
"unitOfMeasureCode": "L",
"unitCost": 0.98,
"quantity": 200,
"taxCode": "A PREK21",
"locationCode": "CENTRINIS"
}Comment line
{
"lineType": "Comment",
"description": "SF nr. PPI0000018 - Kvito nr. PR000018:"
}Writable purchase credit memo line fields. documentId is filled automatically when the line is created
under a purchase credit memo. 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
The page has no ODataKeyFields, so a line is keyed by documentId + sequence
(e.g. purchaseCreditMemoLines(documentId=...,sequence=10000)), not by id.
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