Delete business customer
Delete a business customer and all associated data
Soft Delete: This operation performs a soft delete. The customer will no longer be retrievable through the API, but data is retained for compliance purposes.
Overview
The DELETE /v1/customers/business/{id} endpoint deletes a business customer. After deletion:
- The customer is no longer retrievable through the API
- Associated business data, documents, and shareholders are soft-deleted
- Creating a new customer with the same email or phone number is allowed
- Data is retained internally for compliance and audit purposes
HTTP Request
DELETE /v1/customers/business/{id}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Required. The customer ID (starts with cus_) |
Example Request
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the deletion was successful |
message | string | Human-readable success message |
customerId | string | The ID of the deleted customer |
Error Responses
404 Not Found
Customer does not exist:
400 Bad Request
Customer exists but is not a business type:
401 Unauthorized
Missing or invalid API key:
Important Notes
What Gets Deleted
When you delete a business customer, the following are soft-deleted:
- Customer record (base customer data)
- Business customer data (KYB information)
- Business documents (certificates, proof of address, etc.)
- Shareholders and their documents
- Associated wallet data
What Happens After Deletion
- API Access: Customer cannot be retrieved via GET endpoints
- Unique Constraints: Email and phone become available for new customers
- Compliance: Data is retained internally for audit/compliance purposes
- Wallets: Any associated wallets are also deleted
Difference from Individual Customer Delete
Use the correct endpoint based on customer type:
| Customer Type | Delete Endpoint |
|---|---|
| Business | DELETE /v1/customers/business/{id} |
| Individual | DELETE /v1/customers/{id} |
Attempting to delete a business customer using the individual endpoint (or vice versa) will result in a 400 error.
Use Cases
| Scenario | Notes |
|---|---|
| Business closure | Delete customer after business ceases operations |
| Data cleanup | Remove test or duplicate business customers |
| Account migration | Delete old account before creating new one |
| Compliance request | Handle GDPR or similar data deletion requests |
Best Practices
- Verify Customer Type: Ensure the customer is a business type before calling this endpoint
- Export Data First: If needed, retrieve customer data before deletion
- Check Dependencies: Ensure no active transfers or pending operations exist
- Use Correct Endpoint: Don't mix business and individual delete endpoints
Related Endpoints
- Create Business Customer - Create new business customer
- Update Business Customer - Update business customer
- Get Customer - Retrieve customer details
- Delete Customer - Delete individual customer