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

Documents API

The Documents API enables creating, retrieving, and deleting document files to help resolve disputes. Documents such as scanned receipts, shipment delivery slips, and customer correspondence are used as evidence in the dispute resolution process.

Overviewโ€‹

Documents are files uploaded to support your case during a dispute. When a customer files a chargeback, providing strong documentary evidence increases your chances of winning the dispute.

Supported File Typesโ€‹

FormatMIME TypeMax Size
PNGimage/png10MB
JPG/JPEGimage/jpeg10MB
PDFapplication/pdf10MB

Document Typesโ€‹

Use the kind parameter to categorize your evidence:

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

Available Endpointsโ€‹

Document Objectโ€‹

FieldTypeDescription
objectstringAlways "document"
idstringDocument identifier (docu_*)
livemodebooleanWhether this is a live or test mode document
locationstringAPI path to retrieve the document
deletedbooleanWhether the document has been deleted
filenamestringOriginal filename of uploaded document
kindstringDocument type (cardholder_details, etc.)
download_uristringTemporary URL to download the document
created_atstringWhen the document was uploaded (ISO 8601)

Best Practicesโ€‹

Uploading Evidenceโ€‹

  • Provide clear, legible documents - Ensure images are high quality and text is readable
  • Use descriptive filenames - Helps organize and identify documents
  • Categorize correctly - Use the appropriate kind value
  • Upload promptly - Don't wait until the deadline
Dispute ReasonRecommended Evidence
FraudulentSigned delivery receipt, AVS/CVV verification, customer communication
Product not receivedTracking number, delivery confirmation, shipping carrier records
Product unacceptableProduct description, photos, return policy, customer correspondence
Duplicate chargeTransaction records showing single charge
Credit not processedRefund confirmation, policy documentation

Important Notesโ€‹

  • Documents can only be uploaded to disputes with open status
  • Once a dispute moves to pending, documents cannot be modified
  • Download URLs are temporary and expire
  • Maximum file size is 10MB per document

Need help? Contact support@omise.co for assistance with dispute evidence.