> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dhmad.tn/llms.txt
> Use this file to discover all available pages before exploring further.

# List Refunds

> List the refunds of a charge, or get one

**/api/v1/charges/:id/refunds**

Returns every refund of a charge, newest first. `:id` accepts the charge id or your `merchantReference`. Each refund has the same fields as the `refund` returned by [Refund Charge](https://docs.dhmad.tn/api-reference/charges/create-refund.md), including refunds made from the dashboard or by [accepting a dispute](https://docs.dhmad.tn/api-reference/charges/accept-dispute.md) (`initiatedBy: "dispute_accept"`).

`GET /api/v1/charges/:id/refunds/:refundId` returns a single refund as `{ "refund": { … } }`, or **404** when the charge has no refund with that id.

[Get Charge](https://docs.dhmad.tn/api-reference/charges/get-charge.md) also reports the totals: `amount` (originally paid), `amountRefunded`, `amountRefundable`, and `refundStatus` (`none`, `partial`, or `full`). A charge fully refunded during the hold has `status: "cancelled"`; one refunded after release keeps `status: "completed"` with `refundStatus: "full"`.

```bash cURL theme={null}
curl https://dhmad.tn/api/v1/charges/purchase_65f1c2a9b1/refunds \
  -H "Authorization: Bearer sk_live_your_api_key_here"
```

```javascript JavaScript theme={null}
const response = await fetch(
  'https://dhmad.tn/api/v1/charges/purchase_65f1c2a9b1/refunds',
  { headers: { 'Authorization': 'Bearer sk_live_your_api_key_here' } }
);

const { refunds } = await response.json();
```

```json theme={null}
{
  "refunds": [
    {
      "id": "6650a1f2c3d4e5f6a7b8c9d0",
      "chargeId": "507f1f77bcf86cd799439011",
      "amount": 20,
      "currency": "TND",
      "amountTnd": 20,
      "payerAmountTnd": 20,
      "feeRefundedTnd": 0,
      "source": "hold",
      "isFull": false,
      "reason": "requested_by_customer",
      "status": "succeeded",
      "initiatedBy": "api",
      "merchantRefundReference": "refund_1042",
      "destinations": [
        { "type": "paypal", "amountTnd": 20, "status": "succeeded", "chargebackHold": null }
      ],
      "createdAt": "2026-01-16T09:00:00.000Z",
      "updatedAt": "2026-01-16T09:05:00.000Z"
    }
  ]
}
```

## Path Parameters

**id** `string` *required*

Charge id or `merchantReference`.

**refundId** `string`

Refund id, for `GET /api/v1/charges/:id/refunds/:refundId`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.