Get regex for tax ID validation
GET/company/country/regex/:code
Returns regular expressions to validate country-specific formats, including:
- Tax IDs (NIF, CIF, VAT, etc.)
- Phone numbers
- Vehicle license plates
- Email formats
Usage examples:
# Get regex for tax ID in Spain
GET /company/country/regex/taxID
# Get regex for phone numbers in Portugal
GET /company/country/regex/phoneNumber
# Get regex for license plates in France
GET /company/country/regex/plate
Response:
{
status: 200,
data: {
ES: ^[0-9]{4}[BCDFGHJKLMNPQRSTVWXYZ]{3}$,
FR: ^[A-Z]{2}-[0-9]{3}-[A-Z]{2}$,
PT: ^[0-9]{2}-[0-9]{2}-[A-Z]{2}-[0-9]{1}$
}
}
Request
Responses
- 200
- 404
Successful operation
Country not found