Validate address against a requirement
validate_addressCheck whether an existing address (and its identity) satisfies a regulation or emergency requirement BEFORE creating a verification — a read-only pre-flight that changes nothing. Pass the address_id and either a requirement_id or country_iso (+ did_group_type) to resolve the requirement; requirement_type picks the rule set: "regulation" (DID registration, mirrors the panel address validation) or "emergency" (E911, mirrors the emergency address validation). Returns a valid flag plus what is missing: identity/address proof documents, supporting documents, mandatory identity fields, structural mismatches the upload flow cannot fix (identity type, country/area levels), and whether the requirement demands a one-time supporting document at verification time. The next_step field says how to proceed: create_address_verification directly when everything is in place, create_regulation_upload_link when documents (incl. the one-time document) still must be collected, update_identity for missing fields. Note: for City/Area-level requirements the city match against the actual DIDs is checked only at verification time (no DIDs are passed here).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address_id | Yes | UUID of the address to validate (must belong to the customer, see list_addresses). Its identity is validated with it. | |
| country_iso | No | Alternative to requirement_id: resolve the requirement by DID country (ISO 3166-1 alpha-2, case-insensitive) — combine with did_group_type when several requirements exist for the country. | |
| did_group_type | No | DID group type name (e.g. Local, National, Mobile, case-insensitive) or UUID — narrows the country_iso requirement lookup. | |
| requirement_id | No | UUID of the requirement (from list_requirements for regulation, list_emergency_requirements for emergency). Either this or country_iso must be passed. | |
| requirement_type | Yes | Which rule set to validate against: "regulation" (DID number registration) or "emergency" (E911 calling). |