查询交易
待废弃 GET /api/tntry?year=&month=&type=
GET /api/transactions?year=&month=&type=
参数
| Name | Type | In | Required | Desciption |
|---|---|---|---|---|
ledgerId |
string | header | true | 账本唯一标识符(sha1) |
year |
int | query | false | 年份(2021) |
month |
int | query | false | 月份(11) |
type |
string | query | false | 交易类型(Expenses, Income, Liabilities) |
返回值
{"code": 200,"message": "OK","data": [{"id": "6ea049934bb2cc9ddee10819effb3003","date": "2021-11-02","payee": "淘宝天猫","desc": "卡祖笛,口风琴,柿饼,胸带","account": "Expenses:Life:Hobby:Camera:摄影","tags": ["11.11"],"amount": "28.13","commodity": "CNY","commoditySymbol": "¥"}]}
商家列表
查询最近100条交易的商家信息(去重)
待废弃 GET /api/payee
GET /api/transactions/payee
参数
| Name | Type | In | Required | Desciption |
|---|---|---|---|---|
ledgerId |
string | header | true | 账本唯一标识符(sha1) |
返回值
{"code": 200,"message": "OK","data": ["祥和面馆","Apple","支付宝","兰州拉面"]}
交易模版
待废弃 GET~~ _/api/transaction/template~~
GET /api/transactions/template_
参数
| Name | Type | In | Required | Desciption |
|---|---|---|---|---|
ledgerId |
string | header | true | 账本唯一标识符(sha1) |
返回值
{"code": 200,"message": "OK","data": [{"id": "d485674e9d294e8f8fe6440872dcd6bf417b0b61","date": "2021-10-04","templateName": "Apple-Apple Music","payee": "Apple","desc": "Apple Music","entries": [{"account": "Assets:Flow:EBank:AliPay:支付宝","commodity": "CNY","amount": "-10"},{"account": "Expenses:Life:Subscribe:Apple:苹果订阅服务","commodity": "CNY","amount": "10"}]}]}
