Danh sách tỉnh / TP
Lấy ra danh sách các tỉnh / TP
HTTP Request
[POST] /api/v6/configs/provinces
Query Parameters
Fields
| Fields | Type | Description |
|---|---|---|
| id | integer | Định danh |
| province_name | string | Tên tỉnh thành |
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| id | eq,in | integer | Định danh |
| valid | eq | integer | Hợp lệ hay không |
| country_id | eq,in | integer | Định danh quốc gia |
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/provinces?fields=province_name&limit=1&offset=1&filtering[country_id]=2 HTTP/1.1
Host: example.getflycrm.com
Authorization: Bearer token
Status
200 OK
Response
{
"data": [
{
"id": 2,
"province_name": "Hà Nội",
}
],
"has_more": true,
"offset": 1,
"limited": 1
}