Retrieve a customer
Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with ext_.
Documentation Index
Fetch the complete documentation index at: https://dub.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Default authentication mechanism
Path Parameters
The unique ID of the customer. You may use either the customer's id on Dub (obtained via /customers endpoint) or their externalId (unique ID within your system, prefixed with ext_, e.g. ext_123).
Query Parameters
Whether to include expanded fields on the customer (link, partner, discount).
Response
The customer object.
The unique ID of the customer. You may use either the customer's id on Dub (obtained via /customers endpoint) or their externalId (unique ID within your system, prefixed with ext_, e.g. ext_123).
Name of the customer.
Unique identifier for the customer in the client's app.
The date the customer was created (usually the signup date or trial start date).
Email of the customer.
Avatar URL of the customer.
The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer.
Country of the customer.
Total number of sales for the customer.
Total amount of sales for the customer.
The date the customer made their first sale. Useful for calculating the time to first sale and LTV.
The date the customer canceled their subscription. Useful for calculating LTV and churn rate.