WinShopAPI docs

Delete a intake 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.Intake.Delete`.

DELETE
/api/documents/intakes/{documentId}/items/{itemId}/variants/{variantId}

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

Response Body

response?unknownapplication/octet-stream
curl -X DELETE 'https://<your-instance>/api/documents/intakes/0/items/0/variants/0' \  -H 'Authorization: Bearer <access-token>'
null