{"id":106,"date":"2022-04-10T08:48:07","date_gmt":"2022-04-10T08:48:07","guid":{"rendered":"https:\/\/evnnovator.in\/APIHome\/?post_type=docs&#038;p=106"},"modified":"2022-05-24T21:32:47","modified_gmt":"2022-05-24T21:32:47","password":"","slug":"get-whitelisted-driver-by-driver-id-and-location-id","status":"publish","type":"docs","link":"https:\/\/evnnovator.in\/APIHome\/docs\/get-whitelisted-driver-by-driver-id-and-location-id\/","title":{"rendered":"Get whitelisted driver by driver id and location id"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>GET<\/td><td>Get whitelisted driver by driver id and location id<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Retrive a unique Token ID of the Whitelisted driver at a CPO level. If the Driver is not whitelisted at a CPO then the API first Whitelist the driver and then return a unique Token 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\/whitelist\/driver\/{driver_id}\/location\/{location_id}\">https:\/\/api-gateway-evnnovator.com\/api\/v1\/whitelist\/driver\/{driver_id}\/location\/{location_id}<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Request Header<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Header Name<\/td><td>Authorization<\/td><\/tr><tr><td>Variable<\/td><td>Bearer &lt;oauth token&gt;<\/td><\/tr><tr><td>Description<\/td><td>This is the required header with oauth2.0 token value.<\/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>driver_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>ID identifying a Driver in Client Application<\/td><\/tr><\/tbody><\/table><\/figure>\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 Charging Location or Charging Station<\/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\/whitelist\/driver\/demo-driver-1\/location\/2b10508db844fada81778c8b1bce853e\">https:\/\/api-gateway-evnnovator.com\/api\/ocpi\/api\/v1\/whitelist\/driver\/demo-driver-1\/location\/2b10508db844fada81778c8b1bce853e<\/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-03-26T14:43:01.879\",\n    \"data\": {\n    \"uid\": \"aGyJYcVTJDYXykvp\"\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 whitelisted driver by driver id and location id Retrive a unique Token ID of the Whitelisted driver at a CPO level. If the Driver is not whitelisted at a CPO then the API first Whitelist the driver and then return a unique Token ID URL https:\/\/api-gateway-evnnovator.com\/api\/v1\/whitelist\/driver\/{driver_id}\/location\/{location_id} Request Header Header Name Authorization Variable Bearer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-106","docs","type-docs","status-publish","hentry","doc_category-whitelistdriver"],"year_month":"2026-06","word_count":141,"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":"WhitelistDriver","term_url":"https:\/\/evnnovator.in\/APIHome\/docs-category\/whitelistdriver\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/106","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=106"}],"version-history":[{"count":4,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/106\/revisions"}],"predecessor-version":[{"id":210,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/docs\/106\/revisions\/210"}],"wp:attachment":[{"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_category?post=106"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/evnnovator.in\/APIHome\/wp-json\/wp\/v2\/doc_tag?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}