4.3 同步基础商品信息
<h3>4.3 同步基础商品信息</h3>
<p>> - Url路径:[建议]setProducts</p>
<h4>4.3.1 接口请求模型</h4>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>products </td>
<td>List<setProductsModel></td>
<td> </td>
<td> </td>
<td>Y </td>
<td>商品集合(最大200行)</td>
</tr>
</tbody>
</table>
<h4>4.3.2 接口返回模型</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>参数长度</th>
<th>代码标识</th>
<th>必填</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>code </td>
<td>int </td>
<td>3 </td>
<td>Y </td>
<td>Y </td>
<td>成功标识 200:成功 -1:失败/异常</td>
</tr>
<tr>
<td>msg </td>
<td>string </td>
<td>200 </td>
<td> </td>
<td>Y </td>
<td>返回信息 </td>
</tr>
<tr>
<td>output </td>
<td>object </td>
<td> </td>
<td> </td>
<td> </td>
<td>返回数据 </td>
</tr>
<tr>
<td>nonce </td>
<td>string </td>
<td>200 </td>
<td> </td>
<td>Y </td>
<td>请求时的nonce原样返回 </td>
</tr>
</tbody>
</table>
<p>Demo:</p>
<pre><code>Request:
{
&quot;appKey&quot;: &quot;NepHealth&quot;,
&quot;input&quot;: {
&quot;pharmacyCode&quot;: &quot;01&quot;,
&quot;products&quot;: [{
&quot;approvalNumber&quot;: &quot;SC1135058201717&quot;,
&quot;barcode&quot;: &quot;0011075&quot;,
&quot;brand&quot;: &quot;102855&quot;,
&quot;category1&quot;: 101691,
&quot;category1Name&quot;: &quot;农副及食品饮料&quot;,
&quot;category2&quot;: 101758,
&quot;category2Name&quot;: &quot;休闲食品&quot;,
&quot;category3&quot;: 102184,
&quot;category3Name&quot;: &quot;糖果、巧克力&quot;,
&quot;dosageForm&quot;: &quot;预包装食品&quot;,
&quot;enterprise&quot;: &quot;晋江市优度食品发展有限公司&quot;,
&quot;isHealthIsr&quot;: 0,
&quot;name&quot;: &quot;怡爽,蜜炼草本枇杷糖(特强铁盒) 晋江优度 60G&quot;,
&quot;placeType&quot;: 1,
&quot;prescriptionType&quot;: 4,
&quot;price&quot;: 99.00,
&quot;sku&quot;: &quot;盒&quot;,
&quot;spec&quot;: &quot;60G&quot;,
&quot;status&quot;: 1,
&quot;upc&quot;: &quot;6934982200049&quot;
}]
},
&quot;nonce&quot;: &quot;9e2419ac-c764-4a49-bd9e-69ede25ef609&quot;,
&quot;sign&quot;: &quot;8248c0dc20614f7b52456a13b26fb58bde32d35d&quot;,
&quot;timestamp&quot;: 1646387440
}
Response:
{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;nonce&quot;: &quot;9e2419ac-c764-4a49-bd9e-69ede25ef609&quot;,
&quot;output&quot;: null
}</code></pre>