大淘客,让选品更简单! |

{{item.type_name}}:

API 市场 / 违规订单查询
 

违规订单查询
吐槽建议
应用场景:
当需要查询违规订单相关数据时,调用该接口,获取近30天内所有违规订单
接口说明:
返回近30天内所有的违规订单
使用人数: 10+
违规订单查询 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/tb-service/get-foul-order-list 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
String url = "https://openapi.dataoke.com/api/tb-service/get-foul-order-list"; 
String appKey = "xxx"; 
String appSecret = "xxx";

TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("appKey", );
paraMap.put("pageNo", 1);
paraMap.put("pageSize", 10);
paraMap.put("span", 10);
paraMap.put("startTime", "2021-12-10");
String data = ApiClient.sendReq(url, appSecret, paraMap);


新版SDK调用示例:
public void DtkTbkScPunishOrderGetRequest() {
        DtkApiClient client =
                DtkApiClient.getInstance("appKey", "appSecret");
        DtkTbkScPunishOrderGetRequest request = new DtkTbkScPunishOrderGetRequest();
        request.setPageNo(1);
        request.setPageSize(10);
        request.setStartTime("2022-02-01 00:00:00");
        DtkApiResponse<DtkTbkScPunishOrderGetResponse> response = client.execute(request);
        System.out.println(JsonUtil.objectToJson(response));
    }
返回示例:
{
    "requestId": "bb0b061b1deddcfd722cf579b4d7672e",
    "time": 1642731609620,
    "code": 0,
    "msg": "成功",
    "data": {
        "page_no": 1,
        "page_size": 100,
        "total_count": 97,
        "results": [
            {
                "relation_id": 2688182037,
                "settle_month": "202112",
                "punish_status": "0",
                "violation_type": "店铺淘宝客",
                "tk_trade_create_time": "2021-12-19 10:09:03",
                "tb_trade_id": "2345504148926622436",
                "tk_adzone_id": "110710450164",
                "tk_site_id": "1949600008",
                "tk_pub_id": "314500175"
            }
        ]
    }
}
错误码列表: