This interface can be called without
API Call Address
{域名地址}/api/order/address
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/order/address
Calling method
POST
Request parameters
Field name | Type | Required | Description |
---|---|---|---|
id | int | No | Address ID |
name | string | Yes | Recipient |
phone | string | Yes | Contact phone number |
province | string | Yes | province |
city | string | Yes | city |
country | string | Yes | district |
address_info | string | Yes | detailed_address |
postcode | string | Yes | postal code |
Return parameters
Field name | Type | Description |
---|---|---|
code | int | error code |
msg | string | error reason description |
data | object | result content |
data Result
|Field Name|Type|Description| |id|int|Address ID| |name|string|Recipient| |phone|string|Contact Phone| |province|string|Province| |city|string|City| |country|string|District/County| |address_info|string|Detailed Address| |postcode|string|Postal Code|
request data example
None
Return Data Example
{
"code": 0,
"data": {
"id": 1,
"created_time": 0,
"updated_time": 0,
"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 the msg |
1001 | Not logged in |
1002 | Unauthorized |
200 | API request OK |