Delete Customer
Delete a customer for the provided customer ID. When you delete a customer, any customer contacts are also deleted.
Method Type | URI |
---|---|
DELETE | v90/ws/customer/{customerId}.ws |
URI Parameters
Parameter | Description | Type |
---|---|---|
customerId | Identifier of the customer in the database. | Integer |
Sample Response
Success
HTTP Status Code: 204
Header-Location: Deleted
Failure
Depending on the cause of the failure, you may see the following responses:
Scenario 1: The customer ID does not exist in the database.
HTTP Status Code: 404
Response Body: The specified Customer with id -1 was not found.
Scenario 2: The customer ID is associated with a live entitlement, and therefore cannot be deleted.
HTTP Status Code: 400
Response Body: Peter Adams cannot be deleted as an entitlement exists for this customer.