Cancel (parts) of a previously compensated order
We expect the remaining compensation amount in the compensationAmountInCents field. An amount of 0 is to indicate the cancellation of the entire order.
We will return a 200 OK if the order was not previously cancelled and 400 BadRequest if it was. A higher amount than the current compensation amount will cause a 400 BadRequest, an equal number will return a 200 OK.
A 400 BadRequest is returned when supplying a currency different to the original compensation.
example 1
An order was placed containing 2 products:
- product 1 with compensation amount 60 cents
- product 2 with compensation amount 40 cents
The compensation paid for this order and sent to our api was €1,00.
When product 1 is returned and refunded and you want to cancel this part of the order compensation accordingly, you should send the remaining amount of the order compensation, in this case 40 cents.
example 2
An order was placed containing 2 products:
- product 1 with compensation amount 60 cents
- product 2 with compensation amount 40 cents
The compensation paid for this order and sent to our api was €1,00.
When the order is cancelled and you want to cancel the order compensation accordingly, you should send the remaining amount of the order compensation, in this case 0 cents.