WinShopAPI docs
ReferenceDocumentsOrdersSupplier

Lock a supplier order

Locks the supplier order for the calling user so other users cannot edit or process it. Returns 400 when it is already locked. Release it with `DELETE {documentId}/lock`. Requires `Permissions.OrderSupplier.Update`.

POST
/api/documents/orders/supplier/{documentId}/lock

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 POST 'https://<your-instance>/api/documents/orders/supplier/0/lock' \  -H 'Authorization: Bearer <access-token>'
null