WinShopAPI docs
ReferenceDocumentsExpeditionDelivery notes

Update a delivery note item

Replaces one item of the delivery note, identified by `itemId`, and recalculates the document totals. Requires `Permissions.DeliveryNotes.Update`.

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

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
itemId*integer
Formatint32

Request Body

application/json
  1. body
id?|

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

Formatint32
internalNumber?|

Internal number of the document this item belongs to. Read-only.

Formatint32
item?|
Formatint32
productId?|

Id of the product this item sells or moves. Required.

Formatint32
variants?array<>|

The item's size/colour breakdown. Null when the item has none.

barcode?|
Lengthlength <= 50
batchId?|
Formatint32
createdAt?|
Formatdate-time
discount?|
Formatdecimal
exchangeRate?|
Formatdecimal
foreignCurrency?|
Lengthlength <= 3
foreignCurrencyId?|
Formatint32
guid?|
Formatguid
isCancellation?boolean|null
isPartialCancellation?boolean|null
lastModify?|
Formatdate-time
locationId?|
Formatint32
note?string|null
orderInternalNumber?|
Formatint32
orderInternetItemId?|
Formatint32
orderItemId?|
Formatint32
packageId?|
Formatint32
packagePrice?|
Formatdecimal
price?|
Formatdecimal
priceWoVat?|
Formatdecimal
priceWoVatIssued?|
Formatdecimal
promotionId?|
Formatint32
quantity?|
Formatdecimal
quantityCoefficient?|
Formatdecimal
quantityIssued?|
Formatdecimal
recyclingFee?|
Formatdecimal
recyclingFeeId?|
Formatint32
referencePrice?|
Formatdecimal
reservationItemId?|
Formatint32
retailPrice?|
Formatdecimal
royalty?|
Formatdecimal
royaltyId?|
Formatint32
setPrice?|
Formatdecimal
stockPrice?|
Formatdecimal
totalForeignPrice?|
Formatdecimal
unitId?|
Formatint32
unitIdIssued?|
Formatint32
userId?|
Formatint32
variantId?|
Formatint32
vatRate?|
Formatdecimal
warehouseSellingPrice?|
Formatdecimal
weight?|
Formatdecimal
batchIdRawMaterial?|

Batch of raw material the item was produced from.

Formatint32
batchTextRawMaterial?|

Raw-material batch as free text, for batches not held as rows.

currencyId?|

Currency this item's prices are expressed in.

Formatint32
dateOfIntakeInternal?|

When the goods behind this item were taken into stock.

Formatdate-time
expirationDate?|

Expiry date of the goods on this item.

Formatdate-time
isScrap?|

True when the item leaves as scrap rather than as saleable goods.

numberOfPackages?|

How many packages this item ships in.

Formatdecimal
ssccId?|

SSCC shipping container this item is packed into.

Formatint32

Response Body

application/json
  1. response
id?|

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

Formatint32
internalNumber?|

Internal number of the document this item belongs to. Read-only.

Formatint32
item?|
Formatint32
productId?|

Id of the product this item sells or moves. Required.

Formatint32
variants?array<>|

The item's size/colour breakdown. Null when the item has none.

barcode?|
Lengthlength <= 50
batchId?|
Formatint32
createdAt?|
Formatdate-time
discount?|
Formatdecimal
exchangeRate?|
Formatdecimal
foreignCurrency?|
Lengthlength <= 3
foreignCurrencyId?|
Formatint32
guid?|
Formatguid
isCancellation?boolean|null
isPartialCancellation?boolean|null
lastModify?|
Formatdate-time
locationId?|
Formatint32
note?string|null
orderInternalNumber?|
Formatint32
orderInternetItemId?|
Formatint32
orderItemId?|
Formatint32
packageId?|
Formatint32
packagePrice?|
Formatdecimal
price?|
Formatdecimal
priceWoVat?|
Formatdecimal
priceWoVatIssued?|
Formatdecimal
promotionId?|
Formatint32
quantity?|
Formatdecimal
quantityCoefficient?|
Formatdecimal
quantityIssued?|
Formatdecimal
recyclingFee?|
Formatdecimal
recyclingFeeId?|
Formatint32
referencePrice?|
Formatdecimal
reservationItemId?|
Formatint32
retailPrice?|
Formatdecimal
royalty?|
Formatdecimal
royaltyId?|
Formatint32
setPrice?|
Formatdecimal
stockPrice?|
Formatdecimal
totalForeignPrice?|
Formatdecimal
unitId?|
Formatint32
unitIdIssued?|
Formatint32
userId?|
Formatint32
variantId?|
Formatint32
vatRate?|
Formatdecimal
warehouseSellingPrice?|
Formatdecimal
weight?|
Formatdecimal
batchIdRawMaterial?|

Batch of raw material the item was produced from.

Formatint32
batchTextRawMaterial?|

Raw-material batch as free text, for batches not held as rows.

currencyId?|

Currency this item's prices are expressed in.

Formatint32
dateOfIntakeInternal?|

When the goods behind this item were taken into stock.

Formatdate-time
expirationDate?|

Expiry date of the goods on this item.

Formatdate-time
isScrap?|

True when the item leaves as scrap rather than as saleable goods.

numberOfPackages?|

How many packages this item ships in.

Formatdecimal
ssccId?|

SSCC shipping container this item is packed into.

Formatint32
curl -X PUT 'https://<your-instance>/api/documents/expedition/delivery-notes/0/items/0' \  -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}'
{  "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}