WinShopAPI docs
ReferenceDocumentsStock takingStock takings

Lock a stock taking

Locks the stock taking 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.StockTakings.Update`.

POST
/api/documents/stock-taking/stock-takings/{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/stock-taking/stock-takings/0/lock' \  -H 'Authorization: Bearer <access-token>'
null