> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.hyperswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Cost Coverage

> Summary of how much of the merchant's volume is covered by good (well-modelled) cost clusters.



## OpenAPI

````yaml decision_engine_openapi-specs.json GET /merchant-account/{merchant_id}/cost-coverage
openapi: 3.1.0
info:
  title: Decision Engine
  description: >-
    Open-source payment gateway routing service by Juspay. Selects the optimal
    payment processor for each transaction in real-time using success-rate
    scoring, rule-based routing, and elimination logic.


    ## Authentication


    This API supports two authentication methods:


    1. **JWT Bearer Token** - For dashboard/user sessions
       - Header: `Authorization: Bearer <jwt_token>`
       - Obtain via `/auth/login` endpoint

    2. **API Key** - For service-to-service/programmatic access
       - Header: `x-api-key: DE_<64_char_hex>`
       - Create via `/api-key/create` endpoint

    Protected endpoints require one of these authentication methods.
  version: 1.4.0
  contact:
    name: Juspay
    url: https://github.com/juspay/decision-engine
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
servers:
  - url: http://localhost:8080
    description: Local development
  - url: https://sandbox.hyperswitch.io
    description: 'Hyperswitch sandbox with x-feature: decision-engine'
security: []
tags:
  - name: Health
    description: Service liveness, readiness, and diagnostics
  - name: Auth
    description: Dashboard auth and merchant selection
  - name: API Keys
    description: Service-to-service API key management
  - name: Gateway Decision
    description: Core routing decision APIs
  - name: Score Feedback
    description: Feed transaction outcomes back to improve SR scoring
  - name: Merchant Account
    description: Merchant configuration management
  - name: Routing Rules
    description: Euclid declarative routing rules engine
  - name: Rule Configuration
    description: Service-level SR/elimination config
  - name: Config
    description: Routing key and dimension metadata
  - name: Analytics
    description: ClickHouse-backed analytics and audit reads
  - name: Compatibility
    description: Legacy compatibility routes
  - name: Connector Costs
  - name: Merchant Features
  - name: Autopilot
paths:
  /merchant-account/{merchant_id}/cost-coverage:
    get:
      tags:
        - Connector Costs
      summary: Get Cost Coverage
      description: >-
        Summary of how much of the merchant's volume is covered by good
        (well-modelled) cost clusters.
      operationId: getCostCoverage
      parameters:
        - name: merchant_id
          in: path
          required: true
          schema:
            type: string
          example: merchant_demo
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoverageSummary'
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    CoverageSummary:
      type: object
      properties:
        total_clusters:
          type: integer
          format: int64
        good_clusters:
          type: integer
          format: int64
        thin_clusters:
          type: integer
          format: int64
        non_linear_clusters:
          type: integer
          format: int64
        total_txns:
          type: integer
          format: int64
        good_txns:
          type: integer
          format: int64
        thin_txns:
          type: integer
          format: int64
        non_linear_txns:
          type: integer
          format: int64
        good_txn_pct:
          type: number
          format: double
        total_gross:
          type: number
          format: double
        good_gross:
          type: number
          format: double
        thin_gross:
          type: number
          format: double
        non_linear_gross:
          type: number
          format: double
        good_gross_pct:
          type: number
          format: double
        bps_rmse_p50:
          type: number
          format: double
        bps_rmse_p90:
          type: number
          format: double
        report_date:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained from /auth/login
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key created via /api-key/create

````