Payments
Get Payment Detail
API Documentation & SDKs
- Introduction
- Code Integration Tutorial
- SDKs - Node, Python, PHP, Go, Ruby, Java & Kotlin
- Payments Integration Guide
- Subscription Integration Guide
- Mobile Integration Guide
- On Demand Subscriptions
- Webhooks Details
- Managing Products Via API
- Metadata Guide
- Configuring Allowed Payment Methods
- MCP Server
- Technical - FAQs
Subscriptions
Discounts
Licenses
Customers
Products
Payouts
Miscellaneous
Payments
Get Payment Detail
Get detailed information about a specific payment.
GET
/
payments
/
{payment_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 payment = await client.payments.retrieve('payment_id');
console.log(payment.business_id);
}
main();
{
"billing": {
"city": "<string>",
"country": "AF",
"state": "<string>",
"street": "<string>",
"zipcode": "<string>"
},
"business_id": "<string>",
"card_issuing_country": "AF",
"card_last_four": "<string>",
"card_network": "<string>",
"card_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"customer": {
"customer_id": "<string>",
"email": "<string>",
"name": "<string>"
},
"discount_id": "<string>",
"disputes": [
{
"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>",
"remarks": "<string>"
}
],
"error_message": "<string>",
"metadata": {},
"payment_id": "<string>",
"payment_link": "<string>",
"payment_method": "<string>",
"payment_method_type": "<string>",
"product_cart": [
{
"product_id": "<string>",
"quantity": 1
}
],
"refunds": [
{
"amount": 123,
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"payment_id": "<string>",
"reason": "<string>",
"refund_id": "<string>",
"status": "succeeded"
}
],
"settlement_amount": 123,
"settlement_currency": "AED",
"settlement_tax": 123,
"status": "succeeded",
"subscription_id": "<string>",
"tax": 123,
"total_amount": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Payment Id
Response
200 - application/json
The response is of type object
.
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 payment = await client.payments.retrieve('payment_id');
console.log(payment.business_id);
}
main();
{
"billing": {
"city": "<string>",
"country": "AF",
"state": "<string>",
"street": "<string>",
"zipcode": "<string>"
},
"business_id": "<string>",
"card_issuing_country": "AF",
"card_last_four": "<string>",
"card_network": "<string>",
"card_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"customer": {
"customer_id": "<string>",
"email": "<string>",
"name": "<string>"
},
"discount_id": "<string>",
"disputes": [
{
"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>",
"remarks": "<string>"
}
],
"error_message": "<string>",
"metadata": {},
"payment_id": "<string>",
"payment_link": "<string>",
"payment_method": "<string>",
"payment_method_type": "<string>",
"product_cart": [
{
"product_id": "<string>",
"quantity": 1
}
],
"refunds": [
{
"amount": 123,
"business_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"payment_id": "<string>",
"reason": "<string>",
"refund_id": "<string>",
"status": "succeeded"
}
],
"settlement_amount": 123,
"settlement_currency": "AED",
"settlement_tax": 123,
"status": "succeeded",
"subscription_id": "<string>",
"tax": 123,
"total_amount": 123,
"updated_at": "2023-11-07T05:31:56Z"
}