库存变动通知
<p>[TOC]</p>
<h5>库存变动通知-此接口需订阅,需要提供接收地址</h5>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<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;">product_list</td>
<td style="text-align: left;">object</td>
<td>商品对象</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; product_code</td>
<td style="text-align: left;">string</td>
<td>商品编码</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; product_id</td>
<td style="text-align: left;">string</td>
<td>商品id</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; inventory</td>
<td style="text-align: left;">string</td>
<td>库存</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; is_multi_spec</td>
<td style="text-align: left;">string</td>
<td>0:单规格、1:多规格</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; sku_id</td>
<td style="text-align: left;">string</td>
<td>供货价-单规格时会存在</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; sku_code</td>
<td style="text-align: left;">string</td>
<td>供货价 -单规格时会存在</td>
</tr>
<tr>
<td style="text-align: left;">sku_list</td>
<td style="text-align: left;">object</td>
<td>规格列表-多规格时会存在</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; sku_code</td>
<td style="text-align: left;">string</td>
<td>规格编码</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; sku_id</td>
<td style="text-align: left;">string</td>
<td>规格id</td>
</tr>
<tr>
<td style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; inventory</td>
<td style="text-align: left;">string</td>
<td>库存</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
&quot;appid&quot;: &quot;8ea3a97f341ad27b&quot;,
&quot;create_time&quot;: 1721904867,
&quot;product_list&quot;: [{
&quot;product_id&quot;: 77,
&quot;product_code&quot;: &quot;CloudP202407091039398590814&quot;,
&quot;inventory&quot;: 936,
&quot;is_multi_spec&quot;: 0,
&quot;sku_id&quot;: 110,
&quot;sku_code&quot;: &quot;CloudK202407101805242824931&quot;
}, {
&quot;product_id&quot;: 85,
&quot;product_code&quot;: &quot;CloudP202407091039402078356&quot;,
&quot;inventory&quot;: 4519,
&quot;is_multi_spec&quot;: 1,
&quot;sku_list&quot;: [{
&quot;sku_id&quot;: 120,
&quot;sku_code&quot;: &quot;CloudK202407101805259574655&quot;,
&quot;inventory&quot;: 4178
}]
}, {
&quot;product_id&quot;: 87,
&quot;product_code&quot;: &quot;CloudP202407091039408321392&quot;,
&quot;inventory&quot;: 28246,
&quot;is_multi_spec&quot;: 1,
&quot;sku_list&quot;: [{
&quot;sku_id&quot;: 124,
&quot;sku_code&quot;: &quot;CloudK202407101805257300008&quot;,
&quot;inventory&quot;: 4781
}]
}, {
&quot;product_id&quot;: 127,
&quot;product_code&quot;: &quot;CloudP202407190020144018602&quot;,
&quot;inventory&quot;: 914,
&quot;is_multi_spec&quot;: 0,
&quot;sku_id&quot;: 0,
&quot;sku_code&quot;: &quot;&quot;
}],
&quot;sign&quot;: &quot;2AF44E5A7C924C8F45A36E800737413E&quot;
}
&quot;
&quot;</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>