Skip to main content

DocumentLine — document line

The common structure used in the lines of SaleOrder, SaleInvoice, DeliveryNote, PurchaseInvoice, etc.

Fields

FieldTypeRequiredDescription
ArticleIdintegerone of ArticleId/ArticleCodeArticle reference
ArticleCodestringone of ArticleId/ArticleCodeAlternative to ArticleId
QuantitynumberyesQuantity; non-negative for normal documents
UnitPricenumberyesUnit price excluding VAT
VATRateIdintegeryesVAT rate (see VATRate)
WarehouseIdintegerrecommendedFor stockable articles
DiscountnumbernoPercentage (0-100) or absolute value, depending on the document setting

Example

{ "ArticleCode": "0000002", "Quantity": 1, "UnitPrice": 4500.00, "VATRateId": 1, "WarehouseId": 1, "Discount": 0 }