4.3获取可用活动券列表

  请求参数说明

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

 请求示例

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

  响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息string
listlist
└deid优惠券id30246number
└name优惠券名称0916number
└cash券金额1.00number
└type1:优惠券(微餐厅) 2:活动券 2number
└cotype1:单品券 0:现金券0number
msid门店编号10021number
act_listlist
└actid活动id37999number
└act_name活动名称1111number
└delistlist
└└type券类型现金券string
└└name券名称雪碧20210603string
└└deid优惠券id62800number
└└qty数量1number
└└store可用门店全部string
└└cash优惠券金额100.00number

 响应示例

{
  "status": "1",
  "info": "",
  "list": [
    {
      "deid": "65234",
      "name": "雪碧0713",
      "cash": "10.00",
      "type": "2",
      "cotype": "0"
    },
    {
      "deid": "49385",
      "name": "#礼包#11月10号 券礼包",
      "cash": "0.00",
      "type": "7",
      "cotype": "0"
    },
    {
      "deid": "37868",
      "name": "#礼包#重置测试",
      "cash": "0.00",
      "type": "7",
      "cotype": "0"
    }
  ],
  "act_list": [
    {
      "actid": 37999,
      "act_name": "1111",
      "delist": [
        {
          "type": "现金券",
          "name": "雪碧20210603",
          "deid": 62800,
          "qty": 1,
          "store": "全部",
          "cash": "100.00"
        },
        {
          "type": "实物券",
          "name": "菜品兑换1分",
          "deid": 65232,
          "qty": "2",
          "choose": 0,
          "chooseval": "10",
          "entitylist": [
            {
              "dgid": "3649546",
              "name": "红烧昂刺鱼",
              "store": " 雪碧的店",
              "msid": 20243
            },
            {
              "dgid": "8325572",
              "name": "酸汤龙利鱼",
              "store": " 雪碧的店",
              "msid": 20243
            },
            {
              "dgid": "3649548",
              "name": "沙虾",
              "store": " 雪碧的店",
              "msid": 20243
            },
            {
              "dgid": "8325574",
              "name": "精品龙虾",
              "store": " 雪碧的店",
              "msid": 20243
            },
            {
              "dgid": "8325573",
              "name": "花雕精品龙虾",
              "store": " 雪碧的店",
              "msid": 20243
            }
          ]
        }
      ]
    },
    {
      "actid": 39722,
      "act_name": "qq",
      "delist": [
        {
          "type": "实物券",
          "name": "qq",
          "deid": 64930,
          "qty": 1,
          "choose": 0,
          "chooseval": "16.8",
          "entitylist": [
            {
              "dgid": "7152118",
              "name": "生拌鲍鱼",
              "store": "果盘测试",
              "msid": 6786
            }
          ]
        },
        {
          "type": "实物券",
          "name": "问问",
          "deid": 65233,
          "qty": "4",
          "choose": 1,
          "chooseval": "75",
          "entitylist": [
            {
              "dgid": "8328084",
              "name": "芒果紫米露",
              "store": "可乐",
              "msid": 27071
            }
          ]
        }
      ]
    }
  ],
  "server_timestamp": 1626244546,
  "server_time": "2021-07-14 14:35:46",
  "server_name": "wx-task2.hz",
  "msid": "10021"
}