文档中心 > API类目 > 阿里妈妈-UniDesk

alibaba.taobao.ud.smart.order.collect.cart.detail.pull (UD效果外投收藏加购明细拉取)

UD效果外投收藏加购明细拉取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_top_cursor_query_dto OrderTopCursorQueryDTO 可选 查询入参
  • └ start_time
  • String
  • 可选
  • 2024-09-01 00:00:00.100
  • 必填,查询开始时间,日期格式:yyyy-MM-dd HH:mm:ss.SSS
  • └ end_time
  • String
  • 可选
  • 2024-09-01 00:00:05.200
  • 必填,查询结束时间(不可与开始日期跨天),日期格式:yyyy-MM-dd HH:mm:ss.SSS
  • └ cursor_id
  • String
  • 可选
  • einsqpfgsgx
  • 页码游标值:上一次请求返回的游标id;第一次请求时不传
  • └ prod_type
  • Number
  • 必须
  • 1
  • 1 udsmart. 2. 流量通

响应参数

名称 类型 示例值 描述
success Boolean true 是否成功
error_code String 1001 错误码
error_msg String 失败 错误信息
cursor_id String einsqpfgsgx 页码游标,下一次请求传入,实现增量查询
result OrderDetailCursorTopDTO [] 收藏加购明细数据
  • └ seller_id
  • Number
  • 123
  • 商家ID
  • └ seller_nick
  • String
  • xxxxx
  • 商家昵称
  • └ brand_id
  • Number
  • 123
  • 品牌ID
  • └ order_id
  • String
  • xxxxxx
  • 虚拟主订单id
  • └ sub_order_id
  • String
  • xxxxxx
  • 虚拟子订单id
  • └ item_id
  • Number
  • 123
  • 商品id(点击item)
  • └ shop_name
  • String
  • xxx
  • 店铺名称
  • └ conv_item_id
  • Number
  • 123
  • 商品id(转化item)
  • └ conv_item_name
  • String
  • xxx
  • 商品名称(转化item)
  • └ conv_type
  • Number
  • 1
  • 转化类型,1-收藏,2-加购
  • └ due_pay_fee
  • Number
  • 1000
  • 待支付金额(单位分)
  • └ channel_id
  • Number
  • 1
  • 渠道(媒体)id,1-巨量2.0
  • └ click_time
  • String
  • 2024-09-01 00:00:00
  • 广告点击时间
  • └ advertiser_id
  • Number
  • 1
  • 投放账户id
  • └ mid1
  • String
  • 123
  • 针对巨量2.0,图片素材宏参(下发原始素材id)
  • └ mid2
  • String
  • 123
  • 针对巨量2.0,标题素材宏参(下发原始素材id)
  • └ mid3
  • String
  • 123
  • 针对巨量2.0,视频素材宏参(下发原始素材id)
  • └ syn_click_id
  • String
  • xxx
  • 同步clickid
  • └ syn_request_id
  • String
  • xxx
  • 同步requestid
  • └ asyn_click_id
  • String
  • xxx
  • 异步clickid
  • └ asyn_request_id
  • String
  • xxx
  • 异步requestid
  • └ project_id
  • Number
  • 123
  • 针对巨量2.0,项目id
  • └ promotion_id
  • Number
  • 123
  • 针对巨量2.0,广告id
  • └ monitor_unique_id
  • String
  • xxx
  • 监测唯一id
  • └ campaign_id
  • Number
  • 123
  • 计划id
  • └ adgroup_id
  • Number
  • 123
  • 广告id
  • └ creative_id
  • Number
  • 123
  • 创意id
  • └ conv_time
  • String
  • xxx
  • 转化时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaobaoUdSmartOrderCollectCartDetailPullRequest req = new AlibabaTaobaoUdSmartOrderCollectCartDetailPullRequest();
AlibabaTaobaoUdSmartOrderCollectCartDetailPullRequest.OrderTopCursorQueryDTO obj1 = new AlibabaTaobaoUdSmartOrderCollectCartDetailPullRequest.OrderTopCursorQueryDTO();
obj1.setStartTime("2024-09-01 00:00:00.100");
obj1.setEndTime("2024-09-01 00:00:05.200");
obj1.setCursorId("einsqpfgsgx");
obj1.setProdType(1L);
req.setOrderTopCursorQueryDto(obj1);
AlibabaTaobaoUdSmartOrderCollectCartDetailPullResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_taobao_ud_smart_order_collect_cart_detail_pull_response>
    <success>true</success>
    <error_code>1001</error_code>
    <error_msg>失败</error_msg>
    <cursor_id>einsqpfgsgx</cursor_id>
    <result>
        <order_detail_cursor_top_d_t_o>
            <seller_id>123</seller_id>
            <seller_nick>xxxxx</seller_nick>
            <brand_id>123</brand_id>
            <order_id>xxxxxx</order_id>
            <sub_order_id>xxxxxx</sub_order_id>
            <item_id>123</item_id>
            <shop_name>xxx</shop_name>
            <conv_item_id>123</conv_item_id>
            <conv_item_name>xxx</conv_item_name>
            <conv_type>1</conv_type>
            <due_pay_fee>1000</due_pay_fee>
            <channel_id>1</channel_id>
            <click_time>2024-09-01 00:00:00</click_time>
            <advertiser_id>1</advertiser_id>
            <mid1>123</mid1>
            <mid2>123</mid2>
            <mid3>123</mid3>
            <syn_click_id>xxx</syn_click_id>
            <syn_request_id>xxx</syn_request_id>
            <asyn_click_id>xxx</asyn_click_id>
            <asyn_request_id>xxx</asyn_request_id>
            <project_id>123</project_id>
            <promotion_id>123</promotion_id>
            <monitor_unique_id>xxx</monitor_unique_id>
            <campaign_id>123</campaign_id>
            <adgroup_id>123</adgroup_id>
            <creative_id>123</creative_id>
            <conv_time>xxx</conv_time>
        </order_detail_cursor_top_d_t_o>
    </result>
</alibaba_taobao_ud_smart_order_collect_cart_detail_pull_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

返回
顶部