接口文档 / 发药接口
发药单退药,支持部分退药
PUT/api/v2/open-agency/dispensing/{dispensingSheetId}/undispense在线调试 请求参数
| 名称 | 说明 | 类型 |
|---|
| Path 参数 |
|---|
dispensingSheetId必填
| | string |
| Body 参数 |
|---|
▸dispensingForms必填 | | array<object> |
operatorId必填
| | string |
请求示例
json
{
"dispensingForms": [
{
"id": "ffffffff00000000350895c78a404002",
"doseCount": 1,
"dispensingFormItems": [
{
"id": "ffffffff00000000350895c78a404003",
"unitCount": 12,
"traceableCodeList": [
{
"no": 86975041000000000000,
"hisPieceCount": 10,
"hisPackageCount": 1
}
]
}
]
}
],
"operatorId": "00000000000000000000000000000000"
}
响应参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
▾data可选 | | object |
code可选
| | integer |
message可选
| | string |
▸error可选可为空 | | object |
响应示例
json
{
"data": {
"code": 200,
"message": "提示信息"
},
"error": null
}
业务失败包装示意
json
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}
查看 HTTP 状态与业务码排查