Process a write-off (deprecated)
**Deprecated.** Use `POST {documentId}/process` instead — this alias behaves identically and will be removed. Requires `Permissions.WriteOffs.Update`.
Deprecated
BearerAuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
documentId*integerint32userId?|int32response?unknownapplication/octet-streamcurl -X POST 'https://<your-instance>/api/documents/expedition/write-offs/0/finish' \ -H 'Authorization: Bearer <access-token>'nullCheck whether a write-off can be deleted GET
Advisory pre-flight for `DELETE {documentId}`. `canBeDeleted` is false when `blockingReasons` holds `HEADER_BLOCKED` or `ITEMS_BLOCKED`. The delete re-checks inside its own transaction, so a positive answer here is an indication rather than a guarantee. Requires `Permissions.WriteOffs.Delete`.
Add items to a write-off POST
Appends the items in the body to an existing write-off and recalculates the document totals. Requires `Permissions.WriteOffs.Create`.