PATCH
/
customers
/
{customer_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

const customer = await client.customers.update('customer_id');

console.log(customer.business_id);
{
  "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

Body

application/json
name
string | null
phone_number
string | null

Response

business_id
string
required
created_at
string<date-time>
required
customer_id
string
required
email
string
required
name
string
required
phone_number
string | null