Unlock a write-off
Releases the lock on the write-off. Returns 400 when the lock belongs to another user. Requires `Permissions.WriteOffs.Update`.
DELETE
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentId*integerFormat
int32response?unknownapplication/octet-streamcurl -X DELETE 'https://<your-instance>/api/documents/expedition/write-offs/0/lock' \ -H 'Authorization: Bearer <access-token>'nullLock a write-off POST
Locks the write-off 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.WriteOffs.Update`.
Get a write-off as PDF GET
Renders the write-off with its configured print template and returns `application/pdf` inline. 404 when the document has no printable output. Requires `Permissions.WriteOffs.View`.