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

Retrieve a Dispute

Retrieve detailed information about a specific dispute including status, reason codes, evidence documents, and associated charge.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Dispute ID to retrieve (path parameter). Format: dspt_test_ or dspt_live_ followed by alphanumeric string.
Example:"dspt_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Successful retrieval

Returns the dispute object with complete details including status, documents, and transaction information.

Response includes:
  • id - Dispute ID
  • status - Current status (open, pending, won, lost)
  • amount - Disputed amount in smallest currency unit
  • currency - Three-letter ISO currency code
  • reason_code - Reason for dispute (fraudulent, unrecognized, etc.)
  • reason_message - Human-readable reason description
  • charge - Associated charge ID
  • message - Your response message (if provided)
  • documents - List of uploaded evidence documents
  • created_at - When dispute was created
  • closed_at - When dispute was closed (null if open/pending)

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

404

Not found

Dispute not found.

Common causes:
  • Incorrect dispute ID
  • Dispute belongs to different account
  • ID typo or formatting error

Code samplesโ€‹

curl https://api.omise.co/disputes/dspt_test_5xuy4w91xqz7d1w9u0t \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
not_foundDispute not foundCheck dispute ID is correct
invalid_dispute_idDispute ID format invalidUse valid dspt_ format

Dispute Status Valuesโ€‹

StatusDescription
openNewly initiated, awaiting your response
pendingUnder review with merchant response submitted
wonMerchant won the dispute
lostMerchant lost the dispute

Reason Codesโ€‹

CodeDescription
fraudulentCustomer claims unauthorized transaction
unrecognizedCustomer doesn't recognize the charge
duplicateCustomer claims duplicate charge
goods_or_services_not_providedProduct/service not received
not_as_describedProduct significantly different from description
credit_not_processedRefund promised but not received
generalOther reasons

Try it outโ€‹

Required - 1 fields
โ–ผ