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

const response = await autumn.cancel({
  customer_id: 'user_123',
  product_id: 'lite'
})
{
  "success": true,
  "message": "Product cancelled successfully",
  "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 - application/json

Product cancelled successfully

The response is of type object.