活动api


微信通用服务接口-进销存

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>微信通用服务接口</li> </ul> <h5>接口名称</h5> <ul> <li><code>https://guide-api-test.feihe.com/wisdom-api/weixin/v1/stock/{method}</code></li> </ul> <h5>远程调用Feign</h5> <ul> <li>模块名 wisdom-api</li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> <li>格式 <pre><code class="language-json">{ &amp;quot;touser&amp;quot;:&amp;quot;openid&amp;quot;, &amp;quot;template_id&amp;quot;:&amp;quot;消息模版&amp;quot;, &amp;quot;miniprogram&amp;quot;:{ &amp;quot;appid&amp;quot;:&amp;quot;小程序id&amp;quot;, &amp;quot;pagepath&amp;quot;:&amp;quot;小程序页面地址&amp;quot; }, &amp;quot;data&amp;quot;:{ &amp;quot;first&amp;quot;:{ &amp;quot;value&amp;quot;:&amp;quot;恭喜你购买成功!&amp;quot;, &amp;quot;color&amp;quot;:&amp;quot;#173177&amp;quot; }, &amp;quot;keyword1&amp;quot;:{ &amp;quot;value&amp;quot;:&amp;quot;巧克力&amp;quot;, &amp;quot;color&amp;quot;:&amp;quot;#173177&amp;quot; }, &amp;quot;keyword2&amp;quot;:{ &amp;quot;value&amp;quot;:&amp;quot;39.8元&amp;quot;, &amp;quot;color&amp;quot;:&amp;quot;#173177&amp;quot; }, &amp;quot;keyword3&amp;quot;:{ &amp;quot;value&amp;quot;:&amp;quot;2022年11月22日&amp;quot;, &amp;quot;color&amp;quot;:&amp;quot;#173177&amp;quot; }, &amp;quot;remark&amp;quot;:{ &amp;quot;value&amp;quot;:&amp;quot;欢迎再次购买!&amp;quot;, &amp;quot;color&amp;quot;:&amp;quot;#173177&amp;quot; } } }</code></pre> <h5>参数</h5></li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">method</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>微信服务方法 “/”转换为 “ .” 如 cgi-bin/message/template/send 转换为 cgi-bin.message.template.send</td> </tr> <tr> <td style="text-align: left;">body</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>消息体,格式按照微信文档组装放入此参数内</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{&amp;quot;errcode&amp;quot;:0,&amp;quot;errmsg&amp;quot;:&amp;quot;ok&amp;quot;,&amp;quot;msgid&amp;quot;:2516791975648722945}</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">errcode</td> <td style="text-align: left;">int</td> <td>微信错误码</td> </tr> <tr> <td style="text-align: left;">errmsg</td> <td style="text-align: left;">string</td> <td>微信错误信息</td> </tr> <tr> <td style="text-align: left;">msgid</td> <td style="text-align: left;">int</td> <td>消息id</td> </tr> </tbody> </table> <p>更多返回参考 [微信公众号开发文档](<a href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html">https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html</a> &quot;微信公众号开发文档&quot;)</p> <h5>备注</h5> <h6>1.微信发送模版消息官方文档</h6> <ul> <li> <p>官方文档 [微信发送客服消息](http:<a href="https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html">https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html</a> &quot;微信发送客服消息&quot;)</p> </li> <li>更多返回错误代码请看微信的错误代码描述</li> </ul>

页面列表

ITEM_HTML