For most use cases, prefer using the Create or Get Customer endpoint, which ensures the customer exists and returns up-to-date information in a single call.
Path Parameters
string
required
The unique identifier of the customer to retrieve.
Query Parameters
array
Array of fields to expand in the response. Available options:
invoices- Include customer invoicestrials_used- Include trial usage informationrewards- Include rewards informationentities- Include entity informationreferrals- Include referral informationpayment_method- Include payment method detailssubscriptions.plan- Expand full plan objects in subscriptionspurchases.plan- Expand full plan objects in purchasesbalances.feature- Expand full feature objects in balances
Response
Returns a Customer object with the following fields:string
Your unique identifier for the customer.
string
The name of the customer.
string
The email address of the customer.
number
Timestamp of customer creation in milliseconds since epoch.
string
The fingerprint identifier for the customer.
string
Stripe customer ID.
string
The environment this customer was created in (
sandbox or live).object
The metadata for the customer.
boolean
Whether email receipts are enabled for this customer.
array
Active and scheduled recurring plans that this customer has attached. Each subscription includes:
plan_id- The unique identifier of the subscribed planstatus- Current status (activeorscheduled)auto_enable- Whether the plan was automatically enabledadd_on- Whether this is an add-on planpast_due- Whether the subscription has overdue paymentsstarted_at- Timestamp when subscription startedcurrent_period_start- Start of current billing periodcurrent_period_end- End of current billing periodquantity- Quantity of the subscriptioncanceled_at- Timestamp when canceled (if applicable)expires_at- Timestamp when it expires (if applicable)trial_ends_at- Timestamp when trial ends (if applicable)
array
One-time purchases made by the customer.
object
Feature balances keyed by feature ID, showing usage limits and remaining amounts. Each balance includes:
feature_id- The feature identifiergranted- Total amount grantedremaining- Amount remainingusage- Total usageunlimited- Whether the feature is unlimitedoverage_allowed- Whether overage is allowedmax_purchase- Maximum purchasable amountnext_reset_at- Timestamp of next resetbreakdown- Detailed breakdown by entitlement