GET
/
power-tariffs
/
{country_code}
/
mga
/
{mga_code}
Get by MGA code
curl --request GET \
  --url https://api.ea.engrate.io/v1/power-tariffs/{country_code}/mga/{mga_code} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "uid": "<string>",
      "name": "<string>",
      "model": "<string>",
      "description": "<string>",
      "samplesPerMonth": 123,
      "timeUnit": "<string>",
      "buildingType": "all",
      "lastUpdated": "2023-11-07T05:31:56Z",
      "validFrom": "2023-11-07T05:31:56Z",
      "validTo": "2023-11-07T05:31:56Z",
      "voltage": "<string>",
      "compositions": [
        {
          "months": [
            "<string>"
          ],
          "days": [
            "<string>"
          ],
          "fuseFrom": "<string>",
          "fuseTo": "<string>",
          "unit": "<string>",
          "priceExcVat": "<string>",
          "priceIncVat": "<string>",
          "intervals": [
            {
              "from": "<string>",
              "to": "<string>",
              "multiplier": 123
            }
          ]
        }
      ],
      "meteringGridAreas": [
        {
          "code": "<string>",
          "name": "<string>",
          "countryCode": "SE",
          "meteringBusinessArea": "<string>",
          "gridOperator": {
            "uid": "<string>",
            "name": "<string>",
            "ediel": 123
          },
          "powerTariffs": [
            {}
          ]
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mga_code
string
required
country_code
string
required

Response

Successful Response

Response model for power tariffs.

  • data: List of power tariffs.
  • If the list is empty, it means that the DSO has not yet published power tariffs for the queried area.
data
PowerTariffSpec · object[]
required