This endpoint is used to create a Refund Request.
Refunds can only be created for successful payments made via a Pay Request. If a Pay Request has not yet been captured, then void the Pay Request instead.
Refunds can be made for the total or partial amount of the Pay Request. Multiple refunds can be created for the same Pay Request as long as the total refunds amount does not exceed the original Pay Request total.
Refunds can only be sent back to the original payment method used.
Created
When the provided payload is not valid.
When you don't have the right permissions to create a Refund Request.
{- "payRequestId": "0f448ac1-862a-4c7b-bdb4-a3b7cdbf6149",
- "total": {
- "amount": 10000,
- "currency": "AUD"
}
}
{- "id": "2d448ac1-862a-4c7b-bdb4-a3b7cdbf6148",
- "payRequestId": "0f448ac1-862a-4c7b-bdb4-a3b7cdbf6149",
- "status": "PROCESSING",
- "total": {
- "amount": 10000,
- "currency": "AUD"
}, - "createdAt": "2022-11-23T22:39:54.765Z",
- "updatedAt": "2022-11-23T22:39:55.045Z"
}