{"info":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","description":"<html><head></head><body><h1 id=\"berrybox-portal-api-collection\">🍇 Berrybox Portal API Collection</h1>\n<p>Welcome to the Berrybox Health Platform API documentation. This collection contains GraphQL and REST APIs used by the BBX Portal and PWA platform, covering mobile authentication, user registration, vendor flows, and order management.</p>\n<hr>\n<h2 id=\"🔐-authentication-flow-mobile-user\">🔐 Authentication Flow (Mobile User)</h2>\n<p>To generate an <code>accessToken</code> for authenticated requests, follow these steps:</p>\n<ol>\n<li><p><strong>Set the Mobile Number</strong></p>\n<ul>\n<li><p>Go to <strong>Collection Variables</strong>.</p>\n</li>\n<li><p>Set the desired mobile number under <code>mobile</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Run the</strong> <strong><code>Mobile Login</code></strong> <strong>Request</strong></p>\n<ul>\n<li>If login fails due to an unregistered user:</li>\n</ul>\n</li>\n<li><p><strong>Run the</strong> <strong><code>Mobile Signup</code></strong> <strong>Request</strong></p>\n<ul>\n<li>Then re-run the <strong><code>Mobile Login</code></strong> request.</li>\n</ul>\n</li>\n<li><p><strong>Set OTP</strong></p>\n<ul>\n<li>Once OTP is received, set it in <strong>Collection Variables</strong> as <code>otp</code>.</li>\n</ul>\n</li>\n<li><p><strong>Run the</strong> <strong><code>Verify OTP</code></strong> <strong>Request</strong></p>\n<ul>\n<li>On successful verification, the <code>accessToken</code> will be saved to Collection Variables.</li>\n</ul>\n</li>\n<li><p>You can now make authenticated GraphQL or REST API requests using the stored <code>accessToken</code>.</p>\n</li>\n</ol>\n<hr>\n<h2 id=\"📘-general-status-codes\">📘 General Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Meaning</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200 OK</code></td>\n<td>Request successful</td>\n<td>Standard success response</td>\n</tr>\n<tr>\n<td><code>201 Created</code></td>\n<td>Resource created</td>\n<td>Useful for user creation or registration flows</td>\n</tr>\n<tr>\n<td><code>400 Bad Request</code></td>\n<td>Invalid input</td>\n<td>Often due to validation errors in payload</td>\n</tr>\n<tr>\n<td><code>401 Unauthorized</code></td>\n<td>Missing/invalid token</td>\n<td>Check if accessToken is properly set</td>\n</tr>\n<tr>\n<td><code>403 Forbidden</code></td>\n<td>Insufficient permissions</td>\n<td>User is authenticated but not allowed to access</td>\n</tr>\n<tr>\n<td><code>404 Not Found</code></td>\n<td>Resource not found</td>\n<td>Wrong URL, path, or ID passed</td>\n</tr>\n<tr>\n<td><code>500 Internal Server Error</code></td>\n<td>Server issue</td>\n<td>API issue or unexpected failure</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"⚠️-error-handling-notes\">⚠️ Error Handling Notes</h2>\n<ul>\n<li><p>Most GraphQL errors will appear under the <code>\"errors\"</code> key in the response.</p>\n</li>\n<li><p>For REST APIs, the <code>message</code> or <code>error</code> field typically holds failure details.</p>\n</li>\n<li><p>Include error trace IDs (if available) when reporting bugs.</p>\n</li>\n</ul>\n<hr>\n<h2 id=\"🧪-tips-for-using-this-collection\">🧪 Tips for Using This Collection</h2>\n<ul>\n<li><p>Use <strong>Collection Variables</strong> for common fields like <code>mobile</code>, <code>otp</code>, <code>accessToken</code>, and base URL.</p>\n</li>\n<li><p>Refer to the <strong>Examples</strong> tab on each request to see successful and failed payloads.</p>\n</li>\n<li><p>Explore folders by use case: Authentication, Vendor Flows, User Registration, etc.</p>\n</li>\n</ul>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🍇 Berrybox Portal API Collection","slug":"berrybox-portal-api-collection"}],"owner":"34518334","collectionId":"2ada6ce9-fb66-41b3-9701-009ded229b49","publishedId":"2sB2qi7cj4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-06-23T10:36:39.000Z"},"item":[{"name":"Mobile User APIs","item":[{"name":"Authentication","item":[{"name":"Mobile Signup","event":[{"listen":"prerequest","script":{"id":"4c95d5dc-e6c4-49a3-9a25-8d2613c856bc","exec":["// Set current timestamp for request","pm.environment.set(\"currentTimestamp\", new Date().getTime());",""],"type":"text/javascript","packages":{}}}],"id":"060511a9-b538-4b4b-84ff-e6a5c9784dbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{APPSYNC_APIKEY}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{APPSYNC_APIKEY}}","description":"<p>API Key for authorization</p>\n"}],"body":{"mode":"graphql","graphql":{"query":"mutation createMobileUser($input: CreateMobileUserInput!) {\n  createMobileUser(input: $input) {\n    success\n    message\n  }\n}","variables":"{\n  \"input\": {\n    \"phone\": \"13456\",\n    \"ipAddress\": \"1161:1b18:7faf:883e:0a30:b68d:4c06:6eea\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"create-mobile-user\">Create Mobile User</h2>\n<p>This request is used to create a new mobile user in the system. It sends a GraphQL mutation to the specified endpoint.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The primary purpose of this request is to register a new mobile user, allowing them to access the system's features and services.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body must include the necessary parameters for creating a mobile user. The exact structure of the payload is defined by the GraphQL schema but typically includes fields such as:</p>\n<ul>\n<li><p><strong>username</strong> (string): The unique username for the new user.</p>\n</li>\n<li><p><strong>email</strong> (string): The email address of the user.</p>\n</li>\n<li><p><strong>password</strong> (string): The password for the user's account.</p>\n</li>\n<li><p><strong>phone</strong> (string): The mobile phone number of the user.</p>\n</li>\n</ul>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>Upon a successful request, the response will typically include:</p>\n<ul>\n<li><p><strong>success</strong> (boolean): Indicates whether the user creation was successful.</p>\n</li>\n<li><p><strong>message</strong> (string): A message providing additional information about the request outcome.</p>\n</li>\n<li><p><strong>userId</strong> (string): The unique identifier of the newly created user.</p>\n</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"User created successfully.\",\n  \"userId\": \"12345\"\n}\n\n</code></pre>\n<p>Ensure to follow the GraphQL mutation format when constructing your request.</p>\n","urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[{"id":"2173680f-5f54-450a-81d2-e133cf4663b3","name":"sucess","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{APPSYNC_APIKEY}}","description":"API Key for authorization"}],"body":{"mode":"graphql","graphql":{"query":"mutation createMobileUser($input: CreateMobileUserInput!) {\n  createMobileUser(input: $input) {\n    success\n    message\n  }\n}","variables":"{\n  \"input\": {\n    \"phone\": \"+911234567892\",\n    \"ipAddress\": \"b97b:0d9b:c3db:c2a6:2c0a:3859:bfe6:8e00\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"91"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Aug 2025 11:47:58 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-688ca96d-1b59bf2d4eac012a1c07fdea"},{"key":"x-amzn-RequestId","value":"553b8c24-17cb-4cba-8e67-75987647b530"},{"key":"x-amzn-appsync-TokensConsumed","value":"33"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e6a37c61d86d6e0bcdada5b6b948004c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"S-dNxGbrLrv_vJIW-J0JBTQdbm51xiZTFfK1dKkvrD6zsOYfA9UC0g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createMobileUser\": {\n            \"success\": true,\n            \"message\": \"Mobile user created successfully\"\n        }\n    }\n}"},{"id":"764dded8-57bc-464b-b546-b3168ec5131f","name":"Failure","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"{{APPSYNC_APIKEY}}","description":"API Key for authorization"}],"body":{"mode":"graphql","graphql":{"query":"mutation createMobileUser($input: CreateMobileUserInput!) {\n  createMobileUser(input: $input) {\n    success\n    message\n  }\n}","variables":"{\n  \"input\": {\n    \"phone\": \"13456\",\n    \"ipAddress\": \"666e:ae59:7969:a22d:77df:4041:2b03:df91\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"235"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Aug 2025 11:49:15 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-688ca9bb-2495fded0dc7ae6753f806bf"},{"key":"x-amzn-RequestId","value":"c7c6e656-3536-4548-b69f-ea3c293fd0fe"},{"key":"x-amzn-appsync-TokensConsumed","value":"7"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 e6a37c61d86d6e0bcdada5b6b948004c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"TBNxLYhL_uSL_BWdMqCfKW5IQ68tc3bkutVc9AMGTW7qdyBOBZ3izw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createMobileUser\": null\n    },\n    \"errors\": [\n        {\n            \"path\": [\n                \"createMobileUser\"\n            ],\n            \"data\": null,\n            \"errorType\": \"ValidationException\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"Error creating mobile app user\"\n        }\n    ]\n}"}],"_postman_id":"060511a9-b538-4b4b-84ff-e6a5c9784dbe"},{"name":"Mobile Login","event":[{"listen":"prerequest","script":{"id":"32f321d1-c758-4238-89a9-ddcd5cb6325d","exec":["const mobile = pm.collectionVariables.get('mobile');","","if(!mobile){","    throw new Error('Mobile Number Required for Login. Please add it to collection variables')","}","","const cognitoClientId = pm.collectionVariables.get('COGNITO_CLIENT_ID');","","if(!cognitoClientId){","    throw new Error('COGNITO_CLIENT_ID required for Login. Please add it to collection variables.')","}"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"8c759fbe-8362-49d9-b0b6-262772743510","exec":["pm.test(\"Response status code is 200\", function () {","  pm.expect(pm.response.code).to.equal(200);","});","","","pm.test(\"Response has the required fields\", function () {","    const responseData = pm.response.json();","    ","    pm.expect(responseData).to.be.an('object');","    pm.expect(responseData).to.have.property('ChallengeName');","    pm.expect(responseData).to.have.property('ChallengeParameters');","    pm.expect(responseData.ChallengeParameters).to.have.property('USERNAME');","    pm.expect(responseData.ChallengeParameters).to.have.property('otp');","    pm.expect(responseData).to.have.property('Session');","});","","","pm.test(\"ChallengeParameters contain non-empty USERNAME\", function () {","  const responseData = pm.response.json();","  ","  pm.expect(responseData.ChallengeParameters).to.exist;","  pm.expect(responseData.ChallengeParameters.USERNAME).to.exist.and.to.have.lengthOf.at.least(1, \"USERNAME should not be empty\");","  pm.expect(responseData.ChallengeParameters.otp).to.exist.and.to.have.lengthOf.at.least(6, \"otp should not be empty\");","});","","const responseData = pm.response.json();","const username = responseData.ChallengeParameters.USERNAME;","const authSession = responseData.Session;","const otp = responseData.ChallengeParameters.otp;","","if(username){","    pm.collectionVariables.set(\"username\", username);","}","if(authSession){","    pm.collectionVariables.set(\"auth_session\", authSession)","}","if(otp){","    pm.collectionVariables.set('otp', otp)","}",""],"type":"text/javascript","packages":{}}}],"id":"1c076c1b-f079-48a3-ba54-6d94b3f9e477","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"accept-language","value":"en-GB,en;q=0.9,en-US;q=0.8,vi;q=0.7"},{"key":"cache-control","value":"no-store"},{"key":"content-type","value":"application/x-amz-json-1.1"},{"key":"origin","value":"http://localhost:3000"},{"key":"priority","value":"u=1, i"},{"key":"referer","value":"http://localhost:3000/"},{"key":"sec-ch-ua","value":"\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Microsoft Edge\";v=\"134\""},{"key":"sec-ch-ua-mobile","value":"?0"},{"key":"sec-ch-ua-platform","value":"\"macOS\""},{"key":"sec-fetch-dest","value":"empty"},{"key":"sec-fetch-mode","value":"cors"},{"key":"sec-fetch-site","value":"cross-site"},{"key":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"},{"key":"x-amz-target","value":"AWSCognitoIdentityProviderService.InitiateAuth"},{"key":"x-amz-user-agent","value":"aws-amplify/6.13.4 auth/4 framework/2"}],"body":{"mode":"raw","raw":"{\n    \"AuthFlow\": \"CUSTOM_AUTH\",\n    \"AuthParameters\": {\n        \"USERNAME\": \"+911234567892\"\n    },\n    \"ClientId\": \"{{COGNITO_CLIENT_ID}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cognito-idp.ap-south-1.amazonaws.com/","description":"<h3 id=\"post-cognito-idpap-south-1amazonawscom\">POST /cognito-idp.ap-south-1.amazonaws.com/</h3>\n<p>This endpoint is used to make an HTTP POST request to the Cognito Identity Provider in the ap-south-1 region.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>AuthFlow (string, required): Specifies the authentication flow for the request.</p>\n</li>\n<li><p>AuthParameters (object, required): Contains the authentication parameters.</p>\n<ul>\n<li>USERNAME (string, required): The username for authentication.</li>\n</ul>\n</li>\n<li><p>ClientId (string, required): The ID of the Cognito client.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response is in the form of a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"ChallengeName\": \"\",\n  \"ChallengeParameters\": {\n    \"USERNAME\": \"\"\n  },\n  \"Session\": \"\"\n}\n\n</code></pre>\n<p>The response contains the following fields:</p>\n<ul>\n<li><p>ChallengeName (string): Specifies the type of challenge that needs to be performed.</p>\n</li>\n<li><p>ChallengeParameters (object): Contains the parameters related to the challenge.</p>\n<ul>\n<li>USERNAME (string): The username associated with the challenge.</li>\n</ul>\n</li>\n<li><p>Session (string): The session information.</p>\n</li>\n</ul>\n<h3 id=\"request-body-1\">Request Body</h3>\n<ul>\n<li><p>AuthFlow (string, required): Specifies the custom authentication flow.</p>\n</li>\n<li><p>AuthParameters (object, required): Contains the username of the user.</p>\n<ul>\n<li>USERNAME (string, required): The mobile number of the user (with +91, eg: +919988776655).</li>\n</ul>\n</li>\n<li><p>ClientId (string, required): The unique client ID associated with the Cognito user pool.</p>\n</li>\n</ul>\n","urlObject":{"host":["https://cognito-idp.ap-south-1.amazonaws.com/"],"query":[],"variable":[]}},"response":[{"id":"5728b0f2-d3c6-4ad1-9060-2becc9598175","name":"sucess","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"accept-language","value":"en-GB,en;q=0.9,en-US;q=0.8,vi;q=0.7"},{"key":"cache-control","value":"no-store"},{"key":"content-type","value":"application/x-amz-json-1.1"},{"key":"origin","value":"http://localhost:3000"},{"key":"priority","value":"u=1, i"},{"key":"referer","value":"http://localhost:3000/"},{"key":"sec-ch-ua","value":"\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Microsoft Edge\";v=\"134\""},{"key":"sec-ch-ua-mobile","value":"?0"},{"key":"sec-ch-ua-platform","value":"\"macOS\""},{"key":"sec-fetch-dest","value":"empty"},{"key":"sec-fetch-mode","value":"cors"},{"key":"sec-fetch-site","value":"cross-site"},{"key":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"},{"key":"x-amz-target","value":"AWSCognitoIdentityProviderService.InitiateAuth"},{"key":"x-amz-user-agent","value":"aws-amplify/6.13.4 auth/4 framework/2"}],"body":{"mode":"raw","raw":"{\n    \"AuthFlow\": \"CUSTOM_AUTH\",\n    \"AuthParameters\": {\n        \"USERNAME\": \"+911234567892\"\n    },\n    \"ClientId\": \"{{COGNITO_CLIENT_ID}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cognito-idp.ap-south-1.amazonaws.com/"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Fri, 01 Aug 2025 11:50:09 GMT"},{"key":"Content-Type","value":"application/x-amz-json-1.1"},{"key":"Content-Length","value":"1033"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"0b7cfa62-41cb-48ff-b431-f3725fa6c338"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Expose-Headers","value":"x-amzn-RequestId,x-amzn-ErrorType,x-amzn-ErrorMessage,Date"}],"cookie":[],"responseTime":null,"body":"{\n    \"ChallengeName\": \"CUSTOM_CHALLENGE\",\n    \"ChallengeParameters\": {\n        \"USERNAME\": \"01a3fdda-b0e1-7053-0ca4-0d6b9ec1fb97\"\n    },\n    \"Session\": \"AYABeJwQHwd-tDA_JSygyBYR2hwAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMATGFybjphd3M6a21zOmFwLXNvdXRoLTE6NjU0NDM0NDQ0NzkwOmtleS8yNjg1NWU1NC05NTMzLTRhNDctYjYxNy1hYjgwYjMyNDkxZWQAuAECAQB4-BeuO0GV5N2J8dmVTJfc71G3DuEJOFQLLLNY6cqgxKkBcbn6ybp8U7xugFBqxtfCyQAAAH4wfAYJKoZIhvcNAQcGoG8wbQIBADBoBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDJfhfpdf8we9xYyKNgIBEIA7J8Ui3iBasFk5cD4yJ31nk_Zo2Vmxrd2bDShU9pnx9cAPAxXfWJrNxyzK3Vj-OjGK7qmFGTcQLMEGjT4CAAAAAAwAABAAAAAAAAAAAAAAAAAAvUcJVswD0N4a-5OVrABhRv____8AAAABAAAAAAAAAAAAAAABAAABFj5nMi2VwwrZunJ6V6tdPWTBOKaB-GnZl_GedCZpakPKfMg2f-XNcU-vJhNOBI7McvgIhtsoaOunMvKJxIEWN9e8M5bcxbc8S1oAGASKd0OITpq-rmeNbxfxHPteAttmU83FLQHR4DUMbIE_JcEcxOaa-1RgbMPOEZnBVvP-1w1cXksgvL8Iacus1N98eRtaGzbCC7yqKMu_M0ftIOpefVLQpRDeYOB3IvDoxsWDrtEQT-UvbXetegIZfGiZiGM1vRFq11kx9fIKA44PQLdHi_YQVw5JWPvT4NUoj2Lf3-Mfv2dGAtHXnMAOoh8Ka8T6hMbjxS22uA8Jb2J6zzk4nEUT3jHYhj4tDU3Nc5Kf55myzftzQP76YzwTspyVC-e9ADKOvpRc8g\"\n}"},{"id":"ce548cf2-9148-4790-848c-72a13b76960f","name":"user not found","originalRequest":{"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"accept-language","value":"en-GB,en;q=0.9,en-US;q=0.8,vi;q=0.7"},{"key":"cache-control","value":"no-store"},{"key":"content-type","value":"application/x-amz-json-1.1"},{"key":"origin","value":"http://localhost:3000"},{"key":"priority","value":"u=1, i"},{"key":"referer","value":"http://localhost:3000/"},{"key":"sec-ch-ua","value":"\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Microsoft Edge\";v=\"134\""},{"key":"sec-ch-ua-mobile","value":"?0"},{"key":"sec-ch-ua-platform","value":"\"macOS\""},{"key":"sec-fetch-dest","value":"empty"},{"key":"sec-fetch-mode","value":"cors"},{"key":"sec-fetch-site","value":"cross-site"},{"key":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"},{"key":"x-amz-target","value":"AWSCognitoIdentityProviderService.InitiateAuth"},{"key":"x-amz-user-agent","value":"aws-amplify/6.13.4 auth/4 framework/2"}],"body":{"mode":"raw","raw":"{\n    \"AuthFlow\": \"CUSTOM_AUTH\",\n    \"AuthParameters\": {\n        \"USERNAME\": \"{{678}}\"\n    },\n    \"ClientId\": \"{{COGNITO_CLIENT_ID}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cognito-idp.ap-south-1.amazonaws.com/"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Fri, 01 Aug 2025 11:50:35 GMT"},{"key":"Content-Type","value":"application/x-amz-json-1.1"},{"key":"Content-Length","value":"67"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"b7ddbe3a-d621-46a5-8464-23541d63d5ca"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amzn-ErrorType","value":"UserNotFoundException:"},{"key":"Access-Control-Expose-Headers","value":"x-amzn-RequestId,x-amzn-ErrorType,x-amzn-ErrorMessage,Date"},{"key":"x-amzn-ErrorMessage","value":"User does not exist."}],"cookie":[],"responseTime":null,"body":"{\n    \"__type\": \"UserNotFoundException\",\n    \"message\": \"User does not exist.\"\n}"}],"_postman_id":"1c076c1b-f079-48a3-ba54-6d94b3f9e477"},{"name":"Mobile Verify OTP","event":[{"listen":"test","script":{"id":"c9f8d23c-fe4c-4353-b9f4-664b31a826d2","exec":["// Test to check if the response contains the AuthenticationResult object","pm.test(","    'Verify if the response contains the AuthenticationResult',","    () => {","        pm.expect(pm.response.json().AuthenticationResult).to.exist;","    }",");","","// Test to check if the AccessToken exists in the AuthenticationResult object","pm.test(","    'Verify if the AccessToken exists in the AuthenticationResult', ","    () => {","        pm.expect(pm.response.json().AuthenticationResult.AccessToken).to.exist;","    }",");","","// Storing the access token to the collection variables as auth_token","pm.collectionVariables.set(","    'auth_token', ","    pm.response.json().AuthenticationResult.AccessToken",");","","// Remove auth_session, otp, username from collection variables","pm.collectionVariables.unset('auth_session');","pm.collectionVariables.unset('otp');","pm.collectionVariables.unset('username');",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"9f908116-14a5-48b3-9e18-3fe7248af4b6","exec":["const mobile = pm.collectionVariables.get('mobile');","","if(!mobile){","    throw new Error('Mobile Number Required for Verify OTP. Please add it to collection variables')","}","","const cognitoClientId = pm.collectionVariables.get('COGNITO_CLIENT_ID');","","if(!cognitoClientId){","    throw new Error('COGNITO_CLIENT_ID required for Verify OTP. Please add it to collection variables.')","}","","const otp = pm.collectionVariables.get('otp');","","if(!otp){","    throw new Error('OTP is required for Verify OTP Flow. Please add it to collection variables.')","}","","const username = pm.collectionVariables.get('username');","const authSession = pm.collectionVariables.get('auth_session');","","if(!username || !authSession){","    throw new Error('Please run the Login Flow before running the Verify OTP Flow.')","}"],"type":"text/javascript","packages":{}}}],"id":"94726eea-c81f-46e6-9b26-f07cb22f6d09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"accept","value":"*/*"},{"key":"accept-language","value":"en-GB,en;q=0.9,en-US;q=0.8,vi;q=0.7"},{"key":"cache-control","value":"no-store"},{"key":"content-type","value":"application/x-amz-json-1.1"},{"key":"origin","value":"http://localhost:3000"},{"key":"priority","value":"u=1, i"},{"key":"referer","value":"http://localhost:3000/"},{"key":"sec-ch-ua","value":"\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Microsoft Edge\";v=\"134\""},{"key":"sec-ch-ua-mobile","value":"?0"},{"key":"sec-ch-ua-platform","value":"\"macOS\""},{"key":"sec-fetch-dest","value":"empty"},{"key":"sec-fetch-mode","value":"cors"},{"key":"sec-fetch-site","value":"cross-site"},{"key":"user-agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0"},{"key":"x-amz-target","value":"AWSCognitoIdentityProviderService.RespondToAuthChallenge"},{"key":"x-amz-user-agent","value":"aws-amplify/6.13.4 auth/12 framework/2"}],"body":{"mode":"raw","raw":"{\n    \"ChallengeName\": \"CUSTOM_CHALLENGE\",\n    \"ChallengeResponses\": {\n        \"USERNAME\": \"{{username}}\",\n        \"ANSWER\": \"{{otp}}\"\n    },\n    \"Session\": \"{{auth_session}}\",\n    \"ClientMetadata\": {\n        \"phone\": \"+911234567892\"\n    },\n    \"ClientId\": \"{{COGNITO_CLIENT_ID}}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://cognito-idp.ap-south-1.amazonaws.com/","description":"<h2 id=\"api-request-description\">API Request Description</h2>\n<p>This endpoint is used to respond to a custom authentication challenge in Amazon Cognito. The request is made using the HTTP POST method to the endpoint <code>https://cognito-idp.ap-south-1.amazonaws.com/</code>.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request body must be formatted as JSON and includes the following parameters:</p>\n<ul>\n<li><p><strong>ChallengeName</strong> (string): Specifies the name of the challenge, which in this case is set to \"CUSTOM_CHALLENGE\".</p>\n</li>\n<li><p><strong>ChallengeResponses</strong> (object): Contains the user's responses to the challenge prompts:</p>\n<ul>\n<li><p><strong>USERNAME</strong> (string): The username of the user responding to the challenge.</p>\n</li>\n<li><p><strong>ANSWER</strong> (string): The user's answer to the challenge, typically an OTP or similar response.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Session</strong> (string): The session identifier received from the previous authentication step, used to maintain the context of the authentication process.</p>\n</li>\n<li><p><strong>ClientMetadata</strong> (object): Optional metadata that can be sent with the request. In this case, it includes:</p>\n<ul>\n<li><strong>phone</strong> (string): The user's phone number.</li>\n</ul>\n</li>\n<li><p><strong>ClientId</strong> (string): The ID of the Cognito client associated with the user's application.</p>\n</li>\n</ul>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<p>The response from this endpoint will typically include information regarding the success or failure of the authentication challenge. The exact structure of the response will depend on the outcome of the request and may include tokens, error messages, or additional session information.</p>\n<p>Ensure that all required parameters are provided in the request body to successfully complete the authentication challenge.</p>\n","urlObject":{"host":["https://cognito-idp.ap-south-1.amazonaws.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"94726eea-c81f-46e6-9b26-f07cb22f6d09"}],"id":"ded7e741-b591-4fb7-8e05-30dab03b3043","description":"<p>APIs related to user authentication and creation</p>\n","_postman_id":"ded7e741-b591-4fb7-8e05-30dab03b3043","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"User Registration","item":[{"name":"getMobileUserProfileWithPlansAndDependents","event":[{"listen":"prerequest","script":{"id":"ab332611-fb4b-41b4-85ad-976edb38cdb8","exec":[""],"type":"text/javascript","packages":{}}}],"id":"70deb96e-8a31-496c-ae73-001aa4961ff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getMobileUserProfileWithPlansAndDependents {\n  getMobileUserProfileWithPlansAndDependents {\n    userDetails {\n      bbxUserId\n      firstName\n      lastName\n      dateOfBirth\n      gender\n      pinCode\n      mobile\n      personalEmail\n      addresses {\n        id\n        address1\n        address2\n        city\n        state\n        zipCode\n        country\n      }\n    }\n    plans {\n      companyName\n      planId\n      clientConsumerId\n      isPrimaryConsumer\n      officialEmail\n      planTag\n      planServices {\n        planServiceId\n        vendorServiceId\n        vendorName\n        vendorServiceName\n      }\n      dependents {\n        clientConsumerId\n        firstName\n        lastName\n        relationship\n        accessCode\n      }\n    }\n  }\n}","variables":"{}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"description\">Description</h2>\n<p>This API request is designed to <strong>retrieve a user's complete profile</strong>, which includes details about their plans and dependents information.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The primary purpose of this request is to fetch comprehensive user profile data from the server.</p>\n<h3 id=\"expected-input-parameters\">Expected Input Parameters</h3>\n<p>The request requires a payload structured as a JSON object. The specific input parameters are not defined in the provided information, but generally, it should include user identification details.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response will typically include:</p>\n<ul>\n<li><p>User profile information</p>\n</li>\n<li><p>Details about the user's plans</p>\n</li>\n<li><p>Information regarding dependents associated with the user</p>\n</li>\n</ul>\n<p>Ensure that the request is properly formatted as per the API specifications to receive the expected response.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70deb96e-8a31-496c-ae73-001aa4961ff4"},{"name":"fetchPlanUserDetails","id":"87a3baad-93bf-47b0-abdf-bc446c7252fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query fetchPlanUserDetails($input: FetchPlanUserDetailsInput!) {\n  fetchPlanUserDetails(input: $input) {\n    employee {\n      clientConsumerId\n      firstName\n      lastName\n      dateOfBirth\n      gender\n    }\n    dependents {\n      clientConsumerId\n      firstName\n      lastName\n      dateOfBirth\n      gender\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"userType\": \"EMPLOYEE\",\n    \"employeeEmailId\": \"employee@company.com\",\n    \"accessCode\": \"ABC123\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"api-request-description\">API Request Description</h2>\n<p>This endpoint allows you to interact with the GraphQL API at <code>{{APPSYNC_ENDPOINT}}/graphql</code> using the HTTP POST method.</p>\n<h3 id=\"request-method\">Request Method</h3>\n<ul>\n<li><strong>POST</strong>: This method is used to send data to the server to create or update resources.</li>\n</ul>\n<h3 id=\"endpoint\">Endpoint</h3>\n<ul>\n<li><strong>URL</strong>: <code>{{APPSYNC_ENDPOINT}}/graphql</code></li>\n</ul>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request body should contain a structured GraphQL query or mutation. The specific parameters will be defined within the GraphQL structure you send in the request.</p>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<p>The response from this endpoint will typically be in JSON format, containing the results of the GraphQL operation. The structure of the response will depend on the query or mutation executed, and it will include relevant data or error messages if applicable.</p>\n<p>Make sure to format your GraphQL queries correctly to ensure successful communication with the API.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"87a3baad-93bf-47b0-abdf-bc446c7252fa"},{"name":"importPlanForClientConsumer","id":"2c7bbe5a-c02f-446a-a91b-f847f5f9946e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation importPlanForClientConsumer($input: ImportPlanInput!) {\n  importPlanForClientConsumer(input: $input) {\n    message\n    bbxUserId\n  }\n}","variables":"{\n  \"input\": {\n    \"clientConsumerId\": \"client123\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This HTTP POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>. The primary purpose of this request is to <strong>import a plan for a client consumer</strong>, which involves associating them with specific benefits and services.</p>\n<h3 id=\"expected-request-body-format\">Expected Request Body Format</h3>\n<p>The request body should be structured as a GraphQL query or mutation. It typically includes the following components:</p>\n<ul>\n<li><p><strong>Query/Mutation</strong>: The operation you want to perform (e.g., <code>importPlan</code>).</p>\n</li>\n<li><p><strong>Variables</strong>: Any variables that the operation requires, such as client ID, benefits, and services.</p>\n</li>\n</ul>\n<p>An example structure could look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"query\": \"mutation importPlan($input: ImportPlanInput!) { importPlan(input: $input) { success message } }\",\n  \"variables\": {\n    \"input\": {\n      \"clientId\": \"string\",\n      \"benefits\": [\"string\"],\n      \"services\": [\"string\"]\n    }\n  }\n}\n\n</code></pre>\n<h3 id=\"structure-of-the-response-body\">Structure of the Response Body</h3>\n<p>The response body will typically include the following fields:</p>\n<ul>\n<li><p><strong>success</strong>: A boolean indicating whether the operation was successful.</p>\n</li>\n<li><p><strong>message</strong>: A string providing additional information about the operation, such as errors or confirmations.</p>\n</li>\n</ul>\n<p>An example response structure could look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"importPlan\": {\n      \"success\": true,\n      \"message\": \"Plan imported successfully.\"\n    }\n  }\n}\n\n</code></pre>\n<p>Ensure that the request body is formatted correctly as per the GraphQL specifications to avoid errors during execution.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c7bbe5a-c02f-446a-a91b-f847f5f9946e"},{"name":"addUserAddress","id":"376987cc-4e4b-4867-896e-b833ae8fe774","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation addUserAddress($input: AddUserAddressInput!) {\n  addUserAddress(input: $input) {\n    message\n    userId\n  }\n}","variables":"{\n  \"input\": {\n    \"address1\": \"123 Main St\",\n    \"address2\": \"Apt 4B\",\n    \"address3\": \"Building A\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"country\": \"USA\",\n    \"zipCode\": \"10001\",\n    \"isPrimary\": true\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"add-address-request\">Add Address Request</h3>\n<p>This request is used to add a new address for a user in the system.</p>\n<h4 id=\"request-details\">Request Details</h4>\n<ul>\n<li><p><strong>Endpoint</strong>: <code>{{APPSYNC_ENDPOINT}}/graphql</code></p>\n</li>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n</ul>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<p>The request body should include the following parameters:</p>\n<ul>\n<li><strong>address</strong>: The new address details to be added for the user. This should be a structured object containing relevant address fields.</li>\n</ul>\n<h4 id=\"expected-response\">Expected Response</h4>\n<p>The response will contain confirmation of the address addition, typically including:</p>\n<ul>\n<li><p>A success message.</p>\n</li>\n<li><p>The details of the newly added address.</p>\n</li>\n</ul>\n<h4 id=\"notes\">Notes</h4>\n<ul>\n<li><p>Ensure that all required fields in the address object are provided.</p>\n</li>\n<li><p>The request must be authenticated to ensure that the user has permission to add an address.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"376987cc-4e4b-4867-896e-b833ae8fe774"},{"name":"registerUser","id":"4c6ae687-77aa-47e5-a73c-f6ff23f08695","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation registerUser($input: RegisterUserInput!) {\n  registerUser(input: $input) {\n    message\n    userId\n  }\n}","variables":"{\n  \"input\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"dob\": \"1990-01-01\",\n    \"gender\": \"MALE\",\n    \"personalEmail\": \"john.doe@email.com\",\n    \"pinCode\": \"10001\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This is an <strong>HTTP POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>Registers a new user in the system with their basic information.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<p>The request body should contain the necessary parameters to register a user. The exact structure of the payload is expected to be a JSON object containing user details.</p>\n<h4 id=\"expected-response-format\">Expected Response Format</h4>\n<p>The expected response will typically be in JSON format, confirming the successful registration of the user or providing an error message if the registration fails.</p>\n<p>Make sure to provide all required fields to ensure a successful registration.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c6ae687-77aa-47e5-a73c-f6ff23f08695"},{"name":"getBannersAds","id":"81863bae-d44d-480f-9d62-75650a4a3e5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getBannersAds($input: GetBannersInput!) {\n  getBannersAds(input: $input) {\n    title\n    imageUrl\n    description\n    serviceName\n    vendorName\n    vendorServiceId\n  }\n}","variables":"{\n  \"input\": {\n    \"size\": \"SQUARE\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This API request is a <strong>POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>. It is designed to retrieve banner advertisements based on the specified size.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request body should include the following parameters:</p>\n<ul>\n<li><strong>size</strong> (String): Specifies the dimensions of the banner advertisement you wish to retrieve. Ensure that the size is in the correct format (e.g., \"300x250\").</li>\n</ul>\n<h3 id=\"expected-response\">Expected Response</h3>\n<p>The response will contain the banner advertisements that match the specified size. The structure of the response will typically include:</p>\n<ul>\n<li><p><strong>ads</strong> (Array): A list of banner advertisements that meet the criteria.</p>\n<ul>\n<li><p>Each advertisement object may include properties such as:</p>\n<ul>\n<li><p><strong>id</strong> (String): Unique identifier for the advertisement.</p>\n</li>\n<li><p><strong>imageUrl</strong> (String): URL of the advertisement image.</p>\n</li>\n<li><p><strong>link</strong> (String): URL to which the advertisement redirects when clicked.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the request body is correctly formatted according to the GraphQL specifications.</p>\n</li>\n<li><p>Check for any potential errors in the response, such as invalid size parameters or server issues.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"81863bae-d44d-480f-9d62-75650a4a3e5a"},{"name":"getEcardDetails","id":"88ae74d1-54ee-45c9-8d69-2f876ba732b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getEcardDetails {\n  getEcardDetails {\n    employeeDetails {\n      employeeCode\n      planName\n      corporateCode\n      corporateName\n      loginId\n      mobile\n      relation\n      employeeName\n      gender\n      dob\n      age\n      eCard\n    }\n    policyDetails {\n      documentName\n      policyPdf\n      corporateCode\n    }\n  }\n}","variables":"{}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This API request is a <strong>POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>. It is designed to <strong>retrieve electronic card details for a user</strong>, which includes important information such as employee details and policy information.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The purpose of this request is to fetch comprehensive electronic card data associated with a user, enabling applications to display relevant information regarding the user's employment and policy status.</p>\n<h3 id=\"expected-request-body-format\">Expected Request Body Format</h3>\n<p>The request body should be formatted as a JSON object. The specific structure of the request body is defined by the GraphQL query being executed. Ensure that the request body includes the necessary fields required by the GraphQL schema to retrieve the desired electronic card details.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response will be a JSON object containing the requested electronic card details. The structure of the response will typically include:</p>\n<ul>\n<li><p>User information (e.g., name, ID)</p>\n</li>\n<li><p>Employee details (e.g., position, department)</p>\n</li>\n<li><p>Policy information (e.g., policy number, coverage details)</p>\n</li>\n</ul>\n<p>Make sure to handle the response appropriately to extract and utilize the required information as per your application needs.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"88ae74d1-54ee-45c9-8d69-2f876ba732b2"}],"id":"280c0742-7a3b-49bd-8846-5776093d73f8","description":"<p>APIs for user registration and profile management</p>\n","event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":["const accessToken = pm.collectionVariables.get('auth_token');","","if(!accessToken){","    throw new Error('auth_token is required for this resolver. Please run the Login and Verify OTP Flows')","}"],"id":"88594300-3904-4784-bea1-a2a7237759b1"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"id":"fdad82ae-4d72-4e01-93ba-af2d6640ece1"}}],"_postman_id":"280c0742-7a3b-49bd-8846-5776093d73f8","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Ekincare APIs","item":[{"name":"Get Ekincare PWA URL","id":"e181150c-f78d-49ab-9244-4cc344b0bec5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"  query GET_EKINCARE_PWA_URL($input: GeneratePWAUrlInput) {\n    generatePWAUrl(input: $input) {\n      message\n      data\n      res {\n        url\n      }\n    }\n  }","variables":"{\n    \"input\": {\n        \"employeeId\": \"26d4a306-e22a-4209-a480-334cc84f7d74\",\n        \"vendorId\": \"2491e995-58ea-491f-b958-1264db8bf9a4\",\n        \"planServiceType\": \"Diagnostics\"\n    }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"request-description\">Request Description</h2>\n<p>This API endpoint allows you to retrieve electronic card details for a user, including employee and policy information.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><p>The request is made using an HTTP POST method to the <code>{{APPSYNC_ENDPOINT}}/graphql</code> endpoint.</p>\n</li>\n<li><p>The request body should contain a properly structured GraphQL query to fetch the desired card details.</p>\n</li>\n</ul>\n<h3 id=\"expected-response\">Expected Response</h3>\n<ul>\n<li><p>The response will include detailed information about the electronic card, such as:</p>\n<ul>\n<li><p>User's employee information</p>\n</li>\n<li><p>Policy details associated with the electronic card</p>\n</li>\n</ul>\n</li>\n<li><p>The response will be in JSON format, containing the relevant data fields based on the query provided.</p>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the request body is correctly formatted according to GraphQL specifications.</p>\n</li>\n<li><p>Authentication may be required to access this endpoint.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e181150c-f78d-49ab-9244-4cc344b0bec5"}],"id":"7c0a6aae-5613-472e-8778-c09360cddb10","_postman_id":"7c0a6aae-5613-472e-8778-c09360cddb10","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Vendor 1 Online Flows","item":[{"name":"getAllSpecialitiesV1","id":"95b2b92d-368f-4ee7-8f59-1477ea0c9a54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getAllSpecialitiesV1($input: GetAllSpecialityInput!) {\n  getAllSpecialitiesV1(input: $input) {\n    message\n    data\n    res {\n      id\n      name\n      code\n      displayName\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This request is an HTTP POST to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>. It is designed to <strong>retrieve a list of all medical specialties along with additional details</strong>.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The primary purpose of this request is to fetch comprehensive information about various medical specialties, which can be utilized for applications requiring medical data insights, such as healthcare platforms, patient management systems, or medical research tools.</p>\n<h3 id=\"expected-request-body-format\">Expected Request Body Format</h3>\n<p>The request body must be structured as a GraphQL query. The specific structure of the query should align with the GraphQL schema defined for the application. Typically, it may include fields such as:</p>\n<ul>\n<li><strong>query</strong>: A string containing the GraphQL query to be executed.</li>\n</ul>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response from this request will typically include the following:</p>\n<ul>\n<li><p><strong>data</strong>: An object that contains the result of the query.</p>\n<ul>\n<li><p><strong>specialties</strong>: An array of objects representing each medical specialty, which may include fields such as:</p>\n<ul>\n<li><p><strong>id</strong>: A unique identifier for the specialty.</p>\n</li>\n<li><p><strong>name</strong>: The name of the medical specialty.</p>\n</li>\n<li><p><strong>description</strong>: A brief description of the specialty.</p>\n</li>\n<li><p><strong>additionalDetails</strong>: Any other relevant information pertaining to the specialty.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>This structure allows clients to easily parse and utilize the information returned by the API.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"95b2b92d-368f-4ee7-8f59-1477ea0c9a54"},{"name":"getDoctorsBySpecialization","id":"567a40e1-320c-47fe-9d29-902de0abdb73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getDoctorsBySpecialization($input: GetDoctorsInput!) {\n  getDoctorsBySpecialization(input: $input) {\n    message\n    data\n    res {\n      id\n      name\n      specialization\n      languages\n      cost\n      experience\n      doctorId\n      image\n      gender\n      highestEducation\n      rating\n      workExperienceYears\n      virtualConsultationCost\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"specialization\": \"Cardiology\",\n    \"specializationId\": 1\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This is an <strong>HTTP POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"parameters\">Parameters</h4>\n<p>The request body should contain a GraphQL query to retrieve a list of doctors filtered by specialization. The structure of the request payload is defined by the GraphQL schema, and it typically includes parameters such as:</p>\n<ul>\n<li><strong>query</strong>: A string containing the GraphQL query to be executed.</li>\n</ul>\n<h4 id=\"expected-response-format\">Expected Response Format</h4>\n<p>The response will be in JSON format and will include a list of doctors that match the specified specialization criteria. The response structure will typically contain:</p>\n<ul>\n<li><p><strong>data</strong>: An object that includes the results of the query.</p>\n</li>\n<li><p><strong>errors</strong> (optional): An array of error messages if the query fails.</p>\n</li>\n</ul>\n<p>Make sure to format your GraphQL query correctly to ensure a successful response.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"567a40e1-320c-47fe-9d29-902de0abdb73"},{"name":"getDoctorSlots","id":"4f927800-2261-444a-a03f-6d5d886e6a1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getDoctorSlots($input: GetDoctorSlotsInput!) {\n  getDoctorSlots(input: $input) {\n    message\n    data\n    res {\n      id\n      slot\n      startTime\n      durationMinutes\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"doctorId\": \"doc123\",\n    \"date\": \"2025-02-20\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code> to retrieve available time slots for a specific doctor.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>The purpose of this request is to obtain a list of time slots when a specified doctor is available for appointments. This information can be used by clients to schedule appointments effectively.</p>\n<h4 id=\"expected-input-parameters\">Expected Input Parameters</h4>\n<p>The request body should include the following parameters:</p>\n<ul>\n<li><p><strong>doctorId</strong> (String): The unique identifier of the doctor for whom the available time slots are being requested.</p>\n</li>\n<li><p><strong>date</strong> (String): The date for which the available time slots are being queried, formatted as YYYY-MM-DD.</p>\n</li>\n</ul>\n<h4 id=\"response-structure\">Response Structure</h4>\n<p>The response will contain the following structure:</p>\n<ul>\n<li><p><strong>data</strong>: An object containing the result of the query.</p>\n<ul>\n<li><p><strong>availableTimeSlots</strong>: An array of objects, each representing a time slot.</p>\n<ul>\n<li><p><strong>time</strong> (String): The specific time of the slot, formatted as HH:MM.</p>\n</li>\n<li><p><strong>isBooked</strong> (Boolean): Indicates whether the time slot is already booked.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>This detailed information allows clients to understand the input requirements and the structure of the response they can expect when making this request.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f927800-2261-444a-a03f-6d5d886e6a1d"}],"id":"b107a8fb-8eda-44fd-a63b-481b35cbc462","description":"<p>APIs related to Rapha Online consultation services</p>\n","_postman_id":"b107a8fb-8eda-44fd-a63b-481b35cbc462","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Vendor 1 OPD Flows","item":[{"name":"getLabCities","id":"ff8ff88d-a1e9-4d94-b734-68356cff3532","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getLabCities($input: LabCitiesInput!) {\n  getLabCities(input: $input) {\n    message\n    data\n    res {\n      id\n      name\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"query\": \"Mumbai\",\n    \"pageSize\": 10\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"api-request-retrieve-available-lab-services-cities\">API Request: Retrieve Available Lab Services Cities</h3>\n<p><strong>Endpoint:</strong> <code>{{APPSYNC_ENDPOINT}}/graphql</code><br /><strong>Method:</strong> POST</p>\n<h4 id=\"description\">Description</h4>\n<p>This API retrieves a list of cities where lab services are available. It utilizes GraphQL to structure the request and response.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><strong>Headers:</strong></p>\n<ul>\n<li><p><code>Content-Type</code>: Specifies the media type of the resource. Typically set to <code>application/json</code> for GraphQL requests.</p>\n</li>\n<li><p><code>Authorization</code>: (Optional) Bearer token for authentication.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Request Body:</strong> The request body should be structured as a GraphQL query. The specific structure of the query will depend on the schema defined in the GraphQL API.</p>\n</li>\n</ul>\n<h4 id=\"expected-response-structure\">Expected Response Structure</h4>\n<ul>\n<li><p><strong>Response Body:</strong> The response will typically include:</p>\n<ul>\n<li><p><code>data</code>: An object containing the results of the query.</p>\n<ul>\n<li><p><code>cities</code>: An array of objects representing the cities where lab services are available. Each object may include:</p>\n<ul>\n<li><p><code>id</code>: Unique identifier for the city.</p>\n</li>\n<li><p><code>name</code>: Name of the city.</p>\n</li>\n<li><p><code>servicesAvailable</code>: List of services available in the city.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"status-codes\">Status Codes</h4>\n<ul>\n<li><p><strong>200 OK</strong>: The request was successful, and the response contains the requested data.</p>\n</li>\n<li><p><strong>400 Bad Request</strong>: The request was malformed or invalid.</p>\n</li>\n<li><p><strong>401 Unauthorized</strong>: Authentication failed or was not provided.</p>\n</li>\n<li><p><strong>500 Internal Server Error</strong>: An error occurred on the server while processing the request.</p>\n</li>\n</ul>\n<p>Please ensure to follow the GraphQL format when structuring your queries for this endpoint.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff8ff88d-a1e9-4d94-b734-68356cff3532"},{"name":"searchHospitals","id":"6f9f8349-1d40-4508-b290-d284751d9bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query searchHospitals($input: SearchHospitalInput!) {\n  searchHospitals(input: $input) {\n    message\n    data\n    res {\n      name\n      id\n      city\n      address\n      doctors {\n        id\n        name\n        languages\n        specialization\n        highestEducation\n        experience\n        virtualConsultationCost\n        consultationCost\n      }\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"dependentId\": \"dep456\",\n    \"employeeId\": \"emp789\",\n    \"cityId\": \"CITY001\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"api-request-description\">API Request Description</h2>\n<p>This API allows users to search for hospitals and their associated doctors based on specified criteria.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The primary purpose of this API is to facilitate the retrieval of hospital and doctor information, enabling users to find healthcare providers that meet their needs.</p>\n<h3 id=\"key-information-provided-in-the-response\">Key Information Provided in the Response</h3>\n<p>The response from this API includes:</p>\n<ul>\n<li><p>A list of hospitals that match the search criteria.</p>\n</li>\n<li><p>Details of associated doctors, including their specialties and affiliations with the hospitals.</p>\n</li>\n<li><p>Additional metadata that may assist in understanding the context of the search results.</p>\n</li>\n</ul>\n<p>This API is essential for users seeking to connect with healthcare services efficiently.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f9f8349-1d40-4508-b290-d284751d9bd1"}],"id":"507da6c0-cff0-4822-be65-679fc1bf8de2","description":"<p>APIs related to Rapha OPD services</p>\n","_postman_id":"507da6c0-cff0-4822-be65-679fc1bf8de2","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Vendor 1 Miscellaneous","item":[{"name":"getOrderMedicineUrl","id":"6b0900c1-e293-42fd-8ca2-ec61b53decac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getOrderMedicineUrl($input: OrderMedicineInput!) {\n  getOrderMedicineUrl(input: $input) {\n    message\n    data\n    res {\n      orderMedicineUrl\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"empId\": \"emp456\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"add-item-to-graphql-endpoint\">Add Item to GraphQL Endpoint</h2>\n<p>This endpoint allows you to add a new item to the system using a GraphQL mutation. The request is made via an HTTP POST method to the specified endpoint.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>Endpoint</strong>: <code>{{APPSYNC_ENDPOINT}}/graphql</code></p>\n</li>\n</ul>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body should contain a JSON object that conforms to the GraphQL specification. The exact structure of this object will depend on the specific mutation being performed. Ensure that you include all required fields as defined in your GraphQL schema.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li>The request body should include the necessary parameters for the mutation. Each parameter must be provided as a key-value pair within the JSON object. Refer to your GraphQL schema for the specific parameters required for the mutation you are performing.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the response will also be in JSON format, containing the result of the mutation. The structure of the response will vary based on the mutation and the data being returned. Typically, it will include:</p>\n<ul>\n<li><p><strong>data</strong>: The result of the mutation, which may contain the newly created item or confirmation of the action.</p>\n</li>\n<li><p><strong>errors</strong>: If any issues occurred during the request, this field will provide error messages detailing what went wrong.</p>\n</li>\n</ul>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Make sure to handle any potential errors that may arise from the request, as the response may include error messages if the operation fails.</p>\n</li>\n<li><p>It is recommended to validate the request parameters before sending the request to ensure compliance with the GraphQL schema.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b0900c1-e293-42fd-8ca2-ec61b53decac"},{"name":"getGymData","id":"d091adcc-e7fd-4342-95f0-5709aa9c1b37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getGymData($input: GetGymInput!) {\n  getGymData(input: $input) {\n    message\n    data\n    res {\n      vendorName\n      address\n      city\n      pincode\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This is an <strong>HTTP POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"parameters\">Parameters</h4>\n<p>The request body contains a GraphQL query or mutation, which is structured as a JSON object. The specific parameters will depend on the GraphQL operation being performed.</p>\n<h4 id=\"expected-response-format\">Expected Response Format</h4>\n<p>The expected response will be in JSON format, containing data related to the GraphQL operation. The response will typically include information about affiliated gyms and fitness centers, structured according to the GraphQL schema.</p>\n<h3 id=\"summary\">Summary</h3>\n<p>This request retrieves information about affiliated gyms and fitness centers.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d091adcc-e7fd-4342-95f0-5709aa9c1b37"}],"id":"b2b1f08e-a460-4d07-909a-06e838db9651","description":"<p>Miscellaneous Rapha service APIs</p>\n","_postman_id":"b2b1f08e-a460-4d07-909a-06e838db9651","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Vendor 1 Procedure Flows","item":[{"name":"getProcedureCount","id":"e323d622-bb80-4d19-8345-dba7dbb63805","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getProcedureCount($input: ProcedureCountInput!) {\n  getProcedureCount(input: $input) {\n    res {\n      totalCount\n    }\n    message\n    data\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"cityId\": \"CITY001\",\n    \"category\": \"DENTAL_CARE\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This HTTP POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>The primary purpose of this request is to <strong>retrieve the count of available procedures</strong> based on specified <strong>category</strong> and <strong>location</strong>. This can be useful for applications that need to display the number of procedures available to users in a particular area or within a specific category.</p>\n<h4 id=\"request-body-format\">Request Body Format</h4>\n<p>The request body should be structured as a JSON object that includes the necessary parameters to query the available procedures. The specific structure of the request body will depend on the GraphQL query being executed.</p>\n<h4 id=\"expected-request-body-example\">Expected Request Body Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"query\": \"YOUR_GRAPHQL_QUERY_HERE\",\n  \"variables\": {\n    \"category\": \"YOUR_CATEGORY_HERE\",\n    \"location\": \"YOUR_LOCATION_HERE\"\n  }\n}\n\n</code></pre>\n<h4 id=\"response-body-structure\">Response Body Structure</h4>\n<p>The response body will typically include a JSON object containing the results of the query. The structure may include fields such as:</p>\n<ul>\n<li><p><code>data</code>: An object containing the results of the query.</p>\n</li>\n<li><p><code>count</code>: An integer representing the number of available procedures based on the provided parameters.</p>\n</li>\n</ul>\n<h4 id=\"example-response-body\">Example Response Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"availableProceduresCount\": 10\n  }\n}\n\n</code></pre>\n<p>This response indicates that there are 10 available procedures matching the specified category and location.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e323d622-bb80-4d19-8345-dba7dbb63805"},{"name":"getAllProcedures","id":"68214d2c-e7dd-4e8f-84ac-23a45397930e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getAllProcedures($input: GetAllProceduresInput!) {\n  getAllProcedures(input: $input) {\n    res {\n      serviceCode\n      serviceName\n      fasting\n      image\n      description\n      preperation\n      price {\n        actualCost\n        discountPercentage\n        serviceCharges\n        discountedPrice\n        walletAmount\n        finalCost\n      }\n      visitType\n      vendors {\n        id\n        name\n        address\n        city\n        zip\n        type\n      }\n      type\n    }\n    message\n    data\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"cityId\": \"CITY001\",\n    \"category\": \"DENTAL_CARE\",\n    \"page\": 1,\n    \"pageSize\": 10,\n    \"search\": \"dental\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This POST request to <code>{{APPSYNC_ENDPOINT}}/graphql</code> is designed to retrieve detailed information about available procedures along with associated vendor details.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>The main goal of this request is to fetch comprehensive data regarding various procedures that are offered, including relevant vendor information that may be necessary for decision-making or further processing.</p>\n<h4 id=\"expected-input-parameters\">Expected Input Parameters</h4>\n<p>The request body should contain a structured payload that specifies the query or mutation intended for execution. The exact structure of this payload will depend on the GraphQL schema defined in your application. Ensure that the input parameters align with the expected fields in the schema to retrieve the desired information.</p>\n<h4 id=\"structure-of-the-response\">Structure of the Response</h4>\n<p>The response will typically include:</p>\n<ul>\n<li><p>A list of procedures, each containing:</p>\n<ul>\n<li><p><strong>Procedure ID</strong>: Unique identifier for the procedure.</p>\n</li>\n<li><p><strong>Procedure Name</strong>: The name of the procedure.</p>\n</li>\n<li><p><strong>Vendor Details</strong>: Information about the vendor associated with the procedure, which may include:</p>\n<ul>\n<li><p>Vendor ID</p>\n</li>\n<li><p>Vendor Name</p>\n</li>\n<li><p>Contact Information</p>\n</li>\n<li><p>Any additional relevant details</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>Ensure to handle the response appropriately to extract and utilize the information as needed.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"68214d2c-e7dd-4e8f-84ac-23a45397930e"}],"id":"3a42c563-5755-4871-9afa-634294b6c49d","description":"<p>APIs related to Rapha procedure services</p>\n","_postman_id":"3a42c563-5755-4871-9afa-634294b6c49d","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Vendor 2 APIs","item":[{"name":"checkLabAvailability","id":"ca76f3dc-0125-4817-9b00-fd756214d7b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query checkLabAvailability($input: CheckAvailabilityInput!) {\n  checkLabAvailability(input: $input) {\n    message\n    data\n    res {\n      status\n      message\n      pincode\n      latitude\n      longitude\n      labs {\n        type\n        labName\n        lsLabId\n        lsChainId\n      }\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"pincode\": 400001,\n    \"coordinates\": {\n      \"longitude\": 77.123,\n      \"latitude\": 28.456\n    }\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This API endpoint is used to <strong>check the availability of Labstack services</strong> in a specific pincode. It allows clients to determine if services are accessible in a given area, which can be crucial for planning and service delivery.</p>\n<h3 id=\"request-body-format\">Request Body Format</h3>\n<p>The request body should be formatted as a <strong>GraphQL query</strong>. The payload typically includes the following parameters:</p>\n<ul>\n<li><strong>pincode</strong> (string): The pincode for which the availability of services is being checked.</li>\n</ul>\n<h3 id=\"expected-response-structure\">Expected Response Structure</h3>\n<p>The response will contain information regarding the availability of services. The structure of the response is expected to include:</p>\n<ul>\n<li><p><strong>data</strong>: An object containing the results of the query.</p>\n<ul>\n<li><p><strong>availability</strong>: A boolean indicating whether services are available in the specified pincode.</p>\n</li>\n<li><p><strong>services</strong>: An array of available services, if any, along with their details.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Make sure to format your GraphQL query correctly to ensure a successful request.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca76f3dc-0125-4817-9b00-fd756214d7b9"},{"name":"getAllLabTests","id":"2eed3732-dcd6-400c-85ea-46ebb2626c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getAllLabTests($input: LabTestsRequestInput!) {\n  getAllLabTests(input: $input) {\n    res {\n      serviceCode\n      serviceName\n      fasting\n      image\n      description\n      preperation\n      price {\n        actualCost\n        discountPercentage\n        serviceCharges\n        discountedPrice\n        walletAmount\n        finalCost\n      }\n      visitType\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"cityId\": \"CITY001\",\n    \"startIndex\": 0,\n    \"totalRecords\": 10,\n    \"visitType\": 1,\n    \"latitude\": \"28.456\",\n    \"longitude\": \"77.123\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"request-description\">Request Description</h2>\n<p>This HTTP POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>. The purpose of this request is to <strong>retrieve a list of available laboratory tests</strong>.</p>\n<h3 id=\"expected-input-parameters\">Expected Input Parameters</h3>\n<p>The request body should contain a GraphQL query that specifies the desired fields related to laboratory tests. The structure of the input parameters is defined by the GraphQL schema, which may include fields such as:</p>\n<ul>\n<li><p><strong>testId</strong>: (String) The unique identifier for the laboratory test.</p>\n</li>\n<li><p><strong>testName</strong>: (String) The name of the laboratory test.</p>\n</li>\n<li><p><strong>description</strong>: (String) A brief description of what the laboratory test entails.</p>\n</li>\n<li><p><strong>price</strong>: (Float) The cost associated with the laboratory test.</p>\n</li>\n<li><p><strong>availability</strong>: (Boolean) Indicates if the laboratory test is currently available.</p>\n</li>\n</ul>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response from the server will typically include a JSON object containing the following:</p>\n<ul>\n<li><p><strong>data</strong>: An object that holds the results of the query.</p>\n<ul>\n<li><p><strong>laboratoryTests</strong>: An array of objects, each representing a laboratory test with fields such as:</p>\n<ul>\n<li><p><strong>id</strong>: (String) The unique identifier for the test.</p>\n</li>\n<li><p><strong>name</strong>: (String) The name of the test.</p>\n</li>\n<li><p><strong>description</strong>: (String) A description of the test.</p>\n</li>\n<li><p><strong>price</strong>: (Float) The price of the test.</p>\n</li>\n<li><p><strong>available</strong>: (Boolean) Availability status of the test.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>This request allows clients to dynamically query for information about laboratory tests based on their specific needs.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2eed3732-dcd6-400c-85ea-46ebb2626c35"},{"name":"getAllHealthPackages","id":"a7bc32e0-8856-418f-973e-2b518bed9c56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getAllHealthPackages($input: HealthPackageInput!) {\n  getAllHealthPackages(input: $input) {\n    res {\n      serviceCode\n      serviceName\n      image\n      description\n      preperation\n      price {\n        actualCost\n        discountPercentage\n        serviceCharges\n        discountedPrice\n        walletAmount\n        finalCost\n      }\n      tests {\n        serviceCode\n        serviceName\n        fasting\n        description\n      }\n      sort\n      vendors {\n        id\n        name\n        address\n        city\n        zip\n        type\n      }\n      packageId\n      minAge\n      maxAge\n      isCovered\n      visitType\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"cityId\": \"CITY001\",\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"healthPackages\": {\n      \"numberOfRecords\": 10\n    },\n    \"healthPackageCost\": {\n      \"city\": {\n        \"cityId\": \"CITY001\"\n      }\n    }\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"health-check-up-packages-retrieval\">Health Check-Up Packages Retrieval</h3>\n<p><strong>Method:</strong> POST<br /><strong>Endpoint:</strong> <code>{{APPSYNC_ENDPOINT}}/graphql</code></p>\n<p>This request is used to retrieve available health check-up packages.</p>\n<h4 id=\"retrieves-available-health-check-up-packages\">Retrieves available health check-up packages.</h4>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<p>The request body is expected to be in JSON format, containing the appropriate GraphQL query to fetch the health check-up packages. The exact structure of the payload should align with the GraphQL schema defined for your application.</p>\n<h4 id=\"expected-response-format\">Expected Response Format</h4>\n<p>The response will be in JSON format and will include details of the available health check-up packages, typically structured with fields such as package name, description, and pricing information.</p>\n<p>Ensure that the request is formatted correctly to receive the desired data.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7bc32e0-8856-418f-973e-2b518bed9c56"},{"name":"getLabTestVisitDetails","id":"2532eaa6-30d6-41b2-8a03-fa58304738b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getLabTestVisitDetails($input: GenericInput!) {\n  getLabTestVisitDetails(input: $input) {\n    message\n    data\n    res {\n      serviceCode\n      serviceName\n      fasting\n      image\n      description\n      preperation\n      price\n      tests\n      sort\n      vendors\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"cityId\": \"CITY001\",\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"requestedFor\": \"SELF\",\n    \"packageCode\": \"PKG001\",\n    \"serviceCode\": \"SVC001\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<p>Retrieves detailed information about laboratory test visits.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2532eaa6-30d6-41b2-8a03-fa58304738b4"},{"name":"getLabSlots","id":"6b67e271-0167-4fc2-9af4-89e79b539268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getLabSlots($input: GetLabSlotsInput!) {\n  getLabSlots(input: $input) {\n    message\n    data\n    res {\n      slot\n      startTime\n      durationMinutes\n      suffix\n    }\n    error {\n      message\n      status\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"vendor123\",\n    \"employeeId\": \"emp456\",\n    \"dependentId\": \"dep789\",\n    \"date\": \"2025-02-20\",\n    \"labVendorId\": 123,\n    \"pincode\": 400001,\n    \"Coordinate\": {\n      \"longitude\": 77.123,\n      \"latitude\": 28.456\n    },\n    \"mode\": \"HOME\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This API endpoint allows you to <strong>retrieve available lab appointment slots</strong> for a specified date and location.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<ul>\n<li><p><strong>date</strong>: The date for which you want to check available appointment slots. This should be provided in a valid date format.</p>\n</li>\n<li><p><strong>location</strong>: The specific location where the lab appointments are to be checked. This should correspond to a valid lab facility.</p>\n</li>\n</ul>\n<h4 id=\"expected-response\">Expected Response</h4>\n<p>The response will include a list of available appointment slots for the specified date and location. Each slot will typically contain:</p>\n<ul>\n<li><p><strong>slotId</strong>: A unique identifier for the appointment slot.</p>\n</li>\n<li><p><strong>startTime</strong>: The starting time of the appointment slot.</p>\n</li>\n<li><p><strong>endTime</strong>: The ending time of the appointment slot.</p>\n</li>\n<li><p><strong>availability</strong>: Indicates whether the slot is available for booking.</p>\n</li>\n</ul>\n<h4 id=\"notes\">Notes</h4>\n<ul>\n<li><p>Ensure that the date and location parameters are correctly formatted to avoid errors.</p>\n</li>\n<li><p>This endpoint is particularly useful for users looking to schedule lab appointments efficiently.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b67e271-0167-4fc2-9af4-89e79b539268"}],"id":"2dae9eba-afea-4d00-b6b1-efdb893ef9ee","description":"<p>APIs related to Labstack services</p>\n","_postman_id":"2dae9eba-afea-4d00-b6b1-efdb893ef9ee","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Order Management","item":[{"name":"placeHealthcareOrder","id":"50bbefa5-6a0e-4d54-9ac5-d123a6a615df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation placeHealthcareOrder($input: PlaceOrderInput!) {\n  placeHealthcareOrder(input: $input) {\n    status\n    message\n    orderId\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"V123\",\n    \"bookedByClientConsumerId\": \"C456\",\n    \"bookedForClientConsumerId\": \"C456\",\n    \"bookedFor\": \"Self\",\n    \"orderItemDetails\": [{\n      \"isInstantBooking\": false,\n      \"orderDate\": \"2025-02-20\",\n      \"subCategory\": \"LAB_TEST\",\n      \"planServiceId\": \"PS789\",\n      \"serviceCode\": \"LAB001\",\n      \"serviceName\": \"Complete Blood Count\",\n      \"slot\": \"10:00-11:00\",\n      \"visitType\": \"HOME_VISIT\",\n      \"price\": {\n        \"actualAmount\": 1500.00,\n        \"useWallet\": true,\n        \"walletAppliedAmount\": 1000.00,\n        \"discountAppliedAmount\": 200.00,\n        \"finalAmount\": 300.00\n      }\n    }],\n    \"userAddress\": {\n      \"name\": \"John Doe\",\n      \"address\": \"123 Health Street\",\n      \"city\": \"Wellness City\",\n      \"state\": \"Healthcare State\",\n      \"zipCode\": 12345,\n      \"latitude\": 12.9716,\n      \"longitude\": 77.5946\n    }\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"creates-new-healthcare-orders-for-various-services\">Creates new healthcare orders for various services.</h3>\n<p>This API endpoint allows you to create new healthcare orders for various services by sending a GraphQL mutation.</p>\n<h4 id=\"request-parameters\">Request Parameters:</h4>\n<ul>\n<li>The request body must contain a GraphQL mutation for creating healthcare orders. The structure of the mutation will depend on the specific fields required for the order.</li>\n</ul>\n<h4 id=\"expected-response\">Expected Response:</h4>\n<ul>\n<li>A successful response will return a confirmation of the created order, including relevant details such as order ID and status. The exact structure of the response will depend on the GraphQL schema defined for your application.</li>\n</ul>\n<h4 id=\"notes\">Notes:</h4>\n<ul>\n<li><p>Ensure that the GraphQL mutation is correctly formatted and includes all necessary fields to avoid errors.</p>\n</li>\n<li><p>Refer to the GraphQL schema documentation for details on the required fields and types for creating healthcare orders.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"50bbefa5-6a0e-4d54-9ac5-d123a6a615df"},{"name":"initiatePayment","id":"b5622c65-0b95-4671-b603-3372e891bd6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation initiatePayment($input: InitiatePaymentInput!) {\n  initiatePayment(input: $input) {\n    message\n    results {\n      paymentPending\n      paymentInfo {\n        id\n        orderId\n        amount\n        currency\n        status\n        invoiceUrl\n        transactionDate\n        lastUpdated\n        paymentDetails {\n          id\n          paymentId\n          paidAmount\n          gatewayName\n          gatewayStatus\n          gatewaySessionId\n          gatewayResponseMessage\n          gatewayPaymentId\n          gatewayPaymentSignature\n          transactionDate\n          lastUpdated\n        }\n        paymentMethods {\n          paymentMethod\n          payableAmount\n        }\n      }\n      stripePaymentUrl\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"orderId\": \"ORD123\",\n    \"walletSummaryId\": \"WS456\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"payment-process-request\">Payment Process Request</h2>\n<p>This is an <strong>HTTP POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h3 id=\"description\">Description</h3>\n<p>This request initiates the payment process for an order, supporting both wallet and non-wallet payment methods.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li>The request body must include the necessary parameters formatted as a JSON object. The exact structure and keys of the payload should be defined based on your application's requirements.</li>\n</ul>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<p>The response will typically be in JSON format, containing details about the payment status, including success or failure messages and any relevant transaction information.</p>\n<p>Ensure that all required parameters are included in the request for successful processing.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5622c65-0b95-4671-b603-3372e891bd6e"},{"name":"cancelBooking","id":"2222900c-7bbe-4dcd-8f01-694697526154","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"mutation cancelBooking($input: CancelBookingInput!) {\n  cancelBooking(input: $input) {\n    message\n  }\n}","variables":"{\n  \"input\": {\n    \"bookingId\": \"BK123456\",\n    \"refundReason\": \"Schedule conflict\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"cancel-healthcare-booking-request\">Cancel Healthcare Booking Request</h3>\n<p>This request is designed to <strong>cancel an existing healthcare booking</strong> and initiate the <strong>refund process</strong> if applicable. It communicates with the GraphQL endpoint to perform the cancellation operation.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>The purpose of this request is to allow users to cancel their healthcare bookings and, if eligible, to process a refund for the canceled service.</p>\n<h4 id=\"expected-input-parameters\">Expected Input Parameters</h4>\n<p>The request payload should be structured as a GraphQL mutation. The following parameters are typically included:</p>\n<ul>\n<li><p><strong>bookingId</strong> (String): The unique identifier of the healthcare booking that needs to be canceled.</p>\n</li>\n<li><p><strong>userId</strong> (String): The identifier of the user who made the booking.</p>\n</li>\n<li><p><strong>reason</strong> (String, optional): The reason for the cancellation, which may be useful for tracking and improving services.</p>\n</li>\n</ul>\n<h4 id=\"example-request\">Example Request</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"query\": \"mutation CancelBooking($bookingId: String!, $userId: String!, $reason: String) { cancelBooking(bookingId: $bookingId, userId: $userId, reason: $reason) { success message } }\",\n  \"variables\": {\n    \"bookingId\": \"12345\",\n    \"userId\": \"67890\",\n    \"reason\": \"Change of plans\"\n  }\n}\n\n</code></pre>\n<h4 id=\"structure-of-the-response\">Structure of the Response</h4>\n<p>The response will contain information regarding the success of the cancellation and any relevant messages. The typical structure is as follows:</p>\n<ul>\n<li><p><strong>success</strong> (Boolean): Indicates whether the cancellation was successful.</p>\n</li>\n<li><p><strong>message</strong> (String): Provides additional information about the cancellation process.</p>\n</li>\n</ul>\n<h4 id=\"example-response\">Example Response</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"cancelBooking\": {\n      \"success\": true,\n      \"message\": \"Your booking has been successfully canceled.\"\n    }\n  }\n}\n\n</code></pre>\n<p>This request is crucial for managing healthcare bookings effectively, ensuring users have the flexibility to cancel when necessary while also maintaining a clear communication channel regarding their bookings.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2222900c-7bbe-4dcd-8f01-694697526154"},{"name":"getAllOrders","id":"02d51bb2-49e8-44d9-a65a-78c07c9f7f6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getAllOrders($input: GetAllOrdersInput!) {\n  getAllOrders(input: $input) {\n    message\n    orders {\n      id\n      bbxUserId\n      bookings {\n        id\n        bookedForClientConsumerId\n        status\n        vendorId\n        vendorOrderId\n        type\n        amount\n        fulfillmentDate\n        bookedForName\n        bookedForType\n        benefitServiceName\n        healthcareBookings {\n          healthcareItemId\n          healthcareBookingItemName\n          healthcareBookingItemType\n          doctorName\n          centerName\n          centerAddress\n          vendorOrderStatus\n          slot\n          appointmentDate\n          actualAmount\n          finalAmount\n        }\n      }\n      createdAt\n      updatedAt\n      payment {\n        id\n        orderId\n        amount\n        currency\n        status\n        invoiceUrl\n        transactionDate\n      }\n    }\n    totalCount\n  }\n}","variables":"{\n  \"input\": {\n    \"page\": 1,\n    \"pageSize\": 10\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This is an <strong>HTTP POST</strong> request to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"parameters\">Parameters</h4>\n<p>The request body should be structured as a JSON object. The specific parameters required in the request body are not explicitly defined, but they typically include fields necessary for querying or mutating data in the GraphQL API.</p>\n<h4 id=\"expected-response-format\">Expected Response Format</h4>\n<p>The expected response will be in JSON format, containing a paginated list of orders along with their basic information. The structure of the response will depend on the specific query or mutation executed.</p>\n<h3 id=\"summary\">Summary</h3>\n<p>This request is used to retrieve a paginated list of orders with basic information from the GraphQL API.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"02d51bb2-49e8-44d9-a65a-78c07c9f7f6e"},{"name":"getOrderDetailsByOrderId","id":"f3c9d27b-3296-4eaa-8113-cc8ffe9796ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getOrderDetailsByOrderId($input: OrderInput!) {\n  getOrderDetailsByOrderId(input: $input) {\n    message\n    order {\n      id\n      bbxUserId\n      bookings {\n        id\n        bookedForClientConsumerId\n        status\n        vendorId\n        vendorOrderId\n        type\n        amount\n        fulfillmentDate\n        bookedForName\n        bookedForType\n        benefitServiceName\n        healthcareBookings {\n          healthcareItemId\n          healthcareBookingItemName\n          healthcareBookingItemType\n          doctorName\n          centerName\n          centerAddress\n          vendorOrderStatus\n          slot\n          appointmentDate\n          actualAmount\n          finalAmount\n        }\n      }\n      createdAt\n      updatedAt\n      payment {\n        id\n        orderId\n        amount\n        currency\n        status\n      }\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"orderId\": \"ORD123\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This HTTP POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>. The purpose of this request is to retrieve detailed information about a specific order.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body should be formatted as a GraphQL query. It typically includes the following structure:</p>\n<ul>\n<li><strong>query</strong>: A string that contains the GraphQL query to fetch the desired order details. This may include fields such as order ID, customer information, product details, and order status.</li>\n</ul>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response from this request will be in JSON format and will include:</p>\n<ul>\n<li><p><strong>data</strong>: An object containing the requested order information.</p>\n<ul>\n<li><p><strong>order</strong>: An object that represents the details of the order, which may include:</p>\n<ul>\n<li><p><strong>id</strong>: The unique identifier for the order.</p>\n</li>\n<li><p><strong>customer</strong>: An object with customer details such as name and contact information.</p>\n</li>\n<li><p><strong>items</strong>: An array of objects representing the items in the order, each containing details like product ID, quantity, and price.</p>\n</li>\n<li><p><strong>status</strong>: A string representing the current status of the order (e.g., pending, shipped, delivered).</p>\n</li>\n<li><p><strong>createdAt</strong>: A timestamp indicating when the order was created.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p>Make sure to structure your GraphQL query properly to receive the expected response format.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3c9d27b-3296-4eaa-8113-cc8ffe9796ab"}],"id":"f7139a6c-8097-4f9f-a8ee-e3a6c571b758","description":"<p>APIs related to order management and booking</p>\n","_postman_id":"f7139a6c-8097-4f9f-a8ee-e3a6c571b758","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"Wallet Services","item":[{"name":"fetchConsumerWalletInfo","id":"341807eb-360a-4288-96f0-4c7f128dd2d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query fetchConsumerWalletInfo($input: ClientConsumerIdArrayInput!) {\n  fetchConsumerWalletInfo(input: $input) {\n    noOfDependents\n    planName\n    planCode\n    serviceWallets {\n      currentWalletAmount\n      currentWalletLimit\n      currentDiscountLimit\n      currentCumulativeDiscount\n      serviceName\n      categoryName\n      validTill\n      totalWalletAmount\n      walletMaxAmount\n      totalWalletLimit\n      discountPercentage\n      discountMaxAmount\n      totalDiscountLimit\n      totalCumulativeDiscount\n      walletType\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"clientConsumerIds\": [\"C456\", \"C457\"]\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This request is an HTTP POST call to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>.</p>\n<h4 id=\"purpose\">Purpose</h4>\n<p>The purpose of this request is to <strong>retrieve detailed wallet information for multiple consumers</strong>.</p>\n<h4 id=\"request-body-format\">Request Body Format</h4>\n<p>The request body should be formatted as a GraphQL query. The specific structure of the payload will depend on the query being executed, but it typically includes fields such as consumer identifiers and any specific data requirements for the wallet information.</p>\n<h4 id=\"response-structure\">Response Structure</h4>\n<p>The response will contain the detailed wallet information for the requested consumers, structured in accordance with the GraphQL response format. This will typically include fields relevant to the wallet details, such as balance, transaction history, and consumer identifiers.</p>\n<p>Ensure that the request is properly formatted as per the GraphQL specifications to receive the desired response.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"341807eb-360a-4288-96f0-4c7f128dd2d1"},{"name":"getLabSummary","id":"52fa2dde-de93-4fad-a671-472e6f6840e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getLabSummary($input: GetLabSummaryInput!) {\n  getLabSummary(input: $input) {\n    message\n    data\n    res {\n      user {\n        clientConsumerId\n        firstName\n        lastName\n      }\n      price {\n        totalLimits\n        walletType\n        discount\n        totalWalletAmount\n        priceAfterDiscount\n        walletAmountApplied\n        discountPercentage\n        totalAmount\n        finalAmount\n        walletAmountRemaining\n        currentWalletAmount\n        vendorPrice\n        limits\n        markUpPercentage\n        isFree\n      }\n      walletSummaryId\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"V123\",\n    \"services\": [{\n      \"serviceCode\": \"LAB001\",\n      \"serviceName\": \"Blood Test\",\n      \"price\": 1500.00\n    }],\n    \"clientConsumerId\": \"C456\",\n    \"vendorServiceId\": \"VS789\",\n    \"useWallet\": true\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-overview\">Request Overview</h3>\n<p>This POST request is made to the GraphQL endpoint at <code>{{APPSYNC_ENDPOINT}}/graphql</code>. The purpose of this request is to retrieve a summary of laboratory services, which includes pricing details and user information.</p>\n<h3 id=\"input-parameters\">Input Parameters</h3>\n<p>The request body should contain a GraphQL query or mutation. The structure of the input parameters will depend on the specific operation being performed. Typically, the request will include:</p>\n<ul>\n<li><strong>query</strong>: A string that defines the GraphQL query to execute. This will specify the fields to retrieve, such as service names, pricing information, and any relevant user details.</li>\n</ul>\n<h3 id=\"expected-response\">Expected Response</h3>\n<p>The response will be a JSON object that includes the requested data. The structure of the response may include:</p>\n<ul>\n<li><p><strong>data</strong>: An object containing the results of the query.</p>\n<ul>\n<li><p><strong>laboratoryServices</strong>: An array of objects, each representing a laboratory service.</p>\n<ul>\n<li><p><strong>serviceName</strong>: The name of the laboratory service.</p>\n</li>\n<li><p><strong>pricing</strong>: The pricing details associated with the service.</p>\n</li>\n<li><p><strong>userInfo</strong>: Information about the user related to the service request.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example\">Example</h3>\n<p>An example of a typical GraphQL query might look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-graphql\">{\n  laboratoryServices {\n    serviceName\n    pricing {\n      amount\n      currency\n    }\n    userInfo {\n      userId\n      userName\n    }\n  }\n}\n\n</code></pre>\n<p>This request will return a summary of available laboratory services along with their pricing and associated user information.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"52fa2dde-de93-4fad-a671-472e6f6840e5"},{"name":"getClinicSummary","id":"f489e070-f209-4139-aa7e-f4b189ef0919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getClinicSummary($input: GetClinicSummaryInput!) {\n  getClinicSummary(input: $input) {\n    message\n    data\n    res {\n      user {\n        clientConsumerId\n        firstName\n        lastName\n      }\n      price {\n        totalLimits\n        walletType\n        discount\n        totalWalletAmount\n        priceAfterDiscount\n        walletAmountApplied\n        discountPercentage\n        totalAmount\n        finalAmount\n        walletAmountRemaining\n        currentWalletAmount\n        vendorPrice\n        limits\n        markUpPercentage\n        isFree\n      }\n      walletSummaryId\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"CLINIC123\",\n    \"clientConsumerId\": \"C456\",\n    \"vendorServiceId\": \"VS789\",\n    \"collection1Date\": \"2025-02-20\",\n    \"collection1Slot\": \"10:00-11:00\",\n    \"hospitalId\": \"H001\",\n    \"doctorId\": \"D001\",\n    \"useWallet\": true,\n    \"categoryType\": \"CONSULTATION\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This request is an HTTP POST to the endpoint <code>{{APPSYNC_ENDPOINT}}/graphql</code>. It is used to retrieve detailed information about clinic appointments.</p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<p>The request body should contain a GraphQL query or mutation. The specific structure of the payload is not defined here, but it typically includes parameters such as:</p>\n<ul>\n<li><p><strong>query</strong>: A string representing the GraphQL query to be executed.</p>\n</li>\n<li><p><strong>variables</strong>: An object containing the variables to be used in the query.</p>\n</li>\n</ul>\n<h4 id=\"expected-response\">Expected Response</h4>\n<p>The response will typically include:</p>\n<ul>\n<li><p><strong>data</strong>: An object containing the results of the query, which may include details about clinic appointments.</p>\n</li>\n<li><p><strong>errors</strong>: An array of error messages, if any occurred during the execution of the query.</p>\n</li>\n</ul>\n<h4 id=\"notes\">Notes</h4>\n<ul>\n<li><p>Ensure that the GraphQL query is correctly formatted.</p>\n</li>\n<li><p>Check for any required authentication tokens or headers that may be needed to successfully execute this request.</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f489e070-f209-4139-aa7e-f4b189ef0919"},{"name":"getOnlineSummary","id":"00a27eac-244c-41c9-98b4-46015e567057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"graphql","graphql":{"query":"query getOnlineSummary($input: GetOnlineSummaryInput!) {\n  getOnlineSummary(input: $input) {\n    message\n    data\n    res {\n      user {\n        clientConsumerId\n        firstName\n        lastName\n      }\n      price {\n        totalLimits\n        walletType\n        discount\n        totalWalletAmount\n        priceAfterDiscount\n        walletAmountApplied\n        discountPercentage\n        totalAmount\n        finalAmount\n        walletAmountRemaining\n        currentWalletAmount\n        vendorPrice\n        limits\n        markUpPercentage\n        isFree\n      }\n      walletSummaryId\n    }\n  }\n}","variables":"{\n  \"input\": {\n    \"vendorId\": \"TELE123\",\n    \"clientConsumerId\": \"C456\",\n    \"bookedForClientConsumerId\": \"C456\",\n    \"useWallet\": true,\n    \"specialization\": \"CARDIOLOGY\",\n    \"doctorId\": \"D002\",\n    \"collection1Date\": \"2025-02-20\",\n    \"collection1Slot\": \"14:00-14:30\",\n    \"vendorServiceId\": \"VS790\"\n  }\n}"}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h3 id=\"request-description\">Request Description</h3>\n<p>This API endpoint allows you to perform operations related to online consultations through a GraphQL interface.</p>\n<h3 id=\"purpose\">Purpose</h3>\n<p>The primary purpose of this request is to facilitate the management and retrieval of detailed information regarding online consultations.</p>\n<h3 id=\"request-body-format\">Request Body Format</h3>\n<p>The request body should be structured in accordance with GraphQL syntax. It typically includes a query or mutation that specifies the desired operation and the necessary parameters. The payload should be a JSON object containing the GraphQL query or mutation.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response will return a JSON object that contains the result of the requested operation. The structure of the response will depend on the specific query or mutation executed and may include fields such as:</p>\n<ul>\n<li><p><code>data</code>: Contains the requested data based on the query.</p>\n</li>\n<li><p><code>errors</code>: An array of error objects, if any errors occurred during the processing of the request.</p>\n</li>\n</ul>\n<p>Ensure that the request is correctly formatted to receive the expected response.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}},"urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00a27eac-244c-41c9-98b4-46015e567057"}],"id":"591c98a0-6bf2-4e62-8754-1fbb7467a92c","description":"<p>APIs related to wallet services and information</p>\n","_postman_id":"591c98a0-6bf2-4e62-8754-1fbb7467a92c","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}},{"name":"PWA","item":[{"name":"generate-pwa-url","id":"f402772b-678f-49cf-9774-7e8239909707","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation MyMutation {\n  generateBBXUrl(input: {userId: \"3L1_PaXcve1C1Ipveso9bKlB69A_btNPKsM0IB8H19rcAoGcNQG-\", service: opd}) {\n    method\n    url\n  }\n}","variables":""}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"generate-bbx-url\">Generate BBX URL</h2>\n<p>This endpoint allows you to generate a BBX URL through an HTTP POST request to the specified GraphQL URL.</p>\n<h3 id=\"request-method\">Request Method</h3>\n<ul>\n<li><strong>POST</strong></li>\n</ul>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request body should be formatted as a JSON object containing the necessary parameters for generating the BBX URL. The specific structure of the parameters is not defined here, but they are encapsulated within the payload.</p>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<p>The response will be in JSON format and can have two possible structures:</p>\n<ol>\n<li><p>{ \"data\": { \"generateBBXUrl\": { \"method\": \"\", \"url\": \"\" } }}</p>\n<ul>\n<li><p><code>method</code>: The HTTP method associated with the generated URL.</p>\n</li>\n<li><p><code>url</code>: The generated BBX URL.</p>\n</li>\n</ul>\n</li>\n<li><p>{ \"data\": null, \"errors\": [ { \"path\": [\"\"], \"data\": null, \"errorType\": \"\", \"errorInfo\": null, \"locations\": [ { \"line\": 0, \"column\": 0, \"sourceName\": null } ], \"message\": \"\" } ]}</p>\n<ul>\n<li>In case of an error, the <code>errors</code> array will provide details about the issue encountered, including the error type and message.</li>\n</ul>\n</li>\n</ol>\n<p>Ensure that the request payload is correctly structured to receive a valid response.</p>\n","urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[{"id":"c350e017-a81c-45c2-819a-6d6d54fb67ce","name":"sucess","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 14:05:09 GMT"},{"key":"x-amzn-appsync-TokensConsumed","value":"3"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f9a90-4608be80031926a5696617f7"},{"key":"x-amzn-RequestId","value":"4725585f-0963-43db-ad87-22db9abbf85c"},{"key":"content-encoding","value":"gzip"},{"key":"vary","value":"accept-encoding"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 497d3f19b33367b63390801fa4bbad18.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"1hNNhBXnxueddc2pMIedSiKnWWkNhW0CNGT3pB0OlS77N3xzC5Q-IA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"generateBBXUrl\": {\n            \"method\": \"GET\",\n            \"url\": \"https://https://pwa.dev.berryassure.com/home/services/service-aiders/select-city?planId=81b4de69-cec7-46d9-8543-5e58a31e667e&planServiceId=42501689-ea9b-4c5a-84c1-0bc71f13ac20&serviceFlow=opd&serviceName=opd&vendorId=7a58e814-3041-494d-8c2f-9fd5994bb206&vendorServiceId=f343b40d-ea37-44be-bd37-c3ea6fa14f3b&vendorTag=Raphacure&accessToken=eyJraWQiOiJIUlhqelBhazJXZ242ejJHZlwvcndKdGxIdVluVnBYSmJpSFkyTW8xVjFBST0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjMTQzMWQwYS1hMDQxLTcwMGYtZGJmMi0wNTQzNTFkMzNkYzMiLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAuYXAtc291dGgtMS5hbWF6b25hd3MuY29tXC9hcC1zb3V0aC0xX2ZZUWJTQ2FOVyIsImNsaWVudF9pZCI6IjFka2tkZGdocGpnNG5nbmFidDRtam4wZnRlIiwib3JpZ2luX2p0aSI6ImFkNDE0MzVhLTA1NTQtNDJiNi04NDdhLTdhZTkxNzQ1NTQxMyIsImV2ZW50X2lkIjoiOTNmODgyOWEtNjFiNC00MTFlLWFhYmEtMTViZmRjMTRiYmQxIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJhd3MuY29nbml0by5zaWduaW4udXNlci5hZG1pbiIsImF1dGhfdGltZSI6MTc1MzE5MzEwOCwiZXhwIjoxNzUzMjM2MzA4LCJpYXQiOjE3NTMxOTMxMDgsImp0aSI6IjU2MDZmZWI2LTY0MjktNDk2ZS1hMjFhLWZkN2I0NTA4NzdjMiIsInVzZXJuYW1lIjoiYzE0MzFkMGEtYTA0MS03MDBmLWRiZjItMDU0MzUxZDMzZGMzIn0.BxaBTnfiagTiAPZkNofovzibb0AdqVJ-2YDc4z71pF-eXhSYZNcptNbzjZROB3lWSimyNfpjMfqd5tUg_-xlE2MDbMvV6HsUsFOmkAoRtdX6UN6gfxVPdKnCqjR_MxLvUJ9ERmesaNEnHbLU0wBALCL-BGxHwbNKN4G5Fqy06-rcJOEKV6MfysQSEWqpIi6XUzlx1zr0NhZPZvqGEw1KiK86KQvP1yt23eEv6mckqlnbA3SZzs035wr1pJTkwLKKWCGm7UYltP2xPmwvLkiW-TFNBsiE5-GFrAaYMeGtECiVOBNOMNRBrPdqQIWHt4wEcgJlEAta02TxmI4GU_HOhw?accessToken=eyJraWQiOiJIUlhqelBhazJXZ242ejJHZlwvcndKdGxIdVluVnBYSmJpSFkyTW8xVjFBST0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjMTQzMWQwYS1hMDQxLTcwMGYtZGJmMi0wNTQzNTFkMzNkYzMiLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAuYXAtc291dGgtMS5hbWF6b25hd3MuY29tXC9hcC1zb3V0aC0xX2ZZUWJTQ2FOVyIsImNsaWVudF9pZCI6IjFka2tkZGdocGpnNG5nbmFidDRtam4wZnRlIiwib3JpZ2luX2p0aSI6ImFkNDE0MzVhLTA1NTQtNDJiNi04NDdhLTdhZTkxNzQ1NTQxMyIsImV2ZW50X2lkIjoiOTNmODgyOWEtNjFiNC00MTFlLWFhYmEtMTViZmRjMTRiYmQxIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJhd3MuY29nbml0by5zaWduaW4udXNlci5hZG1pbiIsImF1dGhfdGltZSI6MTc1MzE5MzEwOCwiZXhwIjoxNzUzMjM2MzA4LCJpYXQiOjE3NTMxOTMxMDgsImp0aSI6IjU2MDZmZWI2LTY0MjktNDk2ZS1hMjFhLWZkN2I0NTA4NzdjMiIsInVzZXJuYW1lIjoiYzE0MzFkMGEtYTA0MS03MDBmLWRiZjItMDU0MzUxZDMzZGMzIn0.BxaBTnfiagTiAPZkNofovzibb0AdqVJ-2YDc4z71pF-eXhSYZNcptNbzjZROB3lWSimyNfpjMfqd5tUg_-xlE2MDbMvV6HsUsFOmkAoRtdX6UN6gfxVPdKnCqjR_MxLvUJ9ERmesaNEnHbLU0wBALCL-BGxHwbNKN4G5Fqy06-rcJOEKV6MfysQSEWqpIi6XUzlx1zr0NhZPZvqGEw1KiK86KQvP1yt23eEv6mckqlnbA3SZzs035wr1pJTkwLKKWCGm7UYltP2xPmwvLkiW-TFNBsiE5-GFrAaYMeGtECiVOBNOMNRBrPdqQIWHt4wEcgJlEAta02TxmI4GU_HOhw\"\n        }\n    }\n}"},{"id":"642a4f7b-5b77-450e-ab36-6bdc8efab0e4","name":"failure","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"200"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 14:05:33 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f9aad-6fd0972f12940a2a6eebdefb"},{"key":"x-amzn-RequestId","value":"7f77475c-9582-4fab-874d-1eaab17bbf8b"},{"key":"x-amzn-appsync-TokensConsumed","value":"9"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 497d3f19b33367b63390801fa4bbad18.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"If7RHxgwrbhWjXGyvBuwbhZ9LV1mRksfWpSyvnSVBgMp2T-oOjO0vg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"errors\": [\n        {\n            \"path\": [\n                \"generateBBXUrl\"\n            ],\n            \"data\": null,\n            \"errorType\": \"UserNotFoundException\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"invalid user id.\"\n        }\n    ]\n}"}],"_postman_id":"f402772b-678f-49cf-9774-7e8239909707"},{"name":"register-user","id":"70d697bd-64f5-4e1b-bb62-ef4edd50d608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RegisterPwaUser {\n  registerPwaUser(\n    input: {\n      organizationId: \"422d45a3-258d-4385-b585-5ad55b58ed24\"\n      firstName: \"Sneha\"\n      lastName: \"Joshi\"\n      gender: FEMALE\n      dob: \"1992-12-05\"\n      employeeCode: \"SNJ92057\"\n      email: \"sneharaj03050808@yopmail.com\"\n      mobile: \"8554876578\"\n      dependents: [\n        {\n          firstName: \"Ravi\"\n          lastName: \"Joshi\"\n          gender: MALE\n          dob: \"1990-09-09\"\n          relationship: SPOUSE\n        },\n        {\n          firstName: \"Tanvi\"\n          lastName: \"Joshi\"\n          gender: FEMALE\n          dob: \"2021-03-18\"\n          relationship: DAUGHTER\n        }\n      ]\n    }\n  ) {\n    encryptedBBXUserId\n    message\n    success\n  }\n}\n","variables":""}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"api-endpoint-post-graphql_url\">API Endpoint: POST {{GRAPHQL_URL}}</h2>\n<p>This endpoint is used to send a GraphQL request to the specified URL. The request method is POST, which allows you to submit data to the server for processing.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request body should contain a valid GraphQL query or mutation. The specific structure of the payload is not defined in this documentation, but it typically consists of fields relevant to the operation you wish to perform.</p>\n<h3 id=\"expected-response-format\">Expected Response Format</h3>\n<p>The response from this endpoint can vary based on the operation performed. Here are the possible response formats:</p>\n<ol>\n<li><p>{ \"data\": null, \"errors\": [ { \"path\": [\"\"], \"data\": null, \"errorType\": \"\", \"errorInfo\": null, \"locations\": [ { \"line\": 0, \"column\": 0, \"sourceName\": null } ], \"message\": \"\" } ]}</p>\n<p> This format indicates that an error occurred during the processing of the request. The <code>errors</code> array provides details about the issue.</p>\n</li>\n<li><p>{ \"data\": { \"registerPwaUser\": { \"encryptedBBXUserId\": \"\", \"message\": \"\", \"success\": true } }}</p>\n<p> This format indicates a successful operation. The <code>data</code> object contains the results of the operation, including a success flag and any relevant messages.</p>\n</li>\n</ol>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the GraphQL query or mutation is correctly formatted to avoid errors in the response.</p>\n</li>\n<li><p>The <code>encryptedBBXUserId</code> and other fields in the successful response may contain sensitive information and should be handled accordingly.</p>\n</li>\n</ul>\n","urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[{"id":"6c96bc99-960e-4884-bd4a-8474e1bedcdd","name":"unauthrised","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"233"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:43:22 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f957a-038befd05dc2989052623d48"},{"key":"x-amzn-RequestId","value":"b4acdb6b-8e31-4802-91a1-74b657b02923"},{"key":"x-amzn-appsync-TokensConsumed","value":"4"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5d782e204f31cf29d8ed8448ac335be4.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"tQ612lV1P-J4vo1dJl3nvYVF_uk4mTu0DFbAIgI6DczwuwO4-hvy1w=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"errors\": [\n        {\n            \"path\": [\n                \"registerPwaUser\"\n            ],\n            \"data\": null,\n            \"errorType\": \"Unauthorized\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"Not Authorized to access registerPwaUser on type Mutation\"\n        }\n    ]\n}"},{"id":"e15c66c6-3606-4b71-986e-5944fbddd0ac","name":"duplicate-email","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"249"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:44:59 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f95d8-7afdfc1035e8c3dc60cb27d5"},{"key":"x-amzn-RequestId","value":"be20115d-ef9c-48e8-8f64-d06ce4681796"},{"key":"x-amzn-appsync-TokensConsumed","value":"54"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 19cb490cec696fbdcfd00c6719a65536.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"YR_HPwuzHGL5UT1MAFQsKSxfJc4BtwjLS0EprqZUpW8yeToTd31UNg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"errors\": [\n        {\n            \"path\": [\n                \"registerPwaUser\"\n            ],\n            \"data\": null,\n            \"errorType\": \"DuplicateResourceException\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"Employee email already exists. Please try with other email.\"\n        }\n    ]\n}"},{"id":"5021d52a-9592-4d50-8558-0d52cd506f6b","name":"duplicate-mobile","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"264"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:45:36 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f9600-743e90ec578f1cc65e755c9f"},{"key":"x-amzn-RequestId","value":"64e78da1-d0bf-4df9-9542-f1f053861e43"},{"key":"x-amzn-appsync-TokensConsumed","value":"7"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2f8bce85b3232f01dc0a9ceec714d90c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"S7PPTx-J7O3SHOrDPDZapq3OqCMNywSSDJ0MOtumkRQj1Gbv5ukk4Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"errors\": [\n        {\n            \"path\": [\n                \"registerPwaUser\"\n            ],\n            \"data\": null,\n            \"errorType\": \"DuplicateResourceException\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"Employee mobile number already exists. Please try with other phone number.\"\n        }\n    ]\n}"},{"id":"39edf465-9c2c-4381-b231-30a73c9e9248","name":"sucess","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{BBX_AUTH_TOKEN}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"163"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:58:54 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f9919-48146a4151a543c315e42327"},{"key":"x-amzn-RequestId","value":"f01afaf9-0514-4e87-988d-1aa5067de0cd"},{"key":"x-amzn-appsync-TokensConsumed","value":"119"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 8b6dd0d472e21058db2ca2ab69bddafa.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"OnHOktfQubByM3bZkxWIriNJAIa7QfuP13vyeaOos0mtnnbHAvuvCg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"registerPwaUser\": {\n            \"encryptedBBXUserId\": \"3L1_PaXcve1C1Ipveso9bKlB69A_btNPKsM0IB8H19rcAoGcNQG-\",\n            \"message\": \"User registered successfully.\",\n            \"success\": true\n        }\n    }\n}"}],"_postman_id":"70d697bd-64f5-4e1b-bb62-ef4edd50d608"},{"name":"token","event":[{"listen":"test","script":{"id":"bebea248-2ea9-47ce-8357-770ed8697f27","exec":["const jsonData = pm.response.json();","const token = jsonData.data?.login?.data?.accessToken;","","if (token) {","  pm.collectionVariables.set(\"BBX_AUTH_TOKEN\", token);","","}",""],"type":"text/javascript","packages":{}}}],"id":"0dfe1ce1-2060-4123-885a-c430fe806652","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{APPSYNC_APIKEY}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation MyMutation {\n  login(input: {email: \"mutualglobal@dev.com\", password: \"BBX@mutual@123\"}) {\n    message\n    success\n    data {\n      accessToken\n    }\n  }\n}","variables":""}},"url":"{{APPSYNC_ENDPOINT}}/graphql","description":"<h2 id=\"login-request\">Login Request</h2>\n<p>This endpoint allows users to authenticate and obtain an access token. It is a POST request sent to the GraphQL server.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<p>The request payload must include the necessary parameters for user authentication. Although the specific structure of the payload is not detailed here, it typically includes user credentials such as username and password.</p>\n<h3 id=\"expected-response\">Expected Response</h3>\n<p>The response will be in JSON format and can have two possible structures:</p>\n<ol>\n<li><p>{ \"data\": { \"login\": { \"message\": \"\", \"success\": true, \"data\": { \"accessToken\": \"\" } } }}</p>\n<ul>\n<li><p><code>success</code>: A boolean indicating whether the login was successful.</p>\n</li>\n<li><p><code>accessToken</code>: A token that can be used for subsequent authenticated requests.</p>\n</li>\n</ul>\n</li>\n<li><p>{ \"data\": { \"login\": null }, \"errors\": [ { \"path\": [\"\"], \"data\": null, \"errorType\": \"\", \"errorInfo\": null, \"locations\": [ { \"line\": 0, \"column\": 0, \"sourceName\": null } ], \"message\": \"\" } ]}</p>\n<ul>\n<li>In this case, <code>login</code> will be <code>null</code>, and an <code>errors</code> array will provide details about the failure, including the error message and its location.</li>\n</ul>\n</li>\n</ol>\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Ensure that the request parameters are correctly formatted to avoid authentication errors.</p>\n</li>\n<li><p>Handle both successful and failed responses appropriately in your application.</p>\n</li>\n</ul>\n","urlObject":{"path":["graphql"],"host":["{{APPSYNC_ENDPOINT}}"],"query":[],"variable":[]}},"response":[{"id":"35f97961-d846-41f2-8c88-26ece2679e2e","name":"sucess","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{X_API_KEY}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:34:37 GMT"},{"key":"x-amzn-appsync-TokensConsumed","value":"17"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f936c-6cc6956e31ed35b42cf8aa0e"},{"key":"x-amzn-RequestId","value":"fc30945b-da17-4ee0-8616-0874adee118b"},{"key":"content-encoding","value":"gzip"},{"key":"vary","value":"accept-encoding"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a13dc769d7d600d4873ae50d0f0f8056.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"DcGgoCSU9GTWlTrqDshXJOXRhuWFhS9uYvVnAEwITS-rws8tiTIZ9g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"login\": {\n            \"message\": \"Authentication Successfull\",\n            \"success\": true,\n            \"data\": {\n                \"accessToken\": \"eyJraWQiOiI0YjlGWUpjZGhzRHhPY3JVRm0xNzRZZVVcLzBWOGdrd1M5NmFuRWZDVG9FQT0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI0MWIzOGQzYS03MDMxLTcwMWYtNmE1Yi1kNmZiZGJkY2VhOTQiLCJyb2xlIjoiUFdBX0FETUlOIiwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmFwLXNvdXRoLTEuYW1hem9uYXdzLmNvbVwvYXAtc291dGgtMV95dFpCMnE2WjIiLCJncm91cHMiOiIiLCJvcmdJZCI6IioiLCJjbGllbnRfaWQiOiI3MThwM3M5MjFiNXNoanMza3IwMDdtMjA0OCIsIm9yaWdpbl9qdGkiOiJmYTQwNjliNS00ZjFiLTRmZGEtODM2Ny1jOTY0NDFmNTM5MzEiLCJldmVudF9pZCI6ImFhYTdiOTI5LTQzNGUtNDc2Yi04YWYwLWYyMTRkZGQ5MWQ5ZCIsInVzZXJfaWQiOiI3M2ZiODQ5Yi02ZGMwLTQxZmYtYTM1Ny03NmJiMTU4YzQ5MWUiLCJjb2duaXRvVXNlcklkIjoiNzFkM2VkZGEtNjBkMS03MDNhLTIxZjUtYmNkZDY3OTdiNzdhIiwidG9rZW5fdXNlIjoiYWNjZXNzIiwic2NvcGUiOiJhd3MuY29nbml0by5zaWduaW4udXNlci5hZG1pbiIsImF1dGhfdGltZSI6MTc1MzE5MTI3NywibmFtZSI6Ik11dHVhbCBHbG9iYWwiLCJleHAiOjE3NTMyMzQ0NzcsImlhdCI6MTc1MzE5MTI3NywiZW1haWwiOiJtdXR1YWxnbG9iYWxAZGV2LmNvbSIsImp0aSI6ImFiNmY3ZjY5LWJhZjItNGMxZS05ZDA2LThkYjcxNDhhZTQzMCIsInVzZXJuYW1lIjoiNDFiMzhkM2EtNzAzMS03MDFmLTZhNWItZDZmYmRiZGNlYTk0In0.izqq7mAYIb4Y5ygcflnAPTgovImdjAOOn0Yvj0aFD9DLdsPF3B3oFeXY6drL9TjqrJ0Js-abeMxf0TccK97gKnNmZLHAdyaZpo8rnaeRPWNwhpXtBEPdMyv9XdfKYyOnjVCuq_tsSdxcM12KtgqrOqkPIPlsgagGxPqK1Htrn8uyoTHmnzcLoDtsncUGIn6aWr42YRD7b22T6G16SAwFLS1-gnoghhSmqWNP3xtS07HK96Hs20QyXjoyihYgIavn1J9I2UUivke6YVk4841nT4N28WVmhMgDUQhy7To9VPP3GXJjvwLLT-ALdnvfIX-mXPKqRng2CVT6Sz9dCttkLw\"\n            }\n        }\n    }\n}"},{"id":"353c5879-64f1-4019-90a3-a5dfc7aa2899","name":"failure","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{X_API_KEY}}","type":"text"}],"body":{"mode":"graphql"},"url":"{{GRAPHQL_URL}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Content-Length","value":"221"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 22 Jul 2025 13:35:18 GMT"},{"key":"X-Amzn-Trace-Id","value":"Root=1-687f9396-03db2a7a5ba0a81e5b5f4a27"},{"key":"x-amzn-RequestId","value":"645b3e66-7b01-4912-8982-9fd20cc7e255"},{"key":"x-amzn-appsync-TokensConsumed","value":"10"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 a13dc769d7d600d4873ae50d0f0f8056.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BLR50-P4"},{"key":"X-Amz-Cf-Id","value":"6mBE3XOTqF_MUIbpTedO5aGfORrr8mWtNDwdH4CzuA8_smRLdKLxxg=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"login\": null\n    },\n    \"errors\": [\n        {\n            \"path\": [\n                \"login\"\n            ],\n            \"data\": null,\n            \"errorType\": \"UnkownErrorException\",\n            \"errorInfo\": null,\n            \"locations\": [\n                {\n                    \"line\": 2,\n                    \"column\": 3,\n                    \"sourceName\": null\n                }\n            ],\n            \"message\": \"Incorrect password. Please try again.\"\n        }\n    ]\n}"}],"_postman_id":"0dfe1ce1-2060-4123-885a-c430fe806652"}],"id":"06e0952e-f4c3-4db3-89e6-183a11400770","description":"<p>API's related to PWA integrations are present here</p>\n","_postman_id":"06e0952e-f4c3-4db3-89e6-183a11400770","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}}],"id":"c63fe213-5bc4-4590-9182-4f9baa5a5c82","_postman_id":"c63fe213-5bc4-4590-9182-4f9baa5a5c82","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]},"isInherited":true,"source":{"_postman_id":"2ada6ce9-fb66-41b3-9701-009ded229b49","id":"2ada6ce9-fb66-41b3-9701-009ded229b49","name":"Berrybox Portal API Collection","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"e723a068-e097-4240-b724-957b368cbe01","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"55b12fb8-5137-481e-927f-aa0979dab5d3","type":"text/javascript","exec":[""]}}],"variable":[{"key":"mobile","value":"+911234567892","type":"string"},{"key":"APPSYNC_ENDPOINT","value":"{{APPSYNC_ENDPOINT}}","type":"string"},{"key":"APPSYNC_APIKEY","value":"{{APPSYNC_APIKEY}}","type":"string"},{"key":"COGNITO_POOL_ID","value":"{{COGNITO_POOL_ID}}","type":"string"},{"key":"COGNITO_CLIENT_ID","value":"{{COGNITO_CLIENT_ID}}","type":"string"},{"key":"COGNITO_CLIENT_URL","value":"https://cognito-idp.ap-south-1.amazonaws.com/","type":"string"},{"key":"auth_token","value":""}]}