Query
Parameters
Input object containing the customer identifier
Return Type
Returns aCustomer object with the following key fields:
| Field | Type | Description |
|---|---|---|
customerId | String | Unique customer identifier |
name | String | Customer display name |
email | String | Contact email address |
billingId | String | ID in billing provider (e.g., Stripe) |
billingCurrency | Currency | Default billing currency |
hasActiveSubscription | Boolean | Whether customer has an active subscription |
hasPaymentMethod | Boolean | Whether a payment method is attached |
subscriptions | [CustomerSubscription] | List of customer subscriptions |
promotionalEntitlements | [PromotionalEntitlement] | Granted promotional entitlements |
eligibleForTrial | [EligibleForTrial] | Trial eligibility per product |
additionalMetaData | JSON | Custom metadata |
Common Use Cases
Check subscription status on login
Check subscription status on login
Verify the customer’s subscription status when they log in to determine their access level.
Display account information
Display account information
Fetch customer details for account settings pages.
Determine upgrade eligibility
Determine upgrade eligibility
Check
eligibleForTrial and current subscription to show relevant upgrade options.Error Handling
| Error Code | Description |
|---|---|
CUSTOMER_NOT_FOUND | No customer exists with the provided ID |
UNAUTHENTICATED | Invalid or missing API key |
Related Operations
- List Customers - Query multiple customers
- Customer Portal - Get portal data for customer
- Update Customer - Modify customer details
