Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Customer Id
Response
200 - application/json
List all payment methods associated with a specific customer.
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.customers.retrievePaymentMethods('customer_id');
console.log(response.items);{
"items": [
{
"card": null,
"connector_payment_methods": {},
"last_used_at": "2023-11-07T05:31:56Z",
"payment_method": "card",
"payment_method_id": "<string>",
"profile_map": {},
"recurring_enabled": true
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Customer Id
Show child attributes
Was this page helpful?
import DodoPayments from 'dodopayments';
const client = new DodoPayments({
bearerToken: 'My Bearer Token',
});
const response = await client.customers.retrievePaymentMethods('customer_id');
console.log(response.items);{
"items": [
{
"card": null,
"connector_payment_methods": {},
"last_used_at": "2023-11-07T05:31:56Z",
"payment_method": "card",
"payment_method_id": "<string>",
"profile_map": {},
"recurring_enabled": true
}
]
}