HTTP Operation Type Object DTO Why-DTOs?
(Query) accountingTrialBalance AccountingTrialBalanceGLDtoInput

Description

The AccountingTrialBalance service provides a trial balance report for accounting.

This service generates a summary of all debits and credits, providing a clear view of the financial balance over a specified period.

img

Functionality

Input Parameters

Response

The service returns an array of AccountingTrialBalanceOutputGLDto objects, each representing an account with the following fields:

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.

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?
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 lines

    Not used for Germany

accountingTrialBalance Response

Fields Type Description Length
accountCode String Code of the account 13
accountDescription String Description of the account 100
accountType
  • UNDEFINED
  • BALANCE_SHEET
  • INCOME_STATEMENT
  • SPECIAL
  • ECPN
  • STATISTICAL
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 to true
  • 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.