Cancel a subscription
Schedules a cancellation for a subscription. The effective timing can be a keyword (e.g. immediate, end_of_term) or a specific date. A cancellation reason code is required and a free-text note is optional.
Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
2026-04-01 A unique string that makes a retried write safe. If you send the same request with the same key within 24 hours, the API returns the stored response and does not run the request again. A 5xx or 429 response is not stored, so a retry with that key runs the request again.
255"ik_a1b2c3d4e5f6"
Path Parameters
Unique identifier for the subscription
Body
Cancellation reason
no_longer_required, moving_provider, pricing, support, features, upgraded, other "no_longer_required"
When cancellation takes effect
"end_of_term"
Additional context for the cancellation
"Customer is consolidating vendors"
Response
Success
Users assigned to the subscription, such as its owner
Billing configuration
Contract configuration
When the subscription was created
"2025-12-15T10:30:00Z"
ISO 4217 currency code
"USD"
Customer ID
"cust_abc123"
Unique identifier
"sub_abc123"
Key-value metadata
Subscription name
"Acme Corp - Enterprise"
Pending version changes
Renewal configuration
Subscription status
draft, active, canceled, approved "active"
When the subscription was last updated
"2026-04-04T10:00:05Z"
When the subscription was activated
"2026-01-01T00:00:00Z"
Current active version ID
"subv_abc123"
Subscription-level discount
Maximum spend threshold
Minimum spend threshold
Plan ID
"pln_abc123"
Price escalation configuration
Trial period in days
30