Cancels an active subscription, either immediately or at the end of the billing period.Documentation Index
Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
Use this file to discover all available pages before exploring further.
Mutation
Parameters
Input for canceling a subscription
Cancellation Time Options
| Value | Behavior |
|---|---|
IMMEDIATE | Cancel immediately |
END_OF_BILLING_PERIOD | Cancel at the end of the current billing period |
SPECIFIC_DATE | Cancel on the date specified by endDate |
Cancellation Action Options
| Value | Behavior |
|---|---|
DEFAULT | Default cancellation behavior |
REVOKE_ENTITLEMENTS | Immediately revoke all entitlements upon cancellation |
Return Type
Returns the canceledCustomerSubscription object with:
| Field | Type | Description |
|---|---|---|
subscriptionId | String | Subscription ID |
status | SubscriptionStatus | New status (CANCELED) |
cancellationDate | DateTime | When cancellation was requested |
endDate | DateTime | When subscription ends |
Examples
Immediate Cancellation
Cancel at Period End
Common Use Cases
Customer churn
Customer churn
Cancel when customer explicitly requests cancellation.
Payment failure
Payment failure
Cancel after failed payment recovery attempts.
Account deletion
Account deletion
Cancel as part of account deletion process.
Related Operations
- Update Subscription - Modify instead of cancel
- Archive Customer - Archive customer and cancel all
