Refund a specific order.
The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.
Request body for refunding an order
Specified the order ID that will be refunded. Basket IDs and Order IDs can be used interchangeably.
When true, the items will be restocked. If no value is passed, this will always default to true.
When true, the processing fee will be refunded. If no value is passed, this will always default to true.
When true, the reseller fee will be refunded. If no value is passed, this will always default to true.
When true, the customer will be notified of their refund. If no value is passed, this will always default to true.
True for online refunds, false otherwise. If true is passed here but the transaction has no payment gateway or has a total of zero, it will revert this value to false.
Set the type for the refund. If set to balance or cancellation, the online flag will be ignored
refund, balance_refund, cancellation The uuid to store against the transaction, which allows the existing transaction to be returned if the refund has already been processed. This is ignored for cancellations, as they don't have a transaction
Where you have a split payment order, you can specify how much to refund to each payment method. If not supplied, the system will refund the original payment methods proportionately according to their original values.