import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.payments.retrieveLineItems('payment_id');
console.log(response.currency);
{
"currency": "AED",
"items": [
{
"amount": 123,
"description": "<string>",
"items_id": "<string>",
"name": "<string>",
"refundable_amount": 123,
"tax": 123
}
]
}
Retrieve line items for a specific payment.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.payments.retrieveLineItems('payment_id');
console.log(response.currency);
{
"currency": "AED",
"items": [
{
"amount": 123,
"description": "<string>",
"items_id": "<string>",
"name": "<string>",
"refundable_amount": 123,
"tax": 123
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Payment Id
The response is of type object
.
Was this page helpful?