Skip to main content
DELETE
/
v1
/
customers
/
{customer_id}
Delete a customer
curl --request DELETE \
  --url https://api-dev.bsa.ai/v1/customers/{customer_id} \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.api.bsa.ai/llms.txt

Use this file to discover all available pages before exploring further.

Deletion is only permitted while the customer is in pending state. Once activated or once any loans/savings have been associated, the customer cannot be deleted — use Close instead.

Path parameters

customer_id
string
required

Example

curl -sf -X DELETE "$BASE/v1/customers/42" \
  -H "Authorization: Bearer $TOKEN"

Response

200 OK with an empty body.

Errors

CodeWhen
not_foundNo customer with that ID
abortedCustomer is not in pending state, or has associated loans