Skip to content

Refund a Transaction

POST
/refunds

Initiates a refund for an already captured or settled transaction. Each refund is treated as a new transaction of type REFUND. Use GET /transactions to retrieve its details.

Authorizations

BearerAuth
TypeHTTP (bearer)

Request Body

JSON
{
"external_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"trx_id": "trx_01J5XCMDXCFXCAQ1BV8HVG6644",
"amount": 5000
}

Responses

Details of the new refund transaction.
application/json
JSON
{
"id": "trx_01J5XCMDXCFXCAQ1BV8HVG6644",
"type": "string",
"status": "string",
"order_amount": 10000,
"order_currency": "string",
"amount_authorized": 10000,
"amount_captured": 0,
"amount_voided": 0,
"amount_refunded": 0,
"external_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"updated_at": "2024-09-05T05:05:25Z"
}

Samples

Powered by VitePress OpenAPI