Create Dispute

​

Files the dispute. Send the transactionId values from List Disputable Transactions in transaction_ids, the customer info, the selected dispute reason, and the questionnaire answers as question_uuid/answer pairs. Returns a DisputeSummary with the dispute's uuid (needed for Upload Files), shortId, resolutionDeadline, and any initial actions (e.g. issue provisional credit). Provide exactly one of transaction_ids or transaction_details; full transaction_details bodies remain supported for existing integrations.

Body·

required
application/json
  • Properties: 7
  • Properties: 4
  • DisputeReason is the dispute reason category. GetDisputeReasons returns the applicable parent categories; the specific sub-reason is resolved server-side from the questionnaire answers at Create time, so callers only ever submit a parent reason. Legacy reason values are normalized to this set before they reach the API, so these are the only values integrators see.

    • DISPUTE_REASON_ACH_ISSUE: Unauthorized ACH debit. Other ACH problems use the more specific DISPUTE_REASON_ACH_* values.
    • DISPUTE_REASON_ACH_CREDIT_ISSUE: Dispute about an ACH credit (incoming or outgoing credit entry), as opposed to the ACH_ISSUE_* family, which covers consumer debit disputes.
    values
    • DISPUTE_REASON_UNKNOWN
    • DISPUTE_REASON_UNAUTH
    • DISPUTE_REASON_MERCHANT_ISSUE
    • DISPUTE_REASON_ATM_ISSUE
    • DISPUTE_REASON_ACH_ISSUE
    • DISPUTE_REASON_TRANSFER_ISSUE
    • DISPUTE_REASON_ATM_ISSUE_CASH_NOT_DISPENSED
    • DISPUTE_REASON_MERCHANT_ISSUE_GOODS_OR_SERVICES_NOT_RECEIVED
  • Legacy: full caller-supplied transaction data, still supported for existing integrations. New integrations should use transaction_ids. Provide exactly one of the two.

    Properties: 18
  • transaction_ids selects the transactions to dispute by id, using the transaction_id values returned by ListDisputableTransactions. Ids that fail the eligibility rules (unknown, already disputed, mixed rails) are rejected. Mutually exclusive with transaction_details.

Responses

  • application/json
  • application/json
Request Example for post/v1/disputes
curl /v1/disputes \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: YOUR_SECRET_TOKEN' \
  --data '{
  "customer": {
    "accountUuid": "",
    "address": {
      "city": "",
      "country": "",
      "line1": "",
      "line2": "",
      "postalCode": "",
      "state": ""
    },
    "email": "",
    "externalIds": {
      "additionalProperty": ""
    },
    "name": "",
    "phone": "",
    "uuid": ""
  },
  "orgUuid": "",
  "questionnaireAnswers": [
    {
      "answer": "",
      "question": "",
      "questionId": "",
      "questionUuid": ""
    }
  ],
  "reason": "DISPUTE_REASON_UNKNOWN",
  "transactionDetails": [
    {
      "amount": {
        "amountInCents": 1,
        "currency": ""
      },
      "arn": "",
      "authorizedTimestamp": "",
      "cardId": "",
      "cardLast4": "",
      "cardType": "CARD_TYPE_UNKNOWN",
      "ica": "",
      "location": "",
      "merchant": "",
      "network": "TRANSACTION_NETWORK_UNKNOWN",
      "rrn": "",
      "settledTimestamp": "",
      "status": "TRANSACTION_STATUS_UNKNOWN",
      "transactionSettledAmount": {
        "amountInCents": 1,
        "currency": ""
      },
      "type": "TRANSACTION_TYPE_UNKNOWN",
      "typeCode": "",
      "uuid": "",
      "visaTransactionId": ""
    }
  ],
  "transactionIds": [
    ""
  ]
}'
{
  "dispute": {
    "actions": [
      "ACTION_NONE"
    ],
    "agent": {
      "email": "string",
      "name": "string",
      "phone": "string",
      "uuid": "string"
    },
    "auditLog": [
      {
        "agentEmail": "string",
        "createDispute": {
          "actions": [
            "ACTION_NONE"
          ]
        },
        "eventType": "DISPUTE_EVENT_TYPE_UNKNOWN",
        "timestamp": "string"
      }
    ],
    "customer": {
      "accountUuid": "string",
      "address": {
        "city": "string",
        "country": "string",
        "line1": "string",
        "line2": "string",
        "postalCode": "string",
        "state": "string"
      },
      "email": "string",
      "externalIds": {
        "additionalProperty": "string"
      },
      "name": "string",
      "phone": "string",
      "uuid": "string"
    },
    "disputeReason": {
      "displayMessage": "string",
      "reason": "DISPUTE_REASON_UNKNOWN"
    },
    "files": [
      {
        "contentType": "string",
        "fileUuid": "string",
        "filename": "string",
        "size": "string",
        "uploadedAt": "string"
      }
    ],
    "reason": "DISPUTE_REASON_UNKNOWN",
    "resolutionDeadline": "string",
    "shortId": "string",
    "status": "DISPUTE_STATUS_UNKNOWN",
    "transactions": [
      {
        "amount": {
          "amountInCents": 1,
          "currency": "string"
        },
        "auditLog": [
          {
            "agentEmail": "string",
            "eventType": "TRANSACTION_EVENT_TYPE_UNKNOWN",
            "issueProvisionalCredit": {
              "actions": [
                "ACTION_NONE"
              ],
              "amount": {
                "amountInCents": 1,
                "currency": "string"
              }
            },
            "recordFinalDecision": {
              "accepted": {
                "merchantCredited": {
                  "amount": {
                    "amountInCents": 1,
                    "currency": "string"
                  },
                  "date": "string"
                },
                "partialMerchantCreditMadeWhole": true,
                "type": "ACCEPTED_TYPE_UNKNOWN"
              },
              "actions": [
                "ACTION_NONE"
              ],
              "canceled": {
                "type": "CANCELED_TYPE_UNKNOWN"
              },
              "denied": {
                "type": "DENIED_TYPE_UNKNOWN"
              },
              "type": "RECORD_FINAL_DECISION_TYPE_UNKNOWN"
            },
            "timestamp": "string"
          }
        ],
        "finalCreditAmount": {
          "amountInCents": 1,
          "currency": "string"
        },
        "merchant": "string",
        "provisionalCreditAmount": {
          "amountInCents": 1,
          "currency": "string"
        },
        "requiredActions": [
          "REQUIRED_ACTION_NONE"
        ],
        "reverseCreditAmount": {
          "amountInCents": 1,
          "currency": "string"
        },
        "settledTimestamp": "string",
        "status": "DISPUTED_TRANSACTION_STATUS_UNKNOWN",
        "transactionFinalStatus": "RECORD_FINAL_DECISION_TYPE_UNKNOWN",
        "transactionStatus": "TRANSACTION_STATUS_UNKNOWN",
        "uuid": "string"
      }
    ],
    "uuid": "string"
  }
}