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

qimen.alibaba.tcls.aelophy.merchant.resource.put (商家资源投放)

翱象聚客宝商家权益资源投放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
merchant_code String 必须 cssj 商家code
service_code String 必须 sss 服务code,约定的服务编码
resource_type String 必须 benefit coupon: 优惠券 item: 商品 picture: 图片 notice: 通知 show: 展示
sub_resource_type String 必须 deductCoupon fullReduce: 满减券 fixDiscount: 折扣券 fixPrice: 一口价券
resource_id String 必须 12123123 资源id
union_uid String 必须 45345 商家统一用户ID
channel_user_id String 可选 13123 渠道账号ID
channel_code String 可选 weixin 订单渠道
customize_channel String 可选 customize_channel 自定义渠道类型,由isv自定义,通用渠道类型下细分时使用
app_scene_code String 必须 sybp 场景code
trace_id String 可选 50002A00a01Nz1d3a8 跟踪ID
biz_uk String 必须 aa111 业务幂等uk
extra_info String 可选 {"xx":"xx"} 扩展字段

响应参数

名称 类型 示例值 描述
success Boolean true 接口返回成功标志
err_code String 123 错误码
err_msg String 投放失败 错误信息
model Struct 发放结果
  • └ status_code
  • Number
  • 1
  • 发放结果:1成功,2失败
  • └ status_msg
  • String
  • 券投放失败
  • 投放信息,例如:投放失败原因
  • └ instance_id
  • String
  • xxx1111
  • 如券实例id
  • └ start_time
  • String
  • yyyy-MM-dd HH:mm:ss
  • 有效开始时间
  • └ end_time
  • String
  • yyyy-MM-dd HH:mm:ss
  • 有效结束时间

请求示例

{"customize_channel":"customize_channel","merchant_code":"cssj","trace_id":"50002A00a01Nz1d3a8","sub_resource_type":"deductCoupon","channel_user_id":"13123","resource_type":"benefit","channel_code":"weixin","app_scene_code":"sybp","extra_info":"{\"xx\":\"xx\"}","service_code":"sss","resource_id":"12123123","biz_uk":"aa111","union_uid":"45345"}

响应示例

{
    "success":true,
    "err_code":"123",
    "err_msg":"投放失败",
    "model":{
        "status_code":1,
        "status_msg":"券投放失败",
        "instance_id":"xxx1111",
        "start_time":"yyyy-MM-dd HH:mm:ss",
        "end_time":"yyyy-MM-dd HH:mm:ss"
    }
}

验签示例

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

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部