Skip to main content
POST
/
partner
/
v1
/
tariffs
/
{tariffKey}
/
calculation
Create estimated cost calculation
curl --request POST \
  --url https://api.rabot-charge.de/partner/v1/tariffs/{tariffKey}/calculation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "yearlyConsumptionKwh": 123,
  "zipCode": "<string>",
  "hasSmartMeter": true,
  "hasElectricVehicle": true,
  "campaignCode": "rabot.home.2024"
}
'
{
  "isSuccess": true,
  "message": null,
  "error": [
    {
      "severity": "Error",
      "code": "validation-failed",
      "message": "First name is required for non-business customers.",
      "details": null
    }
  ],
  "refUri": "<string>",
  "data": {
    "name": "rabot.smart",
    "displayName": "rabot.smart 24 private",
    "priceComponents": {
      "pricePerMonth": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "unitPrice": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "basePricePerMonth": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "estimatedConsumption": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "estimatedWorkPrice": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "expectedWorkPrice": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "effectiveWorkPrice": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "baseServiceFee": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "variableServiceFee": {
        "value": 123,
        "unit": {
          "main": "None",
          "per": "None"
        },
        "unitText": "<string>"
      },
      "rabotShare": {
        "rabotShare": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        },
        "rabotSharePercentage": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        },
        "totalPriceWithoutRabotShare": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        }
      },
      "comparisonTariff": {
        "workingPrice": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        },
        "basePrice": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        },
        "totalPrice": {
          "value": 123,
          "unit": {
            "main": "None",
            "per": "None"
          },
          "unitText": "<string>"
        }
      }
    },
    "durationPeriod": {
      "value": 123,
      "unit": {
        "main": "None",
        "per": "None"
      },
      "unitText": "<string>"
    },
    "noticePeriod": {
      "value": 123,
      "unit": {
        "main": "None",
        "per": "None"
      },
      "unitText": "<string>"
    },
    "features": [
      "<string>"
    ],
    "yearlySavingsDetails": {
      "price": 180.5,
      "co2": 123
    }
  }
}
With this API endpoint, you can calculate a personalized price offer for a prospect. You need to provide a tariffKey and the prospect’s postcode and yearly energy consumption as minimum input for the calculation. You can retrieve the available tariffs using the list tariffs endpoint.
The prices returned by this API endpoint include VAT

Authorizations

Authorization
string
header
required

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

Path Parameters

tariffKey
string
required

Key of the tariff to calculate

Body

Request data object

Data object for a tariff calculation request.

yearlyConsumptionKwh
number<double>

Yearly consumption in kWh.

zipCode
string

ZIP code of the household, 5 digits without spaces.

hasSmartMeter
boolean

Whether the household energy consumption is metered by a smart meter.

hasElectricVehicle
boolean

Whether there is an electric vehicle (charger) in the household.

campaignCode
string | null

Campaign used by the customer, if existing

Example:

"rabot.home.2024"

Response

OK

API response DTO with data.

isSuccess
boolean

Success status of the operation based on status code (2xx range).

Example:

true

message
string | null

Optional message to provide additional information about the operation result.

Example:

null

error
object[] | null

Optional error details in case of an error(s).

refUri
string<uri> | null

Optional reference URI to point to the resulting resource.

data
object

Returned data instance.