Lấy danh sách thành phố, quận huyện
Last updated
Was this helpful?
Last updated
Was this helpful?
/api/shipping/location: Lấy danh sách thành phố, quận huyện từ Nhanh.vn.
Các API , sẽ cần sử dụng đến các dữ liệu này.
See
The search param - (Data array)
type
string
No
CITY/DISTRICT/WARD (mặc định là CITY)
parentId
int
No
Nếu type = DISTRICT thì parentId = id của thành phố cần lấy ra danh sách quận huyện. Nếu type = WARD thì parentId = id của quận huyện cần lấy ra.
JSON decode the response to get the structure:
code
int
1 = success or 0 = failed
messages
[ ]
is an array of error messages if code = 0
data
[ ]
Mảng danh sách thành phố hoặc quận huyện
Nếu type = CITY
Nếu type = DISTRICT
Nếu type = WARD