Breakout
post/api/cp/breakout

Request

  • Base URL
    https://app.connexcs.com
  • Auth
    • OAuth 2
      Authorization code: https://auth.connexcs.com/authorize
      Token URL: https://auth.connexcs.com/token
    • or HTTP bearer

Request body

unknown required

Example request

{
  "limit": 100000,
  "where": {
    "operator": "AND",
    "rules": [
      {
        "field": "dt",
        "condition": ">=",
        "data": "2024-02-21 00:00:00"
      },
      {
        "field": "dt",
        "condition": "<",
        "data": "2024-02-21 23:59:59"
      }
    ]
  },
  "group": [
    "customer_id",
    "provider_id",
    "customer_card_dest_name",
    "provider_card_dest_name"
  ],
  "field": [
    "customer_id",
    "provider_id",
    "customer_card_dest_name",
    "provider_card_dest_name",
    {
      "field": "attempts",
      "fn": "sum"
    },
    {
      "field": "connected",
      "fn": "sum"
    },
    {
      "field": "sdp_6",
      "fn": "sum"
    },
    {
      "field": "customer_duration",
      "fn": "sum"
    },
    {
      "field": "provider_duration",
      "fn": "sum"
    },
    {
      "field": "duration",
      "fn": "sum"
    },
    {
      "field": "provider_charge",
      "fn": "sum"
    },
    {
      "field": "customer_charge",
      "fn": "sum"
    },
    {
      "field": "customer_charge_avg",
      "fn": "avg"
    },
    {
      "field": "provider_charge_avg",
      "fn": "avg"
    },
    {
      "field": "provider_currency",
      "fn": "first"
    },
    {
      "field": "customer_currency",
      "fn": "first"
    },
    {
      "fn": "asr"
    },
    {
      "fn": "acd"
    },
    {
      "fn": "dtmf"
    },
    {
      "field": "account_profit",
      "fn": "sum"
    },
    {
      "field": "account_profit_percent",
      "fn": "avg"
    }
  ]
}

Response

Successful response

unknown required

Changes

    • info

      the endpoint scheme security oAuth2 was added to the API

    • info

      the endpoint scheme security opaqueToken was added to the API

    • info

      the endpoint scheme security basicAuth was removed from the API