Save user delivery address interface

This interface may not require call

API call address

{域名地址}/api/order/address

illustrate:{域名地址}You need to replace it with your domain address, such as/api/order/address

Calling methods

POST

Request parameters

Field name type Required illustrate
id int no Address ID
name string yes recipient
Phone string yes Contact number
province string yes province
city string yes City
country string yes District and County
address_info string yes Detailed address
postcode string yes post code

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data object Results content

data results

|Field Name |Type |Description |
|id|int|address ID|
|name|string|Recipient|
|phone|string|Contact number|
|province|string|Province|
|city|string|city|
|country|string|districts|
|address_info|string|Detailed Address|
|postcode|string|zip code|

Request data example

none

Return to the 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 illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK