Add items to a delivery note
Appends the items in the body to an existing delivery note and recalculates the document totals. Requires `Permissions.DeliveryNotes.Create`.
POST
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentId*integerFormat
int32application/json- body
[index: integer]?response?unknownapplication/octet-streamcurl -X POST 'https://<your-instance>/api/documents/expedition/delivery-notes/0/items' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{ "customerId": 1, "items": [ { "price": 302.5, "priceWoVat": 250, "productId": 5, "quantityIssued": 100, "unitIdIssued": 1, "vatRate": 21 } ], "warehouseId": 2}'nullCreate an invoice from a delivery note POST
Creates an invoice document covering this delivery note and returns its id (201, `Location` header pointing at the invoice detail). Requires `Permissions.Invoice.Create`.
Delete delivery note items DELETE
Deletes the items listed in `itemIds` and recalculates the document totals. Call `GET {documentId}/items/check-delete` first to find out whether the delete is allowed. Requires `Permissions.DeliveryNotes.Delete`.