Skip to main content
POST
/
v1
/
customers.delete
Typescript (SDK)
import { Autumn } from 'autumn-js'

const autumn = new Autumn()

const result = await autumn.customers.delete({
  customerId: "cus_123",
});
{
  "success": true
}

Body Parameters

Response

Authorizations

Authorization
string
header
required

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

Headers

x-api-version
string
default:2.1
required

Body

application/json
customer_id
string
required

ID of the customer to delete

delete_in_stripe
boolean
default:false

Whether to also delete the customer in Stripe

Response

200 - application/json

OK

success
boolean
required