Indonesia

PropertyValue
CodeID
CurrencyIDR
RegionAsia, Southeast Asia
Name orderGiven name first
StateProvince, a list of 45
PostcodeRequired, checked, like 40115
RulesGET /v1/countries/ID

Form

The address form, in English. A field that is not required shows its optional label.

CountryIndonesia First name Last name Address Apartment, suite, etc. (optional) City ProvinceChoose… Postal code40115 Phone number (optional)0812-345-678

Fields

FieldLabelRequiredAutocomplete
countryCountry (list)yescountry
first_nameFirst nameyesgiven-name
last_nameLast nameyesfamily-name
line1Addressyesaddress-line1
line2Apartment, suite, etc.noaddress-line2
cityCityyesaddress-level2
stateProvince (list)yesaddress-level1
postcodePostal codeyespostal-code
phone_numberPhone numbernotel
emailEmailyesemail

Postcode

RuleValue
Requiredyes
Pattern^[0-9]{5}$
Example40115
Written asas typed
Checked by stateno

Phone

RuleValue
Calling code+62
National prefix0
Pattern^[0-9]{7,18}$
Example0812-345-678
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}
{state} {postcode}
{country}

Example

A real address in Indonesia, from address.example, written with the format and the state by its name:

CODE
Budi Santoso
Jl. Medan Merdeka Barat No. 12
Gambir
Jakarta Pusat
Jakarta Raya 10110
Indonesia

Province

The form submits the code, which is what an order stores; the name is what the shopper reads, in their language.

CodeName
AcehAceh
BaliBali
BantenBanten
BengkuluBengkulu
GorontaloGorontalo
Jakarta RayaJakarta Raya
JambiJambi
JawaJawa
Jawa BaratJawa Barat
Jawa TengahJawa Tengah
Jawa TimurJawa Timur
KalimantanKalimantan
Kalimantan BaratKalimantan Barat
Kalimantan SelatanKalimantan Selatan
Kalimantan TengahKalimantan Tengah
Kalimantan TimurKalimantan Timur
Kalimantan UtaraKalimantan Utara
Kepulauan Bangka BelitungKepulauan Bangka Belitung
Kepulauan RiauKepulauan Riau
LampungLampung
MalukuMaluku
MalukuMaluku
Maluku UtaraMaluku Utara
Nusa TenggaraNusa Tenggara
Nusa Tenggara BaratNusa Tenggara Barat
Nusa Tenggara TimurNusa Tenggara Timur
PapuaPapua
PapuaPapua
Papua BaratPapua Barat
Papua Barat DayaPapua Barat Daya
Papua PengununganPapua Pengunungan
Papua SelatanPapua Selatan
Papua TengahPapua Tengah
RiauRiau
SulawesiSulawesi
Sulawesi BaratSulawesi Barat
Sulawesi SelatanSulawesi Selatan
Sulawesi TengahSulawesi Tengah
Sulawesi TenggaraSulawesi Tenggara
Sulawesi UtaraSulawesi Utara
SumateraSumatera
Sumatera BaratSumatera Barat
Sumatera SelatanSumatera Selatan
Sumatera UtaraSumatera Utara
YogyakartaYogyakarta

Messages

What the form shows under a field when a value is refused, in English. Every language is on its page under Languages.

FieldErrorMessage
countrynot_selectedSelect a country
first_nameblankEnter a first name
first_nameinvalid_charactersFirst name can only contain letters, spaces, hyphens and apostrophes
first_namecontains_emojiFirst name can't contain emojis
first_nametoo_longFirst name must be 255 characters or fewer
last_nameblankEnter a last name
last_nameinvalid_charactersLast name can only contain letters, spaces, hyphens and apostrophes
last_namecontains_emojiLast name can't contain emojis
last_nametoo_longLast name must be 255 characters or fewer
line1blankEnter an address
line1contains_emojiAddress can't contain emojis
line1too_longAddress must be 255 characters or fewer
line2blankEnter address line 2
line2contains_emojiAddress line 2 can't contain emojis
line2too_longAddress line 2 must be 255 characters or fewer
cityblankEnter a city
cityinvalidEnter a valid city
citycontains_emojiCity can't contain emojis
citytoo_longCity must be 255 characters or fewer
statenot_selectedSelect a province
stateinvalidChoose a province from the list
postcodeblankEnter a postal code
postcodeinvalidEnter a valid postal code, like 40115
postcodecontains_emojiPostal code can't contain emojis
postcodetoo_longPostal code must be 64 characters or fewer
phone_numberblankEnter a phone number
phone_numberinvalidEnter a valid phone number, like 0812-345-678
phone_numbercontains_emojiPhone number can't contain emojis
phone_numbertoo_longPhone number must be 24 characters or fewer
emailblankEnter an email address
emailinvalidEnter a valid email, like name@example.com
emailcontains_emojiEmail can't contain emojis
emailtoo_longEmail must be 254 characters or fewer