Update a customer claim item
Replaces one item of the customer claim, identified by `itemId`, and recalculates the document totals. Requires `Permissions.ClaimCustomer.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?|int32claimReason?|int32createdAt?|date-timefaultDescription?string|nullfaultTypId?|int32lastModify?|date-timenote?string|nullpackagePrice?|decimalquantity?|decimalquantityCoefficient?|decimalrecyclingFee?|decimalrecyclingFeeId?|int32royalty?|decimalroyaltyId?|int32serviceId?|int32solutionDescription?string|nullsolutionTypeId?|int32statusId?|int32stockPrice?|decimalunitId?|int32userId?|int32variantId?|int32vatRate?|decimalclaimPrice?|decimalcommissionStockIntakeInternalNumber?|int32deliveryNoteItemId?|int32headerInternalId?|int64isCancellation?boolean|nullisPartialCancellation?boolean|nullorderItemId?|int32originalInvoiceInternalNumber?|int32posId?|int32price?|decimalpriceWoVat?|decimalpriceWoVatIssued?|decimalquantityIssued?|decimalstockIntakeInternalNumber?|int32unitIdIssued?|int32response?unknownapplication/octet-streamcurl -X PUT 'https://<your-instance>/api/documents/claims/customer/0/items/0' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{}'nullCheck whether customer claim 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.ClaimCustomer.Delete`.
Delete a customer claim 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.ClaimCustomer.Delete`.