POST api/CompanyStores/getDrugInventory
查询药品库存
请求的信息
URI参数
None.
Body参数
getDrugInventoryCondition名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
type |
库存类型 1=总库电商商品库存 2=门店药品库存 |
integer |
None. |
drugs |
药品集合 |
Collection of getDrugInventoryDrugs |
None. |
storeNo |
门店编号 库存类型为2必填 |
string |
None. |
appKey |
合作方接入认证标识(海王提供对应商户编码)--必填 |
string |
None. |
timeStamp |
10位时间戳 格式为long,时区为GMT+8。开放平台允许合作方请求最大时间误差为10分钟 |
integer |
None. |
version |
API协议版本,可选值:1.0 |
string |
None. |
sign |
签名值 --必填 |
string |
None. |
请求格式
application/json, text/json
Sample:
{ "type": 1, "drugs": [ { "$id": "2", "barcode": "sample string 1" }, { "$ref": "2" }, { "$ref": "2" } ], "storeNo": "sample string 2", "appKey": "sample string 3", "timeStamp": 4, "version": "sample string 5", "sign": "sample string 6" }
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfJsonResult名称 | 描述 | 类型 | 其它信息 |
---|---|---|---|
Content | JsonResult |
None. |
响应格式
application/json, text/json
Sample:
{ "content": { "$id": "2", "code": 1, "msg": "sample string 2", "data": "sample string 3" } }