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

Cameroon

CM

USD / XAF

Canada

CA

USD / CAD

Chile

CL

USD / CLP

China

CN

USD / CNY

Colombia

CO

USD / COP

Côte d'Ivoire

CI

USD / XOF

Dominican Republic

DO

USD / DOP

Ecuador

EC

USD

Ghana

GH

USD / GHS

India

IN

USD / INR

Indonesia

ID

USD / IDR

Japan

JP

USD / JPY

Kenya

KE

USD / KES

Malaysia

MY

USD / MYR

Mexico

MX

USD / MXN

Nigeria

NG

USD / NGN

Panama

PA

USD

Peru

PE

USD / PEN

Paraguay

PY

USD / PYG

Philippines

PH

USD / PHP

South Africa

ZA

USD / ZAR

Tanzania

TZ

USD / TZS

Thailand

TH

USD / THB

Uganda

UG

USD / UGX

Uruguay

UY

USD / UYU

Vietnam

VN

USD / VND

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)

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

China

ID

Length between 3 and 20 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

Côte d'Ivoire

ID

Length between 8 and 12 inclusive

Dominican Republic

CIE

Numeric. Length 11

Ecuador

CC

Numeric. Length between 9 and 11 inclusive

Ecuador

RUC

Numeric. Length between 12 and 14 inclusive

Ghana

ID

Length between 8 and 12 inclusive

India

ID (PAN)

Length between 8 and 12 inclusive

India

DL (Driver's License)

Length 15

India

UDI (Aadhar Card)

Numeric. Length 12

Indonesia

NIK / KTP

Numeric. Length between 14 and 18 inclusive

Japan

DL / ID / PASS / RD (Resident Registration Card)

Length between 9 and 12 inclusive

Kenya

ID

Length between 7 and 12 inclusive

Malaysia

ID

Numeric. Length between 10 and 14 inclusive

Mexico

CURP / RFC / IFE / PASS / Residencia

Length between 8 and 18 inclusive

Nigeria

ID

Length between 9 and 12 inclusive

Panama

CIP

Numeric. Length between 5 and 10 inclusive

Panama

PASS

Length between 8 and 11 inclusive

Peru

CE

Numeric. Length 9

Peru

DNI

Numeric. Length 8-9

Peru

PASS

Length 12

Peru

RUC

Length 11

Philippines

PSN

Numeric. Length between 9 and 13 inclusive

South Africa

ID

Numeric. Length between 9 and 14 inclusive

Tanzania

ID

Length between 8 and 20 inclusive

Thailand

ID

Numeric. Length between 10 and 14 inclusive

Uganda

RIC / NID

Numeric. Length between 11 and 15 inclusive

Uruguay

CI

Numeric. Length between 6 and 8 inclusive

Vietnam

ID

Numeric. Length between 9 and 13 inclusive

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

China

^\d{6}$

123456

Colombia

^\d{5,6}$

12345

Côte d'Ivoire

N/A

N/A

Dominican Republic

^\d{5}$

12345

Ecuador

^\d{6}$

123456

Ghana

^[A-Za-z]{2}\d{3,5}$

AB1234

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

Nigeria

^\d{6}$

123456

Panama

^\d{4,6}$

12345

Paraguay

^\d{4}$

1234

Peru

^\d{5}$

12345

Philippines

^\d{3,4}$

1234

South Africa

^\d{4}$

2345

Tanzania

^\d{5}$

12345

Thailand

^\d{5}$

12345

Uganda

N/A

N/A

Uruguay

^\d{5}$

12345

Vietnam

^\d{5}$

12345

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])