import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const dispute = await client.disputes.retrieve('dispute_id');
console.log(dispute.business_id);
{
"amount": "<string>",
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"customer": {
"customer_id": "<string>",
"email": "<string>",
"name": "<string>"
},
"dispute_id": "<string>",
"dispute_stage": "pre_dispute",
"dispute_status": "dispute_opened",
"payment_id": "<string>",
"reason": "<string>",
"remarks": "<string>"
}
Get detailed information about a specific dispute.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const dispute = await client.disputes.retrieve('dispute_id');
console.log(dispute.business_id);
{
"amount": "<string>",
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"customer": {
"customer_id": "<string>",
"email": "<string>",
"name": "<string>"
},
"dispute_id": "<string>",
"dispute_stage": "pre_dispute",
"dispute_status": "dispute_opened",
"payment_id": "<string>",
"reason": "<string>",
"remarks": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Dispute Id
The response is of type object
.