WinShopAPI docs
ReferenceDocumentsExpeditionDelivery notes

Update a delivery note

Updates the delivery note header and the items sent in the body. Pass `removeItemsNotInRequest=true` to also delete the items the body leaves out. Requires `Permissions.DeliveryNotes.Update`.

PUT
/api/documents/expedition/delivery-notes/{documentId}

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

documentId*integer
Formatint32

Query Parameters

removeItemsNotInRequest?boolean|null

Request Body

application/json
  1. body
id?|

Row id of the document. Read-only; the server assigns it.

Formatint32
internalNumber?|

Internal document number, unique within the document type and reserved when the document is created. Read-only.

Formatint32
items?array<>|

The document's items. Null when the document was loaded without them.

branchId?|
Formatint32
cancellationInternalNumber?|
Formatint32
createdAt?|
Formatdate-time
customerId?|
Formatint32
dateOfAccountingPosting?|
Formatdate-time
dateOfOrder?|
Formatdate-time
dateOfProcessing?|
Formatdate-time
dateOfTransfer?|
Formatdate-time
deliveryDate?|
Formatdate-time
documentStateId?|
Formatint32
formNumber?|
Lengthlength <= 150
guid?|
Formatguid
isCancellation?boolean|null
isConfirmed?boolean|null
isExported?boolean|null
isImported?boolean|null
isLocked?boolean|null
isPartialCancellation?boolean|null
isPrinted?boolean|null
isProcessed?boolean|null
lastModify?|
Formatdate-time
lockOwner?|
Lengthlength <= 80
note?string|null
orderInternalNumber?|
Formatint32
orderText?|
Lengthlength <= 50
partialCancellationInternalNumber?|
Formatint32
processedByUserId?|
Formatint32
reasonForIssuanceOfGoodsId?|
Formatint32
routeId?|
Formatint32
totalDiscount?|
Formatdecimal
totalNumberOfItems?|
Formatint32
totalNumberOfPieces?|
Formatdecimal
totalPrice?|
Formatdecimal
totalPriceWoVat?|
Formatdecimal
totalStockPrice?|
Formatdecimal
totalStockPriceWoVat?|
Formatdecimal
transportDriverId?|
Formatint32
transportTypeId?|
Formatint32
userId?|
Formatint32
warehouseId?|
Formatint32
checkedAtDate?|

When the consignment was checked before despatch; null while it has not been.

Formatdate-time
contractId?|

Contract this delivery note is booked against.

Formatint32
countryId?|

Country whose VAT rules apply to this document.

Formatint32
currencyId?|

Currency the document totals are expressed in, from the Currencies item list.

Formatint32
customerAuthorizedPersonId?|

Person authorised by the customer to receive these goods.

Formatint32
deliveryAddressId?|

Delivery address for this consignment; see the order delivery-address endpoints.

Formatint32
documentStateUserId?|

User-defined document state, from the instance's own state list.

Formatint32
foreignExchangeRate?|

Rate used to convert the foreign currency into the instance's home currency.

Formatdecimal
invoiceHeaderId?|

Invoice this delivery note was billed on, once one exists.

Formatint32
isEuRetail?|

True when the sale is EU retail, which changes how VAT is applied.

isPaid?|

True once the document has been paid.

isPdp?|

True when the domestic reverse charge applies, so VAT is accounted for by the customer.

note2?|

Second free-text note on the document header.

numberOfPackages?|

How many packages the consignment consists of.

Formatint32
packageNumbers?|

Carrier package or tracking numbers for this consignment.

palletNumber?|

Number of the pallet the consignment ships on.

Formatint32
paymentTypeId?|

Payment method, from the payment-types item list.

Formatint32
priceId?|

Price level the items were priced at, from the instance's price types.

Formatint32
proFormaInvoice?|

True when the document is billed as a pro-forma invoice.

shouldBeInvoiced?|

True when this delivery note is meant to be invoiced later.

signatureOfTheCustomer?|

Customer's signature captured on delivery, as raw image bytes.

vatRateBasic?|

Basic VAT rate applied on this document, as a percentage.

Formatdecimal
vatRateReduced?|

Reduced VAT rate applied on this document, as a percentage.

Formatdecimal
vatRateSuperReduced?|

Super-reduced VAT rate applied on this document, as a percentage.

Formatdecimal

Response Body

application/json
  1. response
id?|

Row id of the document. Read-only; the server assigns it.

Formatint32
internalNumber?|

Internal document number, unique within the document type and reserved when the document is created. Read-only.

Formatint32
items?array<>|

The document's items. Null when the document was loaded without them.

branchId?|
Formatint32
cancellationInternalNumber?|
Formatint32
createdAt?|
Formatdate-time
customerId?|
Formatint32
dateOfAccountingPosting?|
Formatdate-time
dateOfOrder?|
Formatdate-time
dateOfProcessing?|
Formatdate-time
dateOfTransfer?|
Formatdate-time
deliveryDate?|
Formatdate-time
documentStateId?|
Formatint32
formNumber?|
Lengthlength <= 150
guid?|
Formatguid
isCancellation?boolean|null
isConfirmed?boolean|null
isExported?boolean|null
isImported?boolean|null
isLocked?boolean|null
isPartialCancellation?boolean|null
isPrinted?boolean|null
isProcessed?boolean|null
lastModify?|
Formatdate-time
lockOwner?|
Lengthlength <= 80
note?string|null
orderInternalNumber?|
Formatint32
orderText?|
Lengthlength <= 50
partialCancellationInternalNumber?|
Formatint32
processedByUserId?|
Formatint32
reasonForIssuanceOfGoodsId?|
Formatint32
routeId?|
Formatint32
totalDiscount?|
Formatdecimal
totalNumberOfItems?|
Formatint32
totalNumberOfPieces?|
Formatdecimal
totalPrice?|
Formatdecimal
totalPriceWoVat?|
Formatdecimal
totalStockPrice?|
Formatdecimal
totalStockPriceWoVat?|
Formatdecimal
transportDriverId?|
Formatint32
transportTypeId?|
Formatint32
userId?|
Formatint32
warehouseId?|
Formatint32
checkedAtDate?|

When the consignment was checked before despatch; null while it has not been.

Formatdate-time
contractId?|

Contract this delivery note is booked against.

Formatint32
countryId?|

Country whose VAT rules apply to this document.

Formatint32
currencyId?|

Currency the document totals are expressed in, from the Currencies item list.

Formatint32
customerAuthorizedPersonId?|

Person authorised by the customer to receive these goods.

Formatint32
deliveryAddressId?|

Delivery address for this consignment; see the order delivery-address endpoints.

Formatint32
documentStateUserId?|

User-defined document state, from the instance's own state list.

Formatint32
foreignExchangeRate?|

Rate used to convert the foreign currency into the instance's home currency.

Formatdecimal
invoiceHeaderId?|

Invoice this delivery note was billed on, once one exists.

Formatint32
isEuRetail?|

True when the sale is EU retail, which changes how VAT is applied.

isPaid?|

True once the document has been paid.

isPdp?|

True when the domestic reverse charge applies, so VAT is accounted for by the customer.

note2?|

Second free-text note on the document header.

numberOfPackages?|

How many packages the consignment consists of.

Formatint32
packageNumbers?|

Carrier package or tracking numbers for this consignment.

palletNumber?|

Number of the pallet the consignment ships on.

Formatint32
paymentTypeId?|

Payment method, from the payment-types item list.

Formatint32
priceId?|

Price level the items were priced at, from the instance's price types.

Formatint32
proFormaInvoice?|

True when the document is billed as a pro-forma invoice.

shouldBeInvoiced?|

True when this delivery note is meant to be invoiced later.

signatureOfTheCustomer?|

Customer's signature captured on delivery, as raw image bytes.

vatRateBasic?|

Basic VAT rate applied on this document, as a percentage.

Formatdecimal
vatRateReduced?|

Reduced VAT rate applied on this document, as a percentage.

Formatdecimal
vatRateSuperReduced?|

Super-reduced VAT rate applied on this document, as a percentage.

Formatdecimal
curl -X PUT 'https://<your-instance>/api/documents/expedition/delivery-notes/0' \  -H 'Authorization: Bearer <access-token>' \  -H 'Content-Type: application/json' \  -d '{  "note": "Updated delivery notes"}'
{  "id": 0,  "internalNumber": 0,  "items": [    {      "id": 0,      "internalNumber": 0,      "item": 0,      "productId": 0,      "variants": [        {          "colorId": 0,          "dimensionId": 0,          "id": 0,          "itemId": 0,          "lengthId": 0,          "quantity": 0,          "sizeId": 0,          "orderCustomerItemVariantId": 0,          "orderInternetItemVariantId": 0,          "price": 0,          "priceWoVat": 0,          "reservationItemVariantId": 0        }      ],      "barcode": "string",      "batchId": 0,      "createdAt": "2019-08-24T14:15:22Z",      "discount": 0,      "exchangeRate": 0,      "foreignCurrency": "str",      "foreignCurrencyId": 0,      "guid": "string",      "isCancellation": true,      "isPartialCancellation": true,      "lastModify": "2019-08-24T14:15:22Z",      "locationId": 0,      "note": "string",      "orderInternalNumber": 0,      "orderInternetItemId": 0,      "orderItemId": 0,      "packageId": 0,      "packagePrice": 0,      "price": 0,      "priceWoVat": 0,      "priceWoVatIssued": 0,      "promotionId": 0,      "quantity": 0,      "quantityCoefficient": 0,      "quantityIssued": 0,      "recyclingFee": 0,      "recyclingFeeId": 0,      "referencePrice": 0,      "reservationItemId": 0,      "retailPrice": 0,      "royalty": 0,      "royaltyId": 0,      "setPrice": 0,      "stockPrice": 0,      "totalForeignPrice": 0,      "unitId": 0,      "unitIdIssued": 0,      "userId": 0,      "variantId": 0,      "vatRate": 0,      "warehouseSellingPrice": 0,      "weight": 0,      "batchIdRawMaterial": 0,      "batchTextRawMaterial": "string",      "currencyId": 0,      "dateOfIntakeInternal": "2019-08-24T14:15:22Z",      "expirationDate": "2019-08-24T14:15:22Z",      "isScrap": true,      "numberOfPackages": 0,      "ssccId": 0    }  ],  "branchId": 0,  "cancellationInternalNumber": 0,  "createdAt": "2019-08-24T14:15:22Z",  "customerId": 0,  "dateOfAccountingPosting": "2019-08-24T14:15:22Z",  "dateOfOrder": "2019-08-24T14:15:22Z",  "dateOfProcessing": "2019-08-24T14:15:22Z",  "dateOfTransfer": "2019-08-24T14:15:22Z",  "deliveryDate": "2019-08-24T14:15:22Z",  "documentStateId": 0,  "formNumber": "string",  "guid": "string",  "isCancellation": true,  "isConfirmed": true,  "isExported": true,  "isImported": true,  "isLocked": true,  "isPartialCancellation": true,  "isPrinted": true,  "isProcessed": true,  "lastModify": "2019-08-24T14:15:22Z",  "lockOwner": "string",  "note": "string",  "orderInternalNumber": 0,  "orderText": "string",  "partialCancellationInternalNumber": 0,  "processedByUserId": 0,  "reasonForIssuanceOfGoodsId": 0,  "routeId": 0,  "totalDiscount": 0,  "totalNumberOfItems": 0,  "totalNumberOfPieces": 0,  "totalPrice": 0,  "totalPriceWoVat": 0,  "totalStockPrice": 0,  "totalStockPriceWoVat": 0,  "transportDriverId": 0,  "transportTypeId": 0,  "userId": 0,  "warehouseId": 0,  "checkedAtDate": "2019-08-24T14:15:22Z",  "contractId": 0,  "countryId": 0,  "currencyId": 0,  "customerAuthorizedPersonId": 0,  "deliveryAddressId": 0,  "documentStateUserId": 0,  "foreignExchangeRate": 0,  "invoiceHeaderId": 0,  "isEuRetail": true,  "isPaid": true,  "isPdp": true,  "note2": "string",  "numberOfPackages": 0,  "packageNumbers": "string",  "palletNumber": 0,  "paymentTypeId": 0,  "priceId": 0,  "proFormaInvoice": true,  "shouldBeInvoiced": true,  "signatureOfTheCustomer": "string",  "vatRateBasic": 0,  "vatRateReduced": 0,  "vatRateSuperReduced": 0}