小程序商品更新价格(批量)
<p><strong>接口状态:</strong>
已完成</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>ERP价格变化时,根据商品ID更新小程序单价</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li>` <a href="https://dcx.lingzhishouji.com/gateway/api/erp/update_goods_price">https://dcx.lingzhishouji.com/gateway/api/erp/update_goods_price</a></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>产品类型</td>
<td><code>normal</code>:商品;<code>group</code>:拼团;<code>integral</code>:积分</td>
</tr>
<tr>
<td style="text-align: left;">key</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>产品标识</td>
<td><code>type</code>为 <code>normal</code> 和 <code>integral</code>时 内容为商品 <code>{商品ID}^^^{规格key}</code>;<br/><code>type</code>为<code>group</code>时 内容为商品ID</td>
</tr>
<tr>
<td style="text-align: left;">price</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">float</td>
<td>售卖价</td>
<td>-</td>
</tr>
<tr>
<td style="text-align: left;">shop_price</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">float</td>
<td>划线价</td>
<td>-</td>
</tr>
<tr>
<td style="text-align: left;">integral</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>积分</td>
<td>仅<code>type</code>为<code>integral</code>时 有效</td>
</tr>
</tbody>
</table>
<p><strong>参数示例:</strong> </p>
<pre><code class="language-json">[
{
&quot;type&quot;:&quot;normal&quot;,
&quot;key&quot;:&quot;1^^^8Gú128G&quot;,
&quot;price&quot;:200.00,
&quot;shop_price&quot;:200.00
},
{
&quot;type&quot;:&quot;integral&quot;,
&quot;key&quot;:&quot;1^^^白色&quot;,
&quot;price&quot;:100.00,
&quot;shop_price&quot;:200.00,
&quot;integral&quot;:200
},
{
&quot;type&quot;:&quot;group&quot;,
&quot;key&quot;:&quot;2&quot;,
&quot;price&quot;:100.00,
&quot;shop_price&quot;:30.00
}
]</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: [],
&quot;msg&quot;: &quot;&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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;">code</td>
<td style="text-align: left;">int</td>
<td>0成功,其他失败</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>返回提示词</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">json</td>
<td>忽略</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>