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.
Country
Country code (ISO 3166-1 alpha-2 code)
Currency code (ISO 4217)
Argentina
AR
USD / ARS
Brazil
BR
USD / BRL
Bolivia
BO
USD/BOB
Cameroon
CM
USD / XAF
Canada
CA
USD / CAD
Chile
CL
USD / CLP
Colombia
CO
USD / COP
Côte d'Ivoire
CI
USD / XOF
Dominican Republic
DO
USD / DOP
Ecuador
EC
USD
El Salvador
SV
USD / SVC
Ghana
GH
USD / GHS
Guatemala
GT
USD / GTQ
India
IN
USD / INR
Indonesia
ID
USD / IDR
Japan
JP
USD / JPY
Kenya
KE
USD / KES
Malaysia
MY
USD / MYR
Mexico
MX
USD / MXN
Nicaragua
NI
USD / NIO

Documents validations

The document sent must follow the validations for its respective document_type described below.
Country
Document type
Validation
Argentina
DNI
Numeric. Length 7-9
Argentina
CUIT / CUIL
Numeric. Length between 7 and 9 inclusive or equal to 11
Brazil
CPF
Numeric. Length 11 (Validate verifier-digits)
Brazil
CNPJ
Numeric. Length between 12 and 14 (Validate verifier-digits)
Bolivia
CI
Numeric. Length: 7
Bolivia
CIE
Alphanumeric. One character followed by 8 digits
Bolivia
PASS
Alphanumeric. One character followed by 6 digits
Bolivia
NIT
Numeric. Length:12
Cameroon
PASS
Numeric. Length between 9 and 11 inclusive
Cameroon
CI
Numeric. Length between 8 and 12 inclusive
Cameroon
DL (Driving License)
Numeric. Length between 8 and 10 inclusive
Canada
DL (Driving License)
Numeric and length between 6 and 9 inclusive or string between 10 and 15 inclusive
Canada
HC (Health Card)
Numeric. Length 10
Canada
PASS (Passport)
Length between 8 and 12 inclusive
Chile
ID / RUN / RUT
Length 8 or 9
Colombia
CC
Numeric. Length between 6 and 10 inclusive
Colombia
NIT
Numeric. Length between 8 and 15
Colombia
CE
Numeric. Length between 6 and 10 inclusive
Colombia
PASS
Length between 6 and 10 inclusive
Colombia
CE (for PEP)
Numeric. Length 15

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.
Country
Regex
Example
Argentina
^\d{4}|[A-Za-z]\d{4}([a-zA-Z]{3})?$
A1234ABC
Brazil
^\d{5}[\s-/]?\d{3}$
12345-678
Cameroon
N/A
N/A
Canada
^[a-zA-Z]\d[a-zA-Z]\s?\d[a-zA-Z]\d$
A1A 2B2
Chile
^\d{3}[\s-/]?\d{4}$
123-4567
Colombia
^\d{5,6}$
12345
Côte d'Ivoire
N/A
N/A
Dominican Republic
^\d{5}$
12345
Ecuador
^\d{6}$
123456
El Salvador
N/A
N/A
Ghana
^[A-Za-z]{2}\d{3,5}$
AB1234
Guatemala
N/A
N/A
India
^\d{3}[\s-/]?\d{3}$
123-456
Japan
N/A
N/A
Indonesia
^\d{5}$
12345
Kenya
^\d{5}$
12345
Malaysia
^\d{5}$
12345
Mexico
^\d{5}$
12345
Nicaragua
N/A
N/A

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.
GitHub - google/libphonenumber: Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
GitHub

Emails validations

We suggest you using the following regex to validate email addresses on your end and prevent invalid email errors.
1
(?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])
Copied!