Philippines
| Property | Value |
|---|---|
| Code | PH |
| Currency | PHP |
| Region | Asia, Southeast Asia |
| Name order | Given name first |
| State | Region, a list of 99 |
| Postcode | Required, checked, like 1008, and by state |
| Rules | GET /v1/countries/PH |
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 |
postcode | Postal code | yes | postal-code |
city | City | yes | address-level2 |
state | Region (list) | yes | address-level1 |
phone_number | Phone number | no | tel |
email | yes | email |
Postcode
| Rule | Value |
|---|---|
| Required | yes |
| Pattern | ^[0-9]{4}$ |
| Example | 1008 |
| Written as | as typed |
| Checked by state | 80 of 99, 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 |
|---|---|
| Abra | 28[0-2] |
| Agusan del Norte | 86[01] |
| Agusan del Sur | 85[01] |
| Aklan | 56[01] |
| Albay | 45[01] |
| Antique | 57[01] |
| Apayao | 380[0-68] |
| Aurora | 320 |
| Basilan | 730 |
| Bataan | 21[01] |
| Batanes | 390 |
| Batangas | 42[0-3] |
| Benguet | 26(0|1[0-5]) |
| Biliran | 65(4[3-9]|5) |
| Bohol | 63[0-3] |
| Bukidnon | 87[0-2] |
| Bulacan | 30[0-2] |
| Cagayan | 35[0-2] |
| Camarines Norte | 46[01] |
| Camarines Sur | 44[0-3] |
| Camiguin | 910 |
| Capiz | 58[01] |
| Catanduanes | 48[01] |
| Cavite | 41[0-2] |
| Cebu | 60[0-5] |
| Cotabato | 94[01] |
| Davao Occidental | 801[1-5] |
| Davao Oriental | 82[01] |
| Davao de Oro | 88[01] |
| Davao del Norte | 81[0-2] |
| Davao del Sur | 80[01] |
| Dinagat Islands | 84[12] |
| Eastern Samar | 68[0-2] |
| Guimaras | 504[4-6] |
| Ifugao | 36[01] |
| Ilocos Norte | 29[0-2] |
| Ilocos Sur | 27[0-3] |
| Iloilo | 50([0-3]|4[0-3]) |
| Isabela | 33[0-3] |
| Kalinga | 38(0[79]|1[0-4]) |
| La Union | 25[0-2] |
| Laguna | 40[0-3] |
| Lanao del Norte | 92[0-2] |
| Lanao del Sur | 9(3[0-2]|7[01]) |
| Leyte | 65([0-3]|4[0-2]) |
| Marinduque | 490 |
| Masbate | 54[0-2] |
| Mindoro Occidental | 51[01] |
| Mindoro Oriental | 52[01] |
| Misamis Occidental | 72[01] |
| Misamis Oriental | 90[0-2] |
| Mountain Province | 26(1[6-9]|2[0-5]) |
| Negros Occidental | 61[0-3] |
| Negros Oriental | 62[0-2] |
| Northern Samar | 64[0-2] |
| Nueva Ecija | 31[0-3] |
| Nueva Vizcaya | 37[01] |
| Palawan | 53[0-2] |
| Pampanga | 20[0-2] |
| Pangasinan | 24[0-4] |
| Quezon | 43[0-4] |
| Quirino | 340 |
| Rizal | 1[89] |
| Romblon | 55[01] |
| Samar | 67[0-2] |
| Sarangani | 95[01] |
| Siquijor | 62(2[5-9]|30) |
| Sorsogon | 47[01] |
| South Cotabato | 95[01] |
| Southern Leyte | 66[10] |
| Sultan Kudarat | 98[01] |
| Sulu | 74[01] |
| Surigao del Norte | 84[0-2] |
| Surigao del Sur | 83[01] |
| Tarlac | 23[01] |
| Tawi-Tawi | 750 |
| Zambales | 22[01] |
| Zamboanga Sibugay | 70[0-4] |
| Zamboanga del Norte | 71[0-2] |
| Zamboanga del Sur | 70[0-4] |
Phone
| Rule | Value |
|---|---|
| Calling code | +63 |
| National prefix | 0 |
| Pattern | ^[0-9]{6,14}$ |
| Example | 0905 123 4567 |
| 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 Philippines, from address.example, written with the format and the state by its name:
CODE
Juan dela Cruz
Magallanes Drive, Liwasang Bonifacio
Ermita
Manila
1000 National Capital Region
PhilippinesRegion
The form submits the code, which is what an order stores; the name is what the shopper reads, in their language.
| Code | Name |
|---|---|
Abra | Abra |
Agusan del Norte | Agusan del Norte |
Agusan del Sur | Agusan del Sur |
Aklan | Aklan |
Albay | Albay |
Antique | Antique |
Apayao | Apayao |
Aurora | Aurora |
Autonomous Region in Muslim Mindanao (ARMM) | Autonomous Region in Muslim Mindanao (ARMM) |
Basilan | Basilan |
Bataan | Bataan |
Batanes | Batanes |
Batangas | Batangas |
Benguet | Benguet |
Bicol (Region V) | Bicol (Region V) |
Biliran | Biliran |
Bohol | Bohol |
Bukidnon | Bukidnon |
Bulacan | Bulacan |
Cagayan | Cagayan |
Cagayan Valley (Region II) | Cagayan Valley (Region II) |
Calabarzon (Region IV-A) | Calabarzon (Region IV-A) |
Camarines Norte | Camarines Norte |
Camarines Sur | Camarines Sur |
Camiguin | Camiguin |
Capiz | Capiz |
Caraga (Region XIII) | Caraga (Region XIII) |
Catanduanes | Catanduanes |
Cavite | Cavite |
Cebu | Cebu |
Central Luzon (Region III) | Central Luzon (Region III) |
Central Visayas (Region VII) | Central Visayas (Region VII) |
Cordillera Administrative Region (CAR) | Cordillera Administrative Region (CAR) |
Cotabato | Cotabato |
Davao (Region XI) | Davao (Region XI) |
Davao Occidental | Davao Occidental |
Davao Oriental | Davao Oriental |
Davao de Oro | Davao de Oro |
Davao del Norte | Davao del Norte |
Davao del Sur | Davao del Sur |
Dinagat Islands | Dinagat Islands |
Eastern Samar | Eastern Samar |
Eastern Visayas (Region VIII) | Eastern Visayas (Region VIII) |
Guimaras | Guimaras |
Ifugao | Ifugao |
Ilocos (Region I) | Ilocos (Region I) |
Ilocos Norte | Ilocos Norte |
Ilocos Sur | Ilocos Sur |
Iloilo | Iloilo |
Isabela | Isabela |
Kalinga | Kalinga |
La Union | La Union |
Laguna | Laguna |
Lanao del Norte | Lanao del Norte |
Lanao del Sur | Lanao del Sur |
Leyte | Leyte |
Maguindanao del Norte | Maguindanao del Norte |
Maguindanao del Sur | Maguindanao del Sur |
Marinduque | Marinduque |
Masbate | Masbate |
Mimaropa (Region IV-B) | Mimaropa (Region IV-B) |
Mindoro Occidental | Mindoro Occidental |
Mindoro Oriental | Mindoro Oriental |
Misamis Occidental | Misamis Occidental |
Misamis Oriental | Misamis Oriental |
Mountain Province | Mountain Province |
National Capital Region | National Capital Region |
Negros Occidental | Negros Occidental |
Negros Oriental | Negros Oriental |
Northern Mindanao (Region X) | Northern Mindanao (Region X) |
Northern Samar | Northern Samar |
Nueva Ecija | Nueva Ecija |
Nueva Vizcaya | Nueva Vizcaya |
Palawan | Palawan |
Pampanga | Pampanga |
Pangasinan | Pangasinan |
Quezon | Quezon |
Quirino | Quirino |
Rizal | Rizal |
Romblon | Romblon |
Samar | Samar |
Sarangani | Sarangani |
Siquijor | Siquijor |
Soccsksargen (Region XII) | Soccsksargen (Region XII) |
Sorsogon | Sorsogon |
South Cotabato | South Cotabato |
Southern Leyte | Southern Leyte |
Sultan Kudarat | Sultan Kudarat |
Sulu | Sulu |
Surigao del Norte | Surigao del Norte |
Surigao del Sur | Surigao del Sur |
Tarlac | Tarlac |
Tawi-Tawi | Tawi-Tawi |
Western Visayas (Region VI) | Western Visayas (Region VI) |
Zambales | Zambales |
Zamboanga Peninsula (Region IX) | Zamboanga Peninsula (Region IX) |
Zamboanga Sibugay | Zamboanga Sibugay |
Zamboanga del Norte | Zamboanga del Norte |
Zamboanga del Sur | Zamboanga del Sur |
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 |
postcode | blank | Enter a postal code |
postcode | invalid | Enter a valid postal code, like 1008 |
postcode | contains_emoji | Postal code can't contain emojis |
postcode | too_long | Postal code must be 64 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 region |
state | invalid | Choose a region from the list |
state | contains_emoji | Region can't contain emojis |
state | too_long | Region must be 255 characters or fewer |
phone_number | blank | Enter a phone number |
phone_number | invalid | Enter a valid phone number, like 0905 123 4567 |
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 |