v12

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

Cost savings

ClickHouse-backed rollup of savings attributed to multi-objective (cost-aware) routing, trended over the window.

get/analytics/cost-savings

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

Cost savings

merchant_idstring
rangestring
currencystring nullable

Example response

{
  "merchant_id": "merchant_demo",
  "range": "1d",
  "currency": "USD",
  "available_currencies": [
    {
      "currency": "USD"
    }
  ],
  "trend": [
    {
      "bucket_ms": 1808624000000
    }
  ]
}