Delete a internal order item variant
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.OrderInternal.Delete`.
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*integerint32variantId*integerint32response?unknownapplication/octet-streamcurl -X DELETE 'https://<your-instance>/api/documents/orders/internal/0/items/0/variants/0' \ -H 'Authorization: Bearer <access-token>'nullUpdate a internal order item PUT
Replaces one item of the internal order, identified by `itemId`, and recalculates the document totals. Requires `Permissions.OrderInternal.Update`.
Check whether an item variant can be deleted GET
Advisory pre-flight for `DELETE {documentId}/items/{itemId}/variants/{variantId}`. `blockingReasons` holds `ITEM_VARIANT_BLOCKED` when the variant is still referenced elsewhere. Requires `Permissions.OrderInternal.Delete`.