接口文档 / 收费接口
创建零售收费单
POST/api/v2/open-agency/charge/sheets在线调试 请求参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
▸chargeForms必填 | | array<object> |
patientId可选
| | string |
sellerId可选
| | string |
sellerDepartmentId可选
| | string |
doctorId可选
| | string |
doctorDepartmentId可选
| | string |
diagnosis可选
| | string |
▸prescriptionUrls可选 | | array<string> |
operatorId必填
| | string |
disablePromotion可选
| | integer |
请求示例
json
{
"chargeForms": [
{
"doseCount": 1,
"pharmacyNo": 0,
"chargeFormItems": [
{
"productId": "483ac61f811640f5849a3d3aabceea58",
"productShortId": 1907765200,
"unitCount": 2,
"expectedUnitPrice": 5,
"expectedTotalPrice": 5,
"useDismounting": 1,
"specialRequirement": "煎法(先煎、后下、包煎、另煎、先炒、烊化、冲服、捣碎、吞服、煎汤代水、兑入、打粉、另包)",
"extraInfo": "string"
}
],
"usageInfo": {
"usage": "煎服",
"freq": "1日3次",
"doseCount": 3,
"dailyDosage": "1日3剂",
"requirement": "饭前服用",
"usageLevel": "每次150ml"
}
}
],
"patientId": "ffffffff0000000034de380221984001",
"sellerId": "ffffffff000000001b6cf51810e0e000",
"sellerDepartmentId": "38e4085cb61ef7ac520cbd6e7508ead2",
"doctorId": "ffffffff0000000022174678012e2000",
"doctorDepartmentId": "38e4085cb61ef7ac520cbd6e7508ead2",
"diagnosis": "急性上呼吸道感染",
"prescriptionUrls": [
"string"
],
"operatorId": "00000000000000000000000000000000",
"disablePromotion": 1
}
响应参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
▾data可选 | | object |
id必填
| | string |
patientOrderId必填
| | string |
status必填
| | integer |
needPay必填
| | number |
▸error可选可为空 | | object |
响应示例
json
{
"data": {
"id": "ffffffff0000000035094935b30b8000",
"patientOrderId": "ffffffff0000000035094935ade28000",
"status": 0,
"needPay": 100
},
"error": null
}
业务失败包装示意
json
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}
查看 HTTP 状态与业务码排查