Bank Card Two-Factor Verification API Integration Guide
This article introduces a Bank Card Two-Factor Verification API integration guide, which can be used to verify the authenticity and consistency of a name and bank card number.
¶ Application Process
To use the Bank Card Two-Factor Verification API, first go to the Ace Data Cloud Console to obtain your API Token for later use.

If you have not yet logged in or registered, you will be automatically redirected to the login page to register and log in. Once completed, you will automatically return to the current page.
The API Key for a general application can be used for services enabled for the account; the Key for a dedicated application is used within that application's service scope. Please check the Key's permissions, validity period, and limits, and confirm that the application balance is sufficient to pay for this request. Available trial credits are subject to what is displayed in the account; if the balance is insufficient, click the "Recharge" button.
📘 Full documentation: Bank Card Two-Factor Verification API →
¶ Basic Usage
First, let's look at the basic usage: enter the bank card number information to obtain the processed result image. First, you simply need to pass a bank_card field. We can then fill in the corresponding content on the interface, as shown below:

As you can see, we have set the Request Headers here, including:
accept: The desired format of the response result. Here, it is set toapplication/json, meaning JSON format.authorization: The key used to call the API, which can be selected directly from the drop-down list after application.
We have also set the Request Body, including:
bank_card: The bank card number information to be processed. This is a required parameter.name: The user's name. This is a required parameter.encryption: Optional encryption parameter for sensitive fields (if encrypted text needs to be submitted).
After making the selections, you can see that the corresponding code is also generated on the right, as shown below:

Click the "Try" button to test it. As shown above, we obtained the following result:
{
"result": "0",
"description": "认证通过"
}
The returned result contains several fields, described below:
result, the verification result code. The billing details are as follows.- Billable result codes:
- 0: Verification passed
- -1: Verification failed
- -4: Incorrect cardholder information
- -5: Card-not-present payment is not enabled
- -6: This card has been confiscated
- -7: Invalid card number
- -8: No corresponding issuing bank for this card
- -9: This card has not been initialized or is dormant
- -10: Fraudulent card or card retained by the ATM
- -11: This card has been reported lost
- -12: This card has expired
- -13: Restricted card
- -14: Maximum number of incorrect PIN attempts exceeded
- -15: The issuing bank does not support this transaction
- Non-billable result codes:
- -2: Name verification failed
- -3: Incorrect bank card number
- -16: Verification center service is busy
- -17: Verification attempt limit exceeded; please try again the next day
- Billable result codes:
description, the business result description.
As you can see, the authenticity and consistency verification of the name and bank card number for this card has passed.
Additionally, if you want to generate the corresponding integration code, you can copy the generated code directly. For example, the CURL code is as follows:
curl -X POST 'https://api.acedata.cloud/identity/bankcard/check-2e' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"name": "***",
"bank_card": "***"
}'
The Python integration code is as follows:
curl -X POST 'https://api.acedata.cloud/identity/bankcard/check-2e' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"name": "***",
"bank_card": "***"
}'
¶ Error Handling
If an error occurs when calling the API, the API will return the corresponding error code and message. For example:
400 token_mismatched: Bad request, possibly due to missing or invalid parameters.400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.401 invalid_token: Unauthorized, invalid or missing authorization token.429 too_many_requests: Too many requests, you have exceeded the rate limit.500 api_error: Internal server error, something went wrong on the server.
¶ Error Response Example
{
"success": false,
"error": {
"code": "api_error",
"message": "fetch failed"
},
"trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}
¶ Conclusion
Through this document, you have learned how to use the Bank Card Two-Factor Verification API to verify the authenticity and consistency of a name and bank card number. We hope this document helps you better integrate and use the API. If you have any questions, please feel free to contact our technical support team.
