{"info":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","description":"<html><head></head><body><p>Welcome to the <strong>iPurvey API</strong> – your gateway to seamless disruption management for <strong>both travelers and freight operators</strong>. iPurvey provides an AI-driven solution that simplifies and automates the resolution of travel and freight disruptions, whether by <strong>air</strong>, <strong>rail</strong>, <strong>ship</strong>, or <strong>road</strong>.</p>\n<p>Designed for reliability and speed, the iPurvey API enables businesses to integrate intelligent claim processing and disruption management into their own systems. This eliminates paperwork, manual form submissions, and delays. With global access and seamless claim automation, iPurvey empowers organizations to support their users through unexpected disruptions while promoting sustainability and operational efficiency.</p>\n<h3 id=\"key-benefits\"><strong>Key Benefits</strong></h3>\n<ul>\n<li><p><strong>Unified Platform for Air &amp; Freight</strong>: Whether you're managing air travel or freight by ship, rail, or road, the iPurvey API has you covered.</p>\n</li>\n<li><p><strong>AI-Powered Disruption Handling</strong>: Automates the assessment and filing of claims in the event of delays or cancellations.</p>\n</li>\n<li><p><strong>No Forms, No Fuss</strong>: Say goodbye to time-consuming documentation. iPurvey handles the backend complexity so users don’t have to.</p>\n</li>\n<li><p><strong>Automatic Claims &amp; Global Reach</strong>: Access intelligent claims processing from anywhere, anytime.</p>\n</li>\n</ul>\n<p>With iPurvey, your users spend less time reacting to delays and more time moving forward.</p>\n<hr>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The <strong>iPurvey API</strong> uses <strong>Basic Authentication</strong> to secure its endpoints.</p>\n<p>To authenticate your requests:</p>\n<ol>\n<li><p>Go to the <strong>Authorization</strong> tab in Postman.</p>\n</li>\n<li><p>Select <strong>\"Basic Auth\"</strong> as the type.</p>\n</li>\n<li><p>Enter the <code>clientId</code> (provided during onboarding) as the <strong>Username</strong>.</p>\n</li>\n<li><p>Enter the <code>clientSecret</code> as the <strong>Password</strong>.</p>\n</li>\n</ol>\n<p>Postman will automatically encode these credentials into a valid <code>Authorization: Basic</code> header, allowing you to make authenticated requests.</p>\n<hr>\n<h1 id=\"error-handling\">Error Handling</h1>\n<p>The <strong>iPurvey</strong> API uses standard HTTP status codes to indicate the success or failure of an API request. Here are some standard status codes and their meanings:</p>\n<ul>\n<li><p><strong>200 OK:</strong> The request was successful</p>\n</li>\n<li><p><strong>403 Forbidden:</strong> The request was malformed. Usually occurs when the refresh token expires.</p>\n</li>\n<li><p><strong>400 Bad Request:</strong> The request was malformed or missing required parameters.</p>\n</li>\n<li><p><strong>401 Unauthorized:</strong> The request was not authenticated, or the provided API key is invalid.</p>\n</li>\n<li><p><strong>404 Not Found:</strong> The requested resource could not be found.</p>\n</li>\n<li><p><strong>500 Internal Server Error:</strong> The access token has expired</p>\n</li>\n</ul>\n<p>If you encounter an error, review the error message and troubleshoot accordingly. Typical issues may include providing an invalid API token, missing required parameters, or sending requests in an incorrect format.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Error Handling","slug":"error-handling"}],"owner":"13990958","collectionId":"16488e05-2e27-438f-a60e-d217122e96e1","publishedId":"2sB3BEn9x8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-08-10T11:09:05.000Z"},"item":[{"name":"Client Management","item":[{"name":"Generate Client Token","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"86590527-a0b6-4258-9b4a-3bb563b66d5a"}}],"id":"861cc382-5922-4682-9ee2-7a544a045871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{client_id}}"},{"key":"password","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"}],"url":"https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/token","description":"<p>Gets information about the authenticated user.</p>\n","urlObject":{"protocol":"https","path":["v1","freight","auth","token"],"host":["staging-freight-ilekun","ipurvey","com"],"query":[],"variable":[]}},"response":[{"id":"86504f2c-c663-48eb-87d4-44c3c3e0818e","name":"Generate Client Token","originalRequest":{"method":"POST","header":[{"key":"accept","value":"application/json","type":"text"},{"key":"Authorization","value":"audio/basic","type":"text"}],"url":"https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 13:29:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{vault:json-web-token}}\",\n    \"expiresIn\": 3000,\n    \"refreshToken\": \"{{YOUR REFRESH TOKEN}}\",\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"861cc382-5922-4682-9ee2-7a544a045871"},{"name":"Refresh Client Token","id":"6b492ac4-2686-4610-80f3-2d35c230a549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"refreshToken","value":"YOUR REFRESH TOKEN ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"refreshToken\": \"7a600be0-cfaa-45fc-886e-6460faccfa44\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://staging-freight-ums.ipurvey.com/v1/freight/auth/refreshToken","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","freight","auth","refreshToken"],"host":["staging-freight-ums","ipurvey","com"],"query":[],"variable":[]}},"response":[{"id":"16950a1f-1db8-4385-9522-4861bb213a6b","name":"New Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"refreshToken","value":"YOUR REFRESH TOKEN ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"refreshToken\": \"{{YOUR REFRESH TOKEN}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://staging-freight-ums.ipurvey.com/v1/freight/auth/refreshToken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 18:13:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"{{vault:json-web-token}}\",\n    \"expiresIn\": 69361947,\n    \"refreshToken\": \"{{YOUR REFRESH TOKEN}}\",\n    \"tokenType\": \"Bearer\"\n}"}],"_postman_id":"6b492ac4-2686-4610-80f3-2d35c230a549"},{"name":"Client Details","id":"4bca6f99-c739-4135-9f1c-0547a5486e4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/userByToken?accessToken={{accessToken}}","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","freight","auth","userByToken"],"host":["staging-freight-ilekun","ipurvey","com"],"query":[{"key":"accessToken","value":"{{accessToken}}"}],"variable":[]}},"response":[{"id":"87de3375-e8c9-4ad9-8377-61b67f51ef60","name":"Client Details","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/userByToken?token={{vault:json-web-token}}","protocol":"https","host":["staging-freight-ilekun","ipurvey","com"],"path":["v1","freight","auth","userByToken"],"query":[{"key":"token","value":"{{vault:json-web-token}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 14:19:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"accountId\": \"IPFUK0000187\",\n    \"companyName\": \"Real freight fowarder\",\n    \"productCode\": \"01BLPSM0UO0U1\",\n    \"address\": \"157 test street London E7 &XZ\",\n    \"phone\": \"447541456654\",\n    \"email\": \"nogol28483@isorax.com\",\n    \"countryCode\": \"UK\",\n    \"businessType\": \"SMALL\",\n    \"properties\": {\n        \"uuid\": \"d2d773ee-0d79-4472-baa9-14fd04ef66a1\",\n        \"version\": 0,\n        \"createdBy\": \"anonymousUser\",\n        \"createdDate\": 1742057012000,\n        \"lastModifiedBy\": \"anonymousUser\",\n        \"lastModifiedDate\": 1742057012000,\n        \"username\": \"nogol28483@isorax.com\",\n        \"firstName\": \"Real\",\n        \"lastName\": \"forward\",\n        \"email\": \"nogol28483@isorax.com\",\n        \"imageUrl\": null,\n        \"enabled\": true,\n        \"emailVerified\": true,\n        \"clientId\": \"ccc3aeab-d04e-439f-9798-bd3ffe56cb21\",\n        \"clientSecret\": \"BsPeC7b9f0LP1EXPO6Zt1mCb0XjFxwvMxxYc4c2FNDg\",\n        \"lastPasswordResetDate\": 1742057011000,\n        \"firstTimeLogin\": false,\n        \"roles\": [\n            {\n                \"id\": 3,\n                \"name\": \"ROLE_USER\"\n            },\n            {\n                \"id\": 10,\n                \"name\": \"ROLE_FREIGHT_FORWARDER\"\n            }\n        ],\n        \"userSignupAction\": \"SEND_TEMP_PASSWORD\"\n    }\n}"}],"_postman_id":"4bca6f99-c739-4135-9f1c-0547a5486e4d"},{"name":"Update Client Details","id":"6c402fc3-a460-4828-a1d0-3af05c927bcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"80465ef0-d6bd-4d18-91ab-8303164ec44d","name":"Update Client Details","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{vault:json-web-token}}"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"321 Example Street, Example City, EX 54321\",\n  \"billingFrequency\": 30,\n  \"businessAccountType\": \"LARGE\",\n  \"companyName\": \"Example Company2\",\n  \"contactEmail\": \"contac73@example.com\",\n  \"countryCode\": \"US\",\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"phone\": \"9225874587\",\n  \"productCode\": \"01BEFPSC15M2HO1H1\",\n  \"userSignupAction\": \"NONE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://staging-freight-ilekun.ipurvey.com/v1/freightClient/IPFUS0000022"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 14:23:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"accountId\": \"IPFUS0000022\",\n    \"companyName\": \"Example Company2\",\n    \"productCode\": \"01BEFPSC15M2HO1H1\",\n    \"address\": \"321 Example Street, Example City, EX 54321\",\n    \"phone\": \"9225874587\",\n    \"countryCode\": \"US\",\n    \"businessType\": \"SMALL\",\n    \"properties\": {\n        \"uuid\": \"11d00fc7-0225-44bb-9431-5547485da68c\",\n        \"version\": 0,\n        \"createdBy\": \"anonymousUser\",\n        \"createdDate\": 1718455370000,\n        \"lastModifiedBy\": \"anonymousUser\",\n        \"lastModifiedDate\": 1718455370000,\n        \"username\": \"contac73@example.com\",\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"email\": \"contac73@example.com\",\n        \"imageUrl\": null,\n        \"enabled\": true,\n        \"emailVerified\": false,\n        \"clientId\": \"a1eda956-17b8-43db-8367-e5f215374f5c\",\n        \"clientSecret\": \"xExwWp813jG1I1cEeAR6GAnVtvwBCBzWtE4Ohodit8s\",\n        \"lastPasswordResetDate\": 1718455368000,\n        \"firstTimeLogin\": false,\n        \"roles\": [\n            {\n                \"id\": 3,\n                \"name\": \"ROLE_USER\"\n            },\n            {\n                \"id\": 10,\n                \"name\": \"ROLE_FREIGHT_FORWARDER\"\n            },\n            {\n                \"id\": 11,\n                \"name\": \"ROLE_FREIGHT_AGGREGATOR\"\n            }\n        ],\n        \"userSignupAction\": \"NONE\"\n    }\n}"}],"_postman_id":"6c402fc3-a460-4828-a1d0-3af05c927bcd"}],"id":"88bdf60c-7e56-4c2d-806a-001623ddaf5f","description":"<h2 id=\"generate-client-token\"><strong>Generate Client Token</strong></h2>\n<p>This API generates an access token used to authenticate client requests. Clients must provide their <code>clientId</code> and <code>clientSecret</code>, which were issued during onboarding, in the Authorization header on Postman using <strong>Basic Auth</strong> format. The returned <code>accessToken</code> is required for all subsequent authenticated API calls.</p>\n<hr />\n<h3 id=\"http-request\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">POST https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/token\n\n</code></pre>\n<hr />\n<h3 id=\"request-headers\"><strong>Request Headers</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>accept</code></td>\n<td>application/json</td>\n<td>Specifies that the client expects a JSON response.</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td>Basic</td>\n<td>Basic authentication using base64-encoded credentials.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Encode <code>clientId:clientSecret</code> In Base64 format, by entering their values under <strong>username</strong> and <strong>password</strong>, respectively, under Postman's <code>Authorisation &gt;&gt; Basic</code> section. For example:<br /><code>clientId: abc123,</code> <code>clientSecret: xyz789</code> → <code>{{vault:basic-auth}}</code></p>\n<hr />\n<h3 id=\"example-curl\"><strong>Example cURL</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location --request POST 'https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/token' \\\n--header 'accept: application/json' \\\n--header 'Authorization: {{vault:basic-auth}}'\n\n</code></pre>\n<hr />\n<h3 id=\"success-response\"><strong>Success Response</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"accessToken\": \"{{vault:json-web-token}}\",\n  \"expiresIn\": 3000,\n  \"refreshToken\": \"{{ YOUR REFRESH TOKEN }}\",\n  \"tokenType\": \"Bearer\"\n}\n\n</code></pre>\n<hr />\n<h3 id=\"response-fields\"><strong>Response Fields</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>accessToken</code></td>\n<td>string</td>\n<td>The token to be used for authenticating subsequent requests.</td>\n</tr>\n<tr>\n<td><code>expiresIn</code></td>\n<td>number</td>\n<td>Token expiration time in seconds.</td>\n</tr>\n<tr>\n<td><code>refreshToken</code></td>\n<td>string</td>\n<td>Token used to generate a new access token.</td>\n</tr>\n<tr>\n<td><code>tokenType</code></td>\n<td>string</td>\n<td>Usually <code>\"Bearer\"</code>. Specifies how the token is passed.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"refresh-client-token\"><strong>Refresh Client Token</strong></h2>\n<p>This endpoint is used to obtain a new access token when the current one has expired. The request must include a valid <code>refreshToken</code>, which is typically returned by the <strong>Generate Client Token</strong> API.</p>\n<hr />\n<h3 id=\"http-request-1\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST https://staging-freight-ums.ipurvey.com/v1/freight/auth/refreshToken\n\n</code></pre><hr />\n<h3 id=\"request-headers-1\"><strong>Request Headers</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td>application/json</td>\n<td>Specifies that the request body is in JSON format.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"request-body\"><strong>Request Body</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"refreshToken\": \"{{ YOUR REFRESH TOKEN }}\"\n}\n\n</code></pre><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>refreshToken</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The refresh token is obtained from the <strong>Generate Client Token</strong> API.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"example-curl-1\"><strong>Example cURL</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://staging-freight-ums.ipurvey.com/v1/freight/auth/refreshToken' \\\n--header 'accept: */*' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"refreshToken\": \" {{ YOUR REFRESH TOKEN }}\"\n}'\n\n</code></pre>\n<hr />\n<h3 id=\"success-response-1\"><strong>Success Response</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"accessToken\": \"{{vault:json-web-token}}\",\n  \"expiresIn\": 3000,\n  \"refreshToken\": \"{{ YOUR REFRESH TOKEN }}\",\n  \"tokenType\": \"Bearer\"\n}\n\n</code></pre>\n<hr />\n<h3 id=\"response-fields-1\"><strong>Response Fields</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>accessToken</code></td>\n<td>string</td>\n<td>The newly generated token is used to authenticate API requests.</td>\n</tr>\n<tr>\n<td><code>expiresIn</code></td>\n<td>number</td>\n<td>Time (in <strong>seconds</strong>) before the new access token expires.</td>\n</tr>\n<tr>\n<td><code>refreshToken</code></td>\n<td>string</td>\n<td>A new refresh token for continued access after expiration.</td>\n</tr>\n<tr>\n<td><code>tokenType</code></td>\n<td>string</td>\n<td>Type of token (usually <code>\"Bearer\"</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"get-client-details\"><strong>Get Client Details</strong></h2>\n<p>This API retrieves the authenticated user's client details using an access token generated via the <strong>Generate Token</strong> API. The access token must be passed as a <strong>query parameter</strong> to authenticate and fetch the client information successfully.</p>\n<hr />\n<h3 id=\"http-request-2\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/userByToken?token={accessToken}\n\n</code></pre><hr />\n<h3 id=\"query-parameters\"><strong>Query Parameters</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>your_accessToken</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Access token obtained from the <strong>Generate Token</strong> API.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"example-curl-request\"><strong>Example cURL Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://staging-freight-ilekun.ipurvey.com/v1/freight/auth/userByToken?token={accessToken}'\n\n</code></pre>\n<hr />\n<h3 id=\"success-response-2\"><strong>Success Response</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"accountId\": \"IPFUK0000187\",\n  \"companyName\": \"Real freight fowarder\",\n  \"productCode\": \"01BLPSM0UO0U1\",\n  \"address\": \"157 test street London E7 &amp;XZ\",\n  \"phone\": \"447541456654\",\n  \"email\": \"nogol28483@isorax.com\",\n  \"countryCode\": \"UK\",\n  \"businessType\": \"SMALL\",\n  \"properties\": {\n    \"uuid\": \"d2d773ee-0d79-4472-baa9-14fd04ef66a1\",\n    \"version\": 0,\n    \"createdBy\": \"anonymousUser\",\n    \"createdDate\": 1742057012000,\n    \"lastModifiedBy\": \"anonymousUser\",\n    \"lastModifiedDate\": 1742057012000,\n    \"username\": \"nogol28483@isorax.com\",\n    \"firstName\": \"Real\",\n    \"lastName\": \"forward\",\n    \"email\": \"nogol28483@isorax.com\",\n    \"imageUrl\": null,\n    \"enabled\": true,\n    \"emailVerified\": true,\n    \"clientId\": \"ccc3aeab-d04e-439f-9798-bd3ffe56cb21\",\n    \"clientSecret\": \"BsPeC7b9f0LP1EXPO6Zt1mCb0XjFxwvMxxYc4c2FNDg\",\n    \"lastPasswordResetDate\": 1742057011000,\n    \"firstTimeLogin\": false,\n    \"roles\": [\n      {\n        \"id\": 10,\n        \"name\": \"ROLE_FREIGHT_FORWARDER\"\n      },\n      {\n        \"id\": 3,\n        \"name\": \"ROLE_USER\"\n      }\n    ],\n    \"userSignupAction\": \"SEND_TEMP_PASSWORD\"\n  }\n}\n\n</code></pre>\n<hr />\n<h3 id=\"response-fields-2\">Response Fields</h3>\n<h4 id=\"top-level-fields\"><strong>Top-Level Fields</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>accountId</code></td>\n<td>string</td>\n<td>Unique identifier for the client's account within the system.</td>\n</tr>\n<tr>\n<td><code>companyName</code></td>\n<td>string</td>\n<td>Name of the freight or travel company.</td>\n</tr>\n<tr>\n<td><code>productCode</code></td>\n<td>string</td>\n<td>Internal code for the subscribed service or product.</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>string</td>\n<td>Registered address of the company.</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td>string</td>\n<td>Contact phone number of the company.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Primary contact email address for the account.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td>string</td>\n<td>Country where the company is based, in ISO 2-letter format (e.g., \"UK\").</td>\n</tr>\n<tr>\n<td><code>businessType</code></td>\n<td>string</td>\n<td>Type or size of the business (e.g., SMALL, MEDIUM, LARGE).</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"nested-object-properties\"><strong>Nested Object:</strong> <strong><code>properties</code></strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uuid</code></td>\n<td>string</td>\n<td>Unique identifier for the user profile (universally unique ID).</td>\n</tr>\n<tr>\n<td><code>version</code></td>\n<td>integer</td>\n<td>Version number for concurrency control (used in updates).</td>\n</tr>\n<tr>\n<td><code>createdBy</code></td>\n<td>string</td>\n<td>User or system that created the profile.</td>\n</tr>\n<tr>\n<td><code>createdDate</code></td>\n<td>integer (timestamp)</td>\n<td>Time when the profile was created (in Unix epoch milliseconds).</td>\n</tr>\n<tr>\n<td><code>lastModifiedBy</code></td>\n<td>string</td>\n<td>User or system that last updated the profile.</td>\n</tr>\n<tr>\n<td><code>lastModifiedDate</code></td>\n<td>integer (timestamp)</td>\n<td>Time of the last modification (in Unix epoch milliseconds).</td>\n</tr>\n<tr>\n<td><code>username</code></td>\n<td>string</td>\n<td>Username associated with the user (typically same as email).</td>\n</tr>\n<tr>\n<td><code>firstName</code></td>\n<td>string</td>\n<td>First name of the user.</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td>string</td>\n<td>Last name of the user.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Email address of the user (duplicated for convenience).</td>\n</tr>\n<tr>\n<td><code>imageUrl</code></td>\n<td>string / null</td>\n<td>URL to the user’s profile image (if available).</td>\n</tr>\n<tr>\n<td><code>enabled</code></td>\n<td>boolean</td>\n<td>Whether the account is currently active (<code>true</code> or <code>false</code>).</td>\n</tr>\n<tr>\n<td><code>emailVerified</code></td>\n<td>boolean</td>\n<td>Whether the user's email has been verified.</td>\n</tr>\n<tr>\n<td><code>clientId</code></td>\n<td>string</td>\n<td>Unique identifier for the client associated with this user.</td>\n</tr>\n<tr>\n<td><code>clientSecret</code></td>\n<td>string</td>\n<td>Secret key associated with the client — used for authentication. <strong>Should be handled securely.</strong></td>\n</tr>\n<tr>\n<td><code>lastPasswordResetDate</code></td>\n<td>integer (timestamp)</td>\n<td>Last time the password was reset (in Unix epoch milliseconds).</td>\n</tr>\n<tr>\n<td><code>firstTimeLogin</code></td>\n<td>boolean</td>\n<td>Indicates if this is the user's first login (<code>true</code> or <code>false</code>).</td>\n</tr>\n<tr>\n<td><code>roles</code></td>\n<td>array</td>\n<td>List of roles assigned to the user (each with an <code>id</code> and <code>name</code>).</td>\n</tr>\n<tr>\n<td><code>userSignupAction</code></td>\n<td>string</td>\n<td>Action required after signup (e.g., <code>SEND_TEMP_PASSWORD</code>, <code>VERIFY_EMAIL</code>).</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"roles-inside-properties\"><strong>roles (Inside</strong> <strong><code>properties</code></strong>)</h4>\n<p>Each role object includes:</p>\n<ul>\n<li><p><code>id</code>: A unique numeric identifier for the role.</p>\n</li>\n<li><p><code>name</code>: Role name defining the user’s permissions (e.g., <code>ROLE_USER</code>, <code>ROLE_FREIGHT_FORWARDER</code>).</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"update-client-details-api\"><strong>Update Client Details API</strong></h2>\n<p>This API updates a client's information. It uses a <code>PUT</code> request and requires an access token in the <code>Authorization</code> header, prefixed with <code>Bearer</code>. The access token is generated from the <strong>Generate Token</strong> API.</p>\n<hr />\n<h3 id=\"http-request-3\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT https://staging-freight-ilekun.ipurvey.com/v1/freightClient/{accountId}\n\n</code></pre><hr />\n<h3 id=\"headers\"><strong>Headers</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Authorization</code></td>\n<td>Bearer {accessToken}</td>\n<td>Required. Bearer token for security.</td>\n</tr>\n<tr>\n<td><code>Content-Type</code></td>\n<td>application/json</td>\n<td>Specifies request format.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"request-body-parameters\"><strong>Request Body Parameters</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>address</code></td>\n<td>string</td>\n<td>Full address of the client.</td>\n</tr>\n<tr>\n<td><code>billingFrequency</code></td>\n<td>integer</td>\n<td>Frequency (in days) at which the client will be billed.</td>\n</tr>\n<tr>\n<td><code>businessAccountType</code></td>\n<td>string</td>\n<td>Size/type of the client's business. Possible values: <code>SMALL</code>, <code>LARGE</code>.</td>\n</tr>\n<tr>\n<td><code>companyName</code></td>\n<td>string</td>\n<td>Legal name of the company.</td>\n</tr>\n<tr>\n<td><code>contactEmail</code></td>\n<td>string</td>\n<td>Primary contact email address.</td>\n</tr>\n<tr>\n<td><code>countryCode</code></td>\n<td>string</td>\n<td>Two-letter ISO country code (e.g., <code>US</code>, <code>NG</code>).</td>\n</tr>\n<tr>\n<td><code>firstName</code></td>\n<td>string</td>\n<td>First name of the contact person.</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td>string</td>\n<td>Last name of the contact person.</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td>string</td>\n<td>Contact phone number.</td>\n</tr>\n<tr>\n<td><code>productCode</code></td>\n<td>string</td>\n<td>Product or service package code.</td>\n</tr>\n<tr>\n<td><code>userSignupAction</code></td>\n<td>string</td>\n<td>Default value: <code>\"NONE\"</code>. Optional signup behavior.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"example-curl-request-1\"><strong>Example cURL Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location --request PUT 'https://staging-freight-ilekun.ipurvey.com/v1/freightClient/IPFUS0000022' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {accessToken}' \\\n--data-raw '{\n  \"address\": \"321 Example Street, Example City, EX 54321\",\n  \"billingFrequency\": 30,\n  \"businessAccountType\": \"LARGE\",\n  \"companyName\": \"Example Company2\",\n  \"contactEmail\": \"contac73@example.com\",\n  \"countryCode\": \"US\",\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"phone\": \"9225874587\",\n  \"productCode\": \"01BEFPSC15M2HO1H1\",\n  \"userSignupAction\": \"NONE\"\n}'\n\n</code></pre>\n<hr />\n<h3 id=\"success-response-3\"><strong>Success Response</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"accountId\": \"IPFUS0000022\",\n  \"companyName\": \"Example Company2\",\n  \"productCode\": \"01BEFPSC15M2HO1H1\",\n  \"address\": \"321 Example Street, Example City, EX 54321\",\n  \"phone\": \"9225874587\",\n  \"countryCode\": \"US\",\n  \"businessType\": \"SMALL\",\n  \"properties\": {\n    \"uuid\": \"11d00fc7-0225-44bb-9431-5547485da68c\",\n    \"version\": 0,\n    \"createdBy\": \"anonymousUser\",\n    \"createdDate\": 1718455370000,\n    \"lastModifiedBy\": \"anonymousUser\",\n    \"lastModifiedDate\": 1718455370000,\n    \"username\": \"contac73@example.com\",\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"contac73@example.com\",\n    \"imageUrl\": null,\n    \"enabled\": true,\n    \"emailVerified\": false,\n    \"clientId\": \"a1eda956-17b8-43db-8367-e5f215374f5c\",\n    \"clientSecret\": \"xExwWp813jG1I1cEeAR6GAnVtvwBCBzWtE4Ohodit8s\",\n    \"lastPasswordResetDate\": 1718455368000,\n    \"firstTimeLogin\": false,\n    \"roles\": [\n      {\n        \"id\": 3,\n        \"name\": \"ROLE_USER\"\n      },\n      {\n        \"id\": 10,\n        \"name\": \"ROLE_FREIGHT_FORWARDER\"\n      },\n      {\n        \"id\": 11,\n        \"name\": \"ROLE_FREIGHT_AGGREGATOR\"\n      }\n    ],\n    \"userSignupAction\": \"NONE\"\n  }\n}\n\n</code></pre>\n<hr />\n","_postman_id":"88bdf60c-7e56-4c2d-806a-001623ddaf5f","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}}},{"name":"Freight Disruption Management","item":[{"name":"Check Disruption","id":"7760570e-5265-4963-98b4-f745ed580f19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \r\n\r\n    \"vesselDetails\": { \r\n\r\n        \"imo\": \"9253741\", \r\n\r\n        \"mmsi\": \"310750000\", \r\n\r\n        \"vesselName\": \"MONTREAL EXPRESS\" \r\n\r\n    }, \r\n\r\n    \"shipmentBookingDetail\": { \r\n\r\n        \"shipmentId\": \"SH123456999\", \r\n\r\n        \"containerCount\": \"1\", \r\n\r\n        \"containerDetails\": [ \r\n\r\n            { \r\n\r\n                \"container_id\": \"TCKU7509047\" \r\n\r\n            } \r\n\r\n        ], \r\n\r\n        \"demurrageDays\": \"2\", \r\n\r\n        \"detentionDays\": \"14\", \r\n\r\n        \"shipping_route\": [ \r\n\r\n            { \r\n\r\n                \"modeOfTransport\": \"Ship\", \r\n\r\n                \"departureTimezone\": \"UTC -05:00\", \r\n\r\n                \"departureCountry\": \"Canada\", \r\n\r\n                \"departurePortName\": \"Montreal\", \r\n\r\n                \"departurePortUnlode\": \"CAMTR\", \r\n\r\n                \"scheduledDepartureDateLocal\": \"2025-05-29\", \r\n\r\n                \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n                \"arrivalCountry\": \"United Kingdom\", \r\n\r\n                \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n                \"arrivalPortName\": \"Southampton\", \r\n\r\n                \"arrivalPortUnlocode\": \"GBSOU\", \r\n\r\n                \"scheduledArrivalDateLocal\": \"2025-05-29\", \r\n\r\n                \"scheduledArrivalTimeLocal\": \"16:00:00\", \r\n\r\n                \"legId\": 1 \r\n\r\n            } \r\n\r\n        ] \r\n\r\n    }, \r\n\r\n    \"intermodalFreightBookingDetail\": [ \r\n\r\n        { \r\n\r\n            \"modeOfTransport\": \"Rail\", \r\n\r\n            \"departureTimezone\": \"UTC +01:00\", \r\n\r\n            \"departureCountry\": \"United Kingdom\", \r\n\r\n            \"departatureStation\": \"Southampton\", \r\n\r\n            \"departureStationCode\": \"SOTDWGB\", \r\n\r\n            \"serviceId\": \"string\", \r\n\r\n            \"scheduledDepartureDateLocal\": \"2025-05-28\", \r\n\r\n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n            \"freightOperator\": \"GB Railfreight\", \r\n\r\n            \"arrivalCountry\": \"United Kingdom\", \r\n\r\n            \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n            \"arrivalStation\": \"Hams Hall Gbrf\", \r\n\r\n            \"arrivalStationCode\": \"\", \r\n\r\n            \"scheduledArrivalDateLocal\": \"2025-05-28\", \r\n\r\n            \"scheduledArrivalTimeLocal\": \"16:00:00\", \r\n\r\n            \"legId\": 2 \r\n\r\n        }, \r\n\r\n        { \r\n\r\n            \"modeOfTransport\": \"Road\", \r\n\r\n            \"departureTimezone\": \"UTC +01:00\", \r\n\r\n            \"departureCountry\": \"United Kingdom\", \r\n\r\n            \"scheduledDepartureDateLocal\": \"2024-07-19\", \r\n\r\n            \"departatureLocation\": \"Hams Hall Gbrf\", \r\n\r\n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n            \"arrivalCountry\": \"United Kingdom\", \r\n\r\n            \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n            \"arrivalLocation\": \"Birmingham Freightliner Terminal\", \r\n\r\n            \"scheduledArrivalDateLocal\": \"2024-07-19\", \r\n\r\n            \"scheduledArrivalTimeLocal\": \"23:00:00\", \r\n\r\n            \"legId\": 3 \r\n\r\n        } \r\n\r\n    ], \r\n\r\n    \"cargoDetails\": { \r\n\r\n        \"description\": \"Consumer goods\", \r\n\r\n        \"weight\": \"10,000 kg\", \r\n\r\n        \"dimensions\": \"5m x 4m x 4m\", \r\n\r\n        \"hazardous\": \"false\" \r\n\r\n    }, \r\n\r\n    \"bookingDetails\": { \r\n\r\n        \"bookingReference\": \"BK567890523\", \r\n\r\n        \"bookingStatus\": \"Confirmed\" \r\n\r\n    }, \r\n\r\n    \"customerDetails\": { \r\n\r\n        \"customerName\": \"1201test Electronics Ltd\", \r\n\r\n        \"customerEmail\": \"test@gmail.com\", \r\n\r\n        \"customerReference\": \"IPVGB01201\" \r\n\r\n    } \r\n\r\n} ","options":{"raw":{"language":"json"}}},"url":"https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/checkShipment","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","freight-dcr-service","checkShipment"],"host":["staging-freight-ilekun","ipurvey","com"],"query":[],"variable":[]}},"response":[{"id":"e824ef5d-a148-4d3f-8f54-099134040e6b","name":"Check Disruption","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"YOUR TOKEN","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n\r\n    \"vesselDetails\": { \r\n\r\n        \"imo\": \"9253741\", \r\n\r\n        \"mmsi\": \"310750000\", \r\n\r\n        \"vesselName\": \"MONTREAL EXPRESS\" \r\n\r\n    }, \r\n\r\n    \"shipmentBookingDetail\": { \r\n\r\n        \"shipmentId\": \"SH123456999\", \r\n\r\n        \"containerCount\": \"1\", \r\n\r\n        \"containerDetails\": [ \r\n\r\n            { \r\n\r\n                \"container_id\": \"TCKU7509047\" \r\n\r\n            } \r\n\r\n        ], \r\n\r\n        \"demurrageDays\": \"2\", \r\n\r\n        \"detentionDays\": \"14\", \r\n\r\n        \"shipping_route\": [ \r\n\r\n            { \r\n\r\n                \"modeOfTransport\": \"Ship\", \r\n\r\n                \"departureTimezone\": \"UTC -05:00\", \r\n\r\n                \"departureCountry\": \"Canada\", \r\n\r\n                \"departurePortName\": \"Montreal\", \r\n\r\n                \"departurePortUnlode\": \"CAMTR\", \r\n\r\n                \"scheduledDepartureDateLocal\": \"2025-05-29\", \r\n\r\n                \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n                \"arrivalCountry\": \"United Kingdom\", \r\n\r\n                \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n                \"arrivalPortName\": \"Southampton\", \r\n\r\n                \"arrivalPortUnlocode\": \"GBSOU\", \r\n\r\n                \"scheduledArrivalDateLocal\": \"2025-05-29\", \r\n\r\n                \"scheduledArrivalTimeLocal\": \"16:00:00\", \r\n\r\n                \"legId\": 1 \r\n\r\n            } \r\n\r\n        ] \r\n\r\n    }, \r\n\r\n    \"intermodalFreightBookingDetail\": [ \r\n\r\n        { \r\n\r\n            \"modeOfTransport\": \"Rail\", \r\n\r\n            \"departureTimezone\": \"UTC +01:00\", \r\n\r\n            \"departureCountry\": \"United Kingdom\", \r\n\r\n            \"departatureStation\": \"Southampton\", \r\n\r\n            \"departureStationCode\": \"SOTDWGB\", \r\n\r\n            \"serviceId\": \"string\", \r\n\r\n            \"scheduledDepartureDateLocal\": \"2025-05-28\", \r\n\r\n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n            \"freightOperator\": \"GB Railfreight\", \r\n\r\n            \"arrivalCountry\": \"United Kingdom\", \r\n\r\n            \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n            \"arrivalStation\": \"Hams Hall Gbrf\", \r\n\r\n            \"arrivalStationCode\": \"\", \r\n\r\n            \"scheduledArrivalDateLocal\": \"2025-05-28\", \r\n\r\n            \"scheduledArrivalTimeLocal\": \"16:00:00\", \r\n\r\n            \"legId\": 2 \r\n\r\n        }, \r\n\r\n        { \r\n\r\n            \"modeOfTransport\": \"Road\", \r\n\r\n            \"departureTimezone\": \"UTC +01:00\", \r\n\r\n            \"departureCountry\": \"United Kingdom\", \r\n\r\n            \"scheduledDepartureDateLocal\": \"2024-07-19\", \r\n\r\n            \"departatureLocation\": \"Hams Hall Gbrf\", \r\n\r\n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \r\n\r\n            \"arrivalCountry\": \"United Kingdom\", \r\n\r\n            \"arrivalTimezone\": \"UTC +01:00\", \r\n\r\n            \"arrivalLocation\": \"Birmingham Freightliner Terminal\", \r\n\r\n            \"scheduledArrivalDateLocal\": \"2024-07-19\", \r\n\r\n            \"scheduledArrivalTimeLocal\": \"23:00:00\", \r\n\r\n            \"legId\": 3 \r\n\r\n        } \r\n\r\n    ], \r\n\r\n    \"cargoDetails\": { \r\n\r\n        \"description\": \"Consumer goods\", \r\n\r\n        \"weight\": \"10,000 kg\", \r\n\r\n        \"dimensions\": \"5m x 4m x 4m\", \r\n\r\n        \"hazardous\": \"false\" \r\n\r\n    }, \r\n\r\n    \"bookingDetails\": { \r\n\r\n        \"bookingReference\": \"BK567890523\", \r\n\r\n        \"bookingStatus\": \"Confirmed\" \r\n\r\n    }, \r\n\r\n    \"customerDetails\": { \r\n\r\n        \"customerName\": \"1201test Electronics Ltd\", \r\n\r\n        \"customerEmail\": \"test@gmail.com\", \r\n\r\n        \"customerReference\": \"IPVGB01201\" \r\n\r\n    } \r\n\r\n} ","options":{"raw":{"language":"json"}}},"url":{"raw":"https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/checkShipment","protocol":"https","host":["staging-freight-ilekun","ipurvey","com"],"path":["v1","freight-dcr-service","checkShipment"],"query":[{"key":"Authorization","value":"eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpcHVydmV5Iiwic3ViIjoiam9yemFrb2xtYUBndWZ1bS5jb20iLCJhdWQiOiJ3ZWIiLCJpYXQiOjE3NTQ1MDkzOTEsImV4cCI6MTc1NDUxMjM5MX0.uhzHatgnn98VeQTso6oseyw6pPqDwxdGTxfr6lELDajR-anxri4c5L6YwtpV71ELk7fCc2D7foty9CyQYpAYJg","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 06 Aug 2025 19:54:03 GMT"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"description\": \"Shipment submitted successfully\",\n    \"ipvReference\": \"IPFXX7S2508060000231\"\n}"}],"_postman_id":"7760570e-5265-4963-98b4-f745ed580f19"},{"name":"Count Shipment","id":"3fbdf599-90fd-4faa-aae1-d4b8a775bb7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/countShipmentRecords?customerEmail=kiydofofyo%2540gufum.com'","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","freight-dcr-service","countShipmentRecords"],"host":["staging-freight-ilekun","ipurvey","com"],"query":[{"key":"customerEmail","value":"kiydofofyo%2540gufum.com'"}],"variable":[]}},"response":[{"id":"0dba4b49-b8bc-4a73-a2e5-9dde618317fd","name":"Count Shipment","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/countShipmentRecords?customerEmail=kiydofofyo%2540gufum.com'","protocol":"https","host":["staging-freight-ilekun","ipurvey","com"],"path":["v1","freight-dcr-service","countShipmentRecords"],"query":[{"key":"customerEmail","value":"kiydofofyo%2540gufum.com'"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 14:33:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalShipments\": 0,\n    \"lastMonthShipments\": 0,\n    \"shipmentPercentage\": \"0%\",\n    \"totalDelayedShipments\": 0,\n    \"lastMonthDelayedShipments\": 0,\n    \"delayedShipmentPercentage\": \"0%\",\n    \"totalCancelledShipments\": 0,\n    \"lastMonthCancelledShipments\": 0,\n    \"cancelledShipmentsPercentage\": \"0%\",\n    \"totalOnTimeShipments\": 0,\n    \"lastMonthOnTimeShipments\": 0,\n    \"onTimeShipmentsPercentage\": \"0%\"\n}"}],"_postman_id":"3fbdf599-90fd-4faa-aae1-d4b8a775bb7c"}],"id":"030b86c7-e7c1-43ac-81dd-2580941c04df","description":"<h2 id=\"check-shipment\">Check Shipment</h2>\n<p>This API is used to track disruption. It submits a single shipment record to verify eligibility for <strong>travel disruption</strong> compensation and request compensation. The <code>accessToken</code> must be obtained from the <strong>Generate Client Token API</strong>.</p>\n<hr />\n<h3 id=\"http-request\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/checkShipment\n\n</code></pre><hr />\n<h3 id=\"sample-curl-request\">Sample cURL Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/checkShipment' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: {{YOUR TOKEN}}' \\\n--data-raw '{ \n    \"vesselDetails\": { \n        \"imo\": \"9253741\", \n        \"mmsi\": \"310750000\", \n        \"vesselName\": \"MONTREAL EXPRESS\" \n    }, \n    \"shipmentBookingDetail\": { \n        \"shipmentId\": \"SH123456999\", \n        \"containerCount\": \"1\", \n        \"containerDetails\": [ \n            { \n                \"container_id\": \"TCKU7509047\" \n            } \n        ], \n        \"demurrageDays\": \"2\", \n        \"detentionDays\": \"14\", \n        \"shipping_route\": [ \n            { \n                \"modeOfTransport\": \"Ship\", \n                \"departureTimezone\": \"UTC -05:00\", \n                \"departureCountry\": \"Canada\", \n                \"departurePortName\": \"Montreal\", \n                \"departurePortUnlode\": \"CAMTR\", \n                \"scheduledDepartureDateLocal\": \"2025-05-29\", \n                \"scheduledDepartureTimeLocal\": \"16:00:00\", \n                \"arrivalCountry\": \"United Kingdom\", \n                \"arrivalTimezone\": \"UTC +01:00\", \n                \"arrivalPortName\": \"Southampton\", \n                \"arrivalPortUnlocode\": \"GBSOU\", \n                \"scheduledArrivalDateLocal\": \"2025-05-29\", \n                \"scheduledArrivalTimeLocal\": \"16:00:00\", \n                \"legId\": 1 \n            } \n        ] \n    }, \n    \"intermodalFreightBookingDetail\": [ \n        { \n            \"modeOfTransport\": \"Rail\", \n            \"departureTimezone\": \"UTC +01:00\", \n            \"departureCountry\": \"United Kingdom\", \n            \"departatureStation\": \"Southampton\", \n            \"departureStationCode\": \"SOTDWGB\", \n            \"serviceId\": \"string\", \n            \"scheduledDepartureDateLocal\": \"2025-05-28\", \n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \n            \"freightOperator\": \"GB Railfreight\", \n            \"arrivalCountry\": \"United Kingdom\", \n            \"arrivalTimezone\": \"UTC +01:00\", \n            \"arrivalStation\": \"Hams Hall Gbrf\", \n            \"arrivalStationCode\": \"\", \n            \"scheduledArrivalDateLocal\": \"2025-05-28\", \n            \"scheduledArrivalTimeLocal\": \"16:00:00\", \n            \"legId\": 2 \n        }, \n        { \n            \"modeOfTransport\": \"Road\", \n            \"departureTimezone\": \"UTC +01:00\", \n            \"departureCountry\": \"United Kingdom\", \n            \"scheduledDepartureDateLocal\": \"2024-07-19\", \n            \"departatureLocation\": \"Hams Hall Gbrf\", \n            \"scheduledDepartureTimeLocal\": \"16:00:00\", \n            \"arrivalCountry\": \"United Kingdom\", \n            \"arrivalTimezone\": \"UTC +01:00\", \n            \"arrivalLocation\": \"Birmingham Freightliner Terminal\", \n            \"scheduledArrivalDateLocal\": \"2024-07-19\", \n            \"scheduledArrivalTimeLocal\": \"23:00:00\", \n            \"legId\": 3 \n        } \n    ], \n    \"cargoDetails\": { \n        \"description\": \"Consumer goods\", \n        \"weight\": \"10,000 kg\", \n        \"dimensions\": \"5m x 4m x 4m\", \n        \"hazardous\": \"false\" \n    }, \n    \"bookingDetails\": { \n        \"bookingReference\": \"BK567890523\", \n        \"bookingStatus\": \"Confirmed\" \n    }, \n    \"customerDetails\": { \n        \"customerName\": \"1201test Electronics Ltd\", \n        \"customerEmail\": \"test@gmail.com\", \n        \"customerReference\": \"IPVGB01201\" \n    } \n} '\n\n</code></pre>\n<hr />\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>vesselDetails.imo</code></td>\n<td>string</td>\n<td>Unique vessel ID (e.g., IMO9619907)</td>\n</tr>\n<tr>\n<td><code>vesselDetails.mmsi</code></td>\n<td>string</td>\n<td>Maritime Mobile Service Identity</td>\n</tr>\n<tr>\n<td><code>vesselDetails.vesselName</code></td>\n<td>string</td>\n<td>Name of the vessel</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.shipmentId</code></td>\n<td>string</td>\n<td>Shipment identifier</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.containerCount</code></td>\n<td>integer</td>\n<td>Number of containers</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.containerDetails[].container_id</code></td>\n<td>string</td>\n<td>Unique container ID (e.g., TCKU7509030)</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.demurrageDays</code></td>\n<td>integer</td>\n<td>Port storage penalty days</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.detentionDays</code></td>\n<td>integer</td>\n<td>Container usage penalty days</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.shipping_route[].modeOfTransport</code></td>\n<td>string</td>\n<td>E.g., Ship, Road, Rail</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.shipping_route[].departureTimezone</code></td>\n<td>string</td>\n<td>Local timezone of departure port</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.shipping_route[].departureCountry</code></td>\n<td>string</td>\n<td>Departure country</td>\n</tr>\n<tr>\n<td><code>shipmentBookingDetail.shipping_route[].departurePortName</code></td>\n<td>string</td>\n<td>Departure port name</td>\n</tr>\n<tr>\n<td><code>shipping_route[].departurePortUnlode</code></td>\n<td>string</td>\n<td>UNLOCODE of departure port</td>\n</tr>\n<tr>\n<td><code>shipping_route[].scheduledDepartureDateLocal</code></td>\n<td>string</td>\n<td>Scheduled departure date</td>\n</tr>\n<tr>\n<td><code>shipping_route[].scheduledDepartureTimeLocal</code></td>\n<td>string</td>\n<td>Scheduled departure time</td>\n</tr>\n<tr>\n<td><code>shipping_route[].arrivalCountry</code></td>\n<td>string</td>\n<td>Arrival country</td>\n</tr>\n<tr>\n<td><code>shipping_route[].arrivalTimezone</code></td>\n<td>string</td>\n<td>Arrival timezone</td>\n</tr>\n<tr>\n<td><code>shipping_route[].arrivalPortName</code></td>\n<td>string</td>\n<td>name of Arrival port</td>\n</tr>\n<tr>\n<td><code>shipping_route[].arrivalPortUnlocode</code></td>\n<td>string</td>\n<td>UNLOCODE of arrival port</td>\n</tr>\n<tr>\n<td><code>shipping_route[].scheduledArrivalDateLocal</code></td>\n<td>string</td>\n<td>Arrival date (local)</td>\n</tr>\n<tr>\n<td><code>shipping_route[].scheduledArrivalTimeLocal</code></td>\n<td>string</td>\n<td>Arrival time  <br />(local)</td>\n</tr>\n<tr>\n<td><code>shipping_route[].legId</code></td>\n<td>integer</td>\n<td>Sequence number of shipping leg</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].modeOfTransport</code></td>\n<td>string</td>\n<td>mode of transport</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].departureTimezone</code></td>\n<td>string</td>\n<td>time zone</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].departureCountry</code></td>\n<td>string</td>\n<td>departure country</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].departureStation</code></td>\n<td>string</td>\n<td>station of departure</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].departureStationCode</code></td>\n<td>string</td>\n<td>code of departure station</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].serviceid</code></td>\n<td>string</td>\n<td>service id</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].scheduledDepartureDateLocal</code></td>\n<td>string</td>\n<td>scheduled departure date</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].scheduledDepartureTimeLocal</code></td>\n<td>string</td>\n<td>scheduled departure time</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].freightOperator</code></td>\n<td>string</td>\n<td>freight operator</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].arrivalCountry</code></td>\n<td>string</td>\n<td>arrival country</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].arrivalTimezone</code></td>\n<td>string</td>\n<td>arrival time zone</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].arrivalstation</code></td>\n<td>string</td>\n<td>arrival station</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].arrivalStationCode</code></td>\n<td>string</td>\n<td>arrival station code</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].scheduledArrivalDateLocal</code></td>\n<td>string</td>\n<td>scheduled arrival date local</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].scheduledArrivalTimeLocal</code></td>\n<td>string</td>\n<td>scheduled arrival time</td>\n</tr>\n<tr>\n<td><code>intermodalFreightBookingDetail[].legid</code></td>\n<td>string</td>\n<td>leg id</td>\n</tr>\n<tr>\n<td><code>cargoDetails.description</code></td>\n<td>string</td>\n<td>Type of goods being shipped</td>\n</tr>\n<tr>\n<td><code>cargoDetails.weight</code></td>\n<td>string</td>\n<td>Weight in kg</td>\n</tr>\n<tr>\n<td><code>cargoDetails.dimensions</code></td>\n<td>string</td>\n<td>L × W × H</td>\n</tr>\n<tr>\n<td><code>cargoDetails.hazardous</code></td>\n<td>boolean</td>\n<td>Indicates hazardous goods</td>\n</tr>\n<tr>\n<td><code>bookingDetails.bookingReference</code></td>\n<td>string</td>\n<td>Booking reference number</td>\n</tr>\n<tr>\n<td><code>bookingDetails.bookingStatus</code></td>\n<td>string</td>\n<td>Status (e.g., Confirmed)</td>\n</tr>\n<tr>\n<td><code>customerDetails.customerName</code></td>\n<td>string</td>\n<td>Customer name</td>\n</tr>\n<tr>\n<td><code>customerDetails.customerEmail</code></td>\n<td>string</td>\n<td>Email address</td>\n</tr>\n<tr>\n<td><code>customerDetails.customerReference</code></td>\n<td>string</td>\n<td>Internal reference code</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"success-response\">Success Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"statusCode\": 200,\n  \"description\": \"Shipment submitted successfully\"\n  \"ipvReference\": \"IPFXX7S2508060000231\"\n}\n\n</code></pre><hr />\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th><strong>Type</strong></th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status_code</code></td>\n<td>string</td>\n<td>request status code</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>description of request</td>\n</tr>\n<tr>\n<td><code>ipvReference</code></td>\n<td>string</td>\n<td>Ipurvey reference</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"freight-disruption-management-webhook\">Freight Disruption Management Webhook</h2>\n<h3 id=\"purpose\"><strong>Purpose</strong></h3>\n<p>The <strong>Freight Disruption Management Webhook</strong> allows iPurvey to proactively notify your system of <strong>shipment delays</strong> and provide <strong>AI-recommended intermodal rebooking options</strong>. Upon receiving a request, your server should respond with a status code of 200 to confirm the successful receipt of the payload.</p>\n<p>You can also choose to include a unique identifier or key with each request to make it easier to track responses on your end. This identifier will be appended to the request, allowing you to correlate the response with the original request. If you have any preferences or suggestions regarding the integration, feel free to discuss them with us.</p>\n<hr />\n<h3 id=\"webhook-url-format\"><strong>Webhook URL Format</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://{your-server-address}/{service-name}/{endpoint-name}\n\n</code></pre><hr />\n<h3 id=\"sample-webhook-response\">Sample Webhook Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"ipvReference\": \"IPFXX7S2409040000011\",    \n    \"headerText\": \"Our system has proactively identified a disruption to below  intermodal freight booking. Your vessel is now scheduled to arrive at Felixstowe 08-09-2024 at 14:30. Constituting a 2 days 22 hours delay. To mitigate the impact of this disruption, we recommend rebooking your 10 containers on one or more of the recommended freight services below. We have also provided the potential CO2 emissions savings of using freight trains for your shipment instead of road transport.\",\n    \"prediction\": {\n        \"status\": \"Delay\", \n        \"statusDescription\": \"Delay occurred in vessel journey!\",\n        \"estimatedArrivalTime\": \"2024-09-08T14:30:00Z\",\n        \"predictedDelayHour\": \"4 days 10 hours delay\"\n    },\n    \"vesselDetails\": {\n        \"imo\": \"9417951\",\n        \"shipmentId\": \"SH123456777\",\n        \"departureLocation\": \"Port Of Singapore\",\n        \"departureDate\": \"09-08-2024\",\n        \"departureTime\": \"23:17\",\n        \"arrivalLocation\": \"Felixstowe\",\n        \"arrivalDate\": \"04-09-2024\",\n        \"arrivalTime\": \"16:30:00\",\n        \"containerCount\": 10\n    },\n    \"freightDetails\": {\n        \"trainOperator\": \"GB Railfreight\",\n        \"departureLocation\": \"Felixstowe\",\n        \"trainDepartureDate\": \"04-09-2024\",\n        \"trainDepartureTime\": \"17:35\",\n        \"trainArrivalLocation\": \"Hams Half Gbrf\",\n        \"trainArrivalDate\": \"04-09-2024\",\n        \"trainArrivalTime\": \"21:35\"\n    },\n    \"recommendations\": [\n        {\n            \"preferenceGroupDescription\": \"Lowest CO2 Emission\",\n            \"preferenceGroupDetails\": [\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"10-09-2024\",\n                    \"freightTrainDepartureTime\": \"00:45\",\n                    \"freightTrainArrivalLocation\": \"Masborough N&amp;W Gbrf\",\n                    \"freightTrainArrivalDate\": \"10-09-2024\",\n                    \"freightTrainArrivalTime\": \"08:45\",\n                    \"recommendedContainerCount\": 8,\n                    \"customerPreferenceWeighting\": 0.62,\n                    \"emissionImpact\": \"68.25%\"\n                },\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"10-09-2024\",\n                    \"freightTrainDepartureTime\": \"10:36\",\n                    \"freightTrainArrivalLocation\": \"Hams Half Gbrf\",\n                    \"freightTrainArrivalDate\": \"04-09-2024\",\n                    \"freightTrainArrivalTime\": \"16:36\",\n                    \"recommendedContainerCount\": 2,\n                    \"customerPreferenceWeighting\": 0.62,\n                    \"emissionImpact\": \"25.25%\"\n                }\n            ]\n        },\n        {\n            \"preferenceGroupDescription\": \"Earliest Arrival Train\",\n            \"preferenceGroupDetails\": [\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"04-09-2024\",\n                    \"freightTrainDepartureTime\": \"00:45\",\n                    \"freightTrainArrivalLocation\": \"Masborough N&amp;W Gbrf\",\n                    \"freightTrainArrivalDate\": \"04-09-2024\",\n                    \"freightTrainArrivalTime\": \"08:45\",\n                    \"recommendedContainerCount\": 8,\n                    \"customerPreferenceWeighting\": 0.38,\n                    \"emissionImpact\": \"25.25%\"\n                },\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"04-09-2024\",\n                    \"freightTrainDepartureTime\": \"01:38\",\n                    \"freightTrainArrivalLocation\": \"Masborough N&amp;W Gbrf\",\n                    \"freightTrainArrivalDate\": \"04-09-2024\",\n                    \"freightTrainArrivalTime\": \"08:45\",\n                    \"recommendedContainerCount\": 2,\n                    \"customerPreferenceWeighting\": 0.38,\n                    \"emissionImpact\": \"68.25%\"\n                }\n            ]\n        },\n        {\n            \"preferenceGroupDescription\": \"Same Train Destination\",\n            \"preferenceGroupDetails\": [\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"04-09-2024\",\n                    \"freightTrainDepartureTime\": \"00:45\",\n                    \"freightTrainArrivalLocation\": \"Masborough N&amp;W Gbrf\",\n                    \"freightTrainArrivalDate\": \"04-09-2024\",\n                    \"freightTrainArrivalTime\": \"08:45\",\n                    \"recommendedContainerCount\": 8,\n                    \"customerPreferenceWeighting\": 0.21,\n                    \"emissionImpact\": \"25.25%\"\n                },\n                {\n                    \"trainOperator\": \"GB Railfreight\",\n                    \"trainServiceId\": \"5546180\",\n                    \"freightTrainDepartureDate\": \"04-09-2024\",\n                    \"freightTrainDepartureTime\": \"01:38\",\n                    \"freightTrainArrivalLocation\": \"Masborough N&amp;W Gbrf\",\n                    \"freightTrainArrivalDate\": \"04-09-2024\",\n                    \"freightTrainArrivalTime\": \"08:45\",\n                    \"recommendedContainerCount\": 2,\n                    \"customerPreferenceWeighting\": 0.21,\n                    \"emissionImpact\": \"68.25%\"\n                }\n            ]\n        }\n    ]\n}\n\n</code></pre>\n<hr />\n<h3 id=\"field-descriptions\">Field Descriptions</h3>\n<h4 id=\"top-level-fields\"><strong>Top-Level Fields</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ipvReference</code></td>\n<td>string</td>\n<td>Unique identifier assigned by iPurvey to this disruption notification.</td>\n</tr>\n<tr>\n<td><code>headerText</code></td>\n<td>string</td>\n<td>Detailed description of vessel status and intermodal freight recommendations</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"prediction\"><strong>prediction</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Prediction status (<code>Delay</code>, <code>No Delay</code>, <code>Error Occurred</code>, <code>Journey Completed</code>).</td>\n</tr>\n<tr>\n<td><code>statusDescription</code></td>\n<td>string</td>\n<td>Explanation of the disruption.</td>\n</tr>\n<tr>\n<td><code>estimatedArrivalTime</code></td>\n<td>datetime</td>\n<td>Revised expected arrival time (ISO 8601 format).</td>\n</tr>\n<tr>\n<td><code>predictedDelayHour</code></td>\n<td>string</td>\n<td>Delay estimate.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"vesseldetails\"><strong>vesselDetails</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>imo</code></td>\n<td>string</td>\n<td>IMO number uniquely identifying the vessel. Composed of three letters followed by a seven-digit number. e.g IMO9619907</td>\n</tr>\n<tr>\n<td><code>shipmentId</code></td>\n<td>string</td>\n<td>Shipment identifier.</td>\n</tr>\n<tr>\n<td><code>departureLocation</code> / <code>arrivalLocation</code></td>\n<td>string</td>\n<td>Port names.</td>\n</tr>\n<tr>\n<td><code>departureDate</code> / <code>arrivalDate</code></td>\n<td>date</td>\n<td>Local date of departure/arrival.</td>\n</tr>\n<tr>\n<td><code>departureTime</code> / <code>arrivalTime</code></td>\n<td>time</td>\n<td>Local time of departure/arrival.</td>\n</tr>\n<tr>\n<td><code>containerCount</code></td>\n<td>integer</td>\n<td>Number of containers in the shipment.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"freightdetails\"><strong>freightDetails</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>trainOperator</code></td>\n<td>string</td>\n<td>Name of the freight rail operator.</td>\n</tr>\n<tr>\n<td><code>departureLocation</code> / <code>trainArrivalLocation</code></td>\n<td>string</td>\n<td>Locations for rail leg.</td>\n</tr>\n<tr>\n<td><code>trainDepartureDate</code> / <code>trainArrivalDate</code></td>\n<td>date</td>\n<td>Rail departure and arrival dates.</td>\n</tr>\n<tr>\n<td><code>trainDepartureTime</code> / <code>trainArrivalTime</code></td>\n<td>time</td>\n<td>Rail departure and arrival times.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"recommendations\"><strong>recommendations[]</strong></h4>\n<p>Each item groups rail freight options based on customer preferences, such as CO2 savings and speed.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>preferenceGroupDescription</code></td>\n<td>string</td>\n<td>Group title (e.g., \"Lowest CO2 Emission\", \"Earliest Arrival Train\").</td>\n</tr>\n<tr>\n<td><code>preferenceGroupDetails[]</code></td>\n<td>array</td>\n<td>List of train options in this preference group.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Each <code>preferenceGroupDetails</code> item:</p>\n<ul>\n<li><p><code>trainOperator</code>: string – Name of operator</p>\n</li>\n<li><p><code>trainServiceId</code>: string – Unique ID of the train service</p>\n</li>\n<li><p><code>freightTrainDepartureDate/Time</code> &amp; <code>ArrivalDate/Time</code>: date/time – Schedule info</p>\n</li>\n<li><p><code>freightTrainArrivalLocation</code>: string – Destination</p>\n</li>\n<li><p><code>recommendedContainerCount</code>: integer – Containers suggested for this route</p>\n</li>\n<li><p><code>customerPreferenceWeighting</code>: float – Customer’s preference score (e.g., 0.62). It is the weighting allocated to the customer recommendation preference group.</p>\n</li>\n<li><p><code>emissionImpact:</code>string – Estimated CO₂ savings. It indicates the <strong>percentage of CO₂ emissions saved</strong> when using the <strong>recommended intermodal freight.</strong></p>\n</li>\n</ul>\n<h2 id=\"count-shipment\">Count Shipment</h2>\n<p>This API retrieves the <strong>total count</strong> of shipment submission records for a specific customer. It also provides key performance metrics including:</p>\n<ul>\n<li><p>Shipments in the <strong>last month</strong></p>\n</li>\n<li><p><strong>Delayed</strong> shipments overall and in the last month</p>\n</li>\n<li><p><strong>Cancelled</strong> shipments overall and in the last month</p>\n</li>\n<li><p><strong>On-time</strong> shipments overall and in the last month</p>\n</li>\n</ul>\n<p>This is essential for monitoring shipping reliability and trends of disruptions.</p>\n<h3 id=\"http-request-1\"><strong>HTTP Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/countShipmentRecords?customerEmail=kiydofofyo@gufum.com\n\n</code></pre><h3 id=\"query-parameter\"><strong>Query Parameter</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customerEmail</td>\n<td>string</td>\n<td>URL-encoded customer email.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Postman usually <strong>auto-encodes</strong> values when you enter them in the <strong>Params</strong> section</p>\n<h3 id=\"sample-request\"><strong>Sample Request</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://staging-freight-ilekun.ipurvey.com/v1/freight-dcr-service/countShipmentRecords?customerEmail=kiydofofyo@gufum.com'\n\n</code></pre>\n<h3 id=\"sample-response\"><strong>Sample Response</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"totalShipments\": 0,\n  \"lastMonthShipments\": 0,\n  \"shipmentPercentage\": \"0%\",\n  \"totalDelayedShipments\": 0,\n  \"lastMonthDelayedShipments\": 0,\n  \"delayedShipmentPercentage\": \"0%\",\n  \"totalCancelledShipments\": 0,\n  \"lastMonthCancelledShipments\": 0,\n  \"cancelledShipmentsPercentage\": \"0%\",\n  \"totalOnTimeShipments\": 0,\n  \"lastMonthOnTimeShipments\": 0,\n  \"onTimeShipmentsPercentage\": \"0%\"\n}\n\n</code></pre>\n<h3 id=\"response-fields-1\"><strong>Response Fields</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>totalShipments</code></td>\n<td>int</td>\n<td>Total shipments submitted</td>\n</tr>\n<tr>\n<td><code>lastMonthShipments</code></td>\n<td>int</td>\n<td>Shipments submitted in the last month</td>\n</tr>\n<tr>\n<td><code>shipmentPercentage</code></td>\n<td>string</td>\n<td>% of shipments submitted last month vs total</td>\n</tr>\n<tr>\n<td><code>totalDelayedShipments</code></td>\n<td>int</td>\n<td>Total delayed shipments</td>\n</tr>\n<tr>\n<td><code>lastMonthDelayedShipments</code></td>\n<td>int</td>\n<td>Delayed shipments in the last month</td>\n</tr>\n<tr>\n<td><code>delayedShipmentPercentage</code></td>\n<td>string</td>\n<td>% of delays last month vs total delays</td>\n</tr>\n<tr>\n<td><code>totalCancelledShipments</code></td>\n<td>int</td>\n<td>Total cancelled shipments</td>\n</tr>\n<tr>\n<td><code>lastMonthCancelledShipments</code></td>\n<td>int</td>\n<td>Cancelled shipments in the last month</td>\n</tr>\n<tr>\n<td><code>cancelledShipmentsPercentage</code></td>\n<td>string</td>\n<td>% of cancellations last month vs total</td>\n</tr>\n<tr>\n<td><code>totalOnTimeShipments</code></td>\n<td>int</td>\n<td>Total shipments delivered on time</td>\n</tr>\n<tr>\n<td><code>lastMonthOnTimeShipments</code></td>\n<td>int</td>\n<td>On-time deliveries in the last month</td>\n</tr>\n<tr>\n<td><code>onTimeShipmentsPercentage</code></td>\n<td>string</td>\n<td>% of on-time deliveries last month vs total</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<hr />\n","_postman_id":"030b86c7-e7c1-43ac-81dd-2580941c04df","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}}},{"name":"Travel Disruption Management","item":[{"name":"Request Compensation","id":"35edcfdd-6758-4648-a2d4-d5274e44d564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"X-API-KEY","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"request\": [\r\n    {\r\n      \"flightInfo\": {\r\n        \"bookingReference\": \"62XTVW\"\r\n      },\r\n      \"journey\": [\r\n        {\r\n          \"departureDetails\": {\r\n            \"airportCode\": \"YYZ\",\r\n            \"airportName\": \"LESTER B PEARSON INTL\",\r\n            \"dateLocal\": \"2024-04-05\",\r\n            \"timeLocal\": \"21:45\"\r\n          },\r\n          \"arrivalDetails\": {\r\n            \"airportCode\": \"IST\",\r\n            \"airportName\": \"Istanbul airport\"\r\n          },\r\n          \"carrierCode\": \"TK\",\r\n          \"carrierName\": \"Turkish Airline\",\r\n          \"flightNumber\": \"TK18\",\r\n          \"legId\": \"1\"\r\n        }\r\n      ],\r\n      \"passengers\": {\r\n        \"passengerNames\": [\r\n          {\r\n            \"firstName\": \"JULIET CHINYERE\",\r\n            \"lastName\": \" IBE\"\r\n          }\r\n        ]\r\n      },\r\n      \"scheduledArrivalDate\": \"2024-04-06\",\r\n      \"scheduledArrivalTime\": \"21:45\",\r\n      \"transit\":false\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dev-ilekun-ipv.ipurvey.com/orchestrator/flight/booking/requests/oneAndThree\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["orchestrator","flight","booking","requests","oneAndThree\n"],"host":["dev-ilekun-ipv","ipurvey","com"],"query":[],"variable":[]}},"response":[{"id":"de84dbae-b056-4610-8d56-f6beea375e48","name":"Direct Flight","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{YOUR-X-API-KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"request\": [\r\n    {\r\n      \"flightInfo\": {\r\n        \"bookingReference\": \"62XTVW\"\r\n      },\r\n      \"journey\": [\r\n        {\r\n          \"departureDetails\": {\r\n            \"airportCode\": \"YYZ\",\r\n            \"airportName\": \"LESTER B PEARSON INTL\",\r\n            \"dateLocal\": \"2024-04-05\",\r\n            \"timeLocal\": \"21:45\"\r\n          },\r\n          \"arrivalDetails\": {\r\n            \"airportCode\": \"IST\",\r\n            \"airportName\": \"Istanbul airport\"\r\n          },\r\n          \"carrierCode\": \"TK\",\r\n          \"carrierName\": \"Turkish Airline\",\r\n          \"flightNumber\": \"TK18\",\r\n          \"legId\": \"1\"\r\n        },\r\n        {\r\n          \"departureDetails\": {\r\n            \"airportCode\": \"IST\",\r\n            \"airportName\": \"Istanbul airport\",\r\n            \"dateLocal\": \"2024-04-06\",\r\n            \"timeLocal\": \"16:50\"\r\n          },\r\n          \"arrivalDetails\": {\r\n            \"airportCode\": \"COO\",\r\n            \"airportName\": \"Cotonou Airport\"\r\n          },\r\n          \"carrierCode\": \"TK\",\r\n          \"carrierName\": \"Turkish Airline\",\r\n          \"flightNumber\": \"TK557\",\r\n          \"legId\": \"2\"\r\n        }\r\n      ],\r\n      \"passengers\": {\r\n        \"passengerNames\": [\r\n          {\r\n            \"firstName\": \"JULIET CHINYERE\",\r\n            \"lastName\": \" IBE\"\r\n          }\r\n        ]\r\n      },\r\n      \"scheduledArrivalDate\": \"2024-04-06\",\r\n      \"scheduledArrivalTime\": \"21:45\",\r\n      \"transit\": true\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dev-ilekun-ipv.ipurvey.com/orchestrator/flight/booking/requests/b2b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 22 Apr 2025 21:41:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"batchNo\": \"f4f33700-c1ad-405b-a444-69ff5dc64835\",\n    \"message\": \"Request submitted for processing\"\n}"},{"id":"7cfecdf8-993f-42fc-a03d-53015bb8f50e","name":"Transit Flight","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"2xcdOdezKZBk6wTeikhPMh83NmY-vutei5rvXCRkm9A","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"request\": [\r\n    {\r\n      \"flightInfo\": {\r\n        \"bookingReference\": \"62XTVW\"\r\n      },\r\n      \"journey\": [\r\n        {\r\n          \"departureDetails\": {\r\n            \"airportCode\": \"YYZ\",\r\n            \"airportName\": \"LESTER B PEARSON INTL\",\r\n            \"dateLocal\": \"2024-04-05\",\r\n            \"timeLocal\": \"21:45\"\r\n          },\r\n          \"arrivalDetails\": {\r\n            \"airportCode\": \"IST\",\r\n            \"airportName\": \"Istanbul airport\"\r\n          },\r\n          \"carrierCode\": \"TK\",\r\n          \"carrierName\": \"Turkish Airline\",\r\n          \"flightNumber\": \"TK18\",\r\n          \"legId\": \"1\"\r\n        }\r\n      ],\r\n      \"passengers\": {\r\n        \"passengerNames\": [\r\n          {\r\n            \"firstName\": \"JULIET CHINYERE\",\r\n            \"lastName\": \" IBE\"\r\n          }\r\n        ]\r\n      },\r\n      \"scheduledArrivalDate\": \"2024-04-06\",\r\n      \"scheduledArrivalTime\": \"21:45\",\r\n      \"transit\":false\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://dev-ilekun-ipv.ipurvey.com/orchestrator/flight/booking/requests/b2b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 23 Apr 2025 16:32:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"}],"cookie":[],"responseTime":null,"body":"{\n    \"batchNo\": \"34c034ee-e42a-4a21-86c2-58a2a05bd992\",\n    \"message\": \"Request submitted for processing\"\n}"}],"_postman_id":"35edcfdd-6758-4648-a2d4-d5274e44d564"}],"id":"3101e7ef-ea79-4d0f-89f0-4c1e5cd4e187","description":"<h2 id=\"request-compensation\">Request Compensation</h2>\n<p>This API allows partners to submit one or more travel itineraries to verify eligibility for travel disruption compensation and request compensation. It caters for transit flights and non-transit flights by setting the <code>transit</code> field in your request body to either <strong>true</strong> or <strong>false</strong>. To authenticate your requests, include the <code>x-api-key</code> provided during registration in your request headers.</p>\n<h3 id=\"http-request\">HTTP Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>POST https://dev-ilekun-ipv.ipurvey.com/orchestrator/flight/booking/requests/b2b\n\n</code></pre><hr />\n<h3 id=\"request-body\">Request Body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">{\n  \"request\": [\n    {\n      \"flightInfo\": {\n        \"bookingReference\": \"62XTVW\"\n      },\n      \"journey\": [\n        {\n          \"departureDetails\": {\n            \"airportCode\": \"YYZ\",\n            \"airportName\": \"LESTER B PEARSON INTL\",\n            \"dateLocal\": \"2024-04-05\",\n            \"timeLocal\": \"21:45\"\n          },\n          \"arrivalDetails\": {\n            \"airportCode\": \"IST\",\n            \"airportName\": \"Istanbul airport\"\n          },\n          \"carrierCode\": \"TK\",\n          \"carrierName\": \"Turkish Airline\",\n          \"flightNumber\": \"TK18\",\n          \"legId\": \"1\"\n        }\n      ],\n      \"passengers\": {\n        \"passengerNames\": [\n          {\n            \"firstName\": \"JULIET CHINYERE\",\n            \"lastName\": \"IBE\"\n          }\n        ]\n      },\n      \"scheduledArrivalDate\": \"2024-04-06\",\n      \"scheduledArrivalTime\": \"21:45\",\n      \"transit\": true\n    }\n  ]\n}\n\n</code></pre>\n<hr />\n<h3 id=\"request-body-fields\">Request Body Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>flightInfo.bookingReference</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Flight booking reference</td>\n</tr>\n<tr>\n<td><code>journey[].departureDetails.airportCode</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>IATA code of departure airport</td>\n</tr>\n<tr>\n<td><code>journey[].departureDetails.airportName</code></td>\n<td>string</td>\n<td>No</td>\n<td>Name of the departure airport</td>\n</tr>\n<tr>\n<td><code>journey[].departureDetails.dateLocal</code></td>\n<td>date</td>\n<td>Yes</td>\n<td>Scheduled local departure date</td>\n</tr>\n<tr>\n<td><code>journey[].departureDetails.timeLocal</code></td>\n<td>time</td>\n<td>Yes</td>\n<td>Scheduled local departure time</td>\n</tr>\n<tr>\n<td><code>journey[].arrivalDetails.airportCode</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>IATA code of arrival airport</td>\n</tr>\n<tr>\n<td><code>journey[].arrivalDetails.airportName</code></td>\n<td>string</td>\n<td>No</td>\n<td>Name of the arrival airport</td>\n</tr>\n<tr>\n<td><code>journey[].carrierCode</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Airline IATA code</td>\n</tr>\n<tr>\n<td><code>journey[].carrierName</code></td>\n<td>string</td>\n<td>No</td>\n<td>Airline name</td>\n</tr>\n<tr>\n<td><code>journey[].flightNumber</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Flight number</td>\n</tr>\n<tr>\n<td><code>journey[].legId</code></td>\n<td>enum</td>\n<td>Yes</td>\n<td>Sequential number for journey leg (1, 2, ...)</td>\n</tr>\n<tr>\n<td><code>passengers.passengerNames[].firstName</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Passenger's first name</td>\n</tr>\n<tr>\n<td><code>passengers.passengerNames[].lastName</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Passenger's last name</td>\n</tr>\n<tr>\n<td><code>scheduledArrivalDate</code></td>\n<td>date</td>\n<td>Yes</td>\n<td>Scheduled local arrival date</td>\n</tr>\n<tr>\n<td><code>scheduledArrivalTime</code></td>\n<td>time</td>\n<td>Yes</td>\n<td>Scheduled local arrival time</td>\n</tr>\n<tr>\n<td><code>transit</code></td>\n<td>boolean</td>\n<td>Yes</td>\n<td><code>true</code> if journey involves multiple legs; <code>false</code> if direct flight</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"batchNo\": \"809806c1-45ce-4ba4-a83a-1cbb43200f95\",\n  \"message\": \"Request submitted for processing\"\n}\n\n</code></pre><h3 id=\"response-fields\"><strong>Response Fields</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>batchNo</code></td>\n<td>string</td>\n<td>Unique identifier for the submitted batch</td>\n</tr>\n<tr>\n<td><code>message</code></td>\n<td>string</td>\n<td>Status message confirming submission</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"3101e7ef-ea79-4d0f-89f0-4c1e5cd4e187","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"16488e05-2e27-438f-a60e-d217122e96e1","id":"16488e05-2e27-438f-a60e-d217122e96e1","name":"IPurvey API Documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"token"},{"key":"value","value":"{{vault:authorization-secret}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"c87b3bda-d23b-43b0-aa85-773b9800c729"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"87481ecf-cb6c-4463-90e5-c6c5090da191"}}],"variable":[{"key":"baseUrl","value":"https://farming-simulator.pstmn.io"},{"key":"token","value":"eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpcHVydmV5Iiwic3ViIjoiam9yemFrb2xtYUBndWZ1bS5jb20iLCJhdWQiOiJ3ZWIiLCJpYXQiOjE3NTQ1MDkzOTEsImV4cCI6MTc1NDUxMjM5MX0.uhzHatgnn98VeQTso6oseyw6pPqDwxdGTxfr6lELDajR-anxri4c5L6YwtpV71ELk7fCc2D7foty9CyQYpAYJg","type":"default"},{"key":"refresh token","value":"7a600be0-cfaa-45fc-886e-6460faccfa44","type":"default"},{"key":"X-API-KEY","value":"2xcdOdezKZBk6wTeikhPMh83NmY-vutei5rvXCRkm9A","type":"default"},{"key":"{{ YOUR REFRESH TOKEN }}","value":"7a600be0-cfaa-45fc-886e-6460faccfa44","type":"default"}]}