文档中心 > API类目 > 淘宝客API

taobao.tbk.dg.punish.order.get (淘宝客-推广者-处罚订单查询)

新增处罚订单查询API,提供媒体调用查询能力。这个是给媒体自己用的

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
af_order_option TopApiAfOrderOption 可选 入参的对象
  • └ relation_id
  • Number
  • 可选
  • 2222
  • 渠道关系id
  • └ tb_trade_id
  • Number
  • 可选
  • 258897956183171983
  • 子订单号
  • └ tb_trade_parent_id
  • Number
  • 可选
  • 258897956183171983
  • 此参数不再使用,请勿入参
  • └ page_size
  • Number
  • 可选
  • 1
  • pagesize
  • └ page_no
  • Number
  • 可选
  • 10
  • pageNo
  • └ span
  • Number
  • 可选
  • 10
  • 查询时间跨度,不超过30天,单位是天
  • └ start_time
  • Date
  • 可选
  • 2018-11-11 00:01:01
  • 查询开始时间,以taoke订单创建时间开始
  • └ special_id
  • Number
  • 可选
  • 23132
  • 此参数不再使用,请勿入参
  • └ adzone_id
  • Number
  • 可选
  • 123
  • pid中的第三段,adzoneId
  • └ site_id
  • Number
  • 可选
  • 123
  • pid中的第二段,siteId
  • └ violation_type
  • Number
  • 可选
  • 1
  • 此参数不再使用,请勿入参
  • └ punish_status
  • Number
  • 可选
  • 1
  • 此参数不再使用,请勿入参

响应参数

名称 类型 示例值 描述
result RpcResult 查询的对象
  • data
  • PageResult
  • 结果
  • results
  • Result []
  • 处罚订单列表
  • └ union_id
  • String
  • 淘宝联盟unionid(该字段不再支持)
  • └ special_id
  • Number
  • 会员运营id(该字段不再支持)
  • └ relation_id
  • Number
  • 122344
  • 渠道关系id
  • └ settle_month
  • Number
  • 201812
  • 结算月份
  • └ punish_status
  • String
  • 0
  • 处罚状态。0 冻结,1 解冻
  • └ violation_type
  • String
  • 店铺淘宝客
  • 处罚类型,目前包括 1.店铺淘宝客 2.订单虚假交易
  • └ tk_trade_create_time
  • String
  • 2018-11-11 00:01:01
  • 淘客订单创建时间
  • └ tb_trade_id
  • Number
  • 581552321112183166
  • 子订单号
  • └ tb_trade_parent_id
  • Number
  • 父订单号(该字段不再支持)
  • └ tk_adzone_id
  • Number
  • 1212
  • pid里的adzoneid
  • └ tk_site_id
  • Number
  • 1212
  • pid里的siteid
  • └ tk_pub_id
  • String
  • 114469792
  • pid里的pubid
  • └ page_no
  • Number
  • 1
  • 翻页的pageno
  • └ page_size
  • Number
  • 10
  • 翻页的pagesie
  • └ total_count
  • Number
  • 100
  • 一共能查询出来的结果总数
  • └ biz_error_desc
  • String
  • 没有获取到memberid
  • 业务出错的描述
  • └ biz_error_code
  • Number
  • 103
  • 业务出错的状态码
  • └ result_msg
  • String
  • ok
  • 执行结果
  • └ result_code
  • Number
  • 200
  • 执行结果状态码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgPunishOrderGetRequest req = new TbkDgPunishOrderGetRequest();
TbkDgPunishOrderGetRequest.TopApiAfOrderOption obj1 = new TbkDgPunishOrderGetRequest.TopApiAfOrderOption();
obj1.setRelationId(2222L);
obj1.setTbTradeId(258897956183171983L);
obj1.setTbTradeParentId(258897956183171983L);
obj1.setPageSize(1L);
obj1.setPageNo(10L);
obj1.setSpan(10L);
obj1.setStartTime(StringUtils.parseDateTime("2018-11-11 00:01:01"));
obj1.setSpecialId(23132L);
obj1.setAdzoneId(123L);
obj1.setSiteId(123L);
obj1.setViolationType(1L);
obj1.setPunishStatus(1L);
req.setAfOrderOption(obj1);
TbkDgPunishOrderGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tbk_dg_punish_order_get_response>
    <result>
        <data>
            <results>
                <result>
                    <union_id></union_id>
                    <special_id></special_id>
                    <relation_id>122344</relation_id>
                    <settle_month>201812</settle_month>
                    <punish_status>0</punish_status>
                    <violation_type>店铺淘宝客</violation_type>
                    <tk_trade_create_time>2018-11-11 00:01:01</tk_trade_create_time>
                    <tb_trade_id>581552321112183166</tb_trade_id>
                    <tb_trade_parent_id></tb_trade_parent_id>
                    <tk_adzone_id>1212</tk_adzone_id>
                    <tk_site_id>1212</tk_site_id>
                    <tk_pub_id>114469792</tk_pub_id>
                </result>
            </results>
            <page_no>1</page_no>
            <page_size>10</page_size>
            <total_count>100</total_count>
        </data>
        <biz_error_desc>没有获取到memberid</biz_error_desc>
        <biz_error_code>103</biz_error_code>
        <result_msg>ok</result_msg>
        <result_code>200</result_code>
    </result>
</tbk_dg_punish_order_get_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

返回
顶部