An order can be cancelled for any reasons. It can be cancelled either as a complete order if it is not needed by the customer or a position or line item.
More information can be found in our Link
POST /businesses/{businessCode}/customers/{customerNumber}/orders/{orderReference}/cancellations
application/json
OUT_OF_STOCK
CUSTOMER_CANCELLATION
NO_PAYMENT
CUSTOMER_SERVICE
{
"items": [
{
"orderItemReference": 3
}
],
"bankDetails": {
"bic": "GENODEM1MSC",
"iban": "DE51100100501234567890",
"accountOwner": "Max Mustermann"
},
"cancellationDate": "2018-03-21",
"invoiceReference": "IDE12345678901",
"cancellationReason": "OUT_OF_STOCK"
}
{
"internalRequestId": "23c9579b-baaf-468f-a529-f876226e183c"
}