药品订单-支付药款页面-根据处方信息计算药款
GET
/patient/medicine/order/pre请求参数
Query 参数
prescriptionId
string
处方id
示例值:
123456
couponId
string
可选
使用优惠券,需要传此值,不使用优惠券,不传
useCoupon
string
可选
不传,默认值1,即使用优惠券
传0,不使用优惠券
其中,不传优惠券id,默认按照最大优惠券使用,
传了优惠券id,表示使用指定的优惠券
示例值:
1
Header 参数
authorization
string
可选
示例值:
{{Btoken}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
请求成功标志
code
number
可选
请求成功10000标志
message
string
请求成功
data
object
返回数据
id
string
处方id
pointDeduction
number
积分可抵扣
couponDeduction
number
优惠券抵扣
couponId
string
使用的优惠券id
payment
number
必需
应付金额(药品总价格)
expressFee
number
运费
actualPayment
number
实际支付
medicines
array [object {8}]
药品信息
示例
{
"success": true,
"code": 0,
"message": "string",
"data": {
"id": "string",
"pointDeduction": 0,
"couponDeduction": 0,
"couponId": "string",
"payment": 0,
"expressFee": 0,
"actualPayment": 0,
"medicines": [
{
"id": "string",
"name": "string",
"amount": "string",
"avatar": "string",
"specs": "string",
"usageDosag": "string",
"prescriptionFlag": 0,
"quantity": 0
}
]
}
}
最后修改时间: 10 个月前