Autumn's V2 API is live in beta. We recommend using this version.
import { Autumn as autumn } from 'autumn-js'
const response = await autumn.cancel({
customer_id: 'user_123',
product_id: 'lite'
})Cancel a customer’s subscription or product attachment
import { Autumn as autumn } from 'autumn-js'
const response = await autumn.cancel({
customer_id: 'user_123',
product_id: 'lite'
})Documentation Index
Fetch the complete documentation index at: https://docs-v1.useautumn.com/llms.txt
Use this file to discover all available pages before exploring further.
Use your Autumn Secret Key as the Bearer token.
Your unique identifier for the customer
Product ID to cancel for the customer
Whether to cancel the product immediately. If false, the product will be cancelled at the end of the billing cycle.
Product cancelled successfully