Loading…

Add shipping address

```javascript WXAPI.addAddress({ token: '000' }) ``` + token current user login credentials + provinceId province code + cityId city code + districtId the district and county code to which it belongs + streetId belongs to the street code + linkMan Contact + address detailed address + xiaoqu community name + menpai house number + mobile mobile phone number + code zip code + status status: 0 is normal 1 is disabled + isDefault is set as the default delivery address, true means setting; false or does not pass this parameter, means not set + idcard ID number, used for international shipments + latitude coordinate latitude + longitude coordinate longitude + extJsonStr extended attribute information, string in JSON format + outId The address ID of the external system To read the data of provinces, cities, counties and administrative regions, please refer to ["Get all provinces"](https://www.yuque.com/apifm/nu0f75/anab2a), ["Get the next-level geographical information"](https://www.yuque.com/apifm/nu0f75/kfukig)```json { "code": 0, "data": { "address": "No. 397, Xingang Middle Road", "areaStr": "Haizhu District", "cityId": "440100000000", "cityStr": "Guangzhou City", "districtId": "440105000000", "id": 326095, "isDefault": true, "linkMan": "Zhang San", "mobile": "020-81167888", "provinceId": "440000000000", "provinceStr": "Guangdong Province" }, "msg": "success" } ``` + id Shipping address record id + provinceId, provinceStr province code and province name + cityId, cityStr city code and city name + districtId, areaStr district and county code and district and county name + address Detailed delivery address + linkMan consignee name + mobile mobile phone number + isDefault true is the default delivery address, false is the non-default delivery address (there will only be one default delivery address) + xiaoqu community + menpai house number + idcard ID number + code zip code + latitude, longitude latitude and longitude + outId external number