微信服务号创建会员卡成功,返回卡号,客服消息推送会员卡,点开客服消息后,会员卡报错。
请求的josn,从文档里面拷的,一个一个和文档比对过了:
{ "card" : { "card_type" : "MEMBER_CARD" , "member_card" : { "background_pic_url" : "已上传到cdn" , "base_info" : { "logo_url" : "已上传到cdn" , "brand_name" : "这是brand_name" , "code_type" : "CODE_TYPE_QRCODE" , "title" : "这是title" , "color" : "Color010" , "notice" : "这是notice,卡券使用提醒" , "service_phone" : "66666666" , "description" : "这是description,卡券使用说明,字数上限为1024个汉字。" , "pay_info" : { "swipe_card" : { "is_swipe_card" : true } }, "is_pay_and_qrcode" : true , "date_info" : { "type" : "DATE_TYPE_PERMANENT" }, "sku" : { "quantity" : 50000000 }, "get_limit" : 1 , "use_custom_code" : true , "can_give_friend" : true , "use_all_locations" : true , "center_title" : "ct仅卡活&可用时显示" , "center_sub_title" : "center_sub_title" , "center_url" : "center_url顶部居中的url" , "custom_url_name" : "custom_url_name" , "custom_url" : "custom_url自定义跳转的URL" , "custom_url_sub_title" : "6个汉字tips" , "promotion_url" : "www.baidu.com" , "promotion_url_name" : "营销入口" , "promotion_url_sub_title" : "purlsubtitle" , "need_push_on_view" : true }, "advanced_info" : { "use_condition" : { "accept_category" : "鞋类" , "reject_category" : "阿迪达斯" , "can_use_with_other_discount" : true }, "abstract" : { "abstract" : "微信餐厅推出多种新季菜品,期待您的光临" , "icon_url_list" : [ "已上传到cdn" ] }, "text_image_list" : [{ "image_url" : "已上传到cdn" , "text" : "此菜品精选食材,以独特的烹饪方法,最大程度地刺激食 客的味蕾" }, { "image_url" : "已上传到cdn" , "text" : "此菜品迎合大众口味,老少皆宜,营养均衡" } ], "time_limit" : [{ "type" : "MONDAY" , "begin_hour" : 0 , "end_hour" : 10 , "begin_minute" : 10 , "end_minute" : 59 }, { "type" : "HOLIDAY" } ], "business_service" : [ "BIZ_SERVICE_FREE_WIFI" , "BIZ_SERVICE_WITH_PET" , "BIZ_SERVICE_FREE_PARK" , "BIZ_SERVICE_DELIVER" ] }, "supply_bonus" : true , "supply_balance" : false , "prerogative" : "prerogative会员卡特权说明,限制1024汉字。" , "activate_url" : "这是我的激活链接" , "custom_field1" : { "name_type" : "FIELD_NAME_TYPE_LEVEL" , "url" : "http://www.qq.com" }, "custom_cell1" : { "name" : "使用入口2" , "tips" : "激活后显示" , "url" : "http://www.xxx.com" }, "bonus_rule" : { "cost_money_unit" : 100 , "increase_bonus" : 100 , "max_increase_bonus" : 20000 , "init_increase_bonus" : 1 , "cost_bonus_unit" : 5 , "reduce_money" : 100 , "least_money_to_use_bonus" : 1000 , "max_reduce_bonus" : 50 }, "discount" : 10 } } } |