文档中心 > API类目 > 五道口API

qimen.alibaba.tcls.aelophy.merchant.resource.query (商家资源分页查询)

翱象查询商家权益

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
service_code String 可选 benefit 约定的服务编码
resource_type String 必须 QUERY coupon: 优惠券 item: 商品 picture: 图片 notice: 通知 show: 展示
sub_resource_type String 必须 deductCoupon fullReduce: 满减券 fixDiscount: 折扣券 fixPrice: 一口价券
page_index Number 可选 0 从0开始
page_size Number 可选 20 每页返回条数
merchant_code String 必须 cssj 商家code
store_id String 可选 12311 门店id
app_scene_code String 可选 首页爆品 场景code,接入时约定
use_channels String 可选 多个逗号分隔,和isv约定 权益可使用用渠道
give_channel String 可选 JKB 发放渠道,和ISV约定,默认JKB
extra_info String 可选 {"XX":"XX"} 扩展字段
resource_name String 可选 满20优惠券 资源名称

响应参数

名称 类型 示例值 描述
success Boolean true 是否成功
total_count Number 100 总数
err_code String 100 错误码
err_msg String 入参错误 错误描述信息
model Resources [] 资源实体
  • └ sub_resource_type
  • String
  • deductCoupon
  • deductCoupon:满减券fixedVoucher:一口价券 discountVoucher:折扣券
  • └ use_channels
  • String
  • weixin,alipay,xxx
  • 权益可使用用渠道,多个逗号分隔,和isv约定
  • └ name
  • String
  • 满减优惠券
  • 权益名称
  • └ logo
  • String
  • logo地址
  • 权益logo
  • └ desc
  • String
  • 满减优惠券
  • 权益描述
  • └ id
  • String
  • 123123123
  • 权益id
  • └ amount
  • Number
  • 10
  • 面额,单位分
  • └ start_fee
  • Number
  • 20
  • 满减门槛,单位分,默认0
  • └ discount_rate
  • String
  • 7.8
  • 折扣率,折扣券是使用
  • └ start_time
  • String
  • yyyy-MM-dd HH:mm:ss
  • 有效开始时间
  • └ end_time
  • String
  • yyyy-MM-dd HH:mm:ss
  • 有效结束时间

请求示例

{"store_id":"12311","app_scene_code":"首页爆品","merchant_code":"cssj","extra_info":"{\"XX\":\"XX\"}","sub_resource_type":"deductCoupon","page_index":0,"use_channels":"多个逗号分隔,和isv约定","resource_type":"QUERY","service_code":"benefit","resource_name":"满20优惠券","give_channel":"JKB","page_size":20}

响应示例

{
    "success":true,
    "total_count":100,
    "err_code":"100",
    "err_msg":"入参错误",
    "model":[
        {
                "sub_resource_type":"deductCoupon",
                "use_channels":"weixin,alipay,xxx",
                "name":"满减优惠券",
                "logo":"logo地址",
                "desc":"满减优惠券",
                "id":"123123123",
                "amount":10,
                "start_fee":20,
                "discount_rate":"7.8",
                "start_time":"yyyy-MM-dd HH:mm:ss",
                "end_time":"yyyy-MM-dd HH:mm:ss"
        }
    ]
}

验签示例

{"success":"false","err_msg":"Illegal request","err_code":"sign-check-failure"}

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部