PUT
/
disputes
/
{dispute_id}
/
accept
curl --request PUT \
  --url https://sandbox.cashfree.com/pg/disputes/{dispute_id}/accept \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>'
{
  "dispute_id": 433447817,
  "dispute_type": "DISPUTE",
  "reason_code": 1401,
  "reason_description": "Fraud Transaction",
  "dispute_amount": 10,
  "created_at": "2023-01-18T11:26:58",
  "respond_by": "2023-01-19T00:00:00",
  "updated_at": "2023-01-18T11:26:58",
  "resolved_at": "2023-01-18T11:26:58",
  "dispute_status": "DISPUTE_MERCHANT_ACCEPTED",
  "cf_dispute_remarks": "Load Testing",
  "preferred_evidence": [],
  "dispute_evidence": [],
  "order_details": {
    "order_id": "Load_test_0103_FGA4HF12AC",
    "order_currency": "INR",
    "order_amount": 10,
    "cf_payment_id": 1489901523,
    "payment_currency": "INR",
    "payment_amount": 10
  },
  "customer_details": {
    "customer_name": "John Ellur",
    "customer_phone": 8281554863,
    "customer_email": "john@cashfree.com"
  }
}

Authorizations

x-client-id
string
header
required

Client app ID. You can find your app id in the Merchant Dashboard.

x-client-secret
string
header
required

Client secret key. You can find your secret in the Merchant Dashboard.

Headers

x-api-version
string
default:2023-08-01
required

API version to be used. Format is in YYYY-MM-DD

x-request-id
string

Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree

x-idempotency-key
string

An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.

Path Parameters

dispute_id
integer
required

Cashfree dispute ID to view the dispute details of an order.

Response

200
application/json

OK

The response is of type object.