Skip to main content

Danh sách phường / xã

Lấy ra danh sách các phường / xã

HTTP Request

[GET] /api/v6.1/config/wards

Query Parameters

Fields

FieldsTypeDescription
idintegerĐịnh danh
ward_namestringTên phường xã

Filtering

FieldsSupportTypeDescription
ideq,inintegerĐịnh danh
valideqintegerHợp lệ hay không
district_ideq,inintegerĐịnh danh quận huyện

Limit & Offset

TypeDescription
LimitintegerLấy bao nhiêu bản ghi
OffsetintegerBỏ qua bao nhiêu bản ghi

Example

HTTP Request

GET api/v6.1/config/wards?fields=ward_name&limit=1&filtering[district_id]=2 HTTP/1.1
Host: example.getflycrm.com

Status

200 OK

Response

{
"data": [
{
"id": 1,
"ward_name": "Phường Phúc Xá"
}
],
"has_more": true,
"offset": 0,
"limited": 1
}