Delivery note (DeliveryNote)
The delivery note actually decrements stock from the warehouse, in contrast to an order (which only reserves it).
cURL
curl -X POST http://localhost:4000/NextUpServices/Services/POST/ \
-H "Content-Type: text/plain" \
-d "{
\"AuthenticationToken\":\"$NX_TOKEN\",
\"Method\":\"AddDeliveryNote\",
\"Params\":{
\"PartnerId\": 27501,
\"Date\": \"2026-05-13\",
\"WarehouseId\": 1,
\"Lines\": [
{\"ArticleCode\": \"0000003\", \"Quantity\": 5, \"UnitPrice\": 89.00, \"VATRateId\": 1, \"WarehouseId\": 1}
]
}
}"
Response:
{ "Result": { "Id": 2001, "Number": "AVZ-000088" }, "Error": null }
Delivery note followed by an invoice
A common pattern when delivery precedes invoicing:
Important notes
WarehouseIdmust exist both at the document level (optional) and at the line level (recommended).- The delivery note is not automatically reversible in the mock; for the real ERP use
InvalidateDocument. - For transfers between warehouses, use
AddDepositTransferNote(not DeliveryNote).