HTTP Operation Type Object DTO Why-DTOs?
(Query) accountingProfitAndLoss AccountingProfitAndLossGLDtoInput

Description

The AccountingProfitAndLoss service provides a profit and loss report for accounting.

  • Compte de résultat : Générez une vue d’ensemble des revenus, des coûts et des dépenses encourus au cours d’un exercice ou d’une période de votre choix.
  • Pérdidas y ganancias : Obtén una visión global de los ingresos y gastos de tu empresa en un ejercicio o periodo seleccionado.
  • Gewinn- und Verlustrechnung : Erhalten Sie eine Übersicht über Einnahmen, Kosten und Ausgaben für ein Geschäftsjahr oder einen Zeitraum Ihrer Wahl.
  • Resultados : Crie uma síntese das receitas, custos e despesas incorridas durante um ano fiscal ou período contabilístico à sua escolha.

This service generates a structured view of revenues and expenses, allowing analysis of financial performance over a specified period.

img

Functionality
Input Parameters
Response

The service returns an array of AccountingProfitAndLossOutputGLDto objects, each representing a line of the profit and loss statement:

Tips and Tricks

This query returns the full profit and loss structure in a single call.
Pagination is not required, as the result is a complete ordered array.

Key Value
Authorization Bearer Current access Token How to find?
X-TenantId Current tenant id Why deprecated ?
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: AccountingProfitAndLossGLDtoInput!) {
  accountingProfitAndLoss(input: $input) {
    code
    description
    lineType
    order
    multiColumn
    amountColumn1
    amountColumn2
    amountTotal
  }
}
GraphQL Variables
{
  "input": {
    "startDate": "2025-01-01",
    "endDate": "2025-12-31",
    "onlyLinesWithAmount": false
  }
}
Example Response
{
  "data": {
    "accountingProfitAndLoss": [
      {
        "amountColumn1": 0,
        "amountColumn2": 0,
        "amountTotal": 0,
        "multiColumn": false,
        "code": "P0",
        "description": "PRODUITS D'EXPLOITATION",
        "lineType": "1",
        "order": 1
      },
      {
        "amountColumn1": 16640687.72,
        "amountColumn2": 0,
        "amountTotal": 16640687.72,
        "multiColumn": false,
        "code": "P001",
        "description": "MONTANT NET DU CHIFFRE D'AFFAIRES",
        "lineType": "4",
        "order": 2
      }
    ]
  }
}

accountingProfitAndLoss Input parameters

Fields Type Description
startDate DateTime Start date of the report
endDate DateTime End date of the report
onlyLinesWithAmount Boolean Return only lines with amounts
Info
  • onlyLinesWithAmount:

    • true returns only lines where at least one amount is non-zero
    • false returns the full profit and loss structure

accountingProfitAndLoss Response

Fields Type Description Length
code String Profit and loss line code 10
description String Description of the profit and loss line 255
lineType
  • UNDEFINED
  • ACCOUNT_CALCULATION
  • LABEL
  • LINE_CALCULATION
  • RESULT_CALCULATION
  • TITLE
Type of line (title, section, detail, total)  
order Int Display order of the line  
multiColumn Boolean Indicates if the line uses multiple amount columns  
amountColumn1 Decimal Amount for the first column  
amountColumn2 Decimal Amount for the second column  
amountTotal Decimal Total amount of the line  
Info
  • multiColumn:

    • true indicates the line is split across multiple columns
    • false indicates a single total amount