Update a internal transfer item
Replaces one item of the internal transfer, identified by `itemId`, and recalculates the document totals. Requires `Permissions.InternalTransfer.Update`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentId*integerint32itemId*integerint32application/json- body
id?|Row id of the item. Read-only; the server assigns it.
int32internalNumber?|Internal number of the document this item belongs to. Read-only.
int32item?|int32productId?|Id of the product this item sells or moves. Required.
int32variants?array<>|The item's size/colour breakdown. Null when the item has none.
barcode?|length <= 50batchId?|int32batchTextRawMaterial?string|nullcreatedAt?|date-timedamageTypeId?|int32guid?|guidisExported?boolean|nulllastModify?|date-timelocationId?|int32note?string|nullnumberOfPackages?|decimalorderInternalNumber?|int32orderItemId?|int32originWarehouseStockPrice?|decimalpackagePrice?|decimalprice?|decimalpriceWoVat?|decimalpriceWoVatIssued?|decimalquantity?|decimalquantityCoefficient?|decimalquantityIssued?|decimalrecyclingFee?|decimalrecyclingFeeId?|int32referencePrice?|decimalroyalty?|decimalroyaltyId?|int32setPrice?|decimalssccId?|int32stockPrice?|decimalunitId?|int32unitIdIssued?|int32userId?|int32variantId?|int32vatRate?|decimalwarehouseDestination?|length <= 3warehouseOrigin?|length <= 3weight?|decimalapplication/json- response
id?|Row id of the item. Read-only; the server assigns it.
int32internalNumber?|Internal number of the document this item belongs to. Read-only.
int32item?|int32productId?|Id of the product this item sells or moves. Required.
int32variants?array<>|The item's size/colour breakdown. Null when the item has none.
barcode?|length <= 50batchId?|int32batchTextRawMaterial?string|nullcreatedAt?|date-timedamageTypeId?|int32guid?|guidisExported?boolean|nulllastModify?|date-timelocationId?|int32note?string|nullnumberOfPackages?|decimalorderInternalNumber?|int32orderItemId?|int32originWarehouseStockPrice?|decimalpackagePrice?|decimalprice?|decimalpriceWoVat?|decimalpriceWoVatIssued?|decimalquantity?|decimalquantityCoefficient?|decimalquantityIssued?|decimalrecyclingFee?|decimalrecyclingFeeId?|int32referencePrice?|decimalroyalty?|decimalroyaltyId?|int32setPrice?|decimalssccId?|int32stockPrice?|decimalunitId?|int32unitIdIssued?|int32userId?|int32variantId?|int32vatRate?|decimalwarehouseDestination?|length <= 3warehouseOrigin?|length <= 3weight?|decimalcurl -X PUT 'https://<your-instance>/api/documents/internal-transfers/0/items/0' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{ "id": 2, "note": "Quantity adjusted after recount", "quantityIssued": 8}'{ "id": 0, "internalNumber": 0, "item": 0, "productId": 0, "variants": [ { "colorId": 0, "dimensionId": 0, "id": 0, "itemId": 0, "lengthId": 0, "quantity": 0, "sizeId": 0, "orderItemVariantId": 0, "price": 0, "priceWoVat": 0 } ], "barcode": "string", "batchId": 0, "batchTextRawMaterial": "string", "createdAt": "2019-08-24T14:15:22Z", "damageTypeId": 0, "guid": "string", "isExported": true, "lastModify": "2019-08-24T14:15:22Z", "locationId": 0, "note": "string", "numberOfPackages": 0, "orderInternalNumber": 0, "orderItemId": 0, "originWarehouseStockPrice": 0, "packagePrice": 0, "price": 0, "priceWoVat": 0, "priceWoVatIssued": 0, "quantity": 0, "quantityCoefficient": 0, "quantityIssued": 0, "recyclingFee": 0, "recyclingFeeId": 0, "referencePrice": 0, "royalty": 0, "royaltyId": 0, "setPrice": 0, "ssccId": 0, "stockPrice": 0, "unitId": 0, "unitIdIssued": 0, "userId": 0, "variantId": 0, "vatRate": 0, "warehouseDestination": "str", "warehouseOrigin": "str", "weight": 0}Check whether internal transfer items can be deleted GET
Advisory pre-flight for `DELETE {documentId}/items`. `blockingReasons` holds `ITEMS_BLOCKED` when at least one id in `itemIds` is still referenced elsewhere. At most 1000 ids per call. Requires `Permissions.InternalTransfer.Delete`.
Delete a internal transfer item variant DELETE
Deletes one variant row (a size/colour breakdown) of an item and recalculates the document totals. Call the matching `check-delete` endpoint first to find out whether the delete is allowed. Requires `Permissions.InternalTransfer.Delete`.