Get Countries List
GET /reference/countries
GET
/reference/countries
Retrieve the list of all countries available for address forms. Used to populate the country dropdown when creating or updating guest/booking records.
Scope Required: properties:read
Query Parameters:
lang(optional): Language code for country names. Supported:vi(default),en
Use Cases:
- Populate country select dropdown in guest registration forms
- Validate country values before submitting booking data
- Display localized country names in the UI
Important Notes:
- Results are sorted alphabetically by name
- For Vietnamese guests, use code
VN— this triggers city/ward select dropdowns - For non-Vietnamese guests (code ≠ VN), city and ward fields should be free-text
- DB stores the city/ward name (not the code)
- Results are cached permanently (static data)
Authorizations
Phần tiêu đề “Authorizations ”Parameters
Phần tiêu đề “ Parameters ”Query Parameters
Phần tiêu đề “Query Parameters ” lang
string
Responses
Phần tiêu đề “ Responses ”object
success
required
boolean
data
required
Array<object>
object
code
required
string
name
required
string
Bài này có giúp được bạn không?
Cảm ơn bạn đã cho biết.
Chưa giúp được ở đâu?
Vui lòng không nhập tên, số điện thoại hay thông tin cá nhân của bạn hoặc của khách.
Cảm ơn bạn đã góp ý. CS dùng góp ý này để sửa bài.
Vẫn chưa xong việc?
Hỗ trợ trực tiếp 8:00–22:00 hằng ngày, kể cả cuối tuần.