Analytics

ClickHouse-backed decisions read endpoint.

get/analytics/decisions

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/analytics/decisions
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Query parameters

rangestring
start_msinteger
end_msinteger
pageinteger
page_sizeinteger
payment_method_typestring
payment_methodstring
card_networkstring
card_is_instring
currencystring
countrystring
auth_typestring
gatewaystring
payment_idstring
request_idstring
routestring
statusstring
flow_typestring
routing_approachstring
exclude_routing_approachstring
error_codestring

Headers

x-tenant-idstring required

Tenant to resolve. The shipped config files define only the "public" tenant. No fallback — omitting this fails with TE_03.

Response

Decisions

merchant_idstring
rangestring

Example response

{
  "merchant_id": "merchant_demo",
  "range": "1d",
  "tiles": [
    {
      "label": "Decision events / 1d",
      "value": "42"
    }
  ],
  "series": [
    {
      "bucket_ms": 1808624000000,
      "routing_approach": "SR_SELECTION_V3_ROUTING",
      "count": 10
    }
  ],
  "approaches": [
    {
      "rule_name": "priority rule",
      "count": 12
    }
  ]
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      added the new required header request parameter x-tenant-id