inquireToken
Use this API to inquire about the user or card token details of the card information.
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
token String REQUIRED
A unique identifier for the card token and APM token.
This parameter is returned when the token that is being inquired exists.
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
issuerName String
The issuing bank.
This parameter is returned when the value of paymentMethodType is
CARD.More information:
- Maximum length: 50 characters
issuingCountry String
The issuing country of the card. The value of this parameter is a 2-letter country code that follows ISO 3166 Country Codes standard.
This parameter is returned when the value of paymentMethodType is CARD.
More information:
- Maximum length: 2 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.
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": "2188120016479672",
"token": "05122316184309071360"
}Response
{
"accountHolderName": {
"fullName": "test name"
},
"email": "testName@ant.com",
"issuer": "FIRST DATA CORPORATIONS",
"issuingCountry": "US",
"token": "23022416062233642768",
"tokenExpiryTime": "2027-12-31T00:00:00Z",
"result": {
"resultCode": "SUCCESS",
"resultMessage": "success.",
"resultStatus": "S"
}
}Result/Error codes
| Code | Value | Message | Further action |
|---|---|---|---|
| SUCCESS | S | Success | The inquireToken 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 inquireToken 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. |