Analytics
Routing stats
Changed onClickHouse-backed routing stats read endpoint.
get/analytics/routing-stats
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/analytics/routing-stats
- 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
Routing stats
Example response
{
"merchant_id": "merchant_demo",
"range": "1d",
"gateway_share": [
{
"bucket_ms": 1808624000000,
"gateway": "adyen",
"count": 7
}
],
"top_rules": [
{
"rule_name": "priority rule",
"count": 12
}
],
"sr_trend": [
{
"bucket_ms": 1808624000000
}
],
"available_filters": {
"dimensions": [
{
"key": "payment_method_type",
"label": "Payment Method Type",
"values": [
"CARD"
]
}
],
"gateways": [
"adyen",
"stripe"
]
}
}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 - info
added the optional property
to the response with the status
- info
- breaking
added the new required
headerrequest parameterx-tenant-id
- breaking