API call address
{域名地址}/api/order/addresses
Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/order/addresses
Call method
GET
Request parameters
None
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | Error code |
| msg | string | Error description |
| data | object[] | result content |
Description of item field in data result
| Field name | Type | Description |
|---|---|---|
| id | int | Address ID |
| name | string | Recipient |
| last name | string | Recipient's surname |
| string | ||
| company | string | company name |
| phone | string | Contact phone number |
| Province | string | Province |
| City | string | City |
| Country | string | district |
| address information | string | detailed address |
| postal code | string | postcode |
example of data request
None
example of data return
{
"code": 0,
"data": {
"id": 1,
"created_time": 1669212548,
"updated_time": 1669212548,
"user_id": 1000,
"name": "王先生",
"phone": "13888888888",
"province": "河南省",
"city": "郑州市",
"country": "中原区",
"address_info": "中原西路233号",
"postcode": "450000",
"status": 1
},
"msg": null
}
error code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |
| 1001 | Not logged in |
| 1002 | Not authorized |
| 200 | API request OK |