# 查询用户的团购优惠列表

# 接口调用请求说明

单商户限频200QPS

http请求方式:POST
https://api.weixin.qq.com/channels/ec/voucher/get_list?access_token=xxxxxxxxx

# 请求参数示例

{
   "openid": "xsdfs4534543534534",
   "status": 1,
   "page_size": 3,
   "page_ctx": ""
}

# 回包示例

{
   "errcode": 0,
   "errmsg": "成功",
   "openid": "xsdfs4534543534534",
   "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"
   }
   ],
   "page_ctx": "dsfajasdlf3434"
}

# 请求参数说明

参数 类型 是否必填 说明
openid string 必填 用户openid
status number 选填 不填代表查所有券,详细见enum VoucherStatus
page_size number 必填 页大小
值限制: 1 ≤ value ≤ 50
page_ctx string 必填 翻页上下文,第一次请求填空,后续请求值为上次请求的返回

# 回包参数说明

参数 类型 是否必填 说明
errcode number 必填 错误码
errmsg string 必填 错误信息
openid string 必填 用户openid
voucher_list Array<Voucher> 选填 用户券列表
page_ctx string 选填 翻页上下文,第一次请求填空,后续请求值为上次请求的返回