Legacy (2024-03-18)Merchants API

Disputes

GET
/public/2024-03-18/disputes
x-api-key<token>

Your Chargeflow API key. Generate it in the Developer Hub under Settings.

In: header

Query Parameters

limit?number

Maximum number of disputes to return in a single response

Range1 <= value <= 100
Default15
offset?number

Number of disputes to skip for pagination

Range0 <= value
Default0
dateCreatedFrom?string

Filter disputes created after this date (ISO 8601 format)

dateCreatedTo?string

Filter disputes created before this date (ISO 8601 format)

amountFrom?number

Filter disputes with amount greater than or equal to this value

Range0 <= value
Default0
amountTo?number

Filter disputes with amount less than or equal to this value

Range0 <= value
Default1000
statusNames?string

Filter disputes by status (comma-separated values)

Value in

  • "won"
  • "lost"
  • "refunded"
  • "under_review"
  • "warning_under_review"
  • "needs_response"
  • "warning_needs_response"
  • "warning_awaiting_response"
  • "awaiting_response"
  • "warning_won"
  • "appealable"
  • "insured"
  • "open"
  • "action_required"
  • "processing"
reason?string

Filter disputes by reason (comma-separated values)

Value in

  • "bank_cannot_process"
  • "check_returned"
  • "credit_not_processed"
  • "customer_initiated"
  • "debit_not_authorized"
  • "duplicate"
  • "general"
  • "incorrect_account_details"
  • "insufficient_funds"
  • "product_not_received"
  • "product_unacceptable"
  • "not_received"
  • "not_as_described"
  • "subscription_canceled"
  • "canceled"
  • "duplicate_charge"
  • "payment_by_other_means"
  • "unrecognized"
  • "incorrect_amount"
  • "fraud"
  • "canceled_recurring_billing"
  • "other"
  • "problem_with_remittance"
  • "unauthorized"
processorNames?string

Filter disputes by payment processor (comma-separated values)

Value in

  • "stripe"
  • "shopify"
  • "klarna"
  • "afterpay"
  • "paypal"
  • "adyen"

Response Body

application/json

curl -X GET "https://example.com/public/2024-03-18/disputes"
{  "totalCount": 0,  "hasMore": true,  "data": [    {      "chargeflowDisputeId": "string",      "dispute": {        "processorId": "string",        "processor": "string",        "amount": {          "value": 0,          "currency": "string"        },        "status": "under_review",        "reason": "bank_cannot_process",        "responseDueDate": "2019-08-24T14:15:22Z"      },      "transaction": {        "id": "string",        "creationDate": "2019-08-24T14:15:22Z",        "source": "string",        "orderId": "string",        "customerEmail": "user@example.com"      }    }  ]}
POST
/public/2024-03-18/disputes
x-api-key<token>

Your Chargeflow API key. Generate it in the Developer Hub under Settings.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/public/2024-03-18/disputes" \  -H "Content-Type: application/json" \  -d '{    "disputeId": "string",    "creationDate": "2019-08-24T14:15:22Z",    "due_by": "2019-08-24T14:15:22Z",    "disputeAmount": 0,    "currency": "string",    "processor": "string",    "isChargeRefundable": true,    "handleByChargeflow": true  }'
{  "requestId": "string"}
POST
/public/2024-03-18/disputes/{disputeId}/order
x-api-key<token>

Your Chargeflow API key. Generate it in the Developer Hub under Settings.

In: header

Path Parameters

disputeId*string

The Chargeflow dispute id

Match^[0-9a-fA-F]{24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/public/2024-03-18/disputes/string/order" \  -H "Content-Type: application/json" \  -d '{}'
{  "requestId": "string"}
POST
/public/2024-03-18/disputes/{disputeId}/evidence
x-api-key<token>

Your Chargeflow API key. Generate it in the Developer Hub under Settings.

In: header

Path Parameters

disputeId*string

The Chargeflow dispute id

Match^[0-9a-fA-F]{24}$

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/public/2024-03-18/disputes/string/evidence" \  -F file="string" \  -F evidenceUploadCategory="tracking_information"
{  "requestId": "string",  "evidenceId": "string"}
Was this page helpful?