Appearance
功能概述
租赁合同详情接口
- 根据订单ID获取租赁详情接口
接口访问
接口地址
rental/order/detail
请求方式 Method
GET
Header - Authorization Type : Bearer Token
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 | 访问版本 |
|---|---|---|---|---|---|---|
| token | string | 32 | true | 用户身份标识令牌 | - |
请求参数
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
| rentalID | int | 64 | true | 0 | 租赁订单ID |
请求示例
{
"rentalID":1
}返回值
| 属性 | 类型 | 长度 | 说明 |
|---|---|---|---|
| propertyID | int | 64 | 物业编号 |
| propertyBuildingHouseID | int | 64 | 物业楼栋房产编号 |
| usersPropertyID | int | 64 | 用户物业编号 |
| usersPropertyBuildingHouseID | int | 64 | 用户物业楼栋房产编号 |
| commencementDate | string | 256 | 起租日 |
| leaseTerm | int | 64 | 租期(数字),单位取决于租期类型 |
| leaseTermType | int | 64 | 租期类型 1. 日租 2. 月租 3. 年租 |
| rent | int | 64 | 租金 |
| paymentMethod | int | 64 | 支付方式 1.微信 2.支付宝 |
| isDeposit | int | 64 | 是否在线收取押金 0.否 1.是 |
| depositFee | int | 64 | 押金金额(分/总数) |
| depositType | int | 64 | 押金类型 1. 押一 2. 押二 3. 押三 以此类推 |
| rentType | int | 64 | 租金类型 1. 付一 2. 付二 3. 付3 4. 半年 5. 一年 |
| waterFee | int | 64 | 水费(分/吨) |
| electricityFee | int | 64 | 电费(分/度) |
| propertyFee | int | 64 | 物业费(分/平方米) |
| parkingFee | int | 64 | 汽车停车费(分/月/辆) |
| electricBikeFee | int | 64 | 电动车停车费(分/月/辆) |
| isSublease | int | 64 | 是否可以转租 0.否 1.是 |
| isChangeHouse | int | 64 | 是否可以在同业主下换租 0.否 1.是 |
| rentalStatus | int | 64 | 租赁业务状态 1. 业务创建 2. 租客确认 3. 业主确认 4. 订单创建 5. 订单待支付 6. 订单已支付(租约起点未到) 7. 租约进行中 8. 租期结束 -1. 租客拒绝 -2. 业主拒绝 -3. 订单取消 -4. 订单未支付自动取消 -5. 租客违约 -6. 业主违约 -7. 租客解约 -8. 业主解约 -9. 租客逾期业务终止 |
| rentalOrderID | int | 64 | 支付订单ID |
| contractSigningDate | date | 64 | 合同签署时间 |
| terminationDate | date | 64 | 退租时间 |
| tenantUserName | string | 64 | 租客姓名 |
| terminateStatus | int | 64 | 退租状态 1.租客发起退租 2.业主发起退租 3.租客确认,未到退租日 4.业主确认,未到退租日 5.退租办理中 6.退租完成 |
| deduction_deposit_fee | int | 64 | 扣除押金金额 |
| owner_user_remark | string | 256 | 业主备注 |
| tenant_user_remark | string | 256 | 租客备注 |
返回示例
{
"response": {
"id": 58,
"status": 0,
"propertyId": 113,
"propertyBuildingHouseId": 1718,
"usersPropertyId": 141,
"usersPropertyBuildingHouseId": 1733,
"ownerUserId": 39,
"tenantUserId": 39,
"commencementDate": "2025-11-26",
"terminationDate": "0000-00-00",
"leaseTerm": 12,
"leaseTermType": 2,
"rent": 1100,
"rentType": 3,
"paymentMethod": 1,
"depositFee": 111,
"depositType": 1,
"isDeposit": 1,
"ownerUserRemark": "搞那么脏,包扣200的呀",
"tenantUserRemark": "",
"contractPeriod": 0,
"contract": "",
"contractSigningDate": "2025-11-26",
"hardwareDoorLockId": 0,
"hardwareElectricityMeterId": 0,
"hardwareWaterMeterId": 0,
"waterFee": 12,
"isWaterFee": 0,
"electricityFee": 12,
"isElectricityFee": 0,
"propertyFee": 12,
"isPropertyFee": 0,
"electricBikeFee": 0,
"isElectricBikeFee": 0,
"parkingFee": 0,
"isParkingFee": 0,
"newEnergyFee": 0,
"isNewEnergyFee": 0,
"isSublease": 0,
"isChangeHouse": 0,
"isUtilitiesAndRent": 0,
"utilityBillDate": null,
"rentalStatus": -8,
"terminateStatus": 0,
"dataLevel": 1,
"isDelete": 0,
"createTime": "2025-11-26 15:16:31",
"modifyTime": "2025-12-04 14:15:54",
"deleteTime": null,
"tenantUserName": "挖野菜的小帅哥一枚"
},
"requestId": "eb8c96b3-5cba-4db5-a107-f0fc3298b424"
}错误码
| 错误码 | 说明 | 解决方案 |
|---|---|---|
| 91021 | 订单ID不能为空 | 检查参数是否正确 |
| 404 | Fail | 代码报错 |
