收藏
回答

公众号中:微信卡券 /管理卡券:查看卡券详情中返回的sku参数有疑问?

通过调用接口:https://api.weixin.qq.com/card/get?access_token=TOKEN

"sku""quantity"1657"total_quantity"400
quantity:卡券现有库存的数量
total_quantity:卡券全部库存的数量,上限为100000000。

为什么quantity的值要比 total_quantity还要大?实际上传的卡券确实有一千多张

具体返回结果如下:

{"code":200,"msg":"ok","data":{"errcode":0,"errmsg":"ok","card":{"card_type":"MEMBER_CARD","member_card":{"base_info":{"id":"p_oMx1d0ZubuEP_NlEr-naqKsat0","logo_url":"","code_type":"CODE_TYPE_QRCODE","brand_name":"222233","title":"222233","date_info":{"type":"DATE_TYPE_PERMANENT"},"color":"#cc463d","notice":"","service_phone":"","description":"11111","location_id_list":[],"get_limit":1,"can_give_friend":false,"use_custom_code":true,"status":"CARD_STATUS_VERIFY_OK","sku":{"quantity":1657,"total_quantity":400},"create_time":1684483392,"update_time":1684920243,"custom_url_name":"","custom_url":"","custom_url_sub_title":"","custom_app_brand_user_name":"","custom_app_brand_pass":"","get_custom_code_mode":"GET_CUSTOM_CODE_MODE_DEPOSIT","center_title":"保持","center_app_brand_user_name":"","center_app_brand_pass":"","area_code_list":[]},"supply_bonus":false,"supply_balance":false,"prerogative":"2222","discount":0,"auto_activate":false,"wx_activate":true,"background_pic_url":"","wx_activate_after_submit":true,"wx_activate_after_submit_url":"","advanced_info":{"time_limit":[],"text_image_list":[],"business_service":[],"consume_share_card_list":[],"share_friends":false}}}}};

最后一次编辑于  2023-05-24
回答关注问题邀请回答
收藏
登录 后发表内容