{
  "info": {
    "_postman_id": "54f222d0-fdc7-4421-bf2f-2d41440f3c27",
    "name": "Milestone 3 - New",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "22664441"
  },
  "item": [
    {
      "name": "Local M3 HIU APIs (under front_end/m3/)",
      "item": [
        {
          "name": "1. Gateway Session Token [M3]",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"refresh\": true\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_session.php",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_session.php"
              ]
            },
            "description": "Generates or refreshes the gateway session Bearer access token for M3 HIU."
          }
        },
        {
          "name": "2. Update Bridge Webhook URL",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"{{baseUrl}}/front_end/m3/webhook.php\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=update_url",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "update_url"
                }
              ]
            },
            "description": "Updates the HIU callback webhook URL on ABDM Gateway."
          }
        },
        {
          "name": "3. Register Bridge Service (HIU)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"facilityId\": \"{{facilityId}}\",\n  \"bridgeId\": \"{{bridgeId}}\",\n  \"facilityName\": \"S Y Hospital New Delhi\",\n  \"type\": \"HIU\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=register_services",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "register_services"
                }
              ]
            },
            "description": "Registers HIU service on ABDM Bridge."
          }
        },
        {
          "name": "4. Find Bridge Services by Bridge ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=find_bridge&bridgeId={{bridgeId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "find_bridge"
                },
                {
                  "key": "bridgeId",
                  "value": "{{bridgeId}}"
                }
              ]
            },
            "description": "Finds registered services for bridge."
          }
        },
        {
          "name": "5. Find Service by Service ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=find_service&serviceId={{hiuId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "find_service"
                },
                {
                  "key": "serviceId",
                  "value": "{{hiuId}}"
                }
              ]
            },
            "description": "Finds service details by HIU ID."
          }
        },
        {
          "name": "6. Get Gateway Public Certs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=certs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "certs"
                }
              ]
            },
            "description": "Retrieves ABDM Gateway public certificates."
          }
        },
        {
          "name": "7. OpenID Configuration",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_bridge.php?action=openid_config",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_bridge.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "openid_config"
                }
              ]
            },
            "description": "Fetches openid configuration."
          }
        },
        {
          "name": "8. Consent Init Request",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"patientId\": \"91410516244556@sbx\",\n  \"doctorName\": \"Dr. Rajesh Sharma, MD\",\n  \"dateFrom\": \"2024-01-01T00:00:00.000Z\",\n  \"dateTo\": \"2026-12-31T23:59:59.000Z\",\n  \"hiTypes\": [\n    \"Prescription\",\n    \"DiagnosticReport\",\n    \"OPConsultation\",\n    \"DischargeSummary\"\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_consent.php?action=init",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_consent.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "init"
                }
              ]
            },
            "description": "Initiates a consent request for patient health records."
          }
        },
        {
          "name": "9. Consent Request Status",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consentRequestId\": \"{{consentRequestId}}\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_consent.php?action=status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_consent.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "status"
                }
              ]
            },
            "description": "Queries status of an initiated consent request."
          }
        },
        {
          "name": "10. Consent HIU On-Notify (ACK)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consentId\": \"{{consentId}}\",\n  \"status\": \"OK\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_consent.php?action=hiu_on_notify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_consent.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "hiu_on_notify"
                }
              ]
            },
            "description": "Acknowledges consent status notification received by HIU."
          }
        },
        {
          "name": "11. Consent Artefact Fetch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consentId\": \"{{consentId}}\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_consent.php?action=fetch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_consent.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "fetch"
                }
              ]
            },
            "description": "Fetches consent artefact details."
          }
        },
        {
          "name": "12. List Tracked Consents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_consent.php?action=list_consents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_consent.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "list_consents"
                }
              ]
            },
            "description": "Lists all local tracked consent requests."
          }
        },
        {
          "name": "13. HIU Health Information Request",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consentId\": \"{{consentId}}\",\n  \"dataPushUrl\": \"{{baseUrl}}/front_end/m3/api_data_flow.php?action=push_receiver\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_data_flow.php?action=hi_request",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_data_flow.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "hi_request"
                }
              ]
            },
            "description": "Requests health data transfer using granted consent."
          }
        },
        {
          "name": "14. Data Flow Notification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"consentId\": \"{{consentId}}\",\n  \"transactionId\": \"{{transactionId}}\",\n  \"sessionStatus\": \"TRANSFERRED\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_data_flow.php?action=data_notify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_data_flow.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "data_notify"
                }
              ]
            },
            "description": "Notifies that data transfer has completed."
          }
        },
        {
          "name": "15. Get Patient Clinical Records",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_data_flow.php?action=get_records",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_data_flow.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "get_records"
                }
              ]
            },
            "description": "Retrieves longitudinal FHIR health records for the patient."
          }
        },
        {
          "name": "16. M3 Unified Controller (Status / Router)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_hiu.php?action=status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_hiu.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "status"
                }
              ]
            },
            "description": "Checks health and module status of Milestone 3 HIU."
          }
        },
        {
          "name": "17. Webhook Inspection - Get Callbacks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_webhook.php?action=get_callbacks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_webhook.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "get_callbacks"
                }
              ]
            },
            "description": "Returns logged webhook callbacks for HIU."
          }
        },
        {
          "name": "18. Webhook Receiver Endpoint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"test\": \"ping_hiu\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/webhook.php",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "webhook.php"
              ]
            },
            "description": "Target endpoint receiving asynchronous ABDM callbacks."
          }
        },
        {
          "name": "19. Simulate Webhook Callback",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"approved\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/front_end/m3/api_webhook.php?action=simulate_callback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "front_end",
                "m3",
                "api_webhook.php"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "simulate_callback"
                }
              ]
            },
            "description": "Simulates incoming consent approval or data push event."
          }
        }
      ]
    },
    {
      "name": "Registration and Auth",
      "item": [
        {
          "name": "Session API",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "pm.environment.set(\"accessToken\", jsonData.accessToken);"
                ],
                "type": "text/javascript",
                "packages": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}",
                "type": "text"
              },
              {
                "key": "X-CM-ID",
                "value": "sbx",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"clientId\": \"<<Enter Client Id>>\",\n    \"clientSecret\": \"<<Enter Client Secret>>\",\n    \"grantType\": \"client_credentials\"\n}"
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/sessions",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                "sessions"
              ]
            }
          },
          "response": []
        },
        {
          "name": "Update Bridge URL",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "const datetime = require('moment');\r",
                  "pm.globals.set(\"current_timestamp\",datetime().format(\"YYYY-MM-DD HH:mm:ss.SSS\"));"
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "PATCH",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"url\": \"{{URL to be updated}}\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge/url",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                "bridge",
                "url"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"bridgeId\": \"MOHANK_LTI\",\r\n    \"url\": \"https://webhook.site/3b21e640-493e-4b09-98b9-0fa88acb65ae\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge/url",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge",
                    "url"
                  ]
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "48"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": "*"
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "PATCH"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,apikey,Internal-Key,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "12d3aa13-f3d8-4764-b762-780b74efe17e"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 11:45:54 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": ""
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"bridgeId\": \"MOHANK_LT\",\r\n    \"url\": \"https://webhook.site/3b21e640-493e-4b09-98b9-0fa88acb65ae\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge/url",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge",
                    "url"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "8"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": "*"
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "PATCH"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,apikey,Internal-Key,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "284f60f8-e63c-4ae1-9653-470ea18f73ae"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:31:47 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "Registration of bridge services (HIP/HIU)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{Auth_Token}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"facilityId\": \"IN07100*****\",\r\n  \"facilityName\": \"S Y Hospital\",\r\n  \"HRP\": [\r\n    {\r\n      \"bridgeId\": \"{{Bridge_ID}}\",\r\n      \"hipName\": \"S Y Hospital\",\r\n      \"type\": \"HIP\",\r\n      \"active\": true\r\n    }\r\n  ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://apihspsbx.abdm.gov.in/v4/int/v1/bridges/MutipleHRPAddUpdateServices",
              "protocol": "https",
              "host": [
                "apihspsbx",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "v4",
                "int",
                "v1",
                "bridges",
                "MutipleHRPAddUpdateServices"
              ]
            },
            "description": "Generated from cURL: curl --location 'https://apihspsbx.abdm.gov.in/v1/bridges/MutipleHRPAddUpdateServices' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE3MjQxMzI3MTUsImlhdCI6MTcyNDEzMTUxNSwianRpIjoiN2MzNWI1NzctYWQ4ZC00ZmVjLTk2NWMtM2U2YzFiYjg1NzliIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJkZTMxN2ZlYi03NjM4LTQ3NWUtYjI5OS0zM2NhYTVkMTUxNDEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfVEVTVF9TQyIsInNlc3Npb25fc3RhdGUiOiJlMTdmNWMxMy1kNDRkLTQwODUtYmFlYi04Y2YwNWRmN2JhMGUiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6OTAwNyJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiSGlkSW50ZWdyYXRlZFByb2dyYW0iLCJoZnIiLCJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsIkhpZF9DaGlsZCIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhlYWx0aF9sb2NrZXIiLCJoaXAiLCJIaWRBYmhhU2VhcmNoIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiU0JYX1RFU1RfU0MiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRJZCI6IlNCWF9URVNUX1NDIiwiY2xpZW50SG9zdCI6IjEwMC42NS4xNjAuMjE0IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4X3Rlc3Rfc2MiLCJjbGllbnRBZGRyZXNzIjoiMTAwLjY1LjE2MC4yMTQifQ.VfvoH8S941BemqaYKyB_qfCS4oNLd211AaZ0Hori38ZMCIPJeFx1euSM_oImPRssabuhDIjX6QqVblm9pmft34rPG1XwLPWO53tv6Tidi9s91yp5KluxsqJB0699sFspx9WJvycrOdyv6zKegmcKJ8u-x8hFC8mN3nXSYNIiBIjFIQPgsKDsrnau2G8bf7UYo9UPIzMWuglcy44CDZE6PDdfaVEPwt12NcCbzmfanUXlomEyO7fpJPkB-iDEqyG6dq3o93j_SdhhjjZmQwigACdrYG0z3XXoLLLVzrQKA3thguI4f2QNPSy8NGpij1YG_axOxItr1iwaR6CBtBODZg' \\\r\n--data '{\r\n  \"facilityId\": \"IN0710001283\",\r\n  \"facilityName\": \"S Y Hospital New Delhi\",\r\n  \"HRP\": [\r\n    {\r\n      \"bridgeId\": \"{{Bridge_ID}}\",\r\n      \"hipName\": \"S Y Hospital New Delhi\",\r\n      \"type\": \"HIP\",\r\n      \"active\": true\r\n    }\r\n  ]\r\n}'"
          },
          "response": []
        },
        {
          "name": "Find Bridge Service By Service ID",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "const datetime = require('moment');\r",
                  "pm.globals.set(\"current_timestamp\",datetime().format(\"YYYY-MM-DD HH:mm:ss.SSS\"));"
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-service/serviceId/{{service ID}}",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                "bridge-service",
                "serviceId",
                "{{service ID}}"
              ],
              "query": [
                {
                  "key": "stateCode",
                  "value": "10",
                  "disabled": true
                },
                {
                  "key": "districtCode",
                  "value": "20",
                  "disabled": true
                }
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-service/serviceId/Mohan_HIP1",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge-service",
                    "serviceId",
                    "Mohan_HIP1"
                  ],
                  "query": [
                    {
                      "key": "stateCode",
                      "value": "10",
                      "disabled": true
                    },
                    {
                      "key": "districtCode",
                      "value": "20",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "31"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": "*"
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "GET"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,apikey,Internal-Key,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "1411d724-5426-4303-9c3a-61a12cb3887f"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "application/json"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 11:46:12 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "{\n    \"id\": 9687,\n    \"bridgeId\": \"MOHANK_LTI\",\n    \"serviceId\": \"Mohan_HIP1\",\n    \"name\": \"Mohan Hospital\",\n    \"isHip\": true,\n    \"isPhr\": false,\n    \"endpoints\": {},\n    \"active\": true,\n    \"registerTime\": \"2022-06-10 09:02:52.252\",\n    \"dateCreated\": \"2022-06-10 09:02:52.252\",\n    \"dateModified\": \"2023-12-15 16:01:39.139\"\n}"
            },
            {
              "name": "404 Not found",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-service/serviceId/Mohan_HIP1$",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge-service",
                    "serviceId",
                    "Mohan_HIP1$"
                  ],
                  "query": [
                    {
                      "key": "stateCode",
                      "value": "10",
                      "disabled": true
                    },
                    {
                      "key": "districtCode",
                      "value": "20",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "x-request-id",
                  "value": "fe0af795-5bf0-4732-a044-84537542e647"
                },
                {
                  "key": "x-forwarded-proto",
                  "value": "http"
                },
                {
                  "key": "postman-token",
                  "value": "f94fa938-c2ef-4559-9be5-c946d5fe5ccc"
                },
                {
                  "key": "x-b3-sampled",
                  "value": "0"
                },
                {
                  "key": "x-forwarded-for",
                  "value": "100.65.201.149"
                },
                {
                  "key": "request-id",
                  "value": "ccae69a6-3eb9-4dbb-a6e6-0cc8cfeff043"
                },
                {
                  "key": "x-envoy-attempt-count",
                  "value": "1"
                },
                {
                  "key": "activityid",
                  "value": "119233e0-e8ce-45ff-8cc0-aa33b41e61f4"
                },
                {
                  "key": "x-cm-id",
                  "value": "sbx"
                },
                {
                  "key": "x-envoy-external-address",
                  "value": "100.65.201.149"
                },
                {
                  "key": "x-b3-spanid",
                  "value": "9c77814d71528d6d"
                },
                {
                  "key": "x-b3-traceid",
                  "value": "03e852a044b577cc9c77814d71528d6d"
                },
                {
                  "key": "accept-encoding",
                  "value": "gzip, deflate, br"
                },
                {
                  "key": "timestamp",
                  "value": "2024-05-09T11:46:31.988Z"
                },
                {
                  "key": "content-type",
                  "value": "application/json; charset=UTF-8"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 11:46:31 GMT"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "2"
                },
                {
                  "key": "X-Frame-Options",
                  "value": "DENY"
                },
                {
                  "key": "X-XSS-Protection",
                  "value": "1; mode=block"
                },
                {
                  "key": "X-Content-Type-Options",
                  "value": "nosniff"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Referrer-Policy",
                  "value": "strict-origin"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "{\n    \"code\": \"404\",\n    \"type\": \"Status report\",\n    \"message\": \"Runtime Error\",\n    \"description\": \"No matching resource found for given API Request\"\n}"
            }
          ]
        },
        {
          "name": "Find Services By Bridge ID",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-services",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                "bridge-services"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-services/SBX_002167",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge-services",
                    "SBX_002167"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "40"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": "*"
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "GET"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,apikey,Internal-Key,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "a62c0d0c-ea45-4a80-bcfa-8d36085c0130"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "application/json"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 11:47:04 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "{\n    \"bridge\": {\n        \"id\": \"SBX_002167\",\n        \"name\": \"barot dhruv\",\n        \"url\": \"https://webhook.site/23961f0f-3500-48d7-8ce2-8d48ad3dc0e9\",\n        \"active\": true,\n        \"blocklisted\": false\n    },\n    \"services\": [\n        {\n            \"id\": \"A1_HL\",\n            \"name\": \"Aarogya One Health Loker\",\n            \"types\": [\n                \"HIP\"\n            ],\n            \"endpoints\": {\n                \"hipEndpoints\": [\n                    {\n                        \"use\": \"registration\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/registration\"\n                    },\n                    {\n                        \"use\": \"data-upload\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/data-upload\"\n                    }\n                ],\n                \"hiuEndpoints\": [\n                    {\n                        \"use\": \"registration\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/registration\"\n                    },\n                    {\n                        \"use\": \"data-upload\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/data-upload\"\n                    }\n                ],\n                \"healthLockerEndpoints\": [\n                    {\n                        \"use\": \"registration\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/registration\"\n                    },\n                    {\n                        \"use\": \"data-upload\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://events.hookdeck.com/e/src_3gsnEgI941mh/data-upload\"\n                    }\n                ]\n            },\n            \"active\": true\n        },\n        {\n            \"id\": \"DHRUV_DEV_PHR_001\",\n            \"name\": \"Dhruv PHR APP\",\n            \"types\": [\n                \"PHR\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"DHRUV_DEV_PHR_002\",\n            \"name\": \"Dhruv PHR APP Only PHR\",\n            \"types\": [\n                \"PHR\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"Dhruv_HEALTH_LOCKER\",\n            \"name\": \"Aarogya One Health Loker\",\n            \"types\": [],\n            \"endpoints\": {\n                \"healthLockerEndpoints\": [\n                    {\n                        \"use\": \"registration\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://webhook.site/248a81d7-4194-4445-ad9c-db7541d8983b/registration\"\n                    },\n                    {\n                        \"use\": \"data-upload\",\n                        \"connectionType\": \"HTTPS\",\n                        \"address\": \"https://webhook.site/248a81d7-4194-4445-ad9c-db7541d8983b/data-upload\"\n                    }\n                ]\n            },\n            \"active\": true\n        },\n        {\n            \"id\": \"Dhruv_HIP\",\n            \"name\": \"Dhruv HIP\",\n            \"types\": [\n                \"HIP\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"Dhruv_HIU\",\n            \"name\": \"Dhruv HIU\",\n            \"types\": [\n                \"HIU\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"IN1210000232\",\n            \"name\": \"NP AR WEST SIANG aalo hq\",\n            \"types\": [\n                \"HIP\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"IN1210000232_1\",\n            \"name\": \"NP AR WEST SIANG aalo hq\",\n            \"types\": [\n                \"HIP\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        },\n        {\n            \"id\": \"IN2410000190\",\n            \"name\": \"dhruv hospital\",\n            \"types\": [\n                \"HIP\"\n            ],\n            \"endpoints\": {},\n            \"active\": true\n        }\n    ]\n}"
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/bridge-services/SBX_002167",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "gateway",
                    "v3",
                    "bridge-services",
                    "SBX_002167"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "23"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": "*"
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "GET"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,apikey,Internal-Key,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "75c8e478-2888-442c-9732-3fa93ad8c464"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:32:32 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "certs",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {}
          },
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "GET",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}",
                "type": "text"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}",
                "type": "text"
              },
              {
                "key": "X-CM-ID",
                "value": "{{cm-id}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/certs",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                "certs"
              ]
            }
          },
          "response": []
        },
        {
          "name": "openid-configuration",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{cm-id}}"
              }
            ],
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/gateway/v3/.well-known/openid-configuration",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "gateway",
                "v3",
                ".well-known",
                "openid-configuration"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "HIU APIs",
      "item": [
        {
          "name": "Consent init Request",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"consent\": {\r\n        \"purpose\": {\r\n            \"text\": \"Care Management\",\r\n            \"code\": \"CAREMGT\",\r\n            \"refUri\": \"{{refUri}}\"\r\n        },\r\n        \"patient\": {\r\n            \"id\": \"{{patient Id}}\"\r\n        },\r\n        \"hiu\": {\r\n            \"id\": \"{{HIU Id}}\"\r\n        },\r\n        \"hip\": null,\r\n        \"careContexts\": null,\r\n        \"requester\": {\r\n            \"name\": \"{{name}}\",\r\n            \"identifier\": {\r\n                \"type\": \"{{type}}\",\r\n                \"value\": \"{{value}}\",\r\n                \"system\": \"{{system}}\"\r\n            }\r\n        },\r\n        \"hiTypes\": [\r\n            \"{{hiTypes}}\"\r\n        ],\r\n        \"permission\": {\r\n            \"accessMode\": \"VIEW\",\r\n            \"dateRange\": {\r\n                \"from\": \"{{From date and time}}\",\r\n                \"to\": \"{{To date and time}}\"\r\n            },\r\n            \"dataEraseAt\": \"{{date and time}}\",\r\n            \"frequency\": {\r\n                \"unit\": \"HOUR\",\r\n                \"value\": 0,\r\n                \"repeats\": 0\r\n            }\r\n        }\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/init",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "consent",
                "v3",
                "request",
                "init"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"consent\": {\r\n        \"purpose\": {\r\n            \"text\": \"Care Management\",\r\n            \"code\": \"CAREMGT\",\r\n            \"refUri\": \"www.abdm.gov.in\"\r\n        },\r\n        \"patient\": {\r\n            \"id\": \"abdulkalam@sbx\"\r\n        },\r\n        \"hiu\": {\r\n            \"id\": \"N_SBX_HIU_V3\"\r\n        },\r\n        \"hip\": null,\r\n        \"careContexts\": null,\r\n        \"requester\": {\r\n            \"name\": \"Dr Manjula Bedi\",\r\n            \"identifier\": {\r\n                \"type\": \"REGNO1\",\r\n                \"value\": \"MH1001\",\r\n                \"system\": \"https://www.mciindia.9985\"\r\n            }\r\n        },\r\n        \"hiTypes\": [\r\n            \"Prescription\"\r\n        ],\r\n        \"permission\": {\r\n            \"accessMode\": \"VIEW\",\r\n            \"dateRange\": {\r\n                \"from\": \"2023-05-07T08:58:09.738Z\",\r\n                \"to\": \"2023-06-10T08:58:09.738Z\"\r\n            },\r\n            \"dataEraseAt\": \"2024-05-31T08:58:09.738Z\",\r\n            \"frequency\": {\r\n                \"unit\": \"HOUR\",\r\n                \"value\": 0,\r\n                \"repeats\": 0\r\n            }\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/init",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "init"
                  ]
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "Text",
              "header": [],
              "cookie": [],
              "body": "Note: Expected Response on callback - https://webhook.site/7e64fb5c-96a0-4585-9e1e-7c10ce8df7a5/api/v3/hiu/consent/request/on-init\r\n{\r\n  \"consentRequest\": {\r\n    \"id\": \"a7554d1c-3cc7-42be-823b-766038ea73b7\"\r\n  },\r\n  \"error\": null,\r\n  \"response\": {\r\n    \"requestId\": \"0b26cedf-5bc0-40af-bf03-17f35f1a09fd\"\r\n  }\r\n}"
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"consent\": {\r\n        \"purpose\": {\r\n            \"text\": \"Care Management\",\r\n            \"code\": \"CAREMGT\",\r\n            \"refUri\": \"www.abdm.gov.in\"\r\n        },\r\n        \"patient\": {\r\n            \"id\": \"abdulkalam@sbx\"\r\n        },\r\n        \"hiu\": {\r\n            \"id\": \"SBX_HIU_V3\"\r\n        },\r\n        \"hip\": null,\r\n        \"careContexts\": null,\r\n        \"requester\": {\r\n            \"name\": \"Dr Manjula Bedi\",\r\n            \"identifier\": {\r\n                \"type\": \"REGNO1\",\r\n                \"value\": \"MH1001\",\r\n                \"system\": \"https://www.mciindia.9985\"\r\n            }\r\n        },\r\n        \"hiTypes\": [\r\n            \"Prescription\"\r\n        ],\r\n        \"permission\": {\r\n            \"accessMode\": \"VIEW\",\r\n            \"dateRange\": {\r\n                \"from\": \"2023-05-20T08:58:09.738Z\",\r\n                \"to\": \"2023-06-10T08:58:09.738Z\"\r\n            },\r\n            \"dataEraseAt\": \"2024-05-31T08:58:09.738Z\",\r\n            \"frequency\": {\r\n                \"unit\": \"HOUR\",\r\n                \"value\": 0,\r\n                \"repeats\": 0\r\n            }\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/init",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "init"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "11"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "0312c495-887e-4d57-bdbd-efe518fc882d"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:35:20 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            },
            {
              "name": "Error Message",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"consent\": {\r\n        \"purpose\": {\r\n            \"text\": \"Care Management\",\r\n            \"code\": \"CAREMGT\",\r\n            \"refUri\": \"www.abdm.gov.in\"\r\n        },\r\n        \"patient\": {\r\n            \"id\": \"abdulkalam@sbx\"\r\n        },\r\n        \"hiu\": {\r\n            \"id\": \"SBX_HIU_V3\"\r\n        },\r\n        \"hip\": null,\r\n        \"careContexts\": null,\r\n        \"requester\": {\r\n            \"name\": \"Dr Manjula Bedi\",\r\n            \"identifier\": {\r\n                \"type\": \"REGNO1\",\r\n                \"value\": \"MH1001\",\r\n                \"system\": \"https://www.mciindia.9985\"\r\n            }\r\n        },\r\n        \"hiTypes\": [\r\n            \"Prescription\"\r\n        ],\r\n        \"permission\": {\r\n            \"accessMode\": \"VIEW\",\r\n            \"dateRange\": {\r\n                \"from\": \"2023-05-20T08:58:09.738Z\",\r\n                \"to\": \"2023-06-10T08:58:09.738Z\"\r\n            },\r\n            \"dataEraseAt\": \"2024-03-31T08:58:09.738Z\",\r\n            \"frequency\": {\r\n                \"unit\": \"HOUR\",\r\n                \"value\": 0,\r\n                \"repeats\": 0\r\n            }\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/init",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "init"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "25"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "96e6d248-f01d-40f9-b894-5dcede7e743c"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "application/json"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:35:38 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"error\": {\n            \"code\": \"ABDM-9999: \",\n            \"message\": \"Invalid data erase date. Date must be a future date\"\n        }\n    }\n]"
            }
          ]
        },
        {
          "name": "Consent Request Status",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              },
              {
                "key": "X-HIU-ID",
                "value": "{{HIU Id}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"consentRequestId\": \"{{Consent Request Id}}}}\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/status",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "consent",
                "v3",
                "request",
                "status"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"consentRequestId\": \"a7554d1c-3cc7-42be-823b-766038ea73b7\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/status",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "status"
                  ]
                }
              },
              "_postman_previewlanguage": "Text",
              "header": [],
              "cookie": [],
              "body": "Note: Expected Response on callback - https://webhook.site/7e64fb5c-96a0-4585-9e1e-7c10ce8df7a5/api/v3/hiu/consent/request/on-status\r\n{\r\n  \"consentRequest\": {\r\n    \"id\": \"a7554d1c-3cc7-42be-823b-766038ea73b7\",\r\n    \"status\": \"REQUESTED\"\r\n  },\r\n  \"error\": null,\r\n  \"response\": {\r\n    \"requestId\": \"2bf5fff7-f2a8-4014-9558-59723e1e7d16\"\r\n  },\r\n  \"resp\": null\r\n}"
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"consentRequestId\": \"a7554d1c-3cc7-42be-823b-766038ea73b7\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/status",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "status"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "11"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "4e3e3917-e5c8-4641-ae06-83d0251e3c49"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:35:59 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "Consent HIU on notify",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"acknowledgement\": [\r\n        {\r\n            \"status\": \"{{status}}\",\r\n            \"consentId\": \"{{consentId}}\"\r\n        }\r\n    ],\r\n    \"response\": {\r\n        \"requestId\": \"{{requestId}}\"\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/hiu/on-notify",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "consent",
                "v3",
                "request",
                "hiu",
                "on-notify"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"acknowledgement\": [\r\n        {\r\n            \"status\": \"ok\",\r\n            \"consentId\": \"6fd112df-d172-47f6-8835-55839273c702\"\r\n        }\r\n        \r\n    ],\r\n    \"response\": {\r\n        \"requestId\": \"e0969d75-3437-4cb3-af51-db3d9514a6e1\"\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/hiu/on-notify",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "hiu",
                    "on-notify"
                  ]
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "Text",
              "header": [],
              "cookie": [],
              "body": "Note: No response on webhook or postman"
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"acknowledgement\": [\r\n        {\r\n            \"status\": \"ok\",\r\n            \"consentId\": \"6fd112df-d172-47f6-8835-55839273c702\"\r\n        }\r\n        \r\n    ],\r\n    \"response\": {\r\n        \"requestId\": \"e0969d75-3437-4cb3-af51-db3d9514a6e1\"\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/request/hiu/on-notify",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "request",
                    "hiu",
                    "on-notify"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "16"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "1047df48-2f75-44e9-a6a1-643cf1fd58a8"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:37:14 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "Consent Fetch",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              },
              {
                "key": "X-HIU-ID",
                "value": "{{HIU ID}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n   \"consentId\": \"{{Consent Id}}\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/fetch",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "consent",
                "v3",
                "fetch"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n   \"consentId\": \"6fd112df-d172-47f6-8835-55839273c702\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/fetch",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "fetch"
                  ]
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "28"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "8ae65a0c-2f51-4250-867e-4c969ca5f290"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 10:25:16 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Note: Expected response on callback - https://webhook.site/7e64fb5c-96a0-4585-9e1e-7c10ce8df7a5/api/v3/hiu/consent/on-fetch\r\n\r\n{\r\n  \"consent\": {\r\n    \"status\": \"GRANTED\",\r\n    \"consentDetail\": {\r\n      \"consentId\": \"6fd112df-d172-47f6-8835-55839273c702\",\r\n      \"hip\": {\r\n        \"id\": \"IN2710000362_1\"\r\n      },\r\n      \"hiu\": {\r\n        \"id\": \"N_SBX_HIU_V3\"\r\n      },\r\n      \"hiTypes\": [\r\n        \"Prescription\"\r\n      ],\r\n      \"patient\": {\r\n        \"id\": \"abdulkalam@sbx\"\r\n      },\r\n      \"purpose\": {\r\n        \"text\": \"Care Management\",\r\n        \"code\": \"CAREMGT\",\r\n        \"refUri\": \"www.abdm.gov.in\"\r\n      },\r\n      \"createdAt\": \"2024-05-09T10:09:37.714Z\",\r\n      \"requester\": {\r\n        \"name\": \"Dr Manjula Bedi\",\r\n        \"identifier\": {\r\n          \"value\": \"MH1001\",\r\n          \"type\": \"REGNO1\",\r\n          \"system\": \"https://www.mciindia.9985\"\r\n        }\r\n      },\r\n      \"permission\": {\r\n        \"accessMode\": \"VIEW\",\r\n        \"dateRange\": {\r\n          \"from\": \"2023-05-11T06:21:42.683Z\",\r\n          \"to\": \"2024-01-10T06:21:42.683Z\"\r\n        },\r\n        \"dataEraseAt\": \"2024-05-31T06:21:42.683Z\",\r\n        \"frequency\": {\r\n          \"unit\": \"HOUR\",\r\n          \"value\": \"0\",\r\n          \"repeats\": \"0\"\r\n        }\r\n      },\r\n      \"lastUpdated\": \"2024-05-09T10:09:37.714Z\",\r\n      \"careContexts\": [\r\n        {\r\n          \"patientReference\": \"abdulkalam@sbx@sbx\",\r\n          \"careContextReference\": \"DFCConnect_2024-02-02-01975\"\r\n        }\r\n      ],\r\n      \"schemaVersion\": \"v3\",\r\n      \"consentManager\": {\r\n        \"id\": \"sbx\"\r\n      }\r\n    },\r\n    \"signature\": \"h1hD734o0NZufMJtTC95e+5al2rg83vmKLwo0Kuv7qYxj5X9FtSPTM8DMhuULF23fObmKy2Ksyn3xgmefzmU/YNcNBfd3PEJun3cM7NyFXBN/KoUZWnB4lnQmqkrJqvCqZwB9AOy877AGGPaq7PGWTrfXEBH+tc+Am3NB4zFUR7pCtGRFEqTW90q8W4CLEGWtri4Yab0G6msjx1Jja0q2BeOFWLJDSJBHgQbOlEiT9y9tM86lBRPbdQnSq4EIUM8XODajnyFD3nQtuNbp1sPR3W1js2tcWsR3FMvyybStr4ALd1qegmuUFn2dpztm3fk6WrCoN2UbUecOAHZZwrIgQ==\"\r\n  },\r\n  \"error\": null,\r\n  \"response\": {\r\n    \"requestId\": \"d49d8773-ec92-47b3-91e4-2cf942d6f71f\"\r\n  },\r\n  \"resp\": null\r\n}"
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n   \"consentId\": \"6fd112df-d172-47f6-8835-55839273c702\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/consent/v3/fetch",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "consent",
                    "v3",
                    "fetch"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "11"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "c105f43a-2c25-4ac0-9f2c-c7907926d000"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:37:33 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "HIU Health Information Request",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              },
              {
                "key": "X-HIU-ID",
                "value": "{{HIU Id}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"hiRequest\": {\r\n        \"consent\": {\r\n            \"id\": \"{{consent Id}}\"\r\n        },\r\n        \"dateRange\": {\r\n            \"from\": \"{{From date and time}}\",\r\n            \"to\": \"{{To date and time}}\"\r\n        },\r\n        \"dataPushUrl\": \"{{Data Push URL}}\",\r\n        \"keyMaterial\": {\r\n            \"cryptoAlg\": \"{{algorithm Used}}\",\r\n            \"curve\": \"{{curve}}\",\r\n            \"dhPublicKey\": {\r\n                \"expiry\": \"{{expiry date}}\",\r\n                \"parameters\": \"{{parameters}}\",\r\n                \"keyValue\": \"{{public key}}\"\r\n            },\r\n            \"nonce\": \"{{nonce}}\"\r\n        }\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/request",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "data-flow",
                "v3",
                "health-information",
                "request"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"requestId\": \"{{$guid}}\",\r\n    \"timestamp\": \"{{timestamp}}\",\r\n    \"hiRequest\": {\r\n        \"consent\": {\r\n            \"id\": \"2cd2a08a-c22a-4d05-9321-af95477e1cf9\"\r\n        },\r\n        \"dateRange\": {\r\n                \"from\": \"2023-05-17T08:58:09.738Z\",\r\n                \"to\": \"2023-06-10T08:58:09.738Z\"\r\n        },\r\n        \"dataPushUrl\": \"https://webhook.site/ecf7388d-1bb2-4a73-9c59-b6e6a209bcdd/atul/data/push\",\r\n        \"keyMaterial\": {\r\n            \"cryptoAlg\": \"ECDH\",\r\n            \"curve\": \"Curve25519\",\r\n            \"dhPublicKey\": {\r\n                \"expiry\": \"2025-06-17T12:23:08.224Z\",\r\n                \"parameters\": \"Curve25519/32byte random key\",\r\n                \"keyValue\": \"BDdwiDc0OE6GTml90tcDcfQpDuVyEeciwBGYkB5v08yWRBc3sIKm9e5ygVktMAXVFdNLai4wfqUeEWHe3AK3X+Q=\", /* publicKey */\r\n                \"x509PublicKey\": \"MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARzDxcCe7FZtrb+gvbjb/FJnS/zc7Ooq9A+1bTW3uHSdF33GViSWumNHfFbkuLf85ksgoGCjQVa+5CHPeV4PGOP\"\r\n            },\r\n            \"nonce\": \"eFwkEMkx/0VmOoVjmf3j8lf3ef/ESqgudybfL0/D/a8=\" /* nonce */\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/request",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "data-flow",
                    "v3",
                    "health-information",
                    "request"
                  ]
                }
              },
              "_postman_previewlanguage": "Text",
              "header": [],
              "cookie": [],
              "body": "Note: Expected response on call back\r\n\r\n\"202 Accepted\r\nResponse on V3 HIU-\r\n{\r\n  \"\"hiRequest\"\": {\r\n    \"transactionId\": \"ef1da0d8-0c3f-490d-8b72-70c543304ee6\",\r\n    \"sessionStatus\": \"REQUESTED\"\r\n  },\r\n  \"\"response\"\": {\r\n    \"requestId\": \"8235b050-3187-44f1-ac0a-5d41c8a94120\"\r\n  }\r\n}\""
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-HIU-ID",
                    "value": "N_SBX_HIU_V3",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"requestId\": \"{{$guid}}\",\r\n    \"timestamp\": \"{{timestamp}}\",\r\n    \"hiRequest\": {\r\n        \"consent\": {\r\n            \"id\": \"48a92670-56f6-4ec9-b03b-8bb1eb685105\"\r\n        },\r\n        \"dateRange\": {\r\n                \"from\": \"2023-05-17T08:58:09.738Z\",\r\n                \"to\": \"2023-06-10T08:58:09.738Z\"\r\n        },\r\n        \"dataPushUrl\": \"https://webhook.site/ecf7388d-1bb2-4a73-9c59-b6e6a209bcdd/atul/data/push\",\r\n        \"keyMaterial\": {\r\n            \"cryptoAlg\": \"ECDH\",\r\n            \"curve\": \"Curve25519\",\r\n            \"dhPublicKey\": {\r\n                \"expiry\": \"2025-06-17T12:23:08.224Z\",\r\n                \"parameters\": \"Curve25519/32byte random key\",\r\n                \"keyValue\": \"BDdwiDc0OE6GTml90tcDcfQpDuVyEeciwBGYkB5v08yWRBc3sIKm9e5ygVktMAXVFdNLai4wfqUeEWHe3AK3X+Q=\", /* publicKey */\r\n                \"x509PublicKey\": \"MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARzDxcCe7FZtrb+gvbjb/FJnS/zc7Ooq9A+1bTW3uHSdF33GViSWumNHfFbkuLf85ksgoGCjQVa+5CHPeV4PGOP\"\r\n            },\r\n            \"nonce\": \"eFwkEMkx/0VmOoVjmf3j8lf3ef/ESqgudybfL0/D/a8=\" /* nonce */\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/request",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "data-flow",
                    "v3",
                    "health-information",
                    "request"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "22"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "f1b577f3-e2d0-475b-b9a9-21d58b46b52c"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:43:16 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        },
        {
          "name": "Data Flow Notification",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{accessToken}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "REQUEST-ID",
                "value": "{{$guid}}"
              },
              {
                "key": "TIMESTAMP",
                "value": "{{$isoTimestamp}}"
              },
              {
                "key": "X-CM-ID",
                "value": "{{X-CM-ID}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"notification\": {\r\n        \"consentId\": \"{{consent Id}}\",\r\n        \"transactionId\": \"{{transactionId}}\",\r\n        \"doneAt\": \"{{date and time}}\",\r\n        \"notifier\": {\r\n            \"type\": \"HIU\",\r\n            \"id\": \"{{HIU ID}}\"\r\n        },\r\n        \"statusNotification\": {\r\n            \"sessionStatus\": \"{{Notification status}}\",\r\n            \"hipId\": \"{{HIP ID}}\",\r\n            \"statusResponses\": [\r\n                {\r\n                    \"careContextReference\": \"{{careContextReference ID}}\",\r\n                    \"hiStatus\": \"{{status}}\",\r\n                    \"description\": \"{{description}}\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/notify",
              "protocol": "https",
              "host": [
                "dev",
                "abdm",
                "gov",
                "in"
              ],
              "path": [
                "api",
                "hiecm",
                "data-flow",
                "v3",
                "health-information",
                "notify"
              ]
            }
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"notification\": {\r\n        \"consentId\": \"97c3668e-49e3-4121-b2d3-1ca6d949cd8a\",\r\n        \"transactionId\": \"e3472dad-86c5-42df-9afd-d7c13df2a564\",\r\n        \"doneAt\": \"2023-05-24T10:51:08.374Z\",\r\n        \"notifier\": {\r\n            \"type\": \"HIU\",\r\n            \"id\": \"HIU-HOSPITAL\"\r\n        },\r\n        \"statusNotification\": {\r\n            \"sessionStatus\": \"RECEIVED\",\r\n            \"hipId\": \"HIP-HOSPITAL\",\r\n            \"statusResponses\": [\r\n                {\r\n                    \"careContextReference\": \"b18d2e56-c5d2-41d0-bbe9-32a8b7579f74\",\r\n                    \"hiStatus\": \"OK\",\r\n                    \"description\": \"test care context\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/notify",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "data-flow",
                    "v3",
                    "health-information",
                    "notify"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "Text",
              "header": [],
              "cookie": [],
              "body": "Note: Status get updated in data_flow_request table in db as \"TRANSFERRED\""
            },
            {
              "name": "Access Denied",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "REQUEST-ID",
                    "value": "{{$guid}}",
                    "type": "text"
                  },
                  {
                    "key": "TIMESTAMP",
                    "value": "{{$isoTimestamp}}",
                    "type": "text"
                  },
                  {
                    "key": "X-CM-ID",
                    "value": "sbx",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"notification\": {\r\n        \"consentId\": \"97c3668e-49e3-4121-b2d3-1ca6d949cd8a\",\r\n        \"transactionId\": \"e3472dad-86c5-42df-9afd-d7c13df2a564\",\r\n        \"doneAt\": \"2023-05-24T10:51:08.374Z\",\r\n        \"notifier\": {\r\n            \"type\": \"HIU\",\r\n            \"id\": \"HIU-HOSPITAL\"\r\n        },\r\n        \"statusNotification\": {\r\n            \"sessionStatus\": \"FAILED\",\r\n            \"hipId\": \"HIP-HOSPITAL\",\r\n            \"statusResponses\": [\r\n                {\r\n                    \"careContextReference\": \"b18d2e56-c5d2-41d0-bbe9-32a8b7579f74\",\r\n                    \"hiStatus\": \"ERRORED\",\r\n                    \"description\": \"test care context\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://dev.abdm.gov.in/api/hiecm/data-flow/v3/health-information/notify",
                  "protocol": "https",
                  "host": [
                    "dev",
                    "abdm",
                    "gov",
                    "in"
                  ],
                  "path": [
                    "api",
                    "hiecm",
                    "data-flow",
                    "v3",
                    "health-information",
                    "notify"
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "plain",
              "header": [
                {
                  "key": "expires",
                  "value": "0"
                },
                {
                  "key": "x-envoy-upstream-service-time",
                  "value": "11"
                },
                {
                  "key": "access-control-allow-origin",
                  "value": ""
                },
                {
                  "key": "access-control-allow-methods",
                  "value": "POST"
                },
                {
                  "key": "x-frame-options",
                  "value": "DENY"
                },
                {
                  "key": "access-control-allow-headers",
                  "value": "authorization,Content-Type,SOAPAction,apikey,Internal-Key,TIMESTAMP,X-HIP-ID,REQUEST-ID,X-CM-ID,Authorization"
                },
                {
                  "key": "pragma",
                  "value": "no-cache"
                },
                {
                  "key": "activityid",
                  "value": "eec30217-83d1-48d8-bcc0-d11dd454c4ba"
                },
                {
                  "key": "access-control-expose-headers",
                  "value": ""
                },
                {
                  "key": "x-content-type-options",
                  "value": "nosniff"
                },
                {
                  "key": "x-xss-protection",
                  "value": "1 ; mode=block"
                },
                {
                  "key": "referrer-policy",
                  "value": "no-referrer"
                },
                {
                  "key": "content-type",
                  "value": "text/plain"
                },
                {
                  "key": "cache-control",
                  "value": "no-cache, no-store, max-age=0, must-revalidate"
                },
                {
                  "key": "date",
                  "value": "Thu, 09 May 2024 12:44:01 GMT"
                },
                {
                  "key": "Strict-Transport-Security",
                  "value": "max-age=16070400; includeSubDomains"
                },
                {
                  "key": "Transfer-Encoding",
                  "value": "chunked"
                }
              ],
              "cookie": [],
              "body": "Access Denied"
            }
          ]
        }
      ]
    }
  ]
}