Provinces
API for District List
API Configuration
HTTP Request
GET v1/loc/districts
No. | Parameter | Type | Require | Description |
---|---|---|---|---|
1 | province_id | int | Province ID |
JSON body respone
Name | Type | Description |
---|---|---|
success | boolean | Return true if find out bill success, all other false means error. See message for further description. |
message | string | Return Message of API Respond. |
data | object | Data of API response. |
Request
https://apisandbox.ntlogistics.vn/v1/loc/districts?province_id=99
Response
{
"success": true,
"data": [
{
"id": 9901,
"province_id": 99,
"similarData": {
"similarName": [
"thanh-pho-bac-ninh",
"tp-bac-ninh",
"tp.bac-ninh"
]
},
"district_name": "Thành phố Bắc Ninh"
},
{
"id": 9902,
"province_id": 99,
"similarData": {
"similarName": [
"thi-xa-tu-son",
"tx-tu-son",
"tx.tu-son"
]
},
"district_name": "Thị xã Từ Sơn"
},
{
"id": 9903,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-yen-phong",
"h-yen-phong",
"h.yen-phong",
"yen-phong",
"h-yen-phong"
]
},
"district_name": "Huyện Yên Phong"
},
{
"id": 9904,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-que-vo",
"h-que-vo",
"h.que-vo",
"que-vo",
"h-que-vo"
]
},
"district_name": "Huyện Quế Võ"
},
{
"id": 9905,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-tien-du",
"h-tien-du",
"h.tien-du",
"tien-du",
"h-tien-du"
]
},
"district_name": "Huyện Tiên Du"
},
{
"id": 9906,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-thuan-thanh",
"h-thuan-thanh",
"h.thuan-thanh",
"thuan-thanh",
"h-thuan-thanh"
]
},
"district_name": "Huyện Thuận Thành"
},
{
"id": 9907,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-gia-binh",
"h-gia-binh",
"h.gia-binh",
"gia-binh",
"h-gia-binh"
]
},
"district_name": "Huyện Gia Bình"
},
{
"id": 9908,
"province_id": 99,
"similarData": {
"similarName": [
"huyen-luong-tai",
"h-luong-tai",
"h.luong-tai",
"luong-tai",
"h-luong-tai"
]
},
"district_name": "Huyện Lương Tài"
}
],
"message": "Get data successfully"
}