首页 新闻 赞助 找找看

微信卡券接口问题

0
悬赏园豆:20 [已关闭问题] 关闭于 2016-03-22 17:00

{
    "card": {
        "card_type": "GROUPON",
        "groupon": {
            "base_info": {
                "logo_url": "http://mmbiz.qpic.cn/mmbiz/3RIYcxiaZoxqdtxtib1LH7r07prN6LgE6LeuCGRhER2CaqibK9E057sousL436pexmgzIlgbUtxHRG1aJ69knjoUw/0",
                "code_type": "CODE_TYPE_TEXT",
                "brand_name": "微信",
                "title": "餐厅",
                "sub_title": "周末狂欢必备",
                "color": "Color020",
                "notice": "使用时向服务员出示此券",
                "service_phone": "0663-3333333",
                "descriptions": "不可与其他优惠同享",
                "date_info": {
                    "type": "DATE_TYPE_FIX_TIME_RANGE",
                    "begin_timestamp": 1456761600,
                    "end_timestamp": 1461340800
                },
                "sku": {
                    "quantity": 123
                },
                "fixed_term": 0,
                "fixed_begin_term": 0,
                "use_custom_code": false,
                "bind_openid": false,
                "location_id_list": [
                    403731382,
                    403721213,
                    403662771
                ],
                "source": "1",
                "custom_url_name": "456",
                "center_title": "456",
                "center_sub_title": "123",
                "center_url": "www.baidu.com",
                "custom_url": "www.baidu.com",
                "custom_url_sub_title": "ghnj",
                "promotion_url_name": "xcv",
                "promotion_url": "www.baidu.com",
                "promotion_url_sub_title": "edf",
                "get_limit": 10,
                "can_share": false,
                "can_give_friend": false,
                "advanced_info": {
                    "use_condition": {
                        "accept_category": null,
                        "reject_category": null,
                        "can_use_with_other_discount": true
                    },
                    "object_use_for": null,
                    "Abstract": {
                        "Abstract": "34",
                        "icon_url_list": "http://mmbiz.qpic.cn/mmbiz/3RIYcxiaZoxrAGvuY0Z1eLqPaHOGpN9U1ZaticlapnyibSwR71RWnMxEDUXibgP00cFaCbk7LeFM66icwLlqTJ1otoQ/0"
                    },
                    "text_image_list": [
                        {
                            "image_url": "http://mmbiz.qpic.cn/mmbiz/3RIYcxiaZoxrAGvuY0Z1eLqPaHOGpN9U1ZaticlapnyibSwR71RWnMxEDUXibgP00cFaCbk7LeFM66icwLlqTJ1otoQ/0",
                            "text": "guyj"
                        }
                    ],
                    "time_limit": [
                        {
                            "type": "",
                            "begin_hour": 0,
                            "end_hour": 0,
                            "begin_minute": 0,
                            "end_minute": 0
                        }
                    ],
                    "business_service": [
                        "BIZ_SERVICE_FREE_PARK",
                        "BIZ_SERVICE_WITH_PET"
                    ],
                    "least_cost": 0
                }
            },
            "deal_detail": "123不可与其他优惠同享"
        }
    }
}

一直提示47001错误。。。。。。。

正确格式:

{
  "card": {
      "card_type": "GROUPON",
      "groupon": {
          "base_info": {
              "logo_url":  "http://mmbiz.qpic.cn/mmbiz/iaL1LJM1mF9aRKPZJkmG8xXhiaHqkKSVMMWeN3hLut7X7hicFNjakmxibMLGWpXrEXB33367o7zHN0CwngnQY7zb7g/0",
              "brand_name": "微信餐厅",
              "code_type": "CODE_TYPE_TEXT",
              "title": "132元双人火锅套餐",
              "sub_title": "周末狂欢必备",
              "color": "Color010",
              "notice": "使用时向服务员出示此券",
              "service_phone": "020-88888888",
              "description": "不可与其他优惠同享\n如需团购券发票,请在消费时向商户提出\n店内均可使用,仅限堂食",
              "date_info": {
                  "type": "DATE_TYPE_FIX_TIME_RANGE",
                  "begin_timestamp": 1397577600,
                  "end_timestamp": 1472724261
              },
              "sku": {
                  "quantity": 500000
              },
              "get_limit": 3,
              "use_custom_code": false,
              "bind_openid": false,
              "can_share": true,
              "can_give_friend": true,
              "location_id_list": [
                  123,
                  12321,
                  345345
              ],
              "center_title": "顶部居中按钮",
              "center_sub_title": "按钮下方的wording",
              "center_url": "www.qq.com",
              "custom_url_name": "立即使用",
              "custom_url": "http://www.qq.com",
              "custom_url_sub_title": "6个汉字tips",
              "promotion_url_name": "更多优惠",
              "promotion_url": "http://www.qq.com",
              "source": "大众点评"
          },
           "advanced_info": {
               "use_condition": {
                   "accept_category": "鞋类",
                   "reject_category": "阿迪达斯",
                   "can_use_with_other_discount": true
               },
               "abstract": {
                   "abstract": "微信餐厅推出多种新季菜品,期待您的光临",
                   "icon_url_list": [
                       "http://mmbiz.qpic.cn/mmbiz/p98FjXy8LacgHxp3sJ3vn97bGLz0ib0Sfz1bjiaoOYA027iasqSG0sj  piby4vce3AtaPu6cIhBHkt6IjlkY9YnDsfw/0"
                   ]
               },
               "text_image_list": [
                   {
                       "image_url": "http://mmbiz.qpic.cn/mmbiz/p98FjXy8LacgHxp3sJ3vn97bGLz0ib0Sfz1bjiaoOYA027iasqSG0sjpiby4vce3AtaPu6cIhBHkt6IjlkY9YnDsfw/0",
                       "text": "此菜品精选食材,以独特的烹饪方法,最大程度地刺激食 客的味蕾"
                   },
                   {
                       "image_url": "http://mmbiz.qpic.cn/mmbiz/p98FjXy8LacgHxp3sJ3vn97bGLz0ib0Sfz1bjiaoOYA027iasqSG0sj piby4vce3AtaPu6cIhBHkt6IjlkY9YnDsfw/0",
                       "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"
               ]
           },
          "deal_detail": "以下锅底2选1(有菌王锅、麻辣锅、大骨锅、番茄锅、清补 凉锅、酸菜鱼锅可选):\n大锅1份 12元\n小锅2份 16元 "
      }
  }
}
赖先森的主页 赖先森 | 初学一级 | 园豆:61
提问于:2016-03-22 16:25
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册