# 添加商家地址

# 接口调用请求说明

http请求方式:POST
https://api.weixin.qq.com/product/address/add?access_token=xxxxxxxxx

# 请求参数示例

{
    "address_detail":{
        "address_info":{
            "user_name":"xasdss",
            "postal_code":"510983",
            "province_name":"广东省",
            "city_name":"广州市",
            "county_name":"天河区",
            "detail_info":"广州市天河区人民政府",
            "tel_number":"18829736648",
            "lat":23.12463,
            "lng":113.36199,
            "house_number":"12"
        },
        "landline":"",
        "remark":"",
        "send_addr":0,
        "default_send":1,
        "recv_addr":0,
        "default_recv":1,
        "address_type":{
            "same_city":0,
            "pickup":0
        }
    }
}

# 回包示例

{
    "errcode" : 0,
    "errcode" : ""
}

# 请求参数说明

参数 类型 是否必填 说明
address_detail.landline string 座机
address_detail.remark string 备注
address_detail.send_addr number 是否为发货地址(1是0否)
address_detail.default_send number 是否为默认发货地址(1是0否)
address_detail.recv_addr number 是否为收货地址(1是0否)
address_detail.default_recv number 是否为默认收货地址(1是0否)
address_detail.address_type.same_city number 是否为同城配送地址(1是0否)
address_detail.address_type.pickup number 是否为线下自提地址(1是0否)
address_detail.address_info.user_name string 联系人姓名
address_detail.address_info.postal_code string 邮编
address_detail.address_info.province_name string 国标收货地址第一级地址
address_detail.address_info.city_name string 国标收货地址第二级地址
address_detail.address_info.county_name string 国标收货地址第三级地址
address_detail.address_info.detail_info string 详细地址
address_detail.address_info.national_code string 收货地址国家码
address_detail.address_info.tel_number string 收货人手机号码
address_detail.address_info.lat double 经度
address_detail.address_info.lng double 纬度
address_detail.address_info.house_number string 门牌号

# 回包参数说明

参数 类型 说明
errcode string 错误码
errmsg string 错误信息

# 返回码

返回码 错误类型
-1 系统异常
-2 token太长