Provinces

Provinces

API for Province List

API Configuration

HTTP Request

GET v1/loc/provinces

No.ParameterTypeRequireDescription

JSON body respone

NameTypeDescription
successbooleanReturn true if find out bill success, all other false means error. See message for further description.
messagestringReturn Message of API Respond.
dataobjectData of API response.

Request

https://apisandbox.ntlogistics.vn/v1/loc/provinces

Response

{
    "success": true,
    "data": [
        {
            "id": 29,
            "country_id": 84,
            "zone_id": 1,
            "province_name": "Hà Nội",
            "similarData": {
                "similarName": [
                    "ha-noi",
                    "tp.ha-noi",
                    "tp-ha-noi",
                    "tp.-ha-noi",
                    "tp.hn",
                    "ha-noi.",
                    "thanh-pho-ha-noi.",
                    "thanh-pho-ha-noi"
                ]
            },
            "created_at": ""
        },
        {
            "id": 50,
            "country_id": 84,
            "zone_id": 2,
            "province_name": "Hồ Chí Minh",
            "similarData": {
                "similarName": [
                    "ho-chi-minh",
                    "ho-chi-minh.",
                    "tp-hcm",
                    "thanh-pho-ho-chi-minh",
                    "tp.hcm",
                    "tp.ho-chi-minh",
                    "tp-ho-chi-minh",
                    "tp.-hcm",
                    "tphcm",
                    "hcm",
                    "tp.-ho-chi-minh",
                    "TP.-ho-chi-minh"
                ]
            },
            "created_at": ""
        },
        {
            "id": 43,
            "country_id": 84,
            "zone_id": 2,
            "province_name": "Đà Nẵng",
            "similarData": {
                "similarName": [
                    "thanh-pho-da-nang",
                    "da-nang",
                    "Da-nang",
                    "tp-Da-nang",
                    "tp-da-nang",
                    "tp.-da-nang"
                ]
            },
            "created_at": ""
        }
    ],
    "message": "Get data successfully"
}