Skip to main content

Get regex validation pattern for country

GET 

/truckers/countries/regex/:code

Returns the regular expression pattern to validate tax identifiers for the specified country.

Use cases:

  • Validate NIF/CIF/VAT formats in forms
  • Integration with billing systems
  • Validation of tax documents

Response example:

{
pattern: ^[A-Z0-9]{9}$
}

Notes:

  • Patterns follow standard regular expression syntax
  • Returns 404 if the country does not exist

Request

Responses

Regex pattern