POST
/
cancel
import { Autumn as autumn } from 'autumn-js'

const response = await autumn.cancel({
customer_id: 'user_123',
product_id: 'lite'
})

Authorizations

Authorization
string
header
required

Use your Autumn Secret Key as the Bearer token.

Body

application/json

The body is of type object.

Response

200

Product cancelled successfully