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
- 200
- 404
- 500
Regex pattern
Resource not found.
Possible causes:
- Country does not exist
- Resource deleted
Internal Server Error.
Possible causes:
- Database failure
- Unhandled exception