{
  "info": {
    "_postman_id": "7e5f4159-8d90-4876-bc6d-650026041fd6",
    "name": "B2B request-new",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "49625863",
    "_collection_link": "https://go.postman.co/collection/49625863-7e5f4159-8d90-4876-bc6d-650026041fd6?source=collection_link"
  },
  "item": [
    {
      "name": "oauth2/token",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Cookie",
            "value": "Cookie_1=value; XSRF-TOKEN=1e7a9269-bf7b-407d-b3a5-5791d0c7a405",
            "type": "text",
            "disabled": true
          }
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "grant_type",
              "value": "client_credentials",
              "type": "text"
            },
            {
              "key": "client_id",
              "value": "{{clientid}}",
              "type": "text"
            },
            {
              "key": "client_secret",
              "value": "{{clientsecret}}",
              "type": "text"
            },
            {
              "key": "scope",
              "value": "openid",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "https://auth.demo.incode.com/oauth2/token",
          "protocol": "https",
          "host": [
            "auth",
            "demo",
            "incode",
            "com"
          ],
          "path": [
            "oauth2",
            "token"
          ]
        }
      },
      "response": []
    },
    {
      "name": "b2b/onboarding/request-new",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "var jsonData = JSON.parse(responseBody);",
              "postman.setEnvironmentVariable(\"X-Incode-Hardware-Id\", jsonData.token);",
              "postman.setEnvironmentVariable(\"interviewId\", jsonData.interviewId);",
              "postman.setEnvironmentVariable(\"interviewCode\", jsonData.interviewCode);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "api-version",
            "value": "1.0"
          },
          {
            "key": "x-api-key",
            "value": "bdd2380e6affe5761376e2f5823653b6031d061f"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"loginHint\":\"email\",\n    \"integrationReference\":\"{{integrationReference}}\",\n    \"notification\":{\n        \"type\":\"URL\"\n        },\n    \"name\":\"\"\n\n}"
        },
        "url": {
          "raw": "https://auth.demo.incode.com/omni/b2b/onboarding/request-new",
          "protocol": "https",
          "host": [
            "auth",
            "demo",
            "incode",
            "com"
          ],
          "path": [
            "omni",
            "b2b",
            "onboarding",
            "request-new"
          ]
        }
      },
      "response": []
    }
  ]
}