简要描述:

兑换码详情--获取商品列表(兑换码类型为1即商品时才调用该接口)

请求域名:

  • http://xx.com

请求URL:

plugin.exchange-code.api.list.info

请求参数说明:

参数名 类型 是否必需 说明
id int 兑换码id
record_id int 兑换码记录id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "id": 2,
        "uniacid": 15,
        "name": "很过分",
        "type": 1,
		"single_order":0,
        "goods_ids": [
            "1",
            "155"
        ],
        "exchange_limit": 10,
        "can_tranfer": 1,
        "generate_num": 1000,
        "active_start": 1673366400,
        "active_end": 1673971200,
        "member_id": 163778,
        "level_type": 0,
        "level_id": 0,
        "banner": "http://119.91.205.224/static/upload/images/15/2022/09/zcE1Ewmbf74VzWvMFbV5E1Bff57C4w.png",
        "background_color": "#B31B1B",
        "button_color": "#18C94B",
        "button_text": "10",
        "describe": "<p>21312</p>",
        "scroll_box": 1,
        "service_button": 1,
        "share_title": "321",
        "share_icon": "http://119.91.205.224/static/upload/images/15/2022/09/510520746843faf1408faa2e34a33888.png",
        "share_desc": "1231",
        "not_send": 870,
        "used": 0,
        "rest": 130,
        "expired": 0,
        "status": 1,
        "has_create": 2,
        "created_at": "1970-01-01 08:33:43",
        "updated_at": "2023-01-09 09:54:58",
        "left": 0,
        "current_code": "agocZ6SyUnKbQHMB",
		"cservice": {
            "cservice": "https://dev15.yunzmall.com/addons/yun_shop/?menu#/chatWindow/?groupId=12&employeeId=0&chatType=1&i=25",
            "service_QRcode": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/newimage/74577ec83596531b65a1370e3c506888.jpg",
            "service_mobile": "18026357601"
        },
		"broadcast": [
            {
                "avatar_image": "https://119.91.205.224/static/images/photo-mr.jpg",
                "content": "18*******29于2023-01-10 09:14:48进行了兑换"
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
id int 兑换码id
name string 兑换码名称
type int 兑换码类型 1 商品 2 等级身份
exchange_limit int 最多可兑换数量
goods_ids string 商品id字符串,用来获取商品列表
active_start string 有效期开始
active_end string 有效期结束
banner string banner图
describe string 说明
background_color string 背景颜色
button_color string 按钮颜色
button_text string 按钮文字
scroll_box int 是否开启滚动弹窗 1 是 0 否
service_button int 是否开启客服按钮 1是 0 否
current_code string 当前使用的兑换码序列号
share_title string 分享标题
share_icon string 分享图标
share_desc string 分享详情
left int 剩余未使用的优惠券
cservice object 客服信息
broadcast array 兑换飘窗
login_status int 登录状态 0 否 1是
login_type string 登录跳转 h5 跳转到手机号登录页 auth 跳转到授权登录
single_order int 1 只能单个下单 0 可以多个下单
show_price int 是否显示价格 0 不 1是
show_detail int 是否显示详情 0 不 1是
show_hint int 是否显示兑换提示语 0 不 1是
open_bind int 是否开启绑定 0 不 1是
show_info int 预下单页是否显示兑换码信息 0 不 1是

cservice返回参数说明:

参数名 类型 说明
cservice string 客服链接
service_QRcode string 客服二维码
service_mobile string 客服电话
customer_open int 是否显示小程序在线客服 1 是 0 否

broadcast返回参数说明:

参数名 类型 说明
avatar_image string 用户头像
content string 兑换内容