卡券功能,创建优惠券的领券二维码接口
https://api.weixin.qq.com/card/qrcode/create?access_token=TOKEN
单张券可以通过设置is_unique_code参数限制只能领取一次
{
"action_name": "QR_CARD",
"expire_seconds": 1800,
"action_info": {
"card": {
"card_id": "pFS7Fjg8kV1IdDz01r4SQwMkuCKc",
"is_unique_code": true ,
"outer_str":"12b"
}
}
}
但是如果是多张券,按下面方式设置将不能限制只能领取一次,应该如何实现?
{
"action_name": "QR_MULTIPLE_CARD",
"action_info": {
"multiple_card": {
"card_list": [
{
"card_id": "p1Pj9jgj3BcomSgtuW8B1wl-wo88",
"is_unique_code": true ,
"outer_str":"12b"
},
{
"card_id": "p1Pj9jgj3BcomSgtuW8B1wl-wo98",
"is_unique_code": true ,
"outer_str":"12b"
}
]
}
}
}
这个填写true就可以