{"type":"cpf","value":"11144477735","valid":true,"formatted":"111.444.777-35","digits":"11144477735"}
curl --location --request GET 'https://zylalabs.com/api/13138/identity+document+validator+api/26652/validate+document?type=cpf&value=11144477735' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Identity Document Validator API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
Validate and format identity and business document numbers with correct check digit verification. Instantly confirm whether a given number is valid and receive it in a clean formatted form. The service can also generate valid sample numbers for software testing and quality assurance. Simple, fast and stateless.
The Validate Document endpoint returns data regarding the validity of an identity or business document number. It includes fields indicating the document type, the original number, its validity status, a formatted version, and the raw digits.
The key fields in the response data include "type" (document type), "value" (original number), "valid" (boolean indicating validity), "formatted" (cleanly formatted number), and "digits" (raw number without formatting).
The response data is organized in a JSON format, containing key-value pairs. Each response includes the document type, the original number, its validity status, a formatted version, and the unformatted digits, making it easy to parse and utilize.
The Validate Document endpoint provides information on the validity of various identity and business document numbers, including their formatted versions and whether they pass check digit verification.
The Validate Document endpoint accepts parameters such as "document type" (e.g., CPF, CNPJ) and "number" (the document number to validate). Users must specify these to receive accurate validation results.
通过严格的校验位验证过程和对验证算法的定期更新来保持数据的准确性,确保API为文档号码提供可靠有效的结果
Typical use cases include validating user identity during onboarding processes, ensuring compliance in financial transactions, and generating valid sample numbers for software testing and quality assurance.
Users can utilize the returned data by checking the "valid" field to confirm document authenticity, using the "formatted" field for display purposes, and leveraging the "type" field to understand the document category for further processing.