Retrieve a customer
get_customerRetrieve a customer by Dub ID or external ID (prefix with ext_) for the authenticated workspace. Use it to fetch customer details, optionally including expanded link, partner, and discount fields.
Instructions
Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with ext_.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 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`). | |
| account | No | Exact configured private workspace profile label; not a tenant or provider account ID. | |
| include_expanded_fields | No | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |