4.3获取可用活动券列表

优质
小牛编辑
132浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称co_deliststring

请求示例

{
	"action": {
		"action": "co_delist"
	}
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息string
listlist
└deid活动券id30246number
└name活动券名称0916number
└cash券金额1.00number
└type1:优惠券 2:活动券 4:密码券 5:积分兑换管理券 6:团购券 7:券礼包 10:面对面赠券2number
└cotype1:单品券 0:现金券0number
msid10021number

响应示例

{
  "status": "1",
  "info": "",
  "list": [
    {
      "deid": "30246",
      "name": "0916",
      "cash": "1.00",
      "type": "2",
      "cotype": "0"
    },
    {
      "deid": "29643",
      "name": "新菜品尝券",
      "cash": "0.00",
      "type": "2",
      "cotype": "1",
      "choose": "0",
      "chooseval": "50",
      "entitylist": [
        {
          "dgid": "4726520",
          "name": "多宝鱼",
          "refid": "21001"
        },
        {
          "dgid": "4726521",
          "name": "雅片鱼",
          "refid": "21002"
        },
        {
          "dgid": "4726522",
          "name": "虾爬子",
          "refid": "21003"
        },
        {
          "dgid": "4726523",
          "name": "东星斑",
          "refid": "21004"
        },
        {
          "dgid": "4726525",
          "name": "活海参",
          "refid": "21006"
        }
      ]
    },
    {
      "deid": "29488",
      "name": "RM测试券",
      "cash": "30.00",
      "type": "2",
      "cotype": "0"
    },
    {
      "deid": "29481",
      "name": "同活动期",
      "cash": "20.00",
      "type": "2",
      "cotype": "0"
    }
  ],
  "server_timestamp": 1568612976,
  "server_time": "2019-09-16 13:49:36",
  "server_name": "api-103.hz",
  "msid": "10021"
}