Refunds - List
POST /refunds/list
Description: Retrieve a list of refunds filtered by time range and other optional criteria.
Example — cURL
curl --request POST \
--url https://sandbox.hyperswitch.io/refunds/list \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"payment_id": "<string>",
"refund_id": "<string>",
"profile_id": "<string>",
"limit": 123,
"offset": 123,
"amount_filter": {
"start_amount": 123,
"end_amount": 123
},
"connector": [
"<string>"
],
"merchant_connector_id": [
"<string>"
],
"currency": [
"AED"
],
"refund_status": [
"succeeded"
]
}
'Successful Response (200)
Authorization
Header:
api-key(string) — required Use the API key from your HyperSwitch dashboard. This key authenticates requests from your merchant server only. Do not expose it publicly (e.g., in client-side code or mobile apps).
Request Body (application/json)
A type representing a range of time for filtering, including a mandatory start_time and an optional end_time.
start_time (string) — required The start time to filter the refunds list. To get available filters,
start_timemust be provided.end_time (string | null) — optional The end time to filter the refunds list. If not provided, defaults to now.
payment_id (string | null) — optional The identifier for the payment.
refund_id (string | null) — optional The identifier for the refund.
profile_id (string | null) — optional The identifier for the business profile.
limit (integer | null) — optional Limit on the number of objects to return.
offset (integer | null) — optional The starting point within a list of objects.
amount_filter (object) — optional Attributes:
start_amount (number)
end_amount (number)
connector (string[] | null) — optional List of connectors to filter refunds.
merchant_connector_id (string[] | null) — optional List of merchant connector ids to filter refunds for a selected label.
currency (enum[] | null) — optional List of currencies to filter refunds. The field uses three-letter ISO 4217 currency codes (e.g., "USD", "EUR").
refund_status (enum[] | null) — optional List of refund statuses to filter the refunds list. Available options:
succeeded
failed
pending
review
Response (200 — application/json)
List of refunds.
count (integer) — required The number of refunds included in the response. (Range: x >= 0)
total_count (integer) — required The total number of refunds matching the query.
data (object[]) — required The array of refund response objects (see example above for fields in each refund object).
Links
Edit docs: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/refunds/refunds--list.mdx
Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/refunds/refunds--list
Related endpoints
Refunds — Retrieve: https://api-reference.hyperswitch.io/v1/refunds/refunds--retrieve
Disputes — Retrieve Dispute: https://api-reference.hyperswitch.io/v1/disputes/disputes--retrieve