v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-08-0464108237.1 KB
Analytics

Log summaries

ClickHouse-backed log summaries read endpoint.

get/analytics/log-summaries

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

Log summaries

merchant_idstring
rangestring
total_errorsinteger
pageinteger
page_sizeinteger

Example response

{
  "merchant_id": "merchant_demo",
  "range": "1d",
  "total_errors": 2,
  "errors": [
    {
      "route": "decide_gateway",
      "error_code": "processor_declined",
      "error_message": "Card declined by issuer",
      "count": 3,
      "last_seen_ms": 1808624000000
    }
  ],
  "samples": [
    {
      "route": "decide_gateway",
      "payment_id": "pay_001",
      "gateway": "stripe",
      "status": "failure",
      "flow_type": "gateway_decided",
      "created_at_ms": 1808624000000
    }
  ],
  "page": 1,
  "page_size": 10
}