tencent cloud

APIs

GetWxNFCResult

下载
聚焦模式
字号
最后更新时间: 2026-05-27 12:00:13

1. API Description

Domain name for API request: faceid.intl.tencentcloudapi.com.

Obtain document NFC data, input the Token returned by the NFC SDK (valid for 10 minutes), and return the corresponding document information retrieved via NFC. This API supports NFC recognition and verification of ID cards (second-generation resident identity card, Residence Permit for Hong Kong (China) and Macao (China), Residence Permit for Taiwan (China), Permanent Residence Permit for Foreigners) as well as travel documents (exit-entry permit for travelling to and from Hong Kong (China) and Macao (China), Taiwan travel permit, Mainland Travel Permit for Taiwan Residents, Return Home Permit).

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: GetWxNFCResult.
Version Yes String Common Params. The value used for this API: 2018-03-01.
Region No String Common Params. This parameter is not required for this API.
NFCToken Yes String

Unique identifier ID returned by the frontend NFC SDK

3. Output Parameters

Parameter Name Type Description
ResultCode String

NFC billing result code. Each successful NFC read is billed once (duplicate billing does not occur for repeated pull of the same NFC request). Permissible range of billing result codes:
0: Read successful, billed
-1: Read fail, free of charge

IdNum String

Identity card number


Note: This field may return null, indicating that no valid values can be obtained.
Name String

name


Note: This field may return null, indicating that no valid values can be obtained.
Picture String

Portrait photo in the document


Note: This field may return null, indicating that no valid values can be obtained.
IdCardFrontImg String

Front photo of the identity document (portrait side)


Note: This field may return null, indicating that no valid values can be obtained.
IdCardBackImg String

Photo of the back of an identity document (national emblem side)


Note: This field may return null, indicating that no valid values can be obtained.
BirthDate String

Date of birth


Note: This field may return null, indicating that no valid values can be obtained.
BeginTime String

Validity start time


Note: This field may return null, indicating that no valid values can be obtained.
EndTime String

Validity end time


Note: This field may return null, indicating that no valid values can be obtained.
Address String

Address


Note: This field may return null, indicating that no valid values can be obtained.
Nation String

Ethnicity


Note: This field may return null, indicating that no valid values can be obtained.
Sex String

Gender


Note: This field may return null, indicating that no valid values can be obtained.
IdType String

Document type

Enumeration value:

  • 01: ID card
  • 03: Chinese passport
  • 06: Hong Kong and Macau travel permit
  • 07: Taiwan travel permit
  • 08: Foreign passport
  • 13: Permanent residence permit for foreigners
  • 14: Residence Permit for Hong Kong (China), Macao (China), and Taiwan (China) residents
  • 15: Return Home Permit
  • 16: Travel permit for Chinese mainland residents to Taiwan (China)
  • 99: Other documents

Note: This field may return null, indicating that no valid values can be obtained.
EnName String

English name


Note: This field may return null, indicating that no valid values can be obtained.
SigningOrganization String

Issuing authority


Note: This field may return null, indicating that no valid values can be obtained.
OtherIdNum String

Residence Permit for residents of Hong Kong (China), Macao (China) and Taiwan (China), passport number


Note: This field may return null, indicating that no valid values can be obtained.
Nationality String

Travel document nationality


Note: This field may return null, indicating that no valid values can be obtained.
PersonalNumber String

Characters 29 to 42 in the second line of the machine-readable zone of the travel document


Note: This field may return null, indicating that no valid values can be obtained.
CheckMRTD String

Verification result of the document

  • JSON format as follows: {"result_issuer":"issuer certificate legitimacy verification result","result_paper":"Document security object legitimacy verification result","result_data":"data tampering prevention verification result","result_chip":"chip replication prevention verification result"}. - Value ranges from 0 to 3: 0: verified, 1: verification failed, 2: unverified, 3: partially passed. When all four verification results are 0, it means the document is genuine.

Note: This field may return null, indicating that no valid values can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Retrieving NFC Results

Input Example

POST / HTTP/1.1
Host: faceid.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetWxNFCResult
<Common request parameters>

{
    "NFCToken": "d102c9c8-5423-11f1-97f9-52540044344e"
}

Output Example

{
    "Response": {
"Address": "Room ***, Unit *, Building *, **** District, ** City, Fujian Province",
        "BeginTime": "",
        "BirthDate": "",
        "CheckMRTD": "",
        "EnName": "ZHAN***ZHEN",
        "EndTime": "",
        "IdCardBackImg": "",
        "IdCardFrontImg": "",
        "IdNum": "350481***111140011",
        "IdType": "",
"Name": "Zhang*",
        "Nation": "",
        "Nationality": "",
        "OtherIdNum": "",
        "PersonalNumber": "",
        "Picture": "",
        "ResultCode": "-1",
        "Sex": "",
"SigningOrganization": "Yongan ***"
        "RequestId": "096513c7-1ee5-4620-a36b-9f5101cd2737"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.InvalidTokenParameter Token not found
InternalError Internal error.
InternalError.UnKnown Unknown internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Incorrect parameter value.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈