Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Customer ID
Response
The response is of type object
.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const wallets = await client.customers.wallets.list('customer_id');
console.log(wallets.items);
{
"items": [
{
"balance": 123,
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"customer_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"total_balance_usd": 123
}
Retrieve wallets associated with a specific customer.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const wallets = await client.customers.wallets.list('customer_id');
console.log(wallets.items);
{
"items": [
{
"balance": 123,
"created_at": "2023-11-07T05:31:56Z",
"currency": "AED",
"customer_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"total_balance_usd": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Customer ID
The response is of type object
.
Was this page helpful?