失效商品API---本接口采用6台16核心64G内存服务器,江苏和北京双机房,负载均衡技术,1G独享带宽,放心调用。
失效商品API:返回站内失效商品列表,按照失效时间倒序排序。
接口地址: http://api.zhetaoke.com:20000/api/api_shixiao.ashx?appkey=#appkey#&page=1&page_size=20
支持格式:json
请求方式:get
请求参数说明:
名称 类型 必填 说明
  appkey string 折京客的对接秘钥appkey
  page int 分页获取数据,第几页
  page_size int 每页数据条数(默认每页20条),可自定义,最大100。
  start_time string 失效开始时间,如:2019-07-01 00:00:00
  end_time string 失效结束时间,如:2019-07-01 23:59:59
成功返回示例:可以根据返回的code值进行循环获取列表,也可以根据失效开始时间和失效结束时间进行循环获取列表
{
    "status":200,
    "content":[
        {
            "code": 8606,   /* 自动增长列编号 */
            "id": 2897599,  /* 原始商品编号code */
            "tao_id": 550079617480,  /* 商品编号 */
            "seller_id": 3081566001,  /* 店铺seller_id */
            "activity_id": "6a4120847b4e4406aded126c49d8fe4c",  /* 优惠券id */
            "reason_type": 1,  /* 失效原因。1:优惠券无效,2:对应宝贝已下架或非淘客宝贝,3:商品上架时间超过7天,4:商家主动下架,5:黑名单下架,6:本券金额小于官券金额 */
            "date_time": "2019/07/25 19:20:35"  /* 失效时间 */
            },
        {
            "code":8605,
            "id":2897399,
            "tao_id":552658952962,
            "seller_id":2456251683,
            "activity_id":"e6dce51e49fb45f7ae78e3dfcfb662da",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:58"
        },
        {
            "code":8604,
            "id":2897396,
            "tao_id":552800167758,
            "seller_id":2456251683,
            "activity_id":"e6dce51e49fb45f7ae78e3dfcfb662da",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:58"
        },
        {
            "code":8603,
            "id":2897381,
            "tao_id":596989321908,
            "seller_id":2939572214,
            "activity_id":"d540ac3565ca4193a4b3c0b708667b3a",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:55"
        },
        {
            "code":8602,
            "id":2897161,
            "tao_id":580192638026,
            "seller_id":3980046019,
            "activity_id":"7d02aba3841042b6b40200153fd68dd0",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:47"
        },
        {
            "code":8601,
            "id":2897148,
            "tao_id":593894071030,
            "seller_id":1935567546,
            "activity_id":"f5e3ebc63a3843d4b862a5f762966641",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:45"
        },
        {
            "code":8600,
            "id":2897120,
            "tao_id":594079508990,
            "seller_id":3008205583,
            "activity_id":"f4ee846cc03a4a86a08ccca9906dafb0",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:41"
        },
        {
            "code":8599,
            "id":2896984,
            "tao_id":550366326482,
            "seller_id":756598406,
            "activity_id":"eac0b2733e524308bc79462be0e638a1",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:21"
        },
        {
            "code":8598,
            "id":2896958,
            "tao_id":543895861791,
            "seller_id":672771577,
            "activity_id":"474addc513e64f79992d4af0b9106388",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:19"
        },
        {
            "code":8597,
            "id":2896948,
            "tao_id":583298077187,
            "seller_id":4011436690,
            "activity_id":"5b727ab9bca74f9e9fd105ac40b12e28",
            "reason_type":1,
            "date_time":"2019/07/25 19:19:16"
        }
    ]
}
                            











欢迎加入折京客服务平台!账号: 密码: 免费注册