接口地址:http://api.tkurl.top/api/alimama/punishorder
支持格式:json
请求方式:get
Session获取地址:http://api.tkurl.top/authorize?appkey=
请求示例:http://api.tkurl.top/api/alimama/punishorder?Appkey=&session=
请求参数说明:
名称 | 类型 | 是否必须 | 示例值 | 描述 |
---|---|---|---|---|
Appkey | String | 必填 | 123456 | appkey |
session | String | 必填 | 授权后,再授权页面获取 。(有效期30天) | |
site_id | int | 可选 | 123 | pid中的第二段,siteId |
adzone_id | int | 可选 | 123 | pid中的第三段,adzoneId |
span | int | 可选 | 10 | 查询时间跨度,不超过30天,单位是天 |
relation_id | int | 可选 | 222222 | 渠道关系id |
tb_trade_id | int | 可选 | 258897956183171983 | 子订单号 |
page_size | int | 可选 | 1 | pagesize |
page_no | int | 可选 | 10 | page_no |
start_time | Date | 可选 | 2018-11-11 00:01:01 | 查询开始时间,以taoke订单创建时间开始 |
{ "tbk_sc_punish_order_get_response":{ "result":{ "data":{ "page_no":1, "page_size":10, "total_count":100, "results":{ "result":[ { "relation_id":122344, "settle_month":201812, "tk_trade_create_time":"2018-11-11 00:01:01", "tb_trade_parent_id":, "special_id":, "union_id":"", "punish_status":"0", "violation_type":"店铺淘宝客", "tb_trade_id":581552321112183166, "tk_adzone_id":1212, "tk_site_id":1212, "tk_pub_id":114469792 } ] } }, "biz_error_desc":"没有获取到memberid", "biz_error_code":103, "result_msg":"ok", "result_code":200 } } }
{ "error_response":{ "msg":"Remote service error", "code":50, "sub_msg":"非法参数", "sub_code":"isv.invalid-parameter" } }
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.invalid-parameter | 参数填写不正确 | 参数填写不正确 |
603 | 未找到用户或该用户未注册 | 请输入正确的appkey |
604 | 未知参数错误 | 建议加入重试机制 |
404 | 参数传入错误_未知参数 | 检查参数类型是否正确 |