POST
/
calculate
curl --request POST \
  --url https://sandbox.prezio.eu/api/calculate/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country": "DK",
  "latitude": 55.6761,
  "longitude": 12.5683,
  "tariff_id": [
    "tar_34"
  ],
  "kwh_consumed": [
    {
      "datetime": "2025-04-01T00:00:00Z",
      "kwh_consumed": 1
    },
    {
      "datetime": "2025-04-01T01:00:00Z",
      "kwh_consumed": 1
    }
  ],
  "time_span": "60min",
  "detail": "semi",
  "vat": "excluded"
}'
{
  "context": {
    "currency": "DKK",
    "unit": "per_kwh",
    "time_span": "60min",
    "location": {
      "input_address": null,
      "coordinates": {
        "latitude": 55.6761,
        "longitude": 12.5683,
        "confidence": 10
      }
    },
    "vat_handling": "excluded"
  },
  "tariff_elements": [
    {
      "element_id": "com_123",
      "element_name": "Grid Tariff",
      "tariff_id": "tar_456",
      "tariff_name": "C Tariff",
      "organization_id": "org_789",
      "organization_name": "Radius Elnet",
      "organization_type": "DSO"
    },
    {
      "element_id": "com_124",
      "element_name": "Electricity Tax",
      "tariff_id": "tar_457",
      "tariff_name": "Electricity Tax",
      "organization_id": "org_790",
      "organization_name": "Denmark Tax Authority",
      "organization_type": "TAX"
    }
  ],
  "total_cost": "35.123456",
  "results": [
    {
      "datetime": "2023-01-01T00:00:00Z",
      "elements": [
        {
          "id": "com_123",
          "cost": "2.987654"
        },
        {
          "id": "com_124",
          "cost": "1.561234"
        }
      ],
      "interval_cost": "4.548888"
    },
    {
      "datetime": "2023-01-01T01:00:00Z",
      "elements": [
        {
          "id": "com_123",
          "cost": "2.756543"
        },
        {
          "id": "com_124",
          "cost": "1.561234"
        }
      ],
      "interval_cost": "4.317777"
    }
  ]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

Response

200
application/json
Successfully calculated energy costs

The response is of type object.