API ReferenceLocations
Districts
Get the list of districts by province or city.
GET
/v3/loc/districtsReturn the districts that belong to a given `province_id`.
Auth: Bearer access token
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
province_id | number | Yes | Province/city ID. |
curl --request GET \
--url "https://apisandbox.ntlogistics.vn/v3/loc/districts?province_id=99" \
--header "Authorization: Bearer <access_token>"Response
{
"success": true,
"data": [
{
"id": "1101",
"district_name": "TP.Cao Bang",
"is_new": "N"
}
]
}