5.6 获取门店商品信息
5.6 获取门店商品信息
> - Url路径:api/store/products
5.6.1 接口请求模型
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
pharmacyCode | string | 4 | Y | 门店编号 | |
barcodes | List<string> | 商品编码集合(最大100个) |
5.6.2 接口返回模型
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
products | List<getStockModel> | Y | 商品集合 |
getStockModel
参数代码 | 参数类型参数类型 | 参数长度 | 代码标识说明 | 是否非空 | 说明 |
---|---|---|---|---|---|
upc | string | 7 | Y | 商品编码 | |
siteNo | string | 100 | Y | 地点编号 | |
quantity | number | 16,2 | Y | 可用库存 |
Demo:
Request:
{
&quot;appKey&quot;:&quot;NepHealth&quot;,
&quot;nonce&quot;:&quot;Tdsad2saa2a&quot;,
&quot;timestamp&quot;:1639119614,
&quot;sign&quot;:&quot;a1f8f760de8edfe74b3b7bb9d9c51e4379abfbdb1&quot;,
&quot;input&quot;:{
&quot;pharmacyCode&quot;:&quot;SC12&quot;,
&quot;upcs&quot;:[&quot;0000001&quot;,&quot;0000002&quot;]
}
}
Response:
{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;nonce&quot;: &quot;Tdsad2saa2a&quot;,
&quot;output&quot;: {
&quot;products&quot;: [
{
&quot;quantity&quot;: 2,
&quot;barcode&quot;: &quot;0000001&quot;,
&quot;siteNo&quot;: &quot;SC12&quot;
},
{
&quot;barcode&quot;: &quot;0000002&quot;,
&quot;siteNo&quot;: &quot;SC12&quot;,
&quot;quantity&quot;: 0
}
]
}
}