收藏
回答

根据商户号查用户的券接口,获得数据不准确?

文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter9_1_9.shtml

用户openid:o5Gdd5L9sjBeFSV8sk0660NRfGrA

商户号mchid:1524375941

小程序appid:wx51a5d667f9a5a83b

调用接口得到的结果如下:

[{"status": "SENDED", "stock_id": "16000795", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28362463342", "create_time": "2021-11-08T19:29:42+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "AHHA\u7cfb\u5217\u7acb\u51cf2\u5143"}, {"status": "SENDED", "stock_id": "16000832", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28362463541", "create_time": "2021-11-08T19:29:50+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "\u7eaf\u60a6\u82cf\u6253\u6c34\u7acb\u51cf2\u5143"}, {"status": "SENDED", "stock_id": "16000832", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28917863623", "create_time": "2021-11-26T11:36:11+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "\u7eaf\u60a6\u82cf\u6253\u6c34\u7acb\u51cf2\u5143"}, {"status": "SENDED", "stock_id": "16000863", "singleitem": true, "normal_coupon_information": {"coupon_amount": 300, "transaction_minimum": 301}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28917863697", "create_time": "2021-11-26T11:36:14+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "COSTA\u7cfb\u5217\u7acb\u51cf3\u5143"}, {"status": "SENDED", "stock_id": "16000795", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28917863747", "create_time": "2021-11-26T11:36:17+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "AHHA\u7cfb\u5217\u7acb\u51cf2\u5143"}, {"status": "SENDED", "stock_id": "16000863", "singleitem": true, "normal_coupon_information": {"coupon_amount": 300, "transaction_minimum": 301}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28917874147", "create_time": "2021-11-26T11:45:18+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "COSTA\u7cfb\u5217\u7acb\u51cf3\u5143"}, {"status": "SENDED", "stock_id": "16000832", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28917876272", "create_time": "2021-11-26T11:47:02+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "\u7eaf\u60a6\u82cf\u6253\u6c34\u7acb\u51cf2\u5143"}, {"status": "SENDED", "stock_id": "16000832", "singleitem": true, "normal_coupon_information": {"coupon_amount": 200, "transaction_minimum": 201}, "description": "", "coupon_type": "NORMAL", "stock_creator_mchid": "1446228302", "available_end_time": "2021-12-31T23:59:59+08:00", "coupon_id": "28933458849", "create_time": "2021-11-26T18:21:00+08:00", "available_begin_time": "2021-11-01T00:00:00+08:00", "no_cash": false, "coupon_name": "\u7eaf\u60a6\u82cf\u6253\u6c34\u7acb\u51cf2\u5143"}]


我们发现数据里的批次号(stock_id)不包含16014842;但此用户刚刚通过send-coupon组件领取了5张批次号为16014842的优惠券,并核销了其中2张,所以预期接口中应该会包含3个批次号为16014842的数据。

此用户的 微信/我/卡包/券和礼品卡 中,也未出现批次号为16014842的优惠券。

请问为什么接口的返回结果以及微信的卡包中,会缺少该优惠券的数据呢?


回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    2021-11-26

    通过哪个参数查的?传的哪个商户号?16014842批次制券方和对应可用商户号分别提供下

    2021-11-26
    有用
    回复 3
    • ♨
      2021-11-29
      查询是通过可用商户号available_mchid查询的.

      制券商户号:1446228302;
      可用商户号:1524375941;
      2021-11-29
      回复
    • ♨
      2021-11-29
      Memory姐今天帮忙看一下哦,这个批次的券明天过期,怕过了明天再查就麻烦了
      2021-11-29
      回复
    • Memory
      Memory
      2021-11-29回复
      加我个人资料页的微信,提供一下批次号和code
      2021-11-29
      回复
登录 后发表内容