Skip to main content

Reference API


Warehouse list

MethodGET
URL/order/list-shop

Response

{
"error": false,
"ref": null,
"message": "Thành công",
"data": [
{
"shop_id": 1,
"shop_name": "BELL VN",
"phone": null,
"address": "11460-11462 Pagemill Rd, Dallas, TX 75243",
"street": "11460-11462 Pagemill Rd",
"city": "Dallas",
"state_code": "TX",
"zip_code": "75243",
"national_id": 132
}
]
}

Field reference

No.Field NameData TypeDescription
1errorbooleanError flag (false = success)
2refStringRequest reference code (may be null)
3messageStringResult message
4dataArrayList of shops / warehouses
5data[].shop_idLongShop / warehouse ID
6data[].shop_nameStringShop / warehouse name
7data[].phoneStringContact phone number (may be null)
8data[].addressStringFull address
9data[].streetStringStreet name and number
10data[].cityStringCity
11data[].state_codeStringState / province code (e.g. TX)
12data[].zip_codeStringPostal code
13data[].national_idLongCountry ID (see the country list)

State / province list

MethodGET
URL/categories/list-state

Response

{
"error": false,
"ref": null,
"message": "Thành công",
"data": [
{
"state_name": "Alabama",
"state_code": "AL"
},
{
"state_name": "Arizona",
"state_code": "AZ"
}
]
}

Field reference

No.Field NameData TypeDescription
1errorbooleanError flag (false = success)
2refStringRequest reference code (may be null)
3messageStringResult message
4dataArrayList of states / provinces
5data[].state_nameStringFull state / province name
6data[].state_codeStringState / province code (ISO 3166-2)

Country list

MethodGET
URL/categories/list-national

Response

{
"error": false,
"ref": null,
"message": "Thành công",
"data": {
"totalCount": 267,
"data": [
{
"national_id": 1,
"national_code": "DB",
"national_name": "Đài Bắc",
"phone_code": null
},
{
"national_id": 2,
"national_code": "Z9",
"national_name": "Rest Of World",
"phone_code": null
},
{
"national_id": 3,
"national_code": "IR",
"national_name": "Iran (Islamic Rep.)",
"phone_code": "98"
},
{
"national_id": 4,
"national_code": "IQ",
"national_name": "Iraq",
"phone_code": "964"
},
{
"national_id": 5,
"national_code": "IE",
"national_name": "Ireland",
"phone_code": "353"
}
]
}
}

Field reference

No.Field NameData TypeDescription
1errorbooleanError flag (false = success)
2refStringRequest reference code (may be null)
3messageStringResult message
4dataObjectPaginated data object
5data.totalCountIntegerTotal number of records
6data.dataArrayList of countries
7data.data[].national_idLongCountry ID
8data.data[].national_codeStringCountry code (ISO-2 or internal code)
9data.data[].national_nameStringCountry name
10data.data[].phone_codeStringInternational dialing code (may be null)