Skip to main content
Version: 2019-05-29 (Current)

List charge refunds

List all refunds for a specific charge. Returns refunds sorted by creation date with pagination capabilities.


Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
The charge ID to retrieve refunds for. Must be a valid charge ID from your account.
Example:"chrg_test_5xuy4w91xqz7d1w9u0t"
Constraints:Must start with chrg_, Test charges: chrg_test_, Live charges: chrg_live_
Recommended - 3 fieldsRecommended Parameters
โ–ผ
`limit`INTEGER(optional)
Number of refunds to return per page.
Example:20
Constraints:Minimum: 1, Maximum: 100
Default:20
`offset`INTEGER(optional)
Number of refunds to skip for pagination. Use with limit to navigate through pages.
Example:0
Default:0
`order`STRING(optional)
Sort order by creation date.
Example:"chronological"
Values:chronological, reverse_chronological
Default:"chronological"
Additional - 2 fieldsAdditional Parameters

Responsesโ€‹

200

Successful list retrieval

Returns a list object containing refund data array and pagination metadata.

Response includes:
  • data - Array of refund objects
  • total - Total number of refunds for this charge
  • limit - Number of items per page
  • offset - Current pagination offset
  • order - Sort order applied
  • from / to - Date range applied

400

Bad request

Invalid parameters provided.

Common causes:
  • Invalid date format (must be ISO 8601)
  • Limit out of range (must be 1-100)
  • Invalid offset value

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key

404

Not found

Charge ID does not exist.

Common causes:
  • Incorrect charge ID
  • Charge from different account
  • Using test key for live charge (or vice versa)

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl "https://api.omise.co/charges/chrg_test_5xuy4w91xqz7d1w9u0t/refunds?limit=20&offset=0" \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Refund Status Valuesโ€‹

StatusDescriptionNext Steps
pendingRefund is being processedWait for completion
closedRefund completed successfullyFunds returned to customer
failedRefund failedCheck failure reason

Pagination Calculationโ€‹

FieldCalculationUse
Next pageoffset + limitGet next set of results
Previous pageoffset - limit (min 0)Go back to previous page
Has moreoffset + limit < totalCheck if more pages exist
Page number(offset / limit) + 1Current page number

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 1 fields
โ–ผ
Recommended - 3 fields
Additional - 2 fields
Your IP: ...Loading...