Check a Spanish postal address
check_spanish_addressUse this when the user gives a recipient (or sender) postal address in Spain, before creating a burofax, to catch mistakes that would stop delivery. Checks offline: required fields (name, street, postcode, city), the 5-digit código postal in range 01000–52999, and that the province matches the postcode's first two digits. Returns normalised fields (with the official province) and a list of problems with messages for the user. It does not confirm that the street or person exists. Do not use for addresses outside Spain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Town or city. | |
| name | No | Recipient's full name or company name. | |
| street | No | Street, number, floor and door. | |
| province | No | Province, if the user gave one. | |
| postal_code | No | Código postal, 5 digits. |