文档中心 > API类目 > 天猫优品

tmall.uitem.opendata.add (天猫优品数据回流)

天猫优品数据回流

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source String 必须 webchat
  • 默认值:webchat
  • 数据来源,例如:微信webchat,抖音tiktok
    store_id Number 可选 123 门店id
    outer_id String 必须 111 外部数据id,幂等
    type String 必须 orderToStore 数据分类,例如访问数据:pv,预约到店:orderToStore
    description String 可选 描述 描述
    ds String 必须 20220125 业务数据日期,格式:20220125
    json_data String 必须 {"phone":13899999999} json格式数据

    响应参数

    名称 类型 示例值 描述
    result_model ResultModel {} 返回结果
    • └ result
    • Number
    • 1
    • 数据id
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ message
    • String
    • 系统异常
    • 异常信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallUitemOpendataAddRequest req = new TmallUitemOpendataAddRequest();
    req.setSource("webchat");
    req.setStoreId(123L);
    req.setOuterId("111");
    req.setType("orderToStore");
    req.setDescription("描述");
    req.setDs("20220125");
    req.setJsonData("{\"phone\":13899999999}");
    TmallUitemOpendataAddResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_uitem_opendata_add_response>
        <result_model>
            <result>1</result>
            <success>true</success>
            <message>系统异常</message>
        </result_model>
    </tmall_uitem_opendata_add_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部