Get write-off defaults
Returns the instance's configured defaults applied when a write-off is created. Requires `Permissions.WriteOffs.View`.
GET
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
application/json- response
customerId?integerFormat
int32paymentTypeId?integerFormat
int32showOnlyActiveProducts?booleanwarehouseId?integerFormat
int32writeOffNeedsConfirmation?booleancurl -X GET 'https://<your-instance>/api/documents/expedition/write-offs/base-config' \ -H 'Authorization: Bearer <access-token>'{ "customerId": 0, "paymentTypeId": 0, "showOnlyActiveProducts": true, "warehouseId": 0, "writeOffNeedsConfirmation": true}Create a write-off POST
Creates a write-off from the header and any items in the body, and returns the stored document (201, `Location` header set). Reserves the next internal document number. Requires `Permissions.WriteOffs.Create`.
Get a write-off GET
Returns one write-off by `documentId`, with its header, items and item variants. Requires `Permissions.WriteOffs.View`.