WinShopAPI docs
ReferenceDocumentsOrdersSupplier

Delete a supplier order

Deletes the supplier order together with its items and item variants. Cannot be undone. Call `GET {documentId}/check-delete` first to find out whether the delete is allowed. Requires `Permissions.OrderSupplier.Delete`.

DELETE
/api/documents/orders/supplier/{documentId}

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

Response Body

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