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

Retrieve Dispute Document

Retrieve a specific document from a dispute. This endpoint returns detailed information about an evidence file, including the download URL to access the file.


Request Parametersโ€‹

Required - 2 fieldsRequired Parameters
โ–ผ
`id`STRING(required)
Dispute ID (path parameter).
Example:"dspt_test_5xuy4w91xqz7d1w9u0t"
`document_id`STRING(required)
Document ID to retrieve (path parameter). Format: docu_test_ or docu_live_ followed by alphanumeric string.
Example:"docu_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Successful retrieval

Returns the document object with complete details including download URL.

Response includes:
  • 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 (cardholder_details, details_of_purchase, proof_of_receipt, proof_of_acceptance)
  • download_uri - Temporary URL to download the document
  • created_at - When the document was uploaded

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid dispute ID format
  • Invalid document ID format

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 or document not found.

Common causes:
  • Incorrect dispute ID
  • Incorrect document ID
  • Document does not belong to this dispute
  • Dispute or document 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/docu_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 or document not foundCheck both dispute ID and document ID are correct
invalid_document_idDocument ID format invalidUse valid docu_ format

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

Download URL Notesโ€‹

  • The download_uri is a temporary signed URL
  • URL expires after a period (typically 15 minutes to 1 hour)
  • Request a new document retrieval to get a fresh download URL if expired

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 2 fields
โ–ผ
Your IP: ...Loading...