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(input: { 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"
  }
]
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?

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 String KPI type (AccountingIndicatorType)
value String Numeric value
currency String Currency code (e.g. EUR). May be null if N/A