Delete customer info
delete
/customercare/v1/{customerId}/provision
Deletes customer information. Requires exactly one of the following parameters to be true: cancelAllTemporaryAllows, unregisterDevices, or reset. If more than one parameter is true, then only the operation with the highest precedence will be completed. The order of precedence is cancelAllTemporaryAllows > unregisterDevices > reset.
Request
Path Parameters
-
customerId(required): string
It is the uniqueUserId of the user. Details can be found in the user preferences API.
Query Parameters
-
cancelAllTemporaryAllows: boolean
Cancel all temporary allows for the user
-
reset: boolean
Reset all profiles set for the user, including registration, questions, images and phrases
-
unregisterDevices: boolean
Unregister all devices for the user
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
Success
Root Schema : StatusResponse
Type:
objectStatus information for API call
Show Source
-
responseCode: string
status code of the request
-
responseMessage: string
response message related to the response code if needed.
-
sessionId: string
session id of the authentcation.
-
status: boolean
authentication update request status
400 Response
Invalid input
404 Response
Customer ID not found
Examples
The following example shows a sample request and response for deleting customer information.
cURL Command to Delete Customer Information in JSON Format
curl --location --request DELETE '<RISKCC>/customercare/v1/{customerId}/provision?unregisterDevices=true&cancelAllTemporaryAllows=true&reset=true' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'Sample Response in JSON Format
{
"responseCode": "0",
"responseMessage": "",
"status": true
}
cURL Command to Delete Customer Information in XML Format
curl --location --request DELETE '<RISKCC>/customercare/v1/{customerId}/provision?unregisterDevices=true&cancelAllTemporaryAllows=true&reset=true' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'Sample Response in XML Format
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatusResponse>
<responseCode>0</responseCode>
<responseMessage></responseMessage>
<status>true</status>
</StatusResponse>