What It Shows
Payment Audit is the operator-facing timeline view for a single payment or request. Use it when you want to answer questions like:- which gateway was decided for this payment
- which priority rule was hit
- whether a score update succeeded or failed
- what structured event payload was captured at each step
Search Inputs
The page supports these filters:payment_idrequest_idgatewayroutestatusflow_type- time window:
15m,1h,12h,1d,1w
payment_id when you have it. If you only have a request trace, use request_id.
Payment Audit is always merchant-scoped by the authenticated JWT or API key. The route does not
accept scope or merchant_id query params.
Timeline Stages
The timeline is built from analytics events captured by the live request flows. Current stages include:gateway_decidedrule_appliedscore_updatedpreview_evaluatedrequest_read_failedvalidation_failedrequest_parse_failedscore_update_failed
decide_gateway_decision,
decide_gateway_rule_hit, update_gateway_score_update, or routing_evaluate_advanced.
Data Sources
Payment Audit reads from the same ClickHouse analytics store used by the analytics surface. The read path is split intentionally:- exact
payment_id/request_idlookups read the rawanalytics_domain_eventstimeline - broad search results read pre-aggregated
analytics_payment_audit_summary_buckets
lookup_key, which prefers payment_id and
falls back to request_id.
Relevant fields include:
merchant_idpayment_idrequest_idevent_stageroutegatewayrouting_approachrule_namestatuserror_codeerror_messagedetails
details field is shown as structured JSON when available.
Route
When the dashboard profile is running, open:http://localhost:8081/dashboard/audit
Related Files
website/src/components/pages/PaymentAuditPage.tsxsrc/routes/analytics.rssrc/analytics/models.rssrc/analytics/service.rssrc/decider/gatewaydecider/src/feedback/gateway_scoring_service.rs
Related Docs
- Analytics — the broader operator-facing metrics view.
- ClickHouse Analytics — the underlying ingestion pipeline and schema.
- Dashboard — where this view is surfaced.