Create refund
Create a refund for a specific transaction. This endpoint allows you to process full or partial refunds for completed transactions.
transactions.write
scope.Authorizations
Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token.
Headers
The ID of the merchant account to use for this request.
""default""
Path Parameters
The unique identifier of the transaction to create a refund for.
"7099948d-7286-47e4-aad8-b68f7eb44591"
Body
application/jsonThe amount to refund in the smallest currency unit.
"1299"
"500"
Refund currency.
"USD"
"EUR"
The reason for the refund.
"Refund due to user request."
"Product return"
"Order cancellation"
An external identifier that can be used to match the refund against your own records.
"refund-12345"
The webhook URL to receive payment status notifications.
"https://yourdomain.com/webhook/refund"
Bank account details object, required for payment is QR PromptPay, Thailand Mobile Banking. Please see Refund Policy for more details.
Response
Successful Response
Resource type, always "refund".
"refund"
Unique refund identifier.
"6a1d4e46-14ed-4fe1-a45f-eff4e025d211"
The ID of the transaction being refunded.
"7099948d-7286-47e4-aad8-b68f7eb44591"
Refund status. Available options: processing, succeeded, failed, declined, voided
"succeeded"
"failed"
"processing"
The ISO 4217 currency code for this refund. Will always match that of the associated transaction.
"EUR"
"USD"
"GBP"
Refund amount in the smallest currency unit.
"1299"
Reason for the refund.
"Refund due to user request."
External identifier for the refund.
"refund-12345"
External identifier for the original transaction.
"transaction-12345"
Creation time (ISO 8601).
"2013-07-16T19:23:00.000+00:00"
curl --request POST \--url https://api.efundpay.com/v4/transactions/7099948d-7286-47e4-aad8-b68f7eb44591/refunds \--header 'Authorization: Bearer <token>' \--header 'x-merchant-account-id: <x-merchant-account-id>' \--header 'Content-Type: application/json' \--data '{"amount": 1299,"currency": "EUR","reason": "Refund due to user request.","external_identifier": "refund-12345","bank_detail": {"bank_code": "014","bank_account_name": "Jack","bank_account_no": "5015377989"}}'
{"type": "refund","id": "6a1d4e46-14ed-4fe1-a45f-eff4e025d211","transaction_id": "7099948d-7286-47e4-aad8-b68f7eb44591","status": "succeeded","currency": "EUR","amount": 1299,"reason": "Refund due to user request.","external_identifier": "refund-12345","transaction_external_identifier": "transaction-12345","created_at": "2013-07-16T19:23:00.000+00:00",}