Type Definition
Fields
| Field | Type | Description |
|---|---|---|
id | UUID! | Unique identifier for the customer |
customerId | String! | Your application’s unique identifier for this customer |
name | String | Customer’s display name |
email | String | Customer’s email address |
billingId | String | Identifier in the billing provider (e.g., Stripe customer ID) |
billingCurrency | Currency | Customer’s preferred billing currency |
billingLinkUrl | String | URL to the customer in the billing provider |
additionalMetaData | JSON | Custom metadata attached to the customer |
createdAt | DateTime | When the customer was created |
updatedAt | DateTime! | When the customer was last updated |
deletedAt | DateTime | When the customer was archived (if applicable) |
environmentId | UUID! | The environment this customer belongs to |
Payment Information
| Field | Type | Description |
|---|---|---|
hasPaymentMethod | Boolean! | Whether the customer has a payment method attached |
defaultPaymentMethodId | String | ID of the default payment method |
defaultPaymentMethodType | PaymentMethodType | Type of payment method (card, bank, etc.) |
defaultPaymentMethodLast4Digits | String | Last 4 digits of the payment method |
defaultPaymentExpirationMonth | Int | Expiration month of the payment method |
defaultPaymentExpirationYear | Int | Expiration year of the payment method |
Subscription Status
| Field | Type | Description |
|---|---|---|
hasActiveSubscription | Boolean! | Whether the customer has any active subscription |
hasActiveResource | Boolean! | Whether the customer has any active resource |
totalActiveSubscription | Float! | Count of active subscriptions |
subscriptions | [CustomerSubscription!] | List of customer’s subscriptions |
Entitlements
| Field | Type | Description |
|---|---|---|
eligibleForTrial | [EligibleForTrial!] | Plans the customer is eligible to trial |
trialedPlans | [TrialedPlan!] | Plans the customer has already trialed |
promotionalEntitlements | [PromotionalEntitlement!]! | Active promotional entitlements |
totalActivePromotionalEntitlements | Float! | Count of active promotional entitlements |
Integrations
| Field | Type | Description |
|---|---|---|
coupon | Coupon | Active coupon applied to the customer |
syncStates | [SyncState!] | Integration sync status |
crmId | String | Customer ID in CRM system |
crmHubspotCompanyId | String | Hubspot company ID |
salesforceId | String | Salesforce customer ID |
awsMarketplaceCustomerId | String | AWS Marketplace customer ID |
Example Response
Related Types
- CustomerSubscription - Customer’s subscription details
- Coupon - Discount coupon type
- Entitlement - Feature entitlement type
Related Operations
- Get Customer - Fetch a single customer
- List Customers - Query customers
- Provision Customer - Create customer with subscription
- Update Customer - Update customer details
