Delete customers in bulk
Delete up to 100 customers from your account in one request.
Deletes multiple customers from the authenticated company and environment in one request, using the public identifiers returned by the API.
Each customer follows the same deletion conditions as Delete a customer: linked charges that have not been deleted, including paid charges, prevent deletion. The request does not delete charges or refund payments.
Some customers in the batch may be deleted while others are kept. Check the
removed, blocked and invalid groups for each customer's result.
The errors array explains each issue and identifies its position in the request,
such as identifiers[2] for the third item. Correct only the indicated items.
Resending the ID of an already deleted customer returns the same
confirmation. See how to check the result in
Delete customers in bulk.
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Body Params
Applying an example replaces the body fields.
IDs of the customers you want to delete. Repeated IDs do not cause more than one deletion. Invalid IDs or IDs of customers the key cannot access appear in invalid.
1 to 100 items
Separate values with commas.
Responses
Response Body
Batch result. Check removed, blocked, and invalid to distinguish deleted customers, customers blocked by charges, and invalid or missing identifiers. errors identifies each item that was not deleted by its index in identifiers, with the code and explanation.
IDs of deleted customers, including those already deleted.
IDs of customers with linked charges that have not been deleted, including paid charges.
Invalid values, nonexistent customers or customers your authentication does not allow you to access.
Reason for each item not deleted, with identifiers[index] field, code and English explanation. A batch without failures returns an empty list.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
Invalid body. Send identifiers as a list of customer identifiers.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.