Next Commerce
API ReferencePayments

Disputes List

Retrieve a list of disputes.

GET
/disputes/

Authorization

oauth2 disputes:read
AuthorizationBearer <token>

Generate an Access Token through Settings > API Access for single store access or use the Authorization Code flow with your partner App Client ID. Use required permission scopes for API endpoint access. Example Authorization: Bearer 123

In: header

Scope: disputes:read

Query Parameters

id?string

ID

type?string
  • alert - Alert
  • chargeback - Chargeback

Value in

  • "alert"
  • "chargeback"
status?string
  • new - New
  • open - Open
  • resolved - Resolved

Value in

  • "new"
  • "open"
  • "resolved"
order_number?string

Order Number

transaction_id?string

Transaction ID

auth_code?string

Auth Code

network_transaction_id?string

Network Transaction ID

card_type?array<|>

Card Brand

  • visa - Visa
  • mastercard - Mastercard
  • american_express - American Express
  • diners_club - Diners Club
  • discover - Discover
  • jcb - JCB
  • maestro - Maestro
  • dankort - Dankort
card_first_six?string

Card First Six

card_last_four?string

Card Last Four

case_number?string

Case Number

gateway_id?integer

Gateway ID

payment_method?|

Payment Method

resolution?|
  • could_not_find_order - Transaction Not found
  • declined_or_canceled_nothing_to_do - Nothing To Do
  • issued_full_refund - Issued Full Refund
  • issued_refund_for_remaining_amount - Refunded Remaining Amount
  • 3ds_authorized_successfully - Transaction 3DS Authorized
  • previously_refunded_nothing_to_do - Previously Refunded
  • unable_to_refund_merchant_account_closed - Unable to Refund
  • won - Won
  • lost - Lost
  • accepted - Accepted
  • other - Other

Value in

  • "3ds_authorized_successfully"
  • "accepted"
  • "could_not_find_order"
  • "declined_or_canceled_nothing_to_do"
  • "issued_full_refund"
  • "issued_refund_for_remaining_amount"
  • "lost"
  • "other"
  • "previously_refunded_nothing_to_do"
  • "unable_to_refund_merchant_account_closed"
  • "won"
dispute_date_from?string

YYYY-MM-DD

Formatdate
dispute_date_to?string

YYYY-MM-DD

Formatdate
cursor?string

The pagination cursor value.

Header Parameters

X-29next-API-Version*"2024-04-01"
Default"2024-04-01"

Value in

  • "2024-04-01"

Response Body

application/json

curl -X GET "https://example.com/disputes/" \  -H "X-29next-API-Version: 2024-04-01"
{  "next": "http://example.com",  "previous": "http://example.com",  "results": [    {      "amount": "string",      "arn": "string",      "case_number": "string",      "currency": "str",      "date_created": "2019-08-24T14:15:22Z",      "happened_at": "2019-08-24T14:15:22Z",      "id": 0,      "metadata": null,      "order": "string",      "report_amount": "string",      "report_currency": "str",      "resolution": "could_not_find_order",      "resolution_other_message": "string",      "status": "new",      "transaction": {        "amount": "string",        "amount_available_for_refund": "0.00",        "attribution": {          "affiliate": "string",          "agent": {            "email": "user@example.com",            "first_name": "string",            "id": 0,            "last_name": "string"          },          "funnel": "string",          "gclid": "string",          "metadata": null,          "subaffiliate1": "string",          "subaffiliate2": "string",          "subaffiliate3": "string",          "subaffiliate4": "string",          "subaffiliate5": "string",          "utm_campaign": "string",          "utm_content": "string",          "utm_medium": "string",          "utm_source": "string",          "utm_term": "string"        },        "auth_code": "string",        "currency": "string",        "date_created": "2019-08-24T14:15:22Z",        "external_id": "string",        "id": 0,        "initiator": {          "email": "user@example.com",          "first_name": "string",          "id": 0,          "last_name": "string"        },        "is_disputed": true,        "is_external": true,        "is_test": true,        "network_transaction_id": "string",        "order": "string",        "parent_id": 0,        "payment_details": {          "avs_code": "string",          "avs_message": "string",          "bankcard_exp_month": 0,          "bankcard_exp_year": 0,          "bankcard_first_six": "string",          "bankcard_last_four": "string",          "bankcard_number": "string",          "card_token": "string",          "cvv_code": "string",          "cvv_message": "string",          "gateway": {            "id": 0,            "is_next_payments": true,            "name": "string",            "type": "string"          },          "is_3ds": true,          "optimized_3ds": true,          "paypal_vault_id": "string",          "sca_flow": "string"        },        "payment_method": "string",        "report_values": {          "amount": "string",          "currency": "string"        },        "response_code": 0,        "statement_descriptor": "string",        "status": "succeeded",        "subscription": {          "billing_cycle": 0,          "id": 0        },        "type": "string",        "user": {          "accepts_marketing": true,          "email": "user@example.com",          "first_name": "string",          "id": 0,          "ip": "string",          "language": "string",          "last_name": "string",          "phone_number": "string",          "user_agent": "string"        }      },      "type": "alert"    }  ]}