https://api.weixin.qq.com/card/create?access_token=
{
"card": {
"card_type": "GENERAL_CARD",
"general_card": {
"background_pic_url": "http://mmbiz.qpic.cn:80/mmbiz_jpg/rL6Y944DQzYTg8QNeMlEmuFic6IRpBmK4MY69liamny7wX2aIv0PaYR9ibOUNtgvibmXyUd3AFFjLyd2oMUhzCYZyw/0",
"sub_card_type": "GIFT_CARD",
"auto_activate": true,
"supply_bonus": false,
"supply_balance": false,
"base_info": {
"giftcard_info": {
"price": 129900
},
"logo_url": "http://mmbiz.qpic.cn:80/mmbiz_jpg/rL6Y944DQzaOA8vqb7HTa5nbichvQQ9GH7kumrgpFWyxrU5wuBWDeuVmRfEuXWufbR0BhEShICGMichJJDn2mwBQ/0",
"max_give_friend_times": 0,
"brand_name": "好又多生活超市",
"code_type": "CODE_TYPE_TEXT",
"title": "大闸蟹",
"color": "Color020",
"notice": "有效日期至2024-11-24",
"service_phone": "13599178751",
"description": "发臭不可以食用",
"date_info": {
"type": "DATE_TYPE_FIX_TIME_RANGE",
"begin_timestamp": 1732032000,
"end_timestamp": 1732463999,
"fixed_term": 5,
"fixed_begin_term": 0
},
"sku": {
"quantity": 0
},
"use_all_locations": true,
"use_custom_code": true,
"bind_openid": false,
"can_share": false,
"can_give_friend": false,
"get_limit": 0,
"location_id_list": null,
"center_title": null,
"center_sub_title": null,
"center_url": null,
"custom_url_name": null,
"center_app_brand_user_name": null,
"center_app_brand_pass": null,
"custom_url": null,
"custom_url_sub_title": null,
"custom_app_brand_user_name": null,
"custom_app_brand_pass": null,
"promotion_url_name": null,
"promotion_url": null,
"promotion_app_brand_user_name": null,
"promotion_app_brand_pass": null
},
"advanced_info": null
}
}
}
还请参照文档进行传参https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/gift_card.html#_6-3-%E5%88%9B%E5%BB%BA%E7%A4%BC%E5%93%81%E5%8D%A1%E6%8E%A5%E5%8F%A3,如果是不需要的参数可直接不传,不能直接传null