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

List Dispute Documents

List all documents attached to a dispute. This endpoint retrieves all evidence files that have been uploaded to support your dispute response.


Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Dispute ID to list documents for (path parameter).
Example:"dspt_test_5xuy4w91xqz7d1w9u0t"
Additional - 3 fieldsAdditional Parameters

Responsesโ€‹

200

Successful retrieval

Returns a list object containing document objects attached to the dispute.

Response includes:
  • object - Always "list"
  • data - Array of document objects
  • limit - Number of results per page
  • offset - Number of results skipped
  • total - Total number of documents for this dispute
Each document object contains:
  • object - Always "document"
  • id - Document ID (docu_*)
  • livemode - Whether this is a live mode document
  • location - API path to retrieve the document
  • deleted - Whether the document has been deleted
  • filename - Original filename
  • kind - Document type (if specified)
  • download_uri - URL to download the document
  • created_at - Upload timestamp

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid dispute ID format
  • Limit exceeds maximum (100)
  • Invalid order parameter
  • Negative offset or limit values

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

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/disputes/dspt_test_5xuy4w91xqz7d1w9u0t/documents \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "limit=20" \
-d "offset=0"

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
bad_requestInvalid parametersCheck parameter values
authentication_failureInvalid API keyVerify your secret key is correct
not_foundDispute not foundCheck dispute ID is correct

Document Kind Valuesโ€‹

KindDescriptionExample Documents
cardholder_detailsCustomer identity verificationCustomer ID, billing address proof
details_of_purchaseTransaction and order detailsInvoice, order confirmation, receipt
proof_of_receiptDelivery or service confirmationTracking info, signed delivery receipt
proof_of_acceptanceCustomer acknowledgmentEmail correspondence, terms acceptance

๐Ÿ”‘API Credentials

Try it outโ€‹

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