简要描述:
- 用户订单详情
请求域名:
- http://xx.com
请求URL:
POST:plugin.consume-reward.frontend.member.getOrderDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
detail_id | 是 | int | 订单记录id,为用户订单列表接口返回值中的id字段 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"sum_amount": "140.00",
"settled_amount": "140.00",
"unsettled_amount": "0.00",
"state_name": "已报销",
"order_sn": "SN20200618092146JO",
"created_at": "2020-06-18 09:21:46",
"reward_day": 0,
"reward_count": 3,
"reward_start_time": "2021-03-01 14:10:53",
"reward_log": [
{
"cr_order_id": 102,
"id": 1,
"amount": "46.66",
"created_at": "2021-03-01 14:10:53"
},
{
"cr_order_id": 102,
"id": 2,
"amount": "46.67",
"created_at": "2021-03-01 14:10:53"
},
{
"cr_order_id": 102,
"id": 3,
"amount": "46.67",
"created_at": "2021-03-01 14:10:53"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": {}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
data->sum_amount | float | 报销总金额 | |
data->settled_amount | float | 已报销金额 | |
data->unsettled_amount | float | 待报销金额 | |
data->state_name | string | 报销状态名 | |
data->order_sn | string | 订单号 | |
data->created_at | string | 订单创建时间 | |
data->reward_day | int | 报销周期 | |
data->reward_count | int | 报销次数 | |
data->reward_start_time | string | 报销开始时间 | |
data->reward_log->amount | int | 报销发放金额 | |
data->reward_log->created_at | string | 报销发放时间 |