updateToken
Use this API to update information related to the user's 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
accountHolderName UserName
The buyer's bank account holder name.
This parameter is returned when the user name corresponding to the token exists.
email Email
The email address that is associated with the buyer's account.
This parameter is returned when the user's email address exists.
More information:
- Maximum length: 50 characters
tokenExpiryTime DateTime
The expiration date and time of the account token. You cannot use this token after this time. For the credit card, the expiry day will be the last day of the month.
This parameter is returned when the expiry time corresponding to the token exists.
More information:
- Maximum length: 10 characters
Response parameters
token String REQUIRED
A unique identifier for the card token and APM token.
This parameter is returned when the token information inquired by the merchant exists.
More information:
- Maximum length: 255 characters
result Result REQUIRED
Information about the request calling result.
This field does not indicate the vaulting result. This field only indicates whether this interface is called successfully.
API Explorer
Request
URL
Method
POST
{
"merchantAccountId": "2188116129848784",
"token": "23022416062233642768",
"accountHolderName": {
"fullName": "test name"
},
"email": "testUserName@ant.com",
"tokenExpiryTime": "2029-12-31T00:00:00Z"
}Response
{
"token": "23022416062233642768",
"result": {
"resultCode": "SUCCESS",
"resultMessage": "success",
"resultStatus": "S"
}
}Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | Success | The updateToken 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 updateToken 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. |