Phone numbers and country codes

Accepted phone formats, country and calling codes, country-specific lengths, and examples.

Use a complete international phone number whenever possible, such as +12025550142. Tringify stores accepted numbers in E.164 format: a plus sign, calling code, and number, with no spaces or punctuation. Successful validation checks the number’s format and numbering range; it does not prove ownership, that the number is assigned, or that it can receive SMS. Verification is a separate step.

Country codes and calling codes#

Value

Meaning

Example

phone_country_code / country_code

Two-letter country or region identifier. Use a code returned by the phone reference endpoint.

IN, US, GB

dial_code

International calling prefix. Several regions can share one prefix.

+91 for India; +1 for both the US and Canada

national_prefix

Prefix used when dialing a national number. Do not count it as part of the significant number or remove all leading zeroes yourself.

0 in the UK; Italy’s significant leading zero is retained

For customer creation, phone_country_code supplies the country for a number written in national format. Use IN, not India, 91, or +91. The hint is trimmed and case-insensitive. When a number starts with an international calling code, the number determines its region: +91 98765 43210 is Indian even with a US hint. The saved phone_country_code reflects the detected region. A valid global number such as +80012345678 has no two-letter country and is saved without a country code.

What a valid number requires#

A customer contact number must be a valid complete number and have one of the significant-digit lengths listed for its region below. Those lengths are based on the region’s fixed-line and mobile lengths. The exact allowed lengths matter: a minimum of 7 and maximum of 10 does not mean 8 and 9 are accepted unless they are listed. Having the right number of digits is not enough; the area code and remaining digits must also form a recognized numbering range.

Spaces, parentheses, dots, hyphens and slashes are accepted when the number can be parsed. National dialing prefixes are interpreted for the selected country. Do not strip leading zeroes indiscriminately: some countries, including Italy, keep a zero in the international number. A number with letters is rejected: a vanity number such as 1-800-FLOWERS, or an extension such as +1 2025550142 ext 123. Store extension information separately if you need it.

These rules are not a blanket ban on toll-free or other number types. For example, +18005551234 is accepted; India’s 18601234567 is rejected because its 11 significant digits exceed India’s 10-digit contact length. Valid non-geographic international numbers can be accepted without a country-specific length restriction. Use the validation result rather than assuming all numbers of a particular type are accepted or rejected.

Which field you are filling#

Field or workflow

Rule

Create customer: phone and phone_country_code

Phone is optional. Supply an international number or a national number with a two-letter region hint. The contact length rules below apply. A normalized phone cannot belong to two customers in the same store.

Customer Import CSV: Phone

Optional. Use +calling-code international format: the CSV has no separate phone-country hint. Bare national numbers are rejected. A successful import stores the normalized number and detected region.

Customer Update CSV

Phone is a reference column; it does not update the customer’s number.

Customer address: phone; CSV Address Phone

Optional and separate from the customer’s profile number. A national number uses the address country as a hint; an international prefix determines its own region. Address phones must be valid complete numbers, but do not use the profile’s additional contact-length restriction.

Update customer API

Phone and phone_country_code are not editable through the profile update endpoint. Do not submit them as update fields.

Blank optional phone

Leave it out or leave the optional field blank. A country choice alone is not a phone number. Requiredness can differ for other resources; check the relevant endpoint.

Accepted and rejected examples#

Input

Region hint

Customer contact result

Saved number

9876543210

IN

Accepted

+919876543210

09876543210

IN

Accepted

+919876543210

+91 98765 43210

US

Accepted

+919876543210

1111111111

IN

Rejected

—

18601234567

IN

Rejected

—

020 7946 0018

GB

Accepted

+442079460018

+1 (202) 555-0142

None

Accepted

+12025550142

2025550142

None

Rejected

—

+80012345678

IN

Accepted

+80012345678

+1 2025550142 ext 123

US

Rejected

—

+390212345678

IT

Accepted

+390212345678

Examples demonstrate formatting and validation only. They are not contacts to call or message. A rejected create returns CUSTOMER_PHONE_INVALID; a duplicate normalized customer phone returns CUSTOMER_PHONE_DUPLICATE. Address validation errors use the address endpoint’s error contract. Read the error response and allow the user to correct the number and country.

Build a country selector#

GET /api/2025-01/reference/phone-codes returns all calling regions in one response. Use country_code as the identifier, country_name as the label, and dial_code for display. possible_lengths lists accepted significant-digit lengths; min_national_digits and max_national_digits are convenient bounds, not substitutes for the list. national_prefix and example_number help explain national formatting. The endpoint requires a valid Store API token and follows the reference-data cache policy. Do not permanently hard-code country lengths; numbering plans can change.

json
{
  "data": {
    "phone_codes": [
      {
        "possible_lengths": [
          10
        ],
        "min_national_digits": 10,
        "max_national_digits": 10,
        "national_prefix": "0",
        "country_code": "IN",
        "country_name": "India",
        "dial_code": "+91",
        "dial_code_numeric": 91,
        "example_number": "81234 56789",
        "flag": "🇮🇳"
      },
      {
        "possible_lengths": [
          10
        ],
        "min_national_digits": 10,
        "max_national_digits": 10,
        "national_prefix": "1",
        "country_code": "US",
        "country_name": "United States",
        "dial_code": "+1",
        "dial_code_numeric": 1,
        "example_number": "(201) 555-0123",
        "flag": "🇺🇸"
      }
    ]
  },
  "success": true
}

Country-by-country contact lengths#

Significant digits exclude the international calling code and any removable national dialing prefix. The table lists every supported calling region. Local examples may include a dialing prefix or formatting characters, so their visible character count can be longer than the significant-digit length. Check complete number validity as well as length.

Country or region

Code

Calling code

Allowed significant digits

National prefix

National-format example

Afghanistan

AF

+93

9

0

70 123 4567

Albania

AL

+355

8, 9

0

67 212 3456

Algeria

DZ

+213

8, 9

0

551 23 45 67

American Samoa

AS

+1

10

1

(684) 733-1234

Andorra

AD

+376

6, 9

—

312 345

Angola

AO

+244

9

—

923 123 456

Anguilla

AI

+1

10

1

(264) 235-1234

Antigua & Barbuda

AG

+1

10

1

(268) 464-1234

Argentina

AR

+54

10, 11

0

91123456789

Armenia

AM

+374

8

0

77 123456

Aruba

AW

+297

7

—

560 1234

Ascension Island

AC

+247

5

—

40123

Australia

AU

+61

9

0

412 345 678

Austria

AT

+43

4, 5, 6, 7, 8, 9, 10, 11, 12, 13

0

664 123456

Azerbaijan

AZ

+994

9

0

40 123 45 67

Bahamas

BS

+1

10

1

(242) 359-1234

Bahrain

BH

+973

8

—

3600 1234

Bangladesh

BD

+880

6, 7, 8, 9, 10

0

1812-345678

Barbados

BB

+1

10

1

(246) 250-1234

Belarus

BY

+375

9

8

29 491-19-11

Belgium

BE

+32

8, 9

0

450 00 12 34

Belize

BZ

+501

7

—

622-1234

Benin

BJ

+229

10

—

01 95 12 34 56

Bermuda

BM

+1

10

1

(441) 370-1234

Bhutan

BT

+975

7, 8

—

17 12 34 56

Bolivia

BO

+591

8

0

71234567

Bosnia & Herzegovina

BA

+387

8, 9

0

61 123 456

Botswana

BW

+267

7, 8

—

71 123 456

Brazil

BR

+55

10, 11

0

(11) 96123-4567

British Indian Ocean Territory

IO

+246

7

—

380 1234

British Virgin Islands

VG

+1

10

1

(284) 300-1234

Brunei

BN

+673

7

—

712 3456

Bulgaria

BG

+359

6, 7, 8, 9

0

43 012 345

Burkina Faso

BF

+226

8

—

70 12 34 56

Burundi

BI

+257

8

—

79 56 12 34

Cambodia

KH

+855

8, 9

0

91 234 567

Cameroon

CM

+237

9

—

6 71 23 45 67

Canada

CA

+1

10

1

(506) 234-5678

Cape Verde

CV

+238

7

—

991 12 34

Caribbean Netherlands

BQ

+599

7

—

318 1234

Cayman Islands

KY

+1

10

1

(345) 323-1234

Central African Republic

CF

+236

8

—

70 01 23 45

Chad

TD

+235

8

—

63 01 23 45

Chile

CL

+56

9

—

(2) 2123 4567

China

CN

+86

7, 8, 9, 10, 11

0

131 2345 6789

Christmas Island

CX

+61

9

0

412 345 678

Cocos (Keeling) Islands

CC

+61

9

0

412 345 678

Colombia

CO

+57

8, 10

0

321 1234567

Comoros

KM

+269

7

—

321 23 45

Congo - Brazzaville

CG

+242

9

—

06 123 4567

Congo - Kinshasa

CD

+243

7, 8, 9, 10

0

991 234 567

Cook Islands

CK

+682

5

—

71 234

Costa Rica

CR

+506

8

—

8312 3456

Croatia

HR

+385

8, 9

0

92 123 4567

Cuba

CU

+53

6, 7, 8, 10

0

5 1234567

Curaçao

CW

+599

7, 8

—

9 518 1234

Cyprus

CY

+357

8

—

96 123456

Czechia

CZ

+420

9

—

601 123 456

Côte d’Ivoire

CI

+225

10

—

01 23 45 6789

Denmark

DK

+45

8

—

34 41 23 45

Djibouti

DJ

+253

8

—

77 83 10 01

Dominica

DM

+1

10

1

(767) 225-1234

Dominican Republic

DO

+1

10

1

(809) 234-5678

Ecuador

EC

+593

8, 9

0

99 123 4567

Egypt

EG

+20

8, 9, 10

0

10 01234567

El Salvador

SV

+503

8

—

7012 3456

Equatorial Guinea

GQ

+240

9

—

222 123 456

Eritrea

ER

+291

7

0

7 123 456

Estonia

EE

+372

7, 8

—

5123 4567

Ethiopia

ET

+251

9

0

91 123 4567

Falkland Islands

FK

+500

5

—

51234

Faroe Islands

FO

+298

6

—

211234

Fiji

FJ

+679

7

—

701 2345

Finland

FI

+358

5, 6, 7, 8, 9, 10

0

41 2345678

France

FR

+33

9

0

6 12 34 56 78

French Guiana

GF

+594

9

0

694 20 12 34

French Polynesia

PF

+689

8

—

87 12 34 56

Gabon

GA

+241

7, 8

—

06 03 12 34

Gambia

GM

+220

7

—

301 2345

Georgia

GE

+995

9

0

555 12 34 56

Germany

DE

+49

5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

0

1512 3456789

Ghana

GH

+233

9

0

23 123 4567

Gibraltar

GI

+350

8

—

57123456

Greece

GR

+30

10

—

691 234 5678

Greenland

GL

+299

6

—

22 12 34

Grenada

GD

+1

10

1

(473) 403-1234

Guadeloupe

GP

+590

9

0

690 00 12 34

Guam

GU

+1

10

1

(671) 300-1234

Guatemala

GT

+502

8

—

5123 4567

Guernsey

GG

+44

10

0

7781 123456

Guinea

GN

+224

8, 9

—

601 12 34 56

Guinea-Bissau

GW

+245

9

—

955 012 345

Guyana

GY

+592

7

—

609 1234

Haiti

HT

+509

8

—

34 10 1234

Honduras

HN

+504

8

—

9123-4567

Hong Kong SAR China

HK

+852

8

—

5123 4567

Hungary

HU

+36

8, 9

06

20 123 4567

Iceland

IS

+354

7, 9

—

611 1234

India

IN

+91

10

0

81234 56789

Indonesia

ID

+62

7, 8, 9, 10, 11, 12

0

812-345-678

Iran

IR

+98

6, 7, 10

0

912 345 6789

Iraq

IQ

+964

8, 9, 10

0

791 234 5678

Ireland

IE

+353

7, 8, 9, 10

0

85 012 3456

Isle of Man

IM

+44

10

0

7924 123456

Israel

IL

+972

8, 9, 11, 12

0

50-234-5678

Italy

IT

+39

6, 7, 8, 9, 10, 11, 12

—

312 345 6789

Jamaica

JM

+1

10

1

(876) 210-1234

Japan

JP

+81

9, 10

0

90-1234-5678

Jersey

JE

+44

10

0

7797 712345

Jordan

JO

+962

8, 9

0

7 9012 3456

Kazakhstan

KZ

+7

10

8

(771) 000 9998

Kenya

KE

+254

7, 8, 9

0

712 123456

Kiribati

KI

+686

5, 8

0

72001234

Kosovo

XK

+383

8, 9, 10, 11, 12

0

43 201 234

Kuwait

KW

+965

8

—

500 12345

Kyrgyzstan

KG

+996

9

0

700 123 456

Laos

LA

+856

8, 9, 10

0

20 23 123 456

Latvia

LV

+371

8

—

21 234 567

Lebanon

LB

+961

7, 8

0

71 123 456

Lesotho

LS

+266

8

—

5012 3456

Liberia

LR

+231

7, 8, 9

0

77 012 3456

Libya

LY

+218

9

0

91-2345678

Liechtenstein

LI

+423

7, 9

0

660 234 567

Lithuania

LT

+370

8

0

612 34567

Luxembourg

LU

+352

4, 5, 6, 7, 8, 9, 10, 11

—

628 123 456

Macau SAR China

MO

+853

8

—

6612 3456

Macedonia

MK

+389

8

0

72 345 678

Madagascar

MG

+261

9

0

32 12 345 67

Malawi

MW

+265

7, 9

0

991 23 45 67

Malaysia

MY

+60

8, 9, 10

0

12-345 6789

Maldives

MV

+960

7

—

771-2345

Mali

ML

+223

8

—

65 01 23 45

Malta

MT

+356

8

—

9696 1234

Marshall Islands

MH

+692

7

1

235-1234

Martinique

MQ

+596

9

0

696 20 12 34

Mauritania

MR

+222

8

—

22 12 34 56

Mauritius

MU

+230

7, 8

—

5251 2345

Mayotte

YT

+262

9

0

639 01 23 45

Mexico

MX

+52

10

—

222 123 4567

Micronesia

FM

+691

7

—

350 1234

Moldova

MD

+373

8

0

621 12 345

Monaco

MC

+377

8, 9

0

6 12 34 56 78

Mongolia

MN

+976

8, 9, 10

0

8812 3456

Montenegro

ME

+382

8

0

60 123 456

Montserrat

MS

+1

10

1

(664) 492-3456

Morocco

MA

+212

9

0

6 50 12 34 56

Mozambique

MZ

+258

8, 9

—

82 123 4567

Myanmar (Burma)

MM

+95

6, 7, 8, 9, 10

0

9 212 3456

Namibia

NA

+264

8, 9

0

81 123 4567

Nauru

NR

+674

7

—

555 1234

Nepal

NP

+977

8, 10

0

984-1234567

Netherlands

NL

+31

9, 11

0

6 12345678

New Caledonia

NC

+687

6

—

75.12.34

New Zealand

NZ

+64

8, 9, 10

0

21 123 4567

Nicaragua

NI

+505

8

—

8123 4567

Niger

NE

+227

8

—

93 12 34 56

Nigeria

NG

+234

10

0

802 123 4567

Niue

NU

+683

4, 7

—

888 4012

Norfolk Island

NF

+672

6

—

3 81234

North Korea

KP

+850

8, 10

0

192 123 4567

Northern Mariana Islands

MP

+1

10

1

(670) 234-5678

Norway

NO

+47

8

—

40 61 23 45

Oman

OM

+968

8

—

9212 3456

Pakistan

PK

+92

9, 10

0

301 2345678

Palau

PW

+680

7

—

620 1234

Palestinian Territories

PS

+970

8, 9

0

599 123 456

Panama

PA

+507

7, 8

—

6123-4567

Papua New Guinea

PG

+675

7, 8

—

7012 3456

Paraguay

PY

+595

7, 8, 9

0

961 456789

Peru

PE

+51

8, 9

0

912 345 678

Philippines

PH

+63

6, 8, 9, 10

0

905 123 4567

Poland

PL

+48

7, 9

—

512 345 678

Portugal

PT

+351

9

—

912 345 678

Puerto Rico

PR

+1

10

1

(787) 234-5678

Qatar

QA

+974

8

—

3312 3456

Romania

RO

+40

6, 9

0

712 034 567

Russia

RU

+7

10

8

(912) 345-67-89

Rwanda

RW

+250

8, 9

0

720 123 456

Réunion

RE

+262

9

0

692 12 34 56

Samoa

WS

+685

5, 6, 7, 10

—

72 12345

San Marino

SM

+378

8, 10

—

66 66 12 12

Saudi Arabia

SA

+966

9

0

51 234 5678

Senegal

SN

+221

9

—

70 123 45 67

Serbia

RS

+381

7, 8, 9, 10, 11, 12

0

60 1234567

Seychelles

SC

+248

7

—

2 510 123

Sierra Leone

SL

+232

8

0

25 123456

Singapore

SG

+65

8

—

8123 4567

Sint Maarten

SX

+1

10

1

(721) 520-5678

Slovakia

SK

+421

6, 7, 9

0

912 123 456

Slovenia

SI

+386

8

0

31 234 567

Solomon Islands

SB

+677

5, 7

—

74 21234

Somalia

SO

+252

6, 7, 8, 9

0

7 1123456

South Africa

ZA

+27

5, 6, 7, 8, 9

0

71 123 4567

South Korea

KR

+82

5, 6, 8, 9, 10

0

10-2000-0000

South Sudan

SS

+211

9

0

977 123 456

Spain

ES

+34

9

—

612 34 56 78

Sri Lanka

LK

+94

9

0

71 234 5678

St. Barthélemy

BL

+590

9

0

690 00 12 34

St. Helena

SH

+290

4, 5

—

51234

St. Kitts & Nevis

KN

+1

10

1

(869) 765-2917

St. Lucia

LC

+1

10

1

(758) 284-5678

St. Martin

MF

+590

9

0

690 00 12 34

St. Pierre & Miquelon

PM

+508

6, 9

0

55 12 34

St. Vincent & Grenadines

VC

+1

10

1

(784) 430-1234

Sudan

SD

+249

9

0

91 123 1234

Suriname

SR

+597

6, 7

—

741-2345

Svalbard & Jan Mayen

SJ

+47

8

—

41 23 45 67

Swaziland

SZ

+268

8

—

7612 3456

Sweden

SE

+46

7, 8, 9

0

70-123 45 67

Switzerland

CH

+41

9

0

78 123 45 67

Syria

SY

+963

8, 9

0

944 567 890

São Tomé & Príncipe

ST

+239

7

—

981 2345

Taiwan

TW

+886

8, 9

0

912 345 678

Tajikistan

TJ

+992

9

—

91 712 3456

Tanzania

TZ

+255

9

0

621 234 567

Thailand

TH

+66

8, 9

0

81 234 5678

Timor-Leste

TL

+670

7, 8

—

7721 2345

Togo

TG

+228

8

—

90 11 23 45

Tokelau

TK

+690

4, 5, 6, 7

—

7290

Tonga

TO

+676

5, 7

—

771 5123

Trinidad & Tobago

TT

+1

10

1

(868) 291-1234

Tristan da Cunha

TA

+290

4

—

8999

Tunisia

TN

+216

8

—

20 123 456

Turkey

TR

+90

10

0

501 234 56 78

Turkmenistan

TM

+993

8

8

66 123456

Turks & Caicos Islands

TC

+1

10

1

(649) 231-1234

Tuvalu

TV

+688

5, 6, 7

—

90 1234

U.S. Virgin Islands

VI

+1

10

1

(340) 642-1234

Uganda

UG

+256

9

0

712 345678

Ukraine

UA

+380

9

0

50 123 4567

United Arab Emirates

AE

+971

8, 9

0

50 123 4567

United Kingdom

GB

+44

9, 10

0

7400 123456

United States

US

+1

10

1

(201) 555-0123

Uruguay

UY

+598

8

0

94 231 234

Uzbekistan

UZ

+998

9

—

91 234 56 78

Vanuatu

VU

+678

5, 7

—

591 2345

Vatican City

VA

+39

6, 7, 8, 9, 10, 11

—

312 345 6789

Venezuela

VE

+58

10

0

412-1234567

Vietnam

VN

+84

9, 10

0

912 345 678

Wallis & Futuna

WF

+681

6

—

82 12 34

Western Sahara

EH

+212

9

0

6 50 12 34 56

Yemen

YE

+967

7, 8, 9

0

712 345 678

Zambia

ZM

+260

9

0

95 5123456

Zimbabwe

ZW

+263

5, 6, 7, 8, 9, 10

0

71 234 5678

Åland Islands

AX

+358

6, 7, 8, 9, 10

0

41 2345678