{"id":87,"date":"2022-04-10T08:23:44","date_gmt":"2022-04-10T08:23:44","guid":{"rendered":"https:\/\/evnnovator.in\/APIHome\/?post_type=docs&#038;p=87"},"modified":"2022-04-11T02:50:40","modified_gmt":"2022-04-11T02:50:40","password":"","slug":"get-tariffs-by-location-id-and-ocpi-tariff-id","status":"publish","type":"docs","link":"https:\/\/evnnovator.in\/APIHome\/docs\/get-tariffs-by-location-id-and-ocpi-tariff-id\/","title":{"rendered":"Get Tariffs by location id and ocpi tariff id"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>GET<\/td><td>Get Tariffs by location id and ocpi tariff id<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Retrive tariff data based on location ID and tariff id<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>URL<\/td><td><a href=\"https:\/\/api-gateway-evnnovator.com\/api\/v1\/sessions\/{sessions_id}\">https:\/\/api-gateway-evnnovator.com\/\/api\/v1\/tariffs\/location\/{location_id}\/<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Parameters<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Name<\/td><td>location_id<\/td><\/tr><tr><td>Data Type<\/td><td>String <\/td><\/tr><tr><td>Variable Type<\/td><td>required<\/td><\/tr><tr><td>Description<\/td><td>Unique code of Location or Charging Station<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Name<\/td><td>ocpi_tariff_id<\/td><\/tr><tr><td>Data Type<\/td><td>String <\/td><\/tr><tr><td>Variable Type<\/td><td>required<\/td><\/tr><tr><td>Description<\/td><td>traiff Id defined at CPO to identify the charging tariff data based on different dimension ( ENERGY, FLAT, PARKING_TIME and TIME )<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sample Request and Response<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GET <a href=\"https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/tariffs\/location\/40de1813c36c701c579ec85f7fb60661\/20032\">https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/tariffs\/location\/40de1813c36c701c579ec85f7fb60661\/20032<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Response Json<\/p>\n\n\n\n<pre class=\"pre-code\">{\n    \"status_code\": 1000,\n    \"status_message\": \"Success\",\n    \"timestamp\": \"2022-04-05T15:59:36.521\",\n    \"data\": {\n        \"id\": \"1088ba4b3e40b408d3c1845cdd1e4710\",\n        \"created_date\": \"2022-03-11T07:28:42.795+00:00\",\n        \"last_modified_date\": \"2022-03-11T07:28:42.795+00:00\",\n        \"cpo_id\": \"59371e3bef3cb74f510fed1e102b6737\",\n        \"party_id\": \"TCZ\",\n        \"country_code\": \"IN\",\n        \"tariff_id\": \"20032\",\n        \"currency\": \"INR\",\n        \"elements\": [\n            {\n                \"price_components\": [\n                    {\n                        \"type\": \"ENERGY\",\n                        \"price\": \"12.00\",\n                        \"step_size\": 1\n                    }\n                ]\n            }\n        ]\n    }\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Response<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Code<\/td><td>Description<\/td><\/tr><tr><td>200<\/td><td>OK<\/td><\/tr><tr><td>401<\/td><td>Unauthorized<\/td><\/tr><tr><td>403<\/td><td>Forbidden<\/td><\/tr><tr><td>404<\/td><td>Not Found<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[7],"doc_tag":[],"class_list":["post-87","docs","type-docs","status-publish","hentry","doc_category-tariffs"],"year_month":"2026-06","word_count":203,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"cloudasc_WP0UC2Admin","author_nicename":"cloudasc_wp0uc2admin","author_url":"https:\/\/evnnovator.in\/APIHome\/author\/cloudasc_wp0uc2admin\/"},"doc_category_info":[{"term_name":"Tariffs","term_url":"https:\/\/evnnovator.in\/APIHome\/docs-category\/tariffs\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":6,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/87\/revisions"}],"predecessor-version":[{"id":205,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/87\/revisions\/205"}],"wp:attachment":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_category?post=87"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_tag?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}