Skip to main content
GET
/
customers
/
{customer_id}
/
payment-methods
JavaScript
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
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

Customer Id

Response

200 - application/json
items
object[]
required