---
title: "Get invoice analysis tariffs"
method: GET
path: "/invoice-analysis/{invoiceAnalysisId}/tariffs"
tags: ["Tariffs"]
---

# Get invoice analysis tariffs

`GET /invoice-analysis/{invoiceAnalysisId}/tariffs`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/invoice-analysis/{invoiceAnalysisId}/tariffs`
- Auth: API key in header `clevergy-api-key`

Get all available tariffs based on the invoice with their monthly invoice saving

## Path parameters

- `invoiceAnalysisId` string, uuid, required

## Response `200`

Tariffs with its monthly savings

- InvoiceTariff[]
  - `invoiceSaving` number
  - `tariff` Tariff, required: Tariff
    - `id` string, required
    - `internalName` string, required
    - `commercialName` string, required
    - `commercialDescription` string
    - `powerPrices` number[]
    - `energyPrices` number[]
    - `provider` string
    - `type` 'PVPC_2_0_TD' | 'MERCADO_LIBRE_2_0_TD_FIJA' | 'MERCADO_LIBRE_2_0_TD' | 'MERCADO_LIBRE_3_0_TD' | 'INDEXADA_2_0_TD' | 'MERCADO_LIBRE_6_1_TD' | 'OMIE_MARGEN', required
    - `solarPrice` number, float
    - `margin` number, float

## Other responses

- `204`: No content. Returned when there are no defined tariffs.
- `401`: Unauthorized
- `404`: Not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/clevergy/apis/clevergy-connect-api.md) - [All operations](https://skmtc.dev/clevergy/apis/clevergy-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clevergy/apis/clevergy-connect-api/revisions/d333c5eecb5b?raw)
