Get Tariffs by location id and ocpi tariff id

GETGet Tariffs by location id and ocpi tariff id

This API can be used to get the Tariff details of a CPO location. location_id and ocpi_tariff_id is available from the location object fetched using location APIs. ocpi_tariff_id is the tariff_id in the connector section within the evses section of the locations APIs response.

Retrive tariff data based on location ID and tariff id

URLhttps://api-gateway-evnnovator.com//api/v1/tariffs/location/{location_id}/

Parameters

Namelocation_id
Data TypeString
Variable Typerequired
DescriptionUnique code of Location or Charging Station
Nameocpi_tariff_id
Data TypeString
Variable Typerequired
Descriptiontraiff Id defined at CPO to identify the charging tariff data based on different dimension ( ENERGY, FLAT, PARKING_TIME and TIME )

Sample Request and Response

GET https://api-gateway-evnnovator.com/api/ocpi/api/v1/tariffs/location/40de1813c36c701c579ec85f7fb60661/20032

Response Json

{
    "status_code": 1000,
    "status_message": "Success",
    "timestamp": "2022-04-05T15:59:36.521",
    "data": {
        "id": "1088ba4b3e40b408d3c1845cdd1e4710",
        "created_date": "2022-03-11T07:28:42.795+00:00",
        "last_modified_date": "2022-03-11T07:28:42.795+00:00",
        "cpo_id": "59371e3bef3cb74f510fed1e102b6737",
        "party_id": "TCZ",
        "country_code": "IN",
        "tariff_id": "20032",
        "currency": "INR",
        "elements": [
            {
                "price_components": [
                    {
                        "type": "ENERGY",
                        "price": "12.00",
                        "step_size": 1
                    }
                ]
            }
        ]
    }
}

Response

CodeDescription
200OK
401Unauthorized
403Forbidden
404Not Found

Powered by BetterDocs