Endpoint
PATCH
Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique ID of the customer. You may use either:
- The customer’s
idon Dub (obtained via/customersendpoint) - Their
externalId(unique ID within your system, prefixed withext_, e.g.ext_user_123456)
Query Parameters
Whether to include expanded fields on the customer (
link, partner, discount).Request Body
All fields are optional. Only include the fields you want to update.The customer’s email address.
The customer’s name. If not provided, the email address will be used, and if email is not provided, a random name will be generated.
The customer’s avatar URL. If not provided, a random avatar will be generated.
The customer’s unique identifier in your database. This is useful for associating subsequent conversion events from Dub’s API to your internal systems.
The customer’s Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
The customer’s country in ISO 3166-1 alpha-2 format. Updating this field will only affect the customer’s country in Dub’s system (and has no effect on existing conversion events).
Response
Returns the updated customer object.The unique ID of the customer
Name of the customer
Email of the customer
Avatar URL of the customer
Unique identifier for the customer in the client’s app
The customer’s Stripe customer ID
Country of the customer
Total number of sales for the customer
Total amount of sales for the customer
The date the customer was created
The date the customer made their first sale
The date the customer canceled their subscription