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

List charge disputes

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


Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
The charge ID to retrieve disputes 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 disputes to return per page.
Example:20
Constraints:Minimum: 1, Maximum: 100
Default:20
`offset`INTEGER(optional)
Number of disputes 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 dispute data array and pagination metadata.

Response includes:
  • data - Array of dispute objects
  • total - Total number of disputes 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/disputes?limit=20&offset=0" \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Dispute Status Valuesโ€‹

StatusDescriptionNext Steps
openDispute is open and pending resolutionSubmit evidence via dashboard
pendingEvidence submitted, awaiting decisionWait for card network decision
wonDispute resolved in merchant's favorFunds returned to merchant
lostDispute resolved in customer's favorFunds debited from account

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...