GET
/
customers
/
{customer_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 customer = await client.customers.retrieve('customer_id');

  console.log(customer.business_id);
}

main();
{
  "business_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "customer_id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "phone_number": "<string>"
}

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
business_id
string
required
created_at
string
required
customer_id
string
required
email
string
required
name
string
required
phone_number
string | null