Countries Specifications

Learn how to validate the country's specific details

Countries and currencies

  • The country codes are in ISO 3166-1 alpha-2 format.

  • The currencies are in ISO 4217 format.

Documents validations

The document sent must follow the validations for its respective document_type described below.

Postal code validations

The validation for the postal codes dependes up on the country sent. Make sure you validate them with the regex in the table below to avoid errors due to Invalid postal Code.

Phone numbers validations

We use the Google's common library for parsing, formatting, and validating international phone numbers. Validating the phone numbers on your end could help preventing Invalid phone number errors.

Emails validations

We suggest you using the following regex to validate email addresses on your end and prevent invalid email errors.

(?i)[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])

Last updated