This feature is currently under development and, although not available in the current version, its preliminary documentation is provided to give you a preview of the enhancements that will be included in an upcoming update.

HTTP Operation Type Object DTO Why-DTOs?
(Query) salesKpis SalesKpiInput

The Sales KPIs service provides a set of commercial indicators (Key Performance Indicators) that can be retrieved for a given organization.
Each KPI corresponds to a standardized calculation based on the organization’s sales and related data.

  • Provides sales performance indicators such as incoming and outgoing payments, value of open quotes, number of customers, etc.
  • Includes KPIs related to quotes conversion through their related sales documents.
  • Supports retrieval of one or multiple KPIs in a single call.

img

Input Parameters
Response

The service returns a structured list of KPIs. Each KPI contains:

Example response for MONEY_IN

{
  "data": {
    "salesKpis": [
      {
        "type": "MONEY_IN",
        "value": 79566.8,
        "currency": "EUR"
      }
    ]
  }
}

img

Query
query($kpis: [SalesIndicatorType!]!) {
  salesKpis(kpiTypes: $kpis) {
    type
    value
    currency
  }
}

Variable for a single KPI

{
  "kpis": ["MONEY_IN"]
}

img

Response

{
  "data": {
    "salesKpis": [
      {
        "type": "MONEY_IN",
        "value": 79566.8,
        "currency": "EUR"
      }
    ]
  }
}


Variable for multiple KPIs

{
  "kpis": ["MONEY_IN", "MONEY_OUT"]
}

img

Response

{
  "data": {
    "salesKpis": [
      {
        "type": "MONEY_IN",
        "value": 79566.8,
        "currency": "EUR"
      },
      {
        "type": "MONEY_OUT",
        "value": 23415.25,
        "currency": "EUR"
      }
    ]
  }
}

Available KPIs


img

    Kpi Description
1 MONEY_IN Incoming payments (cash received)
2 MONEY_OUT Outgoing payments (cash paid)
3 QUOTES_WITH_RELATED_DOCUMENTS Quotes linked to subsequent documents
4 TOTAL_CUSTOMERS Total number of customers
5 TOTAL_FROM_OPEN_QUOTES Total value of open quotes
[
  // 1
  {
    "type": "MONEY_IN",
    "value": 79566.8,
    "currency": "EUR"
  },

  // 2
  {
    "type": "MONEY_OUT",
    "value": 23415.25,
    "currency": "EUR"
  },

  // 3
  {
    "type": "QUOTES_WITH_RELATED_DOCUMENTS",
    "value": 0,
    "currency": null
  },

  // 4
  {
    "type": "TOTAL_CUSTOMERS",
    "value": 340,
    "currency": null
  },

  // 5
  {
    "type": "TOTAL_FROM_OPEN_QUOTES",
    "value": 48102.94,
    "currency": "EUR"
  }
]

salesKpis Input parameters

Fields Type Description
kpiTypes
  • MONEY_IN
  • MONEY_OUT
  • QUOTES_WITH_RELATED_DOCUMENTS
  • TOTAL_CUSTOMERS
  • TOTAL_FROM_OPEN_QUOTES
One or more KPI types (array)

salesKpis Response

Fields Type Description
type Enum KPI type (AccountingIndicatorType)
value Decimal Numeric value
currency String Currency code (e.g. EUR). May be null if N/A