deleteToken
Use this API to delete the token corresponding to the merchant, including the card token and APM token.
Structure
A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:
Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:
- If the data type of a field is Integer and its value is 20, set it as "20".
- If the data type of a field is Boolean and its value is true, set it as "true".
Request parameters
merchantAccountId String REQUIRED
A unique identifier for a specific merchant account.
More information:
- Maximum length: 64 characters
token String REQUIRED
A unique identifier for the card token and APM token.
More information:
- Maximum length: 255 characters
Response parameters
result Result REQUIRED
Information about the request calling result.
This field does not indicate the token result. This field only indicates whether this interface is called successfully.
API Explorer
Request
URL
Method
POST
{
"merchantAccountId": "2188116129848784",
"token": "23022416062233642768"
}Response
{
"result": {
"resultCode": "SUCCESS",
"resultMessage": "success",
"resultStatus": "S"
}
}Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | Success | The deleteToken is successful, no further action is needed. |
| INVALID_ACCESS_TOKEN | F | The access token is expired, revoked, or does not exist. | Check whether the access token is correct. If not correct, specify the correct value. If correct, contact Antom Technical Support for detailed reasons. |
| PROCESS_FAIL | F | The deleteToken API call has failed. | Do not retry. Human intervention is usually needed. It is recommended that you contact Antom Technical Support to troubleshoot the issue. |
| UNKNOWN_EXCEPTION | U | An API call has failed, which is caused by unknown reasons. | Call the interface again to resolve the issue. If not resolved, contact Antom Technical Support. |