GET
/
disputes
/
{dispute_id}
import DodoPayments from 'dodopayments';

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

async function main() {
  const dispute = await client.disputes.retrieve('dispute_id');

  console.log(dispute.business_id);
}

main();
{
  "amount": "<string>",
  "business_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "currency": "<string>",
  "dispute_id": "<string>",
  "dispute_stage": "pre_dispute",
  "dispute_status": "dispute_opened",
  "payment_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

dispute_id
string
required

Dispute Id

Response

200 - application/json
amount
string
required

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

business_id
string
required

The unique identifier of the business involved in the dispute.

created_at
string
required

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

currency
string
required

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

dispute_id
string
required

The unique identifier of the dispute.

dispute_stage
enum<string>
required
Available options:
pre_dispute,
dispute,
pre_arbitration
dispute_status
enum<string>
required
Available options:
dispute_opened,
dispute_expired,
dispute_accepted,
dispute_cancelled,
dispute_challenged,
dispute_won,
dispute_lost
payment_id
string
required

The unique identifier of the payment associated with the dispute.