Danh sách quốc gia
Lấy ra danh sách các quốc gia
HTTP Request
[GET] /api/v6/configs/countries
Query Parameters
Fields
| Fields | Type | Description |
|---|---|---|
| id | integer | Định danh |
| country_code | integer | Mã quốc gia |
| country_name | string | Tên quốc gia |
| order | integer | Thứ tự ưu tiên |
| international_name | string | Tên quốc tế |
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| id | eq,in | integer | Định danh |
| valid | eq | integer | Hợp lệ hay không |
Limit & Offset
| Type | Description | |
|---|---|---|
| Limit | integer | Lấy bao nhiêu bản ghi |
| Offset | integer | Bỏ qua bao nhiêu bản ghi |
Example
HTTP Request
GET api/v6/configs/countries?fields=country_name&limit=1&offset=1 HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
Status
200 OK
Response
{
"data": [
{
"id": 2,
"country_name": "Việt Nam",
}
],
"has_more": true,
"offset": 1,
"limited": 1
}