Reference API
Warehouse list
| Method | GET |
|---|---|
| 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 Name | Data Type | Description |
|---|---|---|---|
| 1 | error | boolean | Error flag (false = success) |
| 2 | ref | String | Request reference code (may be null) |
| 3 | message | String | Result message |
| 4 | data | Array | List of shops / warehouses |
| 5 | data[].shop_id | Long | Shop / warehouse ID |
| 6 | data[].shop_name | String | Shop / warehouse name |
| 7 | data[].phone | String | Contact phone number (may be null) |
| 8 | data[].address | String | Full address |
| 9 | data[].street | String | Street name and number |
| 10 | data[].city | String | City |
| 11 | data[].state_code | String | State / province code (e.g. TX) |
| 12 | data[].zip_code | String | Postal code |
| 13 | data[].national_id | Long | Country ID (see the country list) |
State / province list
| Method | GET |
|---|---|
| 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 Name | Data Type | Description |
|---|---|---|---|
| 1 | error | boolean | Error flag (false = success) |
| 2 | ref | String | Request reference code (may be null) |
| 3 | message | String | Result message |
| 4 | data | Array | List of states / provinces |
| 5 | data[].state_name | String | Full state / province name |
| 6 | data[].state_code | String | State / province code (ISO 3166-2) |
Country list
| Method | GET |
|---|---|
| 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 Name | Data Type | Description |
|---|---|---|---|
| 1 | error | boolean | Error flag (false = success) |
| 2 | ref | String | Request reference code (may be null) |
| 3 | message | String | Result message |
| 4 | data | Object | Paginated data object |
| 5 | data.totalCount | Integer | Total number of records |
| 6 | data.data | Array | List of countries |
| 7 | data.data[].national_id | Long | Country ID |
| 8 | data.data[].national_code | String | Country code (ISO-2 or internal code) |
| 9 | data.data[].national_name | String | Country name |
| 10 | data.data[].phone_code | String | International dialing code (may be null) |