Customers
Delete a customer
Cascades members, invitations and usage logs.
Authorization
apiKey AuthorizationBearer <token>
Per-organisation API key from Settings → API Keys, sent as Authorization: Bearer cnk_…. Missing, unknown or expired keys return 401.
In: header
Path Parameters
id*string
Customer id.
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/customers/cus_abc123"{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "OK" }, "result": { "deleted": true }}{ "statusCode": 401, "statusDetail": { "status": "ERROR", "message": "Invalid API key." }, "result": {}}{ "statusCode": 404, "statusDetail": { "status": "ERROR", "message": "No customer with id \"cus_abc123\"." }, "result": {}}{ "statusCode": 500, "statusDetail": { "status": "ERROR", "message": "Could not complete the request." }, "result": {}}Update a customer PATCH
Partial update. Any field sent as `null` clears that optional column; omitted fields are left untouched.
Get a customer's balances GET
Wallet, credit, outcome and unit balances under the customer's current plan. When `hasPlan` is false the balance collections are empty and `wallet` is null.