This service generates a summary of all debits and credits, providing a clear view of the financial balance over a specified period.
AccountingTrialBalance
HTTP | Operation | Type | Object | DTO Why-DTOs? |
---|---|---|---|---|
(Query) | accountingTrialBalance |
AccountingTrialBalanceGLDtoInput |
Description
Functionality
- Balance Generation: Returns a detailed list of accounts with their balances.
- Customizable Date Range: Allows selection of start and end dates for the report.
- Account Filter: Optionally filters the report by account codes.
- Enhanced Options: Offers options to exclude zero balances, compare trial balances, show temporary carryforwards, and closing entries.
Input Parameters
-
Report Range: Optionally, specify the range of account codes to include in the report between
StartAccountCode
andEndAccountCode
. -
Fiscal Exercise: Mandatory, identify the fiscal exercise for the report using
ExerciseId
the unique identifier of the fiscal exercise. -
Report Dates: Mandatory, set the date range for the report using
StartDate
andEndDate
. -
Balance Filters: Optionally, default value to false, configure additional options for balance inclusion using the following parameters:
IsWithoutZeroBalance
: Whether to exclude third parties with zero balance.IsBalanceComparative
: Whether to include comparative balance data.ShowTemporaryCarryForward
: Whether to include temporary carryforwards.ShowClosingEntries
: Whether to include closing entries (Spain legislation only).
Response
The service returns an array of AccountingTrialBalanceOutputGLDto
objects, each representing an account with the following fields:
-
Account Details:
AccountDescription
andAccountCode
-
Accumulated Amounts: Represent amounts for the entire fiscal exercise, available only if
IsBalanceComparative
is set totrue
.AccumulatedCreditAmount
andAccumulatedDebitAmount
-
Period Amounts: Represent amounts for the specified period.
CreditAmount
andDebitAmount
-
Balances: Represent the debit/credit balances.
AccumulatedBalance
andBalance
-
Signed Values: Correspond to the previous values but return signed values.
AccumulatedCreditBalance
,AccumulatedDebitBalance
,CreditBalance
,DebitBalance
- When
CreditAmount
=1200
thenCreditBalance
=-1200
, - when
DebitAmount
=1500
thenDebitBalance
=1500
- When
Tips and Tricks
Pagination is typically required for queries that return multiple records.
However, for the accountingTrialBalance query, pagination is not necessary because this query returns an array[] that includes all accounts and their totals.
Header
Key | Value |
---|---|
Authorization |
Bearer Current access Token How to find? |
X-TenantId |
Current tenant id How to find? |
X-OrganizationId |
Current organization Id How to find? |
x-api-key |
Primary or secondary subscription key of your app How to find? |
How to use the Accounting Trial Balance service?
graphQL Query
query($input: AccountingTrialBalanceGLDtoInput!) {
accountingTrialBalance(input: $input) {
accountCode
accountDescription
accountType
accumulatedBalance
accumulatedCreditAmount
accumulatedCreditBalance
accumulatedDebitAmount
accumulatedDebitBalance
balance
creditAmount
creditBalance
debitAmount
debitBalance
}
}
All Available GraphQL Variables
{
"input": {
"startAccountCode": "1000000",
"endAccountCode": "3999999",
"exerciseId": "458e1d68-faff-4e02-8ae0-4843d05e00da",
"startDate": "2022-12-01",
"endDate": "2022-12-31",
"isWithoutZeroBalance": false,
"isTrialBalanceComparative": false,
"showTemporaryCarryForward": false,
"showClosingEntries": false
}
}
Or Minimum Required GraphQL Variables
{
"input" : {
"exerciseId" : "74396520-b798-4a75-b098-a55427d62b5a",
"startDate" : "2024-05-01",
"endDate" : "2024-05-31"
}
}
Example Response
{
"data": {
"accountingTrialBalance": [
{
"accountCode": "311000000",
"accountDescription": "311000000 - Stock de matières 1ères",
"accountType": "BALANCE_SHEET",
"accumulatedBalance": 0,
"accumulatedCreditAmount": 0,
"accumulatedCreditBalance": 0,
"accumulatedDebitAmount": 0,
"accumulatedDebitBalance": 0,
"balance": -1275852.54,
"creditAmount": 1777965.18,
"creditBalance": -1777965.18,
"debitAmount": 502112.64,
"debitBalance": 502112.64
},
{
"accountCode": "355000000",
"accountDescription": "355000000 - Stock de produits finis",
"accountType": "BALANCE_SHEET",
"accumulatedBalance": 0,
"accumulatedCreditAmount": 0,
"accumulatedCreditBalance": 0,
"accumulatedDebitAmount": 0,
"accumulatedDebitBalance": 0,
"balance": -59480.00,
"creditAmount": 255080.00,
"creditBalance": -255080.00,
"debitAmount": 195600.00,
"debitBalance": 195600.00
}
]
}
}
accountingTrialBalance Input parameters
Fields | Type | Description | Length |
---|---|---|---|
startAccountCode | String | Beginning account code | 13 |
endAccountCode | String | Ending account code | 13 |
exerciseId |
UUID | Exercise identifier | |
startDate |
Datetime |
Start date of the report | |
endDate |
Datetime |
End date of the report | |
isWithoutZeroBalance | Boolean | Exclude accounts with zero balance | |
isTrialBalanceComparative | Boolean | Compare with cumulative values | |
showTemporaryCarryForward | Boolean | Include temporary carryforwards | |
showClosingEntries | Boolean | Include closing entries |
Info
-
showClosingEntries:
Not used for France
true
= Include closing entry linesNot used for Germany
accountingTrialBalance Response
Fields | Type | Description | Length |
---|---|---|---|
accountCode | String | Code of the account | 13 |
accountDescription | String | Description of the account | 100 |
accountType |
|
Category of the account |
|
accumulatedBalance | Decimal | Accumulated balance of the account |
|
accumulatedCreditAmount | Decimal | Credit amount for the entire fiscal exercise |
|
accumulatedCreditBalance | Decimal | Signed Credit amount for the entire fiscal exercise |
|
accumulatedDebitAmount | Decimal | Accumulated debit amount for the entire fiscal exercise |
|
accumulatedDebitBalance | Decimal | Signed accumulated debit balance for the entire fiscal exercise |
|
balance | Decimal | Net balance of the account | |
creditAmount | Decimal | Total credit amount within the specified period | |
creditBalance | Decimal | Signed credit balance within the specified period | |
debitAmount | Decimal | Total debit amount within the specified period | |
debitBalance | Decimal | Signed debit balance within the specified period |
Info
- accumulatedBalance and other accumulated values: only available if
isTrialBalanceComparative
is set totrue
-
accountType:
- Balance sheet: account classes 1 to 5
- Income statement : account classes 6 and 7
- Special : account classes 8 and 9
E.C.P.N: Unused (For Spain only).Statistical: Unused (For Germany only).
- Balance sheet: account classes 1 to 5
- Income statement : account classes 6 and 7
Special:Unused (For France only).- E.C.P.N : Financial statements in net worth classes 8 and 9
Statistical: Unused (For Germany only).
- Balance sheet: account classes 0, 1, 7, 3970, 3980
- Income statement : account classes 2, 3, 4, 5, 6, 8 (except 3970 & 3980)
Special:Unused (For France only).E.C.P.N: Unused (For Spain only).- Statistical : account classe 9.