Defining a Valid Postal Code


THE CSP Commerce REST API (CREST API) we are using for the automatic provisioning of Microsoft cloud services requires a valid customer postal code.  Below is a list of postal code's valid format per country. Check page https://msdn.microsoft.com/en-us/library/partnercenter/dn974938.aspx for more details.

Country/Region

Postal Code Mask

Andorra

adNNN

United Arab Emirates

<none>

Afghanistan

NNNN

Antigua and Barbuda

<none>

Anguilla

<none>

Albania

NNNN

Armenia

NNNN

Angola


Antarctica

<none>

Argentina

ANNNNAAA

American Samoa

<none>

Austria

NNNN

Australia

NNNN

Aruba

<none>

Azerbaijan

NNNN|azNNNN|az NNNN

Bosnia and Herzegovina

NNNNN

Bonaire

<none>

Barbados

AANNNNN

Bangladesh

NNNN

Belgium

NNNN

Burkina Faso

<none>

Bulgaria

NNNN

Bahrain

NNN|NNNN

Burundi

<none>

Benin

<none>

Saint Barthelemy

AA XX

Brunei

AANNNN

Bolivia

<none>

Brazil

NNNNN-NNN

Bahamas

<none>

Bhutan

<none>

Bouvet Island

<none>

Botswana

<none>

Belarus

NNNNNN

Belize

<none>

Canada

ANA NAN|ANANAN

Cocos (Keeling) Islands

<none>

Democratic Republic of the Congo

<none>

Central African Republic

<none>

Republic of the Congo

<none>

Switzerland

NNNN

Côte d’Ivoire

<none>

Cook Islands

<none>

Chile

<none>

Cameroon

<none>

China

NNNNNN

Colombia

<none>

Costa Rica

|NNNN|NNNNN

Cabo Verde

<none>

Curaçao

<none>

Christmas Island

<none>

Cyprus

NNNN

Czech Republic

NNN NN

Germany

NNNNN

Djibouti

<none>

Denmark

NNNN

Dominica

<none>

Dominican Republic

<none>

Algeria

NNNNN

Ecuador

|NNNNNN|ecNNNNNN

Estonia

NNNNN

Egypt

NNNNN

Eritrea

<none>

Spain

NNNNN

Ehiopia

|NNNN

Finland

NNNNN

Fiji

<none>

Falkland Islands

<none>

Micronesia

<none>

Faroe Islands

NNN

France

NNNNN

Gabon

<none>

United Kingdom

AAXX NAA|AXX NAA|AX NAA|AAXXNAA|AXXNAA|AXNAA|AAX NAA|gia NAA

Grenada

<none>

Georgia

NNNN

Grench Guiana

<none>

Guernsey

<none>

Ghana

<none>

Gibraltar

<none>

Greenland

<none>

Gambia

<none>

Guinea

<none>

Guadeloupe

<none>

Equatorial Guinea

<none>

Greece

NNNNN

South Georgia and the South Sandwich Islands

<none>

Guatemala

NNNNN

Guam

<none>

Guinea-Bissau

<none>

Guyana

<none>

Hong Kong SAR

<none>

Heard Island and McDonald Islands

<none>

Honduras

<none>

Croatia

NNNNN

Haiti

<none>

Hungary

NNNN

Indonesia

NNNNN

Ireland

<none>

Israel

NNNNN

Isle of Man

XN NXX|XXN NXX|XXXN NXX

India

NNNNNN

British Indian Ocean Territory

<none>

Iraq

NNNNN

Iceland

NNN|NNNNN

Italy

NNNNN

Jersey

<none>

Jamaica

<none>

Jordan

NNNNN

Japan

NNN-NNNN

Kenya

NNNNN

Kyrgyzstan

NNNNNN

Cambodia

NNNNN

Kiribati

<none>

Comoros

<none>

Saint Kitts and Nevis

<none>

South Korea

NNN-NNN|NNNNNN

Kuwait

NNNNN

Cayman Islands

<none>

Kazakhstan

NNNNNN

Laos

<none>

Lebanon

NNNNNNNN

Saint Lucia

<none>

Liechtenstein

NNNN

Sri Lanka

NNNNN

Liberia

<none>

Lesotho

<none>

Lithuania

NNNNN|ltNNNNN|lt-NNNNN

Luxembourg

NNNN

Latvia

NNNN|lvNNNN|lv-NNNN

Libya

<none>

Morocco

NNNNN

Monaco

<none>

Moldova

<none>

Montenegro

|NNNNN

Madagascar

<none>

Marshall Islands

<none>

Macedonia, FYRO

NNNN

Mali

<none>

Mongolia

NNNNN

Macao SAR

<none>

Northern Mariana Islands

<none>

Martinique

<none>

Mauritania


Montserrat

<none>

Malta

AAA NNNN

Mauritius

<none>

Maldives

<none>

Malawi

<none>

Mexico

NNNNN

Malaysia

NNNNN

Mozambique

<none>

Namibia

<none>

New Caledonia

<none>

Niger

<none>

Norfolk Island

<none>

Nigeria

NNNNNN

Nicaragua

NNNNN|NNN-NNN-N

Netherlands

NNNN AA

Norway

NNNN

Nepal

NNNNN

Nauru

<none>

Niue

<none>

New Zealand

NNNN

Oman

NNN

Panama

NNNN

Peru

<none>

French Polynesia

<none>

Papua New Guinea

<none>

Philippines

NNNN

Pakistan

NNNNN

Poland

NN-NNN

Saint Pierre and Miguelon

<none>

Pitcaim Islands

<none>

Puerto Rico

NNNNN|NNNNNNNNN|NNNNN-NNNN

Palestinian Authority

<none>

Portugal

NNNN-NNN|NNNN

Palau

<none>

Paraguay

NNNN

Qatar

<none>

Reunion

<none>

Romania

NNNNNN

Serbia

NNNNN|NNNNNN

Russia

NNNNNN

Rwanda

<none>

Saba

<none>

Saudi Arabia

NNNNN

Solomon Islands

<none>

Seychelles

<none>

Sweden

NNN NN

Singapore

NNNNNN

Saint Helena, Ascension and Tristan da Cunha

<none>

Slovenia

NNNN

Svalbard

<none>

Slovakia

NNN NN

Sierra Leone

<none>

San Marino

<none>

Senegal

NNNNN

Sint Eustatius

<none>

Sint Maarten

<none>

Somalia

<none>

Suriname

<none>

South Sudan

<none>

São Tomé and Príncipe

<none>

El Salvador

NNNNN

Swaziland

<none>

Turks and Caicos Islands

<none>

Chad

<none>

French Southern Territories

<none>

Togo

<none>

Thailand

NNNNN

Tajikistan

<none>

Tokelau

<none>

Timor-Leste

<none>

Turkmenistan

NNNNNN

Tunisia

NNNN

Tonga

<none>

Turkey

NNNNN

Trinidad and Tobago

|NNNNNN

Tuvalu

<none>

Taiwan

NNN|NNNNN

Tanzania

<none>

Ukraine

NNNNN

Uganda

<none>

United States Minor Outlying Islands

<none>

United States

NNNNN|NNNNN-NNNN

Uruguay

NNNNN

Uzbekistan

NNNNNN

Holy See (Vatican City)

<none>

Saint Vincent and the Grenadines

<none>

Venezuela

NNNN

British Virgin Islands

<none>

US Virgin Islands

NNNNN|NNNNN-NNNN|AANNNNN

Vietnam

|NNNNNN

Vanuatu

<none>

Wallis and Futuna

<none>

Samoa

<none>

Yemen


Mayotte

<none>

South Africa

NNNN

Zambia

NNNNN

Zimbabwe

<none>