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).
Additional - 3 fieldsAdditional Parameters
Responsesโ
200
Successful retrievalReturns a list object containing document objects attached to the dispute.
Response includes:
object- Always "list"data- Array of document objectslimit- Number of results per pageoffset- Number of results skippedtotal- Total number of documents for this dispute
object- Always "document"id- Document ID (docu_*)livemode- Whether this is a live mode documentlocation- API path to retrieve the documentdeleted- Whether the document has been deletedfilename- Original filenamekind- Document type (if specified)download_uri- URL to download the documentcreated_at- Upload timestamp
400
Bad requestRequest 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
UnauthorizedAuthentication 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 foundDispute not found.
Common causes:
- Incorrect dispute ID
- Dispute belongs to different account
- ID typo or formatting error
5xx
Server errorServer-side error occurred. These are rare but should be handled gracefully.
How to handle:
- Retry the request with exponential backoff
- Check status.omise.co for service incidents
- See Error Handling for detailed guidance
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/disputes/dspt_test_5xuy4w91xqz7d1w9u0t/documents \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "limit=20" \
-d "offset=0"
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
documents = Omise::Dispute.list_documents('dspt_test_5xuy4w91xqz7d1w9u0t', {
limit: 20,
offset: 0
})
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
documents = omise.Dispute.list_documents(
'dspt_test_5xuy4w91xqz7d1w9u0t',
limit=20,
offset=0
)
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const documents = await omise.disputes.listDocuments('dspt_test_5xuy4w91xqz7d1w9u0t', {
limit: 20,
offset: 0
});
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$documents = OmiseDispute::listDocuments('dspt_test_5xuy4w91xqz7d1w9u0t', [
'limit' => 20,
'offset' => 0
]);
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
ScopedList<Document> documents = client.disputes().listDocuments("dspt_test_5xuy4w91xqz7d1w9u0t")
.limit(20)
.offset(0)
.send();
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var documents = await client.Disputes.ListDocuments("dspt_test_5xuy4w91xqz7d1w9u0t", new ListRequest
{
Limit = 20,
Offset = 0
});
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
documents, _ := client.ListDisputeDocuments("dspt_test_5xuy4w91xqz7d1w9u0t", &operations.ListDocuments{
Limit: 20,
Offset: 0,
})
Error and result codesโ
Common Error Codesโ
| Code | Description | Resolution |
|---|---|---|
bad_request | Invalid parameters | Check parameter values |
authentication_failure | Invalid API key | Verify your secret key is correct |
not_found | Dispute not found | Check dispute ID is correct |
Document Kind Valuesโ
| Kind | Description | Example Documents |
|---|---|---|
cardholder_details | Customer identity verification | Customer ID, billing address proof |
details_of_purchase | Transaction and order details | Invoice, order confirmation, receipt |
proof_of_receipt | Delivery or service confirmation | Tracking info, signed delivery receipt |
proof_of_acceptance | Customer acknowledgment | Email correspondence, terms acceptance |
API Credentials
Try it outโ
Required - 1 fields
Additional - 3 fields
Your IP:
...Loading...