协作系统-发送客服消息
<h1>上传媒体资源</h1>
<h2><strong>请求URL:</strong></h2>
<ul>
<li>
<p>前缀
TEST:<a href="https://guide-api-test.feihe.com">https://guide-api-test.feihe.com</a>
UAT:<a href="https://guide-api-uat.feihe.com">https://guide-api-uat.feihe.com</a>
PROD:<a href="https://guide-api.feihe.com">https://guide-api.feihe.com</a></p>
</li>
<li>地址
/wisdom-api/weixin/v1/sendCustomerMessage</li>
</ul>
<h2><strong>请求方式:</strong></h2>
<p>POST</p>
<h2><strong>请求头:</strong></h2>
<ul>
<li>system: NEW_MEMBER</li>
</ul>
<h2><strong>请求参数:</strong></h2>
<pre><code class="language-json">{
&quot;openId&quot;: &quot;oc63ewmuBYT11PkeC2IEsT0n2gggg&quot;,
&quot;msg&quot;: &quot;客服消息&quot;
}</code></pre>
<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;">openId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>微信openid</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>消息体</td>
</tr>
</tbody>
</table>
<h2>成功返回结果example</h2>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;errcode&quot;: 0,
&quot;errmsg&quot;: &quot;ok&quot;
}
}</code></pre>
<h2>失败结果example</h2>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;errcode&quot;: 40003,
&quot;errmsg&quot;: &quot;invalid openid rid: 66f3bd4d-25a283a9-73c6a452&quot;
}
}</code></pre>
<h2><strong>返回结果:</strong></h2>
<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;">data.errcode</td>
<td style="text-align: left;">string</td>
<td>微信错误code|</td>
</tr>
<tr>
<td style="text-align: left;">errmsg</td>
<td style="text-align: left;">string</td>
<td>微信错误提示|</td>
</tr>
</tbody>
</table>