文档中心 > API类目 > 淘宝买菜

qimen.taobao.freshx.coupon.syn (历史优惠券信息)

查询需要同步的历史优惠券信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
openId String 必须 111 用户id

响应参数

名称 类型 示例值 描述
data CouponResourceDO [] 1234 优惠券资产信息
  • └ effectiveStartTime
  • String
  • 2021-03-01 00:00:00
  • 核销开始时间
  • └ effectiveEndTime
  • String
  • 2021-03-01 00:00:00
  • 核销结束时间
  • └ outerId
  • String
  • 12345
  • 外部业务编号,幂等条件
  • couponInfo
  • CouponInfo
  • 优惠券模板信息
  • └ couponType
  • Number
  • 47501
  • 优惠券类型
  • └ uuid
  • String
  • xxxx
  • uuid
  • └ templateCode
  • String
  • 123456
  • 优惠券模板
  • └ decreaseMoney
  • Number
  • 200
  • 券面额,单位分
success Boolean true 调用结果
errorMessage String sys_error 错误信息
errorCode String -1 错误code

请求示例

{"openId":"111"}

响应示例

{
    "data":[
        {
                "effectiveStartTime":"2021-03-01 00:00:00",
                "effectiveEndTime":"2021-03-01 00:00:00",
                "outerId":"12345",
                "couponInfo":{
                    "couponType":47501,
                    "uuid":"xxxx",
                    "templateCode":"123456"
                },
                "decreaseMoney":200
        }
    ],
    "success":true,
    "errorMessage":"sys_error",
    "errorCode":"-1"
}

验签示例

{"success":"false","errorMessage":"Illegal request","errorCode":"sign-check-failure"}

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部