Skip to Content
Docs

Dispute evidence

Upload documents and submit them as evidence to defend a dispute, with the evidence types and the file limits processors accept.

To defend a dispute, upload each file as a document, then submit it as evidence with POST /v1/disputes/{dispute_id}/evidences. Pay.com reviews the evidence and sends it to the acquirer, which presents it to the card network and the issuer.

Requirements

You can submit evidence while both of these are true:

  • The dispute's status is open, or pre_arbitration with evidence_required_by set.
  • The evidence_required_by time hasn't passed.

Evidence types

Set type to the kind of evidence you're submitting. If you leave it out, the evidence is stored as additional_evidence.

TypeUse for
proof_of_delivery_or_serviceTracking numbers, carrier confirmations, signed delivery receipts, or logs showing the customer used the service
proof_of_delivery_or_service_dateThe date the goods were delivered or the service was provided
invoice_or_receiptThe invoice or receipt for the disputed charge
invoice_showing_distinct_transactionsInvoices showing that two similar charges are separate purchases
customer_communicationEmails or chat logs with the customer about the purchase
recurring_transaction_agreementThe agreement the customer accepted for recurring billing
refund_or_cancellation_policyThe refund or cancellation policy the customer accepted, and where they saw it
additional_evidenceAnything else that supports your case
pre_arbitration_evidenceSet by Pay.com for all evidence submitted while the dispute is in pre_arbitration
cardholder_evidenceEvidence from the cardholder's side, recorded on the dispute. Don't use it for your own evidence
issuer_winning_evidenceEvidence the issuer sent with a decision in its favor. Don't use it for your own evidence

Which evidence wins depends on the dispute's reason code. See Reason codes for what each network's codes claim.

Limits

Acquirers limit the files they accept, and Pay.com checks the limits of the dispute's acquirer when you submit evidence:

  • Size: 10 MB per document by default. Some acquirers accept less, as little as 2 MB.
  • Pages: 50 pages per document by default. Some acquirers accept less, as few as 18. Pages are counted for PDF files only.
  • Documents: up to 10 documents per submission.

A document over its acquirer's limit is rejected with 400 when you submit it as evidence, not when you upload it. The upload itself accepts files up to 50 MB. A bulk defend request applies the strictest limit among its disputes' acquirers.

A few acquirers accept only PDF files, or only one file for each dispute, and Pay.com applies those rules when it sends the evidence, after the API has accepted it. One PDF of up to 2 MB and 18 pages meets every acquirer's limits. The Pay.com dashboard accepts PDF files only.

Prepare the files

The card networks set rules for what evidence can contain. Evidence that breaks them can be rejected, and any fine for it is charged to you.

  • Don't include full card numbers, even partially masked.
  • Don't include full copies of passports, ID cards, or driver's licenses. Mask ID numbers, signatures, and other personal data. Include an ID copy only when the network asks for one, for example for an order collected in person.
  • For disputes that aren't about fraud, leave out ID documents. Send what shows the transaction was valid, such as the order confirmation, proof of delivery, and your messages with the customer.
  • For Mastercard disputes, keep images at 300 × 300 DPI or less and 30,000,000 pixels or fewer, and avoid heavy graphics and color.

Upload a document

Each file you submit is a document (doc_). Create the document record, upload the file, and wait for Pay.com to accept it.

  1. 1

    Create the document

    Send POST /v1/documents with the file's details. content_length is the file size in bytes. If you leave out title, it defaults to filename.

    {
      "filename": "delivery-confirmation.pdf",
      "reference": "order_48213",
      "content_type": "application/pdf",
      "content_length": 182044,
      "title": "Signed delivery confirmation"
    }
  2. 2

    Upload the file

    Send the file to POST /v1/documents/{document_id}/upload. The body must be exactly the content_length bytes you declared, and the Content-Type header replaces the document's content_type.

    curl -X POST https://api.sandbox.pay.com/v1/documents/doc_692435112204787712/upload \
      -u ':sk-pay-com-sandbox-…' \
      --header 'Content-Type: application/pdf' \
      --data-binary @delivery-confirmation.pdf

    A 204 confirms the upload, and the document moves to pending while Pay.com scans it for malware.

  3. 3

    Wait for the document to be active

    The document becomes active (document.active event), or rejected (document.rejected) if the scan fails. You can submit only active documents. If a document is rejected, create a new one and upload a corrected file. To check a document, retrieve it with GET /v1/documents/{id}.

Submit the evidence

Send POST /v1/disputes/{dispute_id}/evidences with the document IDs, the evidence type, and a text explanation. text is required, but it can be an empty string. Pass one ID in document, or up to 10 in documents. If you send both, Pay.com uses documents.

{
  "type": "proof_of_delivery_or_service",
  "documents": ["doc_692435112204787712"],
  "text": "The order was delivered on March 4, 2026 and signed for by the customer."
}

The response (201) is the dispute as it was before Pay.com processed the evidence, so evidences.data doesn't include it yet. Within seconds the evidence appears on the dispute, the status moves to evidence_under_review, and Pay.com sends a dispute.evidence_under_review event. Amounts are in the currency's smallest unit, so 5000 is $50.00.

Each request adds a new evidence record. To send the same files for several disputes, use bulk defend.

After you submit

The status moves to evidence_under_review as soon as Pay.com stores the evidence. Pay.com then checks it and sends it to the acquirer.

If Pay.com rejects the evidence, for example because it breaks a card network rule, the dispute goes back to open, or to pre_arbitration, with the same deadline. Pay.com sends a dispute.evidence_rejected event, and you can submit new evidence.

Update evidence

PATCH /v1/disputes/{dispute_id}/evidences/{evidence_id} changes a stored evidence record, with a new text, a new document, or both. A document replaces all the files on the evidence with that one document. You can update evidence only while the dispute is open or pre_arbitration, and you can't change its type.

Updating evidence doesn't send anything to the acquirer again. To answer a rejection, or to add to your defense, submit new evidence instead.

Read the evidence on a dispute

The dispute's evidences.data lists its evidence. To read it on its own, list it with GET /v1/disputes/{dispute_id}/evidences, or retrieve one with GET /v1/disputes/{dispute_id}/evidences/{evidence_id}. Each evidence object has its type, its text, and the document IDs in files.

Submit evidence in the dashboard

In the Pay.com dashboard, go to Fraud & Disputes → Disputes, open the dispute, and describe the case in Describe the case. Upload your evidence as a PDF, confirm you've read the Guidelines for Submitting Dispute Evidence, and submit. The dashboard stores the evidence as additional_evidence, or as pre_arbitration_evidence during pre-arbitration.

The dashboard also answers requests for information on disputes in new, which the API can't.

Next steps

Was this page helpful?