收藏
回答

公众号微信卡券创建会员卡接口错误信息提示模糊不清?

1、创建会员卡接口

HTTP请求方式: POSTURL:https://api.weixin.qq.com/card/create?access_token=ACCESS_TOKEN

post数据如下:

{
    "card": {
        "card_type": "MEMBER_CARD",
        "member_card": {
            "background_pic_url": "http://mmbiz.qpic.cn/mmbiz_png/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzvNhKnIBJ55js9GaoXEA4sh4aoKSZcSavxuuq5RnaVTc09w1zBEbSjg/0",
            "base_info": {
                "logo_url": "http://mmbiz.qpic.cn/mmbiz_jpg/ibeQcclgN4X0Ivicwdrs6vHibj6TtiaS7CPzIFtsdfLvY8O1iafWPVCweVTCVK6lWl6ricDUGnNib11JnZT5Sv12mAQgg/0",
                "code_type": "CODE_TYPE_TEXT",
                "pay_info": {
                    "swipe_card": {
                        "is_swipe_card": true
                    }
                },
                "brand_name": "乐墨测试",
                "title": "会员卡",
                "color": "Color010",
                "notice": "卡券的领取规则",
                "description": "普卡会员:\n银卡会员:\nV4:\n钻石:\n星耀:\n",
                "sku": {
                    "quantity": 100000000
                },
                "get_limit": 1,
                "use_custom_code": false,
                "can_give_friend": true,
                "date_info": {
                    "type": "DATE_TYPE_PERMANENT"
                },
                "custom_url_name": "快速买单",
                "custom_url_sub_title": "立即进入",
                "custom_app_brand_user_name": "gh_7e9787cd2ef1@app",
                "custom_app_brand_pass": "/pages/tabSon/me/payment/main",
                "promotion_url_name": "优惠券",
                "promotion_url_sub_title": "大额优惠券等你拿",
                "promotion_app_brand_user_name": "gh_7e9787cd2ef1@app",
                "promotion_app_brand_pass": "/pages/tabMain/pages/tab/coupons/main",
                "need_push_on_view": false
            },
            "prerogative": "卡券的领取规则",
            "auto_activate": false,
            "supply_bonus": false,
            "supply_balance": true,
            "balance_app_brand_user_name": "gh_7e9787cd2ef1@app",
            "balance_app_brand_pass": "/pages/tabSon/me/balance/main",
            "custom_field1": {
                "name_type": "FIELD_NAME_TYPE_COUPON",
                "app_brand_user_name": "gh_7e9787cd2ef1@app",
                "app_brand_pass": "/pages/tabSon/me/card/coupons/main"
            },
            "custom_field2": {
                "name_type": "FIELD_NAME_TYPE_LEVEL",
                "app_brand_user_name": "gh_7e9787cd2ef1@app",
                "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main"
            },
            "custom_cell1": {
                "name": "会员卡详情",
                "tips": "立即进入",
                "url": "http://www.example.com",
                "app_brand_user_name": "gh_7e9787cd2ef1@app",
                "app_brand_pass": "/pages/tabSon/me/card/cardDetail/main"
            }
        }
    }
}

返回错误:

{

    "errcode": 41011,

    "errmsg": "missing required fields! please check document and request json! hint: [4_ej_0703e108]"

}


反复对比接口文档必填参数,没有发现差异性,不知道是哪个参数出问题,错误信息提示的也不确切,希望官方给一个说法。

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

1 个回答

  • 是小白啊
    是小白啊
    2020-02-11

    支付、卡券相关的问题请移步至微信支付专区https://developers.weixin.qq.com/community/pay提问,我们会有对应同学来处理

    2020-02-11
    有用
    回复
登录 后发表内容
问题标签