Deletes a customer specified by their account ID.
URL syntax
http://<ccServerURL
>/rest/v1/customers/customer/accountId/<accountId
>?deleteTransactions=[true|false]
Request
URL path parameters (required)
accountId
(type:
string
)
URL query parameters (optional)
?deleteTransactions=[true/false]
Default:
false
Response
Response body
A statement of whether the deletion is successful.
Example
URL
http://localhost:8080/rest/v1/customers/customer/accountId/B-AA-KKKK-11-vm102
Response body
Successfully deleted the customer with accountId B-AA-KKKK-11-vm102
Java
String msg = customerServiceProxy.deleteCustomerByAccountId("B-AA-KKKK-11-vm102");