| GET | Get 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
Parameters
| Name | location_id |
| Data Type | String |
| Variable Type | required |
| Description | Unique code of Location or Charging Station |
| Name | ocpi_tariff_id |
| Data Type | String |
| Variable Type | required |
| Description | traiff Id defined at CPO to identify the charging tariff data based on different dimension ( ENERGY, FLAT, PARKING_TIME and TIME ) |
Sample Request and Response
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
| Code | Description |
| 200 | OK |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
