The refund operation is idempotent if a unique
If using the Deferred Payment Flow, please be aware that only captured funds can be refunded.
Returns a Refund object in response. All request parameters will be echoed in the response. In addition, the response includes the following:
|string||The unique, permanent, Clearpay-generated Refund ID.|
|string||The UTC timestamp of when the refund was completed, in ISO 8601 format.|
In addition to the PUT/POST Errors applicable to all POST endpoints, the following errors are specific to Create Refund:
|HTTP Status Code||errorCode||Description|
|The currency of the refund does not match the currency of the order (and the Merchant account).|