मुख्य सामग्री पर जाएं
GET
/
disputes
/
{dispute_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

const getDispute = await client.disputes.retrieve('dispute_id');

console.log(getDispute.business_id);
{
  "amount": "<string>",
  "business_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "currency": "<string>",
  "customer": {
    "customer_id": "<string>",
    "email": "<string>",
    "name": "<string>",
    "metadata": {},
    "phone_number": "<string>"
  },
  "dispute_id": "<string>",
  "dispute_stage": "pre_dispute",
  "dispute_status": "dispute_opened",
  "payment_id": "<string>",
  "reason": "<string>",
  "remarks": "<string>"
}

प्राधिकरण

Authorization
string
header
आवश्यक

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

पथ पैरामीटर

dispute_id
string
आवश्यक

Dispute Id

प्रतिक्रिया

amount
string
आवश्यक

The amount involved in the dispute, represented as a string to accommodate precision.

business_id
string
आवश्यक

The unique identifier of the business involved in the dispute.

created_at
string<date-time>
आवश्यक

The timestamp of when the dispute was created, in UTC.

currency
string
आवश्यक

The currency of the disputed amount, represented as an ISO 4217 currency code.

customer
object
आवश्यक

The customer who filed the dispute

dispute_id
string
आवश्यक

The unique identifier of the dispute.

dispute_stage
enum<string>
आवश्यक

The current stage of the dispute process.

उपलब्ध विकल्प:
pre_dispute,
dispute,
pre_arbitration
dispute_status
enum<string>
आवश्यक

The current status of the dispute.

उपलब्ध विकल्प:
dispute_opened,
dispute_expired,
dispute_accepted,
dispute_cancelled,
dispute_challenged,
dispute_won,
dispute_lost
payment_id
string
आवश्यक

The unique identifier of the payment associated with the dispute.

reason
string | null

Reason for the dispute

remarks
string | null

Remarks