Appearance
功能概述
用户账单概况接口
- 用户账单概况接口,包括房租水电费概况,还有服务费等信息
接口访问
接口地址
rental/bills/overview
请求方式 Method
GET
Header - Authorization Type : Bearer Token
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 | 访问版本 |
|---|---|---|---|---|---|---|
| token | string | 32 | true | 用户身份标识令牌 | - |
请求参数
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
| rentalID | int | 64 | true | 0 | 合同ID |
请求示例
{
"rentalID":2
}返回值
| 属性 | 类型 | 必填 | 描述 |
|---|---|---|---|
| currentPayDetail.currentPayFee | int | true | 本月应缴总费用 |
| rentDetail.currentMonthRent | int | true | 本月租金 |
| rentDetail.contractRemainingRent | int | true | 合同剩余租金 |
| utilitiesDetail.currentMonthWaterFee | int | true | 本月应缴水费 |
| utilitiesDetail.currentMonthElectricFee | int | true | 本月应缴电费 |
| utilitiesDetail.currentMonthUtilityTotal | int | true | 本月应缴生活费用总和 |
| platformDetail.platformServiceFee | int | true | 平台服务费 |
返回示例
{
"response": {
"currentPayDetail": {
"currentPayFee": 10000
},
"rentDetail": {
"currentMonthRent": 10000,
"contractRemainingRent": 120000
},
"utilitiesDetail": {
"currentMonthWaterFee": 0,
"currentMonthElectricFee": 0,
"currentMonthUtilityTotal": 0
},
"platformDetail": {
"platformServiceFee": 0
}
},
"requestId": "b65696a9-823e-496b-ad45-d5d4839e7a20"
}错误码
| 错误码 | 说明 | 解决方案 |
|---|---|---|
| 91021 | 订单ID不能为空 | 检查参数是否正确 |
| 404 | Fail | 代码报错 |
