{ "info": { "_postman_id": "32fd3095-e254-4fce-8db8-24c5af4d9a70", "name": "DENT Protocol Sandbox", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "23690031" }, "item": [ { "name": "EV Charging", "item": [ { "name": "Search", "item": [ { "name": "search with combination", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"search\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"intent\": {\n \"category\": {\n \"descriptor\": {\n \"code\": \"green-tariff\"\n }\n },\n \"item\": {\n \"descriptor\": {\n \"code\": \"energy\"\n },\n \"quantity\": {\n \"available\": {\n \"measure\": {\n \"unit\": \"kWH\",\n \"value\": \"4.0\"\n }\n }\n }\n },\n \"location\": {\n \"circle\": {\n \"gps\": \"12.423423,77.325647\",\n \"radius\": {\n \"type\": \"CONSTANT\",\n \"value\": \"5\",\n \"unit\": \"km\"\n }\n }\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/search", "host": ["{{base_url}}"], "path": ["search"] } }, "response": [] }, { "name": "search based on provider", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"search\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"intent\": {\n \"provider\": {\n \"id\": \"chargezone.in\"\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/search", "host": ["{{base_url}}"], "path": ["search"] } }, "response": [] }, { "name": "search based on location", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"search\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"intent\": {\n \"location\": {\n \"gps\": \"12.423423,77.325647\",\n \"radius\": {\n \"type\": \"CONSTANT\",\n \"value\": \"5\",\n \"unit\": \"km\"\n }\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/search", "host": ["{{base_url}}"], "path": ["search"] } }, "response": [] }, { "name": "search based on category", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"search\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"intent\": {\n \"category\": {\n \"descriptor\": {\n \"code\": \"green-tariff\"\n }\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/search", "host": ["{{base_url}}"], "path": ["search"] } }, "response": [] }, { "name": "search based on item", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"search\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"intent\": {\n \"item\": {\n \"descriptor\": {\n \"code\": \"energy\"\n }\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/search", "host": ["{{base_url}}"], "path": ["search"] } }, "response": [] } ] }, { "name": "select", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"select\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"order\": {\n \"provider\": {\n \"id\": \"chargezone.in\"\n },\n \"items\": [\n {\n \"id\": \"pe-charging-01\",\n \"quantity\": {\n \"selected\": {\n \"measure\": {\n \"value\": \"4\",\n \"unit\": \"kWh\"\n }\n }\n },\n \"add_ons\": [\n {\n \"id\": \"pe-charging-01-addon-1\"\n }\n ]\n }\n ],\n \"fulfillments\": [\n {\n \"id\": \"1\"\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/select", "host": ["{{base_url}}"], "path": ["select"] } }, "response": [] }, { "name": "init", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"init\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"order\": {\n \"provider\": {\n \"id\": \"chargezone.in\"\n },\n \"items\": [\n {\n \"id\": \"pe-charging-01\",\n \"quantity\": {\n \"selected\": {\n \"measure\": {\n \"value\": \"4\",\n \"unit\": \"kWh\"\n }\n }\n },\n \"add_ons\": [\n {\n \"id\": \"pe-charging-01-addon-1\"\n }\n ]\n }\n ],\n \"billing\": {\n \"name\": \"John Doe\",\n \"email\": \"abc@example.com\",\n \"phone\": \"+91-9876522222\"\n },\n \"fulfillments\": [\n {\n \"id\": \"1\",\n \"customer\": {\n \"person\": {\n \"name\": \"John Doe\"\n },\n \"contact\": {\n \"phone\": \"+91-9887766554\"\n }\n }\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/init", "host": ["{{base_url}}"], "path": ["init"] } }, "response": [] }, { "name": "confirm", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"confirm\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"order\": {\n \"providers\": {\n \"id\": \"chargezone.in\"\n },\n \"items\": [\n {\n \"id\": \"pe-charging-01\",\n \"quantity\": {\n \"selected\": {\n \"measure\": {\n \"value\": \"4\",\n \"unit\": \"kWh\"\n }\n }\n },\n \"add_ons\": [\n {\n \"id\": \"pe-charging-01-addon-1\"\n }\n ]\n }\n ],\n \"billing\": {\n \"name\": \"John Doe\",\n \"email\": \"abc@example.com\",\n \"number\": \"+91-9876522222\"\n },\n \"fulfillments\": [\n {\n \"id\": \"1\",\n \"customer\": {\n \"person\": {\n \"name\": \"John Doe\"\n },\n \"contact\": {\n \"phone\": \"+91-9887766554\"\n }\n }\n }\n ],\n \"payments\": [\n {\n \"collected_by\": \"BPP\",\n \"params\": {\n \"amount\": \"40\",\n \"currency\": \"INR\",\n \"transaction_id\": \"asjdhw8e238e3\"\n },\n \"status\": \"PAID\",\n \"type\": \"PRE-ORDER\"\n }\n ],\n \"quote\": {\n \"price\": {\n \"value\": \"40\",\n \"currency\": \"INR\"\n },\n \"breakup\": [\n {\n \"item\": {\n \"descriptor\": {\n \"name\": \"Estimated units consumed\"\n },\n \"quantity\": {\n \"selected\": {\n \"measure\": {\n \"value\": \"4\",\n \"unit\": \"kWh\"\n }\n }\n }\n },\n \"price\": {\n \"value\": \"32\",\n \"currency\": \"INR\"\n }\n }\n ]\n }\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/confirm", "host": ["{{base_url}}"], "path": ["confirm"] } }, "response": [] }, { "name": "update - charging-start", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"update\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"update_target\": \"order.fulfillments[0].state\",\n \"order\": {\n \"fulfillments\": [\n {\n \"id\": \"1\",\n \"type\": \"CHARGING\",\n \"state\": {\n \"descriptor\": {\n \"code\": \"start-charging\"\n }\n }\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/update", "host": ["{{base_url}}"], "path": ["update"] } }, "response": [] }, { "name": "update - charging-end", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"update\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"update_target\": \"order.fulfillments[0].state\",\n \"order\": {\n \"fulfillments\": [\n {\n \"id\": \"1\",\n \"type\": \"CHARGING\",\n \"state\": {\n \"descriptor\": {\n \"code\": \"end-charging\"\n }\n }\n }\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/update", "host": ["{{base_url}}"], "path": ["update"] } }, "response": [] }, { "name": "cancel", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"cancel\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"cancellation_reason_id\": \"5\",\n \"descriptor\": {\n \"short_desc\": \"can't attend booking\"\n },\n \"order_id\": \"6743e9e2-4fb5-487c-92b7\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/cancel", "host": ["{{base_url}}"], "path": ["cancel"] } }, "response": [] }, { "name": "status", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"status\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"order_id\": \"6743e9e2-4fb5-487c-92b7\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/status", "host": ["{{base_url}}"], "path": ["status"] } }, "response": [] }, { "name": "rating", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"rating\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"ratings\": [\n {\n \"id\": \"6743e9e2-4fb5-487c-92b7\",\n \"rating_category\": \"Order\",\n \"value\": \"5\"\n }\n ]\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/rating", "host": ["{{base_url}}"], "path": ["rating"] } }, "response": [] }, { "name": "support", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": {\n \"domain\": \"dent:ev-charging:0.1.0\",\n \"action\": \"support\",\n \"location\": {\n \"country\": {\n \"code\": \"IND\"\n },\n \"city\": {\n \"code\": \"std:080\"\n }\n },\n \"version\": \"1.1.0\",\n \"bap_id\": \"{{bap_id}}\",\n \"bap_uri\": \"{{bap_uri}}\",\n \"bpp_id\": \"{{bpp_id}}\",\n \"bpp_uri\": \"{{bpp_uri}}\",\n \"transaction_id\": \"6743e9e2-4fb5-487c-92b7-13ba8018f176\",\n \"message_id\": \"{{$randomUUID}}\",\n \"timestamp\": \"2023-07-16T04:41:16Z\"\n },\n \"message\": {\n \"support\": {\n \"ref_id\": \"6743e9e2-4fb5-487c-92b7\",\n \"phone\": \"+919876543210\",\n \"email\": \"john.doe@gmail.com\"\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/support", "host": ["{{base_url}}"], "path": ["support"] } }, "response": [] } ], "description": "Has Beckn API requests" } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [""] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [""] } } ], "variable": [ { "key": "bap_uri", "value": "https://ps-bap-network.becknprotocol.io", "type": "string" }, { "key": "bap_id", "value": "ps-bap-network.becknprotocol.io", "type": "string" }, { "key": "base_url", "value": "https://ps-bap-client.becknprotocol.io", "type": "string" }, { "key": "bpp_id", "value": "sandbox-bpp-network.becknprotocol.io", "type": "string" }, { "key": "bpp_uri", "value": "https://sandbox-bpp-network.becknprotocol.io", "type": "string" }, { "key": "core_version", "value": "1.1.0", "type": "string" } ] }