Skip to content
Snippets Groups Projects
Generic Client Layer.postman_collection.json 1.49 MiB
Newer Older
10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297
                    },
                    "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    },\n    \"searchString\":\"energy\"\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    \"data\": [\n        {\n            \"context\": {\n                \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c60008\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n                \"orders\": [\n                    {\n                        \"provider\": {\n                            \"id\": \"chargezone.in\"\n                        },\n                        \"items\": [\n                            {\n                                \"id\": \"pe-charging-01\"\n                            }\n                        ]\n                    }\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    \"data\": [\n        {\n            \"context\": {\n                \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c60008\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n                \"orders\": {\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        }\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    \"data\": [\n        {\n            \"context\": {\n                \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c60008\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n                \"orders\": {\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        }\n    ],\n    \"includeRawResponse\": true\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    \"data\": [\n        {\n            \"context\": {\n                \"domain\": \"dent:ev-charging:0.1.0\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"transaction_id\": \"{{$randomUUID}}\"\n            },\n            \"orderId\": \"508\",\n            \"updateDetails\": {\n                \"updateTarget\": \"order.fulfillments[0].state\",\n                \"fulfillments\": [\n                    {\n                        \"id\": \"1\",\n                        \"type\": \"CHARGING\",\n                        \"state\": {\n                            \"descriptor\": {\n                                \"code\": \"start-charging\"\n                            }\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    \"data\": [\n        {\n            \"context\": {\n                \"domain\": \"dent:ev-charging:0.1.0\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"transaction_id\": \"{{$randomUUID}}\"\n            },\n            \"orderId\": \"508\",\n            \"updateDetails\": {\n                \"updateTarget\": \"order.fulfillments[0].state\",\n                \"fulfillments\": [\n                    {\n                        \"id\": \"1\",\n                        \"type\": \"CHARGING\",\n                        \"state\": {\n                            \"descriptor\": {\n                                \"code\": \"end-charging\"\n                            }\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    \"data\": [\n        {\n            \"context\": {\n                \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c60008\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n               \"order_id\": \"6743e9e2-4fb5-487c-92b7\",\n                \"cancellation_reason_id\": \"5\"\n            }\n        }\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    \"data\": [\n        {\n            \"context\": {\n                \"transaction_id\": \"a9aaecca-10b7-4d19-b640-b047a7c60008\",\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n                \"order_id\": \"6743e9e2-4fb5-487c-92b7\"\n            }\n        }\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    \"data\": [\n        {\n            \"context\": {\n                \"bpp_id\": \"{{bpp_sandbox_id}}\",\n                \"bpp_uri\": \"{{bpp_sandbox_uri}}\",\n                \"domain\": \"dent:ev-charging:0.1.0\"\n            },\n            \"message\": {\n                \"ratings\": [\n                    {\n                        \"id\": \"6743e9e2-4fb5-487c-92b7\",\n                        \"rating_category\": \"Order\",\n                        \"value\": \"5\"\n                    }\n                ]\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": "base_url",
      "value": "https://bap-gcl-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_id",
      "value": "beckn-sandbox-bpp.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_uri",
      "value": "https://sandbox-bpp-network.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_id_strapi",
      "value": "bpp-ps-network-strapi-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_uri_strapi",
      "value": "http://bpp-ps-network-strapi-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_vendure_id",
      "value": "bpp-ps-network-vendure-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_vendure_uri",
      "value": "https://bpp-ps-network-vendure-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_sandbox_id",
      "value": "bpp-ps-network-sandbox-dev.becknprotocol.io",
      "type": "string"
    },
    {
      "key": "bpp_sandbox_uri",
      "value": "https://bpp-ps-network-sandbox-dev.becknprotocol.io",