stopsalenotice/get
目录 |
1.接口说明
1.1接口描述
获取单个药品停售通知单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
药品停售通知单
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/stopsalenotice/get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| id | 是 | string | 单据编号 |
3.3请求示例
GET https://api.yonyouup.com/api/stopsalenotice/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&id=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| imassdate | number | 保质期 | |
| cmassunit | string | 保质期单位 | |
| cmemo | string | 备注 | |
| cdefine1 | string | 表头自定义项1 | |
| cdefine2 | string | 表头自定义项2 | |
| cdefine3 | string | 表头自定义项3 | |
| cdefine4 | date | 表头自定义项4 | |
| cdefine5 | number | 表头自定义项5 | |
| cdefine6 | date | 表头自定义项6 | |
| cdefine7 | number | 表头自定义项7 | |
| cdefine9 | string | 表头自定义项9 | |
| cdefine10 | string | 表头自定义项10 | |
| cdefine11 | string | 表头自定义项11 | |
| cdefine12 | string | 表头自定义项12 | |
| cdefine13 | string | 表头自定义项13 | |
| cdefine14 | string | 表头自定义项14 | |
| cdefine15 | number | 表头自定义项15 | |
| cdefine16 | number | 表头自定义项16 | |
| cwhname | string | 仓库名称 | |
| caddress | string | 产地 | |
| cinid | string | 单据编号 | |
| cinvstd | string | 规格 | |
| cprocess | string | 后续处理 | |
| cpreparationtype | string | 剂型 | |
| cbatchproperty1 | number | 批次属性1 | |
| cbatchproperty2 | number | 批次属性2 | |
| cbatchproperty3 | number | 批次属性3 | |
| cbatchproperty4 | number | 批次属性4 | |
| cbatchproperty5 | number | 批次属性5 | |
| cbatchproperty6 | string | 批次属性6 | |
| cbatchproperty7 | string | 批次属性7 | |
| cbatchproperty8 | string | 批次属性8 | |
| cbatchproperty9 | string | 批次属性9 | |
| cbatchproperty10 | date | 批次属性10 | |
| cbatch | string | 批号 | |
| cfile | string | 批准文号 | |
| cinvcode | string | 商品编码 | |
| cinvname | string | 商品名称 | |
| cfree1 | string | 商品自由项1 | |
| cfree2 | string | 商品自由项2 | |
| cfree3 | string | 商品自由项3 | |
| cfree4 | string | 商品自由项4 | |
| cfree5 | string | 商品自由项5 | |
| cfree6 | string | 商品自由项6 | |
| cfree7 | string | 商品自由项7 | |
| cfree8 | string | 商品自由项8 | |
| cfree9 | string | 商品自由项9 | |
| cfree10 | string | 商品自由项10 | |
| dverifydate | date | 审核日期 | |
| centerprise | string | 生产企业 | |
| dprodate | date | 生产日期 | |
| dvaldate | date | 失效日期 | |
| fqty | number | 数量 | |
| cdefine8 | string | 停售方式 | |
| cunsreason | string | 停售原因 | |
| ccurrencyname | string | 通用名称 | |
| ddate | date | 通知日期 | |
| clicence | string | 许可证号 | |
| cmcid | string | 养护检查记录单编号 | |
| cvaldates | string | 有效期至 | |
| cmaker | string | 制单人 | |
| cverifier | string | 质管部门负责人 | |
| creason | string | 质量部门意见 | |
| ccomunitname | string | 主计量单位 | |
| clabel | string | 注册商标 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"stopsalenotice":{
"cmaker":"demo",
"cbatchproperty2":"",
"cbatchproperty3":"",
"cbatchproperty1":"",
"cbatchproperty6":"",
"cbatchproperty7":"",
"cbatchproperty4":"",
"cbatchproperty5":"",
"cbatchproperty10":"",
"cinvcode":"U101",
"cbatchproperty8":"",
"cinvname":"一体化机",
"cbatchproperty9":"",
"cfree9":"",
"cfree8":"",
"ddate":"2015-01-0800:00:00.0",
"cfree7":"",
"cwhname":"成品库",
"cfree6":"",
"cfree5":"",
"cfree4":"",
"cfree3":"",
"cfree2":"",
"ccomunitname":"台",
"cfree1":"",
"cinid":"0000000001",
"clicence":"",
"dvaldate":"",
"cpreparationtype":"",
"cmemo":"",
"cmcid":"",
"creason":"",
"ccurrencyname":"",
"cdefine12":"",
"cdefine11":"",
"cdefine10":"",
"centerprise":"",
"fqty":"2000.000000",
"cvaldates":"",
"dprodate":"",
"cverifier":"",
"cdefine14":"",
"cdefine13":"",
"cdefine16":"",
"cdefine15":"",
"cprocess":"报损",
"cunsreason":"养护发现质量问题",
"caddress":"",
"cdefine9":"",
"cdefine8":"药品",
"cdefine7":"",
"cdefine6":"",
"cdefine5":"",
"cinvstd":"A123",
"cdefine4":"",
"cdefine3":"",
"dverifydate":"",
"cdefine2":"",
"cmassunit":"",
"cdefine1":"",
"imassdate":"",
"cbatch":"",
"clabel":"",
"cfile":"",
"cfree10":""
},
"errmsg":"",
"errcode":"0"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}