Actions84
- Affiliate Actions
- Checkout Actions
- Customer Actions
- Discount Actions
- Discount Redemption Actions
- File Actions
- License Key Actions
- License Key Instance Actions
- Order Actions
- Order Item Actions
- Price Actions
- Product Actions
- Store Actions
- Subscription Actions
- Subscription Invoice Actions
- Subscription Item Actions
- Usage Record Actions
- User Actions
- Variant Actions
- Webhook Actions
Subscription → Cancel
AI-generatedSummary
Cancel a Lemon Squeezy subscription by its ID and return the API response, optionally flattened from JSON:API format.
Inputs
- subscriptionId (required) — The ID of the subscription to cancel.
- simplifyOutput — Defaults to true; flattens JSON:API attributes to the top level. Disable to return the raw JSON:API format.
- retryOptions — Configures retries for failed API requests. Max Retries defaults to 3 (0–10); Initial Delay defaults to 1000 ms (100–30000), doubling on each retry.
Output shape
A single subscription record.
The record is simplified by default; disabling Simplify returns the raw JSON:API response format. API errors are raised if the request fails after retries.