💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### <div> <span class="request">GET</span> <span class="url">/trip/accounts/{id}</span> </div> * * * * * ###### 需要登录:是 访问频次:60次/分钟 冻结时间:1分钟 #### 接口功能 ~~~ 获取一个行程所记录的记账清单 ~~~ #### 注意事项: > 当返回错误码为422时,错误信息在errors中,否则,错误信息为message > 清单中,正值为收入科目,负值为支出科目 #### 参数表: |参数名|必选|类型|说明| | -- | -- | -- | -- | |id|是|integer|行程单id| +++ <<< 操作成功 { "message": "操作成功", "status_code": 200, "data": { "receiptSum": 20000, //收入总计 "paymentSum": -2500, //支出总计 "balance": 17500, //结余 "list": [ { "id": 1, //条目id "trip_id": 1, //行程id "title": "出团费", //科目名称 "amount": 20000, //金额,正值为收入,负值为支出 "remark": "抠门的老板", //备注 "created_at": "2016-07-01 15:32:54", "updated_at": "2016-07-01 15:32:56", "balance": 20000 //本次结余 }, { "id": 2, "trip_id": 1, "title": "大巴", "amount": -2000, "remark": "金龙40座", "created_at": "2016-07-01 15:33:39", "updated_at": "2016-07-01 15:33:42", "balance": 18000 }, { "id": 3, "trip_id": 1, "title": "早餐", "amount": -500, "remark": "30人吃了500", "created_at": "2016-07-01 15:34:08", "updated_at": "2016-07-01 15:34:11", "balance": 17500 } ] } } <<< 操作失败 { "message": "Unauthorized", "status_code": 401 } +++