DELETE
stripe_subscriptions_cancel.py
from charter.packs import stripe
result = await stripe.subscriptions_cancel.ainvoke({"subscription": ...})
Path parameters
| Field | Type | Description |
|---|---|---|
subscription * | string | The ID of the subscription to cancel. |
Body
| Field | Type | Description |
|---|---|---|
invoiceNow | boolean | Whether to invoice now for un-invoiced metered usage and pending proration items. Absent, Stripe does not. |
prorate | boolean | Whether to credit the unused time remaining in the period. Absent, Stripe does not. |
cancellationDetails | CancellationDetails | Why the subscription was cancelled. |