SelectwinSelectwin

Add evidence to a dispute

POST/v1/disputes/{disputeId}/evidence

Authenticate with the header SelectKey: a sk_test_ key works in the sandbox, a sk_live_ key in production.

Path parameters

  • disputeIdstringrequired

Request body

  • documentsobject[]required

    The 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 documents
    • typestringrequired

      What the evidence is: deliveryProof, shipmentProof, deliveryReceipt, fiscalDocument or communicationProof.

      Values:deliveryProofshipmentProofdeliveryReceiptfiscalDocumentcommunicationProof
    • assetIdstring

      A file you uploaded (POST /v1/assets/uploads, then confirm) — or send assetUrl instead.

    • carrierstring

      Carrier (shipment proof only).

    • assetUrlstring (uri)

      Public URL of the document — or send assetId instead.

    • descriptionstring

      What the document shows.

    • shippingDatestring

      Shipment date (shipment proof only).

    • trackingCodestring

      Tracking code (shipment proof only).

    • authenticationobject

      Credentials needed to open the document URL, when it is protected.

      +3 fields in authentication
      • tokenstring

        Access token.

      • passwordstring

        Password.

      • usernamestring

        User name.

Responses

200OK
  • idstringrequired

    The dispute id.

  • amountnumberrequirednullable

    The disputed amount, in cents.

  • reasonstringrequirednullable

    The reason, as the acquirer sent it.

  • statusstringrequired

    open while undecided; closed once decided.

    Values:openclosed
  • outcomeone ofrequired

    How it ended: won (the charge stays approved) or lost (chargeback); null while open.

    string
    null
  • closedAtstringrequirednullable

    When the dispute was closed.

  • deadlineobjectrequired

    The store's window to send documents.

    +4 fields in deadline
    • urgentbooleanrequired

      The window is about to close: send the documents now.

    • expiredbooleanrequired

      The store's window to send documents closed.

    • deadlineAtstringrequirednullable

      When the store's window to send documents closes; null once the dispute is decided.

    • hoursRemainingnumberrequirednullable

      Whole hours left in that window (negative once it closed).

  • evidenceobjectrequired

    Which kinds of document were already attached (their presence, not their content).

    +5 fields in evidence
    • deliveryProofbooleanrequired
    • shipmentProofbooleanrequired
    • fiscalDocumentsbooleanrequired
    • deliveryReceiptsbooleanrequired
    • communicationProofbooleanrequired
  • openedAtstringrequirednullable

    When the buyer opened the dispute.

  • createdAtstringrequirednullable
  • decidedAtstringrequirednullable

    When the outcome was recorded.

  • updatedAtstringrequirednullable
  • customerIdstringrequirednullable

    The customer of the disputed transaction; null when the sale has none.

  • defensiblebooleanrequired

    Sending documents can still change the outcome.

  • reasonCodestringrequirednullable

    The card brand's reason code, as the acquirer sent it.

  • transactionIdstringrequirednullable

    The disputed transaction.

  • reasonCategorystringrequired

    The 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) or unknown.

    Values:fraudcommercialunknown
  • awaitingDocumentsbooleanrequired

    Defensible and with no document attached yet.

  • reasonDescriptionstringrequirednullable

    The reason code's description, as the acquirer sent it.

400Bad request (validation failed)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
401Unauthorized (missing or invalid credential)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
403Forbidden (no permission)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
404Not found
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
409Conflict (idempotency or state)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
422Unprocessable entity (business rule)
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired
500Internal server error
  • errorobjectrequired
    +8 fields in error
    • codestringrequired
    • paramsobject[]
    • statusstringrequired
    • detailsstring
    • messagestringrequired
    • categorystringrequired
      Values:validationauthenticationauthorizationpaymentclientserverrate_limitpending
    • resourcestringrequired
    • statusCodeintegerrequired

Preferências de cookies

Hoje o site usa só cookies essenciais: nenhuma ferramenta de medição ou de anúncios está ligada, e nada é compartilhado com terceiros. Se isso mudar, você decide aqui antes de qualquer coisa ser carregada.

  • Mantêm o site funcionando: segurança, a sua escolha sobre cookies e preferências como o idioma e a versão da documentação. Não dependem de consentimento.

    Sempre ativos