科目余额表
GET
https://v4.fenxi365.com/api/accountBook/subjectBalance
最后修改时间:2024-04-29 02:12:44
责任人:未设置
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://v4.fenxi365.com/api/accountBook/subjectBalance?subjectId=¤cyId=433722807319433217&accountDate=&start=2024年04期&end=2024年04期&subjectStart=&subjectEnd=&levelStart=1&levelEnd=4&subjectCode=&showNumPrice=&categoryType=&categoryId=&detailId=&auxiliary=false&detailIds=&subjectIds='
响应示例响应示例
200 - 科目余额表 - 成功示例
{
"success": true,
"code": 200,
"msg": "",
"data": [
{
"id": "573908309925433467",
"subjectId": "484718293437969908",
"queryCode": "1000000000000",
"subjectCode": "1",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "1",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "484718293437969908",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 121212,
"beginBalanceFor": 0,
"endBalance": 121212,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433465",
"subjectId": "433708449910640641",
"queryCode": "1001000000000",
"subjectCode": "1001",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "库存现金",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708449910640641",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": -621,
"beginBalanceFor": 0,
"endBalance": -621,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 222,
"yearTotalDebit": 222,
"yearTotalCreditFor": 222,
"yearTotalCredit": 222,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433474",
"subjectId": "433708450254573570",
"queryCode": "1002000000000",
"subjectCode": "1002",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "银行存款",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450254573570",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 200000,
"beginBalanceFor": 0,
"endBalance": 200000,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433471",
"subjectId": "493086314418206036",
"queryCode": "1010000000000",
"subjectCode": "101",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "测试辅助核算",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "493086314418206036",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 6045,
"beginBalanceFor": 0,
"endBalance": 6045,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433466",
"subjectId": "433708450539786258",
"queryCode": "1405000000000",
"subjectCode": "1405",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "库存商品",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450539786258",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": -2222,
"beginBalanceFor": 0,
"endBalance": -2222,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433476",
"subjectId": "433708450632060953",
"queryCode": "1601000000000",
"subjectCode": "1601",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "固定资产",
"leaf": true,
"balanceDirection": "借",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450632060953",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 130000,
"beginBalanceFor": 0,
"endBalance": 130000,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433470",
"subjectId": "433708450644643866",
"queryCode": "1602000000000",
"subjectCode": "1602",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "累计折旧",
"leaf": true,
"balanceDirection": "贷",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450644643866",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 0,
"beginBalanceFor": 0,
"endBalance": 0,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 175.42,
"creditFor": 0,
"credit": 175.42,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 526.26,
"yearTotalDebit": 526.26,
"yearTotalCreditFor": 526.26,
"yearTotalCredit": 526.26,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433473",
"subjectId": "433708450741112868",
"queryCode": "2001000000000",
"subjectCode": "2001",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "短期借款",
"leaf": true,
"balanceDirection": "贷",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450741112868",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 9,
"beginBalanceFor": 0,
"endBalance": 9,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433477",
"subjectId": "433708450762084390",
"queryCode": "2202000000000",
"subjectCode": "2202",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "应付账款",
"leaf": true,
"balanceDirection": "贷",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450762084390",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 150000,
"beginBalanceFor": 0,
"endBalance": 150000,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433468",
"subjectId": "433708450791444521",
"queryCode": "2221000000000",
"subjectCode": "2221",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "应交税费",
"leaf": false,
"balanceDirection": "贷",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708450791444521",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": -20000,
"beginBalanceFor": 0,
"endBalance": -20000,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
},
{
"id": "573908309925433469",
"subjectId": "433708451181514836",
"queryCode": "3001000000000",
"subjectCode": "3001",
"auxiliary": false,
"auxiliaryCode": "",
"auxiliaryName": "",
"subjectName": "实收资本",
"leaf": true,
"balanceDirection": "贷",
"currencyAccounting": [],
"auxiliaryAccounting": [],
"treeId": "433708451181514836",
"parentTreeId": "0",
"auxiliaryDetailId": "0",
"beginBalance": 200000,
"beginBalanceFor": 0,
"endBalance": 200000,
"endBalanceFor": 0,
"debitFor": 0,
"debit": 0,
"creditFor": 0,
"credit": 0,
"cfDebitFor": 0,
"cfDebit": 0,
"cfCreditFor": 0,
"cfCredit": 0,
"yearTotalDebitFor": 0,
"yearTotalDebit": 0,
"yearTotalCreditFor": 0,
"yearTotalCredit": 0,
"yearTotalFor": 0,
"yearTotal": 0,
"beginQuantity": "",
"endQuantity": "",
"creditQuantity": "",
"debitQuantity": "",
"cfCreditQuantity": "",
"cfDebitQuantity": "",
"yearTotalCreditQuantity": "",
"yearTotalDebitQuantity": "",
"yearTotalQuantity": "",
"beginDebitBalance": 0,
"beginDebitBalanceFor": 0,
"endDebitBalance": 0,
"endDebitBalanceFor": 0,
"beginCreditBalance": 0,
"beginCreditBalanceFor": 0,
"endCreditBalance": 0,
"endCreditBalanceFor": 0,
"yearTotalBeginDebit": 0,
"yearTotalBeginCredit": 0,
"yearTotalBeginDebitFor": 0,
"yearTotalBeginCreditFor": 0,
"endCreditQuantity": "",
"endDebitQuantity": "",
"amount": 0,
"debitAmount": 0,
"creditAmount": 0,
"ad": false,
"used": true,
"debitAmountFor": 0,
"creditAmountFor": 0,
"amountFor": 0
}
]
}
请求参数
Query 参数
subjectId
integer
科目id
currencyId
integer
货币id
示例值:
433722807319433217
accountDate
string
账户日期
start
string
起始年月
示例值:
2024年04期
end
string
结束年月
示例值:
2024年04期
subjectStart
string
起始科目
subjectEnd
string
结束科目
levelStart
integer
科目级别
示例值:
1
levelEnd
integer
科目级别
示例值:
4
subjectCode
string
科目编码
showNumPrice
string
是否显示价格
categoryType
string
可选
VENDOR :VENDOR
EMPLOYEE :EMPLOYEE
DEPARTMENT :DEPARTMENT
ORGANIZATION :ORGANIZATION
PROJECT :PROJECT
STOCKS :STOCKS
CASH_FLOW :CASH_FLOW
CUSTOMIZATION :CUSTOMIZATION
categoryId
string
类别id
detailId
integer
详情id
auxiliary
boolean
是否辅助
示例值:
false
detailIds
array[string]
详情id数组
subjectIds
array[string]
科目id数组
示例值:
[""]
返回响应
修改于 2024-04-29 02:12:44