This topic describes how to initiate a verification request by calling the InitCardVerify API.
API information
Before you use this API, read the access process and activate the service.
API name: InitCardVerify
Global endpoint: cloudauth.aliyuncs.com (IPv4) or cloudauth-dualstack.aliyuncs.com (IPv6)
HTTP request method: POST and GET
Transport protocol: HTTPS
Description: Before starting each verification, call this API to obtain a CertifyId. This ID links all API calls for a single verification request.
QPS limit: This API has a dedicated QPS limit. For more information, see QPS limits for information verification APIs.
The Information Verification Service does not support a hard cap on call volume or automatic deactivation. To control costs and prevent high bills, configure spending alert rules after you integrate the service:
Configure spending alerts: Set a spending alert rule (Set high-spending alerts) to monitor your bills in real time.
Monitor data transfer plan balance: If you purchased a data transfer plan, also monitor its balance (Configure remaining quota alerts) to add resources or adjust your call policy promptly.
Request parameters
Parameter | Type | Required | Description | Example |
MerchantBizId | String | Yes | A custom, unique business identifier for tracking and troubleshooting issues. The identifier can be up to 32 characters in length and can contain letters and digits. Make sure that the ID is unique. | e0c34a77f5ac40a5aa5e6ed2******** |
MetaInfo | String | Yes | The environment parameters obtained from the client SDK. | |
CardType | String | Yes | The document type. The value must be IDENTITY_CARD. | IDENTITY_CARD |
Model | String | Yes | The verification method. Set the value to: OCR_VERIFY: OCR recognition and verification. | OCR_VERIFY |
VerifyMeta | String | Yes | The verification type. Set the value to: ID_3_META: The three-element identity verification (name, ID number, and portrait photo). | ID_3_META |
CardPageNumber | String | Yes | The number of document pages to capture with the SDK:
| 2 |
PictureSave | String | Yes | Specifies whether to temporarily store images captured by the app.
Note If you set this parameter to Y, the document images can be returned when you call the query API. | Y |
CallbackUrl | String | No | The callback notification URL for authentication results only supports the After the certification is complete, the platform will call back this URL and automatically add the Warning Callbacks are sent only for successful verifications. No notification is sent if a verification is abandoned, interrupted, or not performed. After receiving a callback, call the query API to retrieve detailed verification data. | https://www.aliyun.com |
CallbackToken | String | No | The security token used for anti-replay and anti-tampering checks. If you specify this parameter, the CallbackToken field is included in the callback URL. | NMjvQanQgplBSaEI0sL86Wn**** |
DocScanMode | String | No | The capture mode. Valid values:
| shoot |
Response parameters
Parameter | Type | Description | Example | |
RequestId | String | The request ID. | 130A2C10-B9EE-4D84-88E3-5384******** | |
Message | String | The returned message. | success | |
Code | String | The response code. A value of 200 indicates a successful call. Other values indicate that the call failed. Important
| 200 | |
ResultObject | CertifyId | String | The unique ID for the verification request. Provide this ID when querying the verification result. Warning
| 91707dc296d469ad38e4c5ef******** |
SDK examples
Before you integrate, read the integration process, activate the service, and get an AccessKey and configure the environment variables.
OpenAPI Explorer: Debug APIs online and obtain SDK examples.
Sample code project: Provides sample projects for calling the SDK in various programming languages.

