{"info":{"_postman_id":"a2c4eb32-769c-42b6-9997-5f696b9d0d4c","name":"Ezetap API","description":"# Introduction\nThis API is for pre-authentication of incoming request\n\n# Authentication\nBearer token is used for authentication\n\n# Error Codes\n* Success : 200\n* Failure : 400\n* Unauthorized : 401/403","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Pre Authentication","id":"a8cc7bd4-4ddd-439e-9eae-f488a4bbc336","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer Token as provided"}],"body":{"mode":"raw","raw":"{\n    \"uniqueReferenceNumber\": \"8967621843\",\n    \"type\": \"OPD\",\n    \"hospitalDisplayName\" : \"Batra Hospital & Medical Research Centre\"\n}"},"url":"https://api.kiwiplans.com/admin/yesbank/preauthentication","description":"# Accepts\n* Content-Type\tapplication/json\n\n# Request Body\n|       Attribute       | Description                                                  |\n|:---------------------:|--------------------------------------------------------------|\n| uniqueReferenceNumber | Type : String<br>Details : Alphanumeric unique identifier    |\n| type                  | Type : String<br>Details : For Eg: OPD/PHARMACY/LAB TEST |\n| hospitalDisplayName                   | Type : String<br>Details : Name of hospital                         |\n\n# Response Body\n|       Attribute       | Description                                            |\n|:---------------------:|--------------------------------------------------------|\n| status                | Type : String<br>Details : Provides status of response |\n| reason                | Type : String<br>Details : Provides reason for failure |\n| agreedPercentageSplit | Type : String<br>Details : Provides split percentage   |\n"},"response":[{"id":"8e9d0eed-0321-4daf-8c2a-19ff44de988a","name":"Pre Authentication Failure","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token as provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"uniqueReferenceNumber\": \"8967621843\",\n    \"type\": \"OPD\",\n    \"hospitalDisplayName\" : \"Batra Hospital & Medical Research Centre\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.kiwiplans.com/admin/yesbank/preauthentication"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2020 11:25:10 GMT"},{"key":"Server","value":"kiwiplans"},{"key":"Access-Control-Allow-Methods","value":"POST, PUT, GET, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With, Content-Type, Authorization, Origin, Accept, Access-Control-Request-Method, Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"Access-Control-Allow-Origin,Access-Control-Allow-Credentials"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"application/json"},{"key":"Connection","value":"close"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"reason\": [\n            \"Not Authorized\"\n        ],\n        \"status\": \"FAILURE\"\n    }\n}"},{"id":"ebbe75bd-25fb-4d78-9e71-323b1f73dd42","name":"Pre Authentication Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token as provided","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"uniqueReferenceNumber\" : \"8968621804\",\n    \"type\" : \"OPD\",\n    \"hospitalDisplayName\" : \"Batra Hospital & Medical Research Centre\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.kiwiplans.com/admin/yesbank/preauthentication"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2020 11:38:45 GMT"},{"key":"Server","value":"kiwiplans"},{"key":"Access-Control-Allow-Methods","value":"POST, PUT, GET, OPTIONS, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With, Content-Type, Authorization, Origin, Accept, Access-Control-Request-Method, Access-Control-Request-Headers"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"Access-Control-Allow-Origin,Access-Control-Allow-Credentials"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"application/json"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"agreedPercentageSplit\": \"90.0:10.0\",\n        \"status\": \"SUCCESS\"\n    }\n}"}],"_postman_id":"a8cc7bd4-4ddd-439e-9eae-f488a4bbc336"}],"auth":{"type":"bearer","bearer":{"token":"7e8919a0-2e7c-451f-afe5-2537a07fb907"}}}