Mutation
Parameters
Input for provisioning a subscription
Return Type
Returns aProvisionSubscriptionResult with:
| Field | Type | Description |
|---|---|---|
subscription | CustomerSubscription | The created subscription |
entitlements | [Entitlement] | Resulting entitlements |
Examples
With Trial Period
With Addons
Scheduled Start
Scheduled Cancellation at Creation
Provision a subscription that’s already scheduled to cancel on a known future date. The subscription is created normally and the cancellation is queued for the supplied date.Trial behavior
Trial subscriptions acceptcancellationDate. When provided, the trial’s trialEndDate is aligned to the supplied cancellationDate — so the trial ends and the subscription cancels on the same date. Use this when you want a fixed-end trial that won’t convert.
Custom Plan with Entitlements
Custom plans use theentitlements field to define what the subscription grants — this can include feature entitlements (access flags, usage limits) and credit entitlements (recurring credit allocations).
Common Use Cases
Upgrade from free
Upgrade from free
Create paid subscription for customer on free plan.
Multi-product subscription
Multi-product subscription
Add subscription to additional product for existing customer.
Trial conversion
Trial conversion
Provision paid subscription when trial customer converts.
Related Operations
- Provision Customer - Create customer with subscription
- Update Subscription - Modify subscription
- Preview Subscription - Preview pricing
