淘宝/天猫添加收货地址 API 返回值说明

204 阅读1分钟

buyer_address_add-点击开通测试接口链接

taobao.buyer_address_add

公共参数

请求地址: api-gw.onebound.cn/taobao/buye…

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本
请求参数

请求参数:&contact_name=姓名&province=浙江省&city=杭州市&country=西湖区&town=北山街道&addr=华星路xx号 &zip_code=000000&phoneAreaCode=0790&phone=6711050&mobile_phone=13688889999&is_def=1&auto_clear=0 &token=d42b62b7db6056172687a69c5cb25653

参数说明:token是由小饼干工具返回的token

响应参数

Version: Date:

名称类型必须示例值描述
successString0true成功状态bool值
messageString0操作成功返回文字
codeString00返回代码
returnValueString0{"deliverId":13619520870}返回数据
`响应示例
{
        data: {
            code: "0",
            message: "操作成功",
            returnValue: "{"deliverId":13633678015}",
            success: "true"
        },
        from: "taobao",
        error: "",
        reason: "",
        error_code: "0000",
        cache: 0,
        api_info: "today:41 max:10000",
        execution_time: 0.89,
        server_time: "Beijing/2021-03-17 10:01:18",
        client_ip: "127.0.0.1",
        call_args: {
            contact_name: "姓名",
            province: "浙江省",
            city: "杭州市",
            country: "渝水区",
            town: "北山街道",
            addr: "华星路xx号",
            zip_code: "000000",
            phone: "6711049",
            mobile_phone: "13688889999",
            is_def: "1",
            auto_clear: "0"
        },
        api_type: "taobao",
        translate_language: "zh-CN",
        translate_engine: "google_cn",
        server_memory: "5.52MB",
        request_id: "0.605162ed8df15"
    }