{"country":{"code":"TH","name":"Thailand"},"lang":"en","curated":true,"version":"iqinnk","currency":"THB","region":{"code":"142","name":"Asia","subregion":{"code":"035","name":"Southeast Asia"}},"address":{"layout":[["country"],["first_name","last_name"],["line1"],["line2"],["city","state","postcode"],["phone_number"]],"fixed":{},"format":[[{"field":"first_name"},{"text":" "},{"field":"last_name"}],[{"field":"line1"}],[{"field":"line2"}],[{"field":"city"}],[{"field":"state"},{"text":" "},{"field":"postcode"}],[{"field":"country"}]],"upper":["state"],"example":{"first_name":"สมชาย","last_name":"ใจดี","line1":"1160 ถนนเจริญกรุง แขวงบางรัก","city":"เขตบางรัก","state":"Krung Thep Maha Nakhon","postcode":"10500"},"example_latin":{"first_name":"Somchai","last_name":"Jaidee","line1":"1160 Charoen Krung Road, Bang Rak Subdistrict","city":"Bang Rak","state":"Krung Thep Maha Nakhon","postcode":"10500"}},"fields":{"country":{"label_id":"fields.country","label":"Country","label_optional":"Country (optional)","required":true,"autocomplete":"country","input":{"type":"select","options":"countries"},"errors":{"not_selected":"Select a country"}},"first_name":{"label_id":"fields.first_name","label":"First name","label_optional":"First name (optional)","required":true,"autocomplete":"given-name","input":{"type":"text","auto_capitalize":"words","max_length":255},"errors":{"blank":"Enter a first name","invalid_characters":"First name can only contain letters, spaces, hyphens and apostrophes","contains_emoji":"First name can't contain emojis","too_long":"First name must be 255 characters or fewer"}},"last_name":{"label_id":"fields.last_name","label":"Last name","label_optional":"Last name (optional)","required":true,"autocomplete":"family-name","input":{"type":"text","auto_capitalize":"words","max_length":255},"errors":{"blank":"Enter a last name","invalid_characters":"Last name can only contain letters, spaces, hyphens and apostrophes","contains_emoji":"Last name can't contain emojis","too_long":"Last name must be 255 characters or fewer"}},"line1":{"label_id":"fields.line1","label":"Address","label_optional":"Address (optional)","required":true,"autocomplete":"address-line1","input":{"type":"text","auto_capitalize":"words","max_length":255},"errors":{"blank":"Enter an address","contains_emoji":"Address can't contain emojis","too_long":"Address must be 255 characters or fewer"}},"line2":{"label_id":"fields.line2","label":"Apartment, suite, etc.","label_optional":"Apartment, suite, etc. (optional)","required":false,"autocomplete":"address-line2","input":{"type":"text","auto_capitalize":"words","max_length":255},"errors":{"blank":"Enter address line 2","contains_emoji":"Address line 2 can't contain emojis","too_long":"Address line 2 must be 255 characters or fewer"}},"city":{"label_id":"fields.city.district","label":"District","label_optional":"District (optional)","required":true,"autocomplete":"address-level2","input":{"type":"text","auto_capitalize":"words","max_length":255,"span":2},"errors":{"blank":"Enter a district","invalid":"Enter a valid district","contains_emoji":"District can't contain emojis","too_long":"District must be 255 characters or fewer"}},"state":{"label_id":"fields.state.province","label":"Province","label_optional":"Province (optional)","required":true,"autocomplete":"address-level1","input":{"type":"select","max_length":255,"options":"states","placeholder":"Choose…"},"errors":{"not_selected":"Select a province","invalid":"Choose a province from the list"}},"postcode":{"label_id":"fields.postcode.default","label":"Postal code","label_optional":"Postal code (optional)","required":true,"autocomplete":"postal-code","format":{"pattern":"^[0-9]{5}$","example":"10200"},"input":{"type":"text","auto_capitalize":"characters","max_length":64},"errors":{"blank":"Enter a postal code","invalid":"Enter a valid postal code, like 10200","contains_emoji":"Postal code can't contain emojis","too_long":"Postal code must be 64 characters or fewer"}},"phone_number":{"label_id":"fields.phone_number","label":"Phone number","label_optional":"Phone number (optional)","required":false,"autocomplete":"tel","format":{"calling_code":"66","national_prefix":"0","masks":[{"start":"02","mask":"## ### ####"},{"start":"0[3-57]","mask":"### ### ###"},{"start":"1","mask":"#### ### ###"},{"mask":"### ### ####"}],"pattern":"^[0-9]{8,14}$","example":"081 234 5678"},"input":{"type":"tel","input_mode":"tel","max_length":24},"errors":{"blank":"Enter a phone number","invalid":"Enter a valid phone number, like 081 234 5678","contains_emoji":"Phone number can't contain emojis","too_long":"Phone number must be 24 characters or fewer"}},"email":{"label_id":"fields.email","label":"Email","label_optional":"Email (optional)","required":true,"autocomplete":"email","input":{"type":"email","input_mode":"email","auto_capitalize":"none","max_length":254},"errors":{"blank":"Enter an email address","invalid":"Enter a valid email, like name@example.com","contains_emoji":"Email can't contain emojis","too_long":"Email must be 254 characters or fewer"}}}}