请求接口:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=
请求参数:
{"data":{"character_string21":{"value":"测试单号"},"phrase13":{"value":"阿大"},"time20":{"value":"2023-09-12 19:43:07"}},"template_id":"1nP16v0mAxPbdUqo4FHCyWvc7yhUYZRADksFbDRh-44","touser":"ooQkW541Ny0xyfLDGUfIUZsz7Vxx"}
返回:
{"errcode":47003,"errmsg":"argument invalid! data.character_string21.value invalid rid: 65004ee5-3ca2dfc2-6eb97a55"}
character_string 限制32位以内数字、字母或符号,不支持中文。
参考文档:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#%E7%B1%BB%E7%9B%AE%E6%A8%A1%E6%9D%BF%E6%B6%88%E6%81%AF