Payments
Subscriptions
Discounts
Licenses
Customers
Products
Payouts
Miscellaneous
Refunds
Get Refund Detail
Get detailed information about a specific refund.
GET
/
refunds
/
{refund_id}
JavaScript
Copy
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const refund = await client.refunds.retrieve('refund_id');
console.log(refund.business_id);
Copy
{
"amount": 123,
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": null,
"is_partial": true,
"payment_id": "<string>",
"reason": "<string>",
"refund_id": "<string>",
"status": "succeeded"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Refund Id
Response
200
application/json
The response is of type object
.
JavaScript
Copy
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const refund = await client.refunds.retrieve('refund_id');
console.log(refund.business_id);
Copy
{
"amount": 123,
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": null,
"is_partial": true,
"payment_id": "<string>",
"reason": "<string>",
"refund_id": "<string>",
"status": "succeeded"
}
Assistant
Responses are generated using AI and may contain mistakes.