Creates a sales credit memo line. documentId must contain the SystemId of the sales credit memo.
Lines can only be created, modified or deleted while the credit memo is a draft (not posted).
GUID for targeted Company
G/L account line (documentId required)
{
"documentId": "d73cb715-0a0e-f011-9346-002248a0b478",
"lineType": "Account",
"lineObjectNumber": "5001",
"description": "Suteiktų paslaugų pajamos",
"quantity": 1,
"unitPrice": 300,
"taxCode": "F PASL21"
}Payload to create or update a sales credit memo line. Lines can only be changed on draft credit memos.
documentId is required when the line is created through the root salesCreditMemoLines endpoint.
shortcutDimension1Code and shortcutDimension2Code are applied only when not empty.
Created
SystemId of the sales credit memo. 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