Skip to main content
DELETE
/
customers
/
{customer_id}
TypeScript
import { Autumn } from 'autumn-js';

const autumn = new Autumn();

const { data, error } = await autumn.customers.delete('customer_id');
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

Query Parameters

delete_in_stripe
boolean
default:false

Whether to delete the customer and cancel all existing subscriptions in Stripe.

Response

200 - application/json
success
boolean
required