Add evidence to a dispute
/v1/disputes/{disputeId}/evidenceAuthenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.
Path parameters
disputeIdstringrequired
Request body
documentsobject[]requiredThe documents to ADD to the evidence already attached (1–50); nothing already attached is replaced or removed. A dispute keeps at most 50 documents in all.
+8 fields in
documentstypestringrequiredWhat the evidence is:
deliveryProof,shipmentProof,deliveryReceipt,fiscalDocumentorcommunicationProof.Values:deliveryProofshipmentProofdeliveryReceiptfiscalDocumentcommunicationProofassetIdstringA file you uploaded (
POST /v1/assets/uploads, then confirm) — or sendassetUrlinstead.carrierstringCarrier (shipment proof only).
assetUrlstring (uri)Public URL of the document — or send
assetIdinstead.descriptionstringWhat the document shows.
shippingDatestringShipment date (shipment proof only).
trackingCodestringTracking code (shipment proof only).
authenticationobjectCredentials needed to open the document URL, when it is protected.
+3 fields in
authenticationtokenstringAccess token.
passwordstringPassword.
usernamestringUser name.
Responses
200OK
idstringrequiredThe dispute id.
amountnumberrequirednullableThe disputed amount, in cents.
reasonstringrequirednullableThe reason, as the acquirer sent it.
statusstringrequiredopenwhile undecided;closedonce decided.Values:openclosedoutcomeone ofrequiredHow it ended:
won(the charge stays approved) orlost(chargeback);nullwhile open.string
null
closedAtstringrequirednullableWhen the dispute was closed.
deadlineobjectrequiredThe store's window to send documents.
+4 fields in
deadlineurgentbooleanrequiredThe window is about to close: send the documents now.
expiredbooleanrequiredThe store's window to send documents closed.
deadlineAtstringrequirednullableWhen the store's window to send documents closes;
nullonce the dispute is decided.hoursRemainingnumberrequirednullableWhole hours left in that window (negative once it closed).
evidenceobjectrequiredWhich kinds of document were already attached (their presence, not their content).
+5 fields in
evidencedeliveryProofbooleanrequiredshipmentProofbooleanrequiredfiscalDocumentsbooleanrequireddeliveryReceiptsbooleanrequiredcommunicationProofbooleanrequired
openedAtstringrequirednullableWhen the buyer opened the dispute.
createdAtstringrequirednullabledecidedAtstringrequirednullableWhen the outcome was recorded.
updatedAtstringrequirednullablecustomerIdstringrequirednullableThe customer of the disputed transaction;
nullwhen the sale has none.defensiblebooleanrequiredSending documents can still change the outcome.
reasonCodestringrequirednullableThe card brand's reason code, as the acquirer sent it.
transactionIdstringrequirednullableThe disputed transaction.
reasonCategorystringrequiredThe reason in our words:
fraud(the cardholder did not make the purchase),commercial(the buyer is real and the sale went wrong: not received, not as described, canceled, duplicated) orunknown.Values:fraudcommercialunknownawaitingDocumentsbooleanrequiredDefensible and with no document attached yet.
reasonDescriptionstringrequirednullableThe reason code's description, as the acquirer sent it.
400Bad request (validation failed)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
401Unauthorized (missing or invalid credential)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
403Forbidden (no permission)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
404Not found
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
409Conflict (idempotency or state)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
422Unprocessable entity (business rule)
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired
500Internal server error
errorobjectrequired+8 fields in
errorcodestringrequiredparamsobject[]statusstringrequireddetailsstringmessagestringrequiredcategorystringrequiredValues:validationauthenticationauthorizationpaymentclientserverrate_limitpendingresourcestringrequiredstatusCodeintegerrequired