validate_cpf
Verify a Brazilian CPF by validating its two check digits and rejecting invalid patterns. Ensures the taxpayer ID is valid before KYC or onboarding.
Instructions
USE THIS to verify a Brazilian CPF (individual taxpayer ID) before relying on it — never assume 11 digits are valid. Checks the two mod-11 check digits and rejects all-identical sentinels. Call this for KYC/onboarding of Brazilian individuals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpf | Yes | The CPF (11 digits; dots and dash are ignored). |