---
title: "Cost savings"
method: GET
path: "/analytics/cost-savings"
tags: ["Analytics"]
---

# Cost savings

`GET /analytics/cost-savings`

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

## Query parameters

- `range` string
- `start_ms` integer
- `end_ms` integer
- `page` integer
- `page_size` integer
- `payment_method_type` string
- `payment_method` string
- `card_network` string
- `card_is_in` string
- `currency` string
- `country` string
- `auth_type` string
- `gateway` string
- `payment_id` string
- `request_id` string
- `route` string
- `status` string
- `flow_type` string
- `routing_approach` string
- `exclude_routing_approach` string
- `error_code` string

## Headers

- `x-tenant-id` string, required

## Response `200`

Cost savings

- AnalyticsCostSavingsResponse
  - `merchant_id` string
  - `range` string
  - `currency` string, nullable
  - `available_currencies` AnalyticsAvailableCurrency[]
    - `currency` string
    - `decision_count` integer
  - `trend` AnalyticsCostSavingsTrendPoint[]
    - `bucket_ms` integer
    - `saved_value` number, double
  - `totals` AnalyticsCostSavingsTotals
    - `saved_value` number, double
    - `cost_won_count` integer
    - `total_decisions` integer

## Changes

- **2026-08-04** `36e7a0972ee6` — 6 info
  - added the optional property `available_currencies` to the response with the `200` status
  - added the optional property `currency` to the response with the `200` status
  - added the optional property `merchant_id` to the response with the `200` status
  - added the optional property `range` to the response with the `200` status
  - …2 more
- **2026-07-20** `6ee57fb4b22b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/juspay/apis/decision-engine/changes/analytics/cost-savings/get.md)

---

[API](https://skmtc.dev/juspay/apis/decision-engine.md) · [All operations](https://skmtc.dev/juspay/apis/decision-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/juspay/decision-engine/revisions/a35ceeb59faf/schema)
