India
| Property | Value |
|---|---|
| Code | IN |
| Currency | INR |
| Region | Asia, Southern Asia |
| Name order | Given name first |
| State | State/province, a list of 36 |
| Postcode | Required, checked, like 110001, and by state |
| Rules | GET /v1/countries/IN |
Form
The address form, in English. A field that is not required shows its optional label.
Fields
| Field | Label | Required | Autocomplete |
|---|---|---|---|
country | Country (list) | yes | country |
first_name | First name | yes | given-name |
last_name | Last name | yes | family-name |
line1 | Address | yes | address-line1 |
line2 | Apartment, suite, etc. | no | address-line2 |
city | City | yes | address-level2 |
state | State/province (list) | yes | address-level1 |
postcode | PIN code | yes | postal-code |
phone_number | Phone number | no | tel |
email | yes | email |
Postcode
| Rule | Value |
|---|---|
| Required | yes |
| Pattern | ^[0-9]{6}$ |
| Example | 110001 |
| Written as | as typed |
| Checked by state | 36 of 36, below |
POST /v1/validate refuses a postcode sent with a state it does not start like, as not_in_state. A state not listed is checked by pattern only. From libaddressinput.
| State | Starts with |
|---|---|
| Andaman and Nicobar Islands | 744 |
| Andhra Pradesh | 50[2-7|9]|5[1-3] |
| Arunāchal Pradesh | 79[0-2] |
| Assam | 78 |
| Bihār | 8[0-5] |
| Chandīgarh | 16|1440[3-9] |
| Chhattīsgarh | 49 |
| Delhi | 11 |
| Dādra and Nagar Haveli and Damān and Diu | 396|362 |
| Goa | 403 |
| Gujarāt | 3[6-9] |
| Haryāna | 1[23] |
| Himāchal Pradesh | 17 |
| Jammu and Kashmīr | 1[89] |
| Jhārkhand | 81[4-9]|82|83[0-5] |
| Karnātaka | 5[4-9]|53[7-9] |
| Kerala | 6[7-9]|6010|607008|777 |
| Ladākh | 194 |
| Lakshadweep | 682 |
| Madhya Pradesh | 4[5-8]|490 |
| Mahārāshtra | 4[0-4] |
| Manipur | 79[56] |
| Meghālaya | 79[34] |
| Mizoram | 796 |
| Nāgāland | 79[78] |
| Odisha | 7[5-7] |
| Puducherry | 60[579]|673310 |
| Punjab | 1[456] |
| Rājasthān | 3[0-4] |
| Sikkim | 737|750 |
| Tamil Nādu | 6[0-6]|536 |
| Telangāna | 50|53[1|4] |
| Tripura | 799 |
| Uttar Pradesh | 2[0-35-8]|24[0-7]|26[12] |
| Uttarākhand | 24[46-9]|254|26[23] |
| West Bengal | 7[0-4] |
Phone
| Rule | Value |
|---|---|
| Calling code | +91 |
| National prefix | 0 |
| Pattern | ^[0-9]{8,14}$ |
| Example | 081234 56789 |
| Written as | ###### ##### |
Address format
How an address is written for reading, on an order page, a receipt or a label: address.format in the rules.
CODE
{first_name} {last_name}
{line1}
{line2}
{city} {postcode}
{state}
{country}Example
A real address in India, from address.example, written with the format and the state by its name:
CODE
Rahul Sharma
Dak Bhawan, Sansad Marg
New Delhi 110001
Delhi
IndiaState/province
The form submits the code, which is what an order stores; the name is what the shopper reads, in their language.
| Code | Name |
|---|---|
Andaman and Nicobar Islands | Andaman and Nicobar Islands |
Andhra Pradesh | Andhra Pradesh |
Arunāchal Pradesh | Arunāchal Pradesh |
Assam | Assam |
Bihār | Bihār |
Chandīgarh | Chandīgarh |
Chhattīsgarh | Chhattīsgarh |
Delhi | Delhi |
Dādra and Nagar Haveli and Damān and Diu | Dādra and Nagar Haveli and Damān and Diu |
Goa | Goa |
Gujarāt | Gujarāt |
Haryāna | Haryāna |
Himāchal Pradesh | Himāchal Pradesh |
Jammu and Kashmīr | Jammu and Kashmīr |
Jhārkhand | Jhārkhand |
Karnātaka | Karnātaka |
Kerala | Kerala |
Ladākh | Ladākh |
Lakshadweep | Lakshadweep |
Madhya Pradesh | Madhya Pradesh |
Mahārāshtra | Mahārāshtra |
Manipur | Manipur |
Meghālaya | Meghālaya |
Mizoram | Mizoram |
Nāgāland | Nāgāland |
Odisha | Odisha |
Puducherry | Puducherry |
Punjab | Punjab |
Rājasthān | Rājasthān |
Sikkim | Sikkim |
Tamil Nādu | Tamil Nādu |
Telangāna | Telangāna |
Tripura | Tripura |
Uttar Pradesh | Uttar Pradesh |
Uttarākhand | Uttarākhand |
West Bengal | West Bengal |
Messages
What the form shows under a field when a value is refused, in English. Every language is on its page under Languages.
| Field | Error | Message |
|---|---|---|
country | not_selected | Select a country |
first_name | blank | Enter a first name |
first_name | invalid_characters | First name can only contain letters, spaces, hyphens and apostrophes |
first_name | contains_emoji | First name can't contain emojis |
first_name | too_long | First name must be 255 characters or fewer |
last_name | blank | Enter a last name |
last_name | invalid_characters | Last name can only contain letters, spaces, hyphens and apostrophes |
last_name | contains_emoji | Last name can't contain emojis |
last_name | too_long | Last name must be 255 characters or fewer |
line1 | blank | Enter an address |
line1 | contains_emoji | Address can't contain emojis |
line1 | too_long | Address must be 255 characters or fewer |
line2 | blank | Enter address line 2 |
line2 | contains_emoji | Address line 2 can't contain emojis |
line2 | too_long | Address line 2 must be 255 characters or fewer |
city | blank | Enter a city |
city | invalid | Enter a valid city |
city | contains_emoji | City can't contain emojis |
city | too_long | City must be 255 characters or fewer |
state | not_selected | Select a state or province |
state | invalid | Choose a state or province from the list |
state | contains_emoji | State or province can't contain emojis |
state | too_long | State or province must be 255 characters or fewer |
postcode | blank | Enter a PIN code |
postcode | invalid | Enter a valid PIN code, like 110001 |
postcode | contains_emoji | PIN code can't contain emojis |
postcode | too_long | PIN code must be 64 characters or fewer |
phone_number | blank | Enter a phone number |
phone_number | invalid | Enter a valid phone number, like 081234 56789 |
phone_number | contains_emoji | Phone number can't contain emojis |
phone_number | too_long | Phone number must be 24 characters or fewer |
email | blank | Enter an email address |
email | invalid | Enter a valid email, like name@example.com |
email | contains_emoji | Email can't contain emojis |
email | too_long | Email must be 254 characters or fewer |