Delete a customer
Delete a customer by their public identifier in Raims.
Deletes a customer by public identifier when you no longer need the record. The customer must belong to the authenticated company and environment.
Deletion is allowed only when the customer has no linked charges that have not been deleted, including paid charges. If any such charge exists, the customer is kept. This request does not delete charges or refund payments.
Repeating the request for a customer already deleted from the same company and environment returns the same confirmation. See how deletion affects lookups in Delete a customer.
Path Params
The customer's public ID in Raims, returned when the customer is created or listed.
Up to 100 characters
Responses
Response Body
Customer deleted. If the customer has already been deleted from the same company and environment, the response is the same.
Public identifier of the customer deleted in Raims.
Confirms that the customer was deleted.
Response Body
Invalid customer ID. Check the id field and the explanation in error.details.
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.
Response Body
No customer was found for the given id in the authenticated company and environment. Check the ID.
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.
Response Body
The customer has undeleted charges or another request is in progress. Check error.code to identify the reason.
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.