# 【回调/通知】发放团购优惠成功回调

给用户侧发放券code成功后,将通过此接口通知商家。回调超时时间为5s,重试3次,失败后立马发起重试。

# 请求参数示例

{
    "ToUserName": "gh_*",
    "FromUserName": "OpenID",
    "CreateTime": 1662480000,
    "MsgType": "event",
    "Event": "channels_ec_voucher_send_succ",
    "voucher_list":[
       {
         "code":"232323",
         "status": 1,
         "send_time": 1699856182,
         "update_time": 1699856182,
         "start_time": 1699856182,
         "end_time": 1699856182,
         "consume_time": 1699856182,
         "refund_time": 1699856182,
         "product_id":  "kbfff",
         "consume_store_name": "xxx旗舰店",
         "voucher_type": 1,
         "voucher_buy_amount": 0,
         "voucher_actual_amount": 0,
         "telphone_no": "fasdf343df34545",
         "openid": "xsdfs4534543534534",
         "code_type": 1,
         "order_id": "23434sdfsdf34342",
         "sku_id": "fdsfdf"
       },
       {
         "code":"23232323",
         "status": 1,
         "send_time": 1699856182,
         "update_time": 1699856182,
         "start_time": 1699856182,
         "end_time": 1699856182,
         "consume_time": 1699856182,
         "refund_time": 1699856182,
         "product_id":  "kbfff",
         "consume_store_name": "xxx旗舰店",
         "voucher_type": 1,
         "voucher_buy_amount": 0,
         "voucher_actual_amount": 0,
         "telphone_no": "fasdf343df34545",
         "openid": "xsdfs4534543534534",
         "code_type": 1,
         "order_id": "23434sdfsdf34342",
         "sku_id": "fdsfdf"
       },
       {
         "code":"32434454545",
         "status": 1,
         "send_time": 1699856182,
         "update_time": 1699856182,
         "start_time": 1699856182,
         "end_time": 1699856182,
         "consume_time": 1699856182,
         "refund_time": 1699856182,
         "product_id":  "kbfff",
         "consume_store_name": "xxx旗舰店",
         "voucher_type": 1,
         "voucher_buy_amount": 0,
         "voucher_actual_amount": 0,
         "telphone_no": "fasdf343df34545",
         "openid": "xsdfs4534543534534",
         "code_type": 1,
         "order_id": "23434sdfsdf34342",
         "sku_id": "fdsfdf"
       }
   ]
}

# 回包参数说明

success

# 回调参数说明

参数 类型 说明
ToUserName string 小店UserName
FromUserName string 微信团队的 OpenID(固定值)
CreateTime number 事件时间,Unix时间戳
MsgType string 消息类型,固定为 event
Event string 事件类型,本接口固定为 channels_ec_voucher_send_succ
voucher_list Array<Voucher> 一笔单购买的且发放成功的多张优惠