Get a write-off as PDF
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`.
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentId*integerint32response?unknownapplication/octet-streamcurl -X GET 'https://<your-instance>/api/documents/expedition/write-offs/0/pdf' \ -H 'Authorization: Bearer <access-token>'nullUnlock a write-off DELETE
Releases the lock on the write-off. Returns 400 when the lock belongs to another user. Requires `Permissions.WriteOffs.Update`.
Process a write-off POST
Posts the write-off to stock, applying the movement of every item, and marks the document as processed. Fails when the document is already processed, or when another user holds its lock. Processing cannot be reversed through this API. Requires `Permissions.WriteOffs.Update`.