delete https://api.reepay.com/v1/customer/
A customer can be soft-deleted meaning that the customer resource remains with a status deleted, and all sensitive data is removed from the resource. All related resources like subscriptions and invoices are not deleted. A deleted customer will not appear in the customer list. The customer handle is not changed so it cannot be re-used.
A customer can only be deleted if it has none or only expired subscriptions, and no pending or dunning invoices.
Errors
The operation can generate the following errors beside the generic HTTP error codes described here.
Error code | HTTP code | Description |
---|---|---|
9 | 404 | Customer not found |
71 | 400 | Customer is deleted |
32 | 400 | Customer has non-expired subscriptions, these must be handled first |
33 | 400 | Customer has pending and/or dunning invoices, these must be handled first |