{"info":{"_postman_id":"663776f1-97cb-4718-a159-43a6b151c216","name":"Phronesis API v1","description":"<html><head></head><body><p><a href=\"https://www.phronesis.net\">Phronesis</a> provides a platform to small and mid-size companies that helps give certainty to the complex task of validating their customers. We help banks, payment providers, insurance companies, retailers, fintech, lending, logistics specialists and more fight fraud by identifying and verifying their mobile customers.  </p>\n<p>As the digital economy expands, more and more security challenges are presented to these businesses. There is a need to know, with absolute certainty, that their customers are genuine and are presenting valid information when applying for, or accessing products &amp; services.</p>\n<p><a href=\"https://www.phronesis.net\">Phronesis</a> blends trusted data provided by UK mobile operators with our own proprietary validation techniques to help companies make better decisions. We call this Network Biometrics™.</p>\n<p>The Phronesis API suite allows you to programatically access data stored by telecommunications providers in relation to a given number.</p>\n<p>The easiest way to get started with the various API calls is to click on the Run in Postman button present at the top of the resource page and use the Postman App to send requests.</p>\n<h1 id=\"overview\">Overview</h1>\n<ol>\n<li>You need a valid API_token and API_secret to send request to the API endpoint. These will have been provided to you during the onboarding process.</li>\n<li>The API will only accept and respond to secure communications using HTTPS</li>\n<li>Response to every request is in the <a href=\"https://en.wikipedia.org/wiki/JSON\">JSON format</a> and as such the API will only accept requests with the Content-Type set to application/json. An invalid JSON request or Content-type will result in a <code>400 Bad request</code>.</li>\n<li>The API calls will respond with appropriate <a href=\"https://en.wikipedia.org/wiki/List_of_HTTP_status_codes\">HTTP status codes</a> and a suitable <code>status</code> and <code>status_description</code> for all requests. Generally a <code>200 OK</code> indicates the transaction has been successful.</li>\n</ol>\n<h1 id=\"api-endpoints\">API endpoints</h1>\n<p>Depending on your account plan you will get access to one or more of the following API platforms.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Account Plan</th>\n<th>API endpoint</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Test</td>\n<td><a href=\"https://dev.api.phronesis.tech/\">https://dev.api.phronesis.tech/</a></td>\n</tr>\n<tr>\n<td>Developer</td>\n<td><a href=\"https://sandbox.api.phronesis.tech/\">https://sandbox.api.phronesis.tech/</a></td>\n</tr>\n<tr>\n<td>Live</td>\n<td><a href=\"https://api.phronesis.tech/\">https://api.phronesis.tech/</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authentication-and-authorisation\">Authentication and Authorisation</h1>\n<ol>\n<li>A combination of API token and secret is required to make a request to the API. The token and secret form part of the payload of each request.</li>\n<li>Access to some of the API require the pre-approval of a suitable use case with the mobile operators. Applying for a use case is done through your customer portal. Submission of an invalid use case will result in a <code>400 Bad request</code> with a status of <code>213 Invalid use case identifier</code>.</li>\n<li>For ease of use inside Postman, you could store your API key in an <a href=\"https://www.getpostman.com/docs/environments\">environment variable</a> called API_token and API_secret and this <a href=\"https://www.getpostman.com/docs/collections\">Collection</a> will automatically use it to make API calls.</li>\n<li>Authentication errors will result in a <code>401 Unauthorized</code> response code with the <code>status</code> and <code>status\\_description</code> giving further feedback on the error.</li>\n<li>Access to the Administration and Provisioning APIs require an API_token with admin privileges.</li>\n</ol>\n<h1 id=\"support\">Support</h1>\n<p>Please use the <a href=\"https://backoffice.phronesis.net:8443/servicedesk/customer/portal/3\">service desk</a> to request assistance or email <a href=\"mailto:support@phronesis.net\">support@phronesis.net</a></p>\n<p><a></a></p>\n<h1 id=\"api-status-codes-reference\">API status codes reference</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP status code</th>\n<th>Status code</th>\n<th>Status description</th>\n<th>Status type</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>0</td>\n<td>transaction successful</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>200</td>\n<td>305</td>\n<td>subscriber absent, data may be incomplete</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>200</td>\n<td>306</td>\n<td>unknown subscriber, data may be incomplete</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>200</td>\n<td>308</td>\n<td>teleservice not provisioned for subscriber</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>200</td>\n<td>309</td>\n<td>call or SMS facility barred for subscriber</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>200</td>\n<td>310</td>\n<td>call or SMS facility not currently supported in serving network</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>300</td>\n<td>call Forward check failed</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>301</td>\n<td>SIM swap check failed</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>302</td>\n<td>country check failed</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>303</td>\n<td>user information check failed</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>304</td>\n<td>vicinity check failed</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>202</td>\n<td>307</td>\n<td>no coverage for country</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>103</td>\n<td>bad request</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>104</td>\n<td>invalid Content-Type header</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>207</td>\n<td>invalid parameters</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>208</td>\n<td>invalid postcode parameter</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>209</td>\n<td>invalid name parameter</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>210</td>\n<td>invalid address parameter</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>211</td>\n<td>invalid birthdate parameter</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>403</td>\n<td>212</td>\n<td>MNO access not authorised</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>213</td>\n<td>invalid use case identifier</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>400</td>\n<td>214</td>\n<td>invalid number parameter</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>100</td>\n<td>user account not found</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>101</td>\n<td>authentication failed</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>102</td>\n<td>user account suspended</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>106</td>\n<td>admin privileges required for this API</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>200</td>\n<td>IP address not whitelisted</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>204</td>\n<td>product not provisioned for your account</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>401</td>\n<td>206</td>\n<td>product availability suspended for your account</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>403</td>\n<td>802</td>\n<td>datasource temporarily not available</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>404</td>\n<td>804</td>\n<td>resource not found</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>404</td>\n<td>404</td>\n<td>subscriber opted out of service</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>404</td>\n<td>405</td>\n<td>invalid number</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>404</td>\n<td>807</td>\n<td>subscriber data unavailable</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>405</td>\n<td>105</td>\n<td>method not allowed</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>408</td>\n<td>806</td>\n<td>datasource query time out</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>502</td>\n<td>803</td>\n<td>datasource query failed</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>502</td>\n<td>805</td>\n<td>database subsystem error</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>503</td>\n<td>201</td>\n<td>request was throttled. submission limits exceeded</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>503</td>\n<td>202</td>\n<td>request was throttled. submission limits exceeded</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>503</td>\n<td>203</td>\n<td>request was throttled. submission limits exceeded</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>503</td>\n<td>800</td>\n<td>database subsystem unavailable</td>\n<td>Temporary</td>\n</tr>\n<tr>\n<td>503</td>\n<td>801</td>\n<td>datasource permanently unavailable</td>\n<td>Fatal</td>\n</tr>\n<tr>\n<td>503</td>\n<td>808</td>\n<td>service not available for MVNO</td>\n<td>Fatal</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"api-input-parameters-reference\">API input parameters reference</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n<th>Type</th>\n<th>Validation regex</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>API_token</td>\n<td>your API key</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>API_secret</td>\n<td>your API secret</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>use_case</td>\n<td>your use case authorisation identifier for the API request.</td>\n<td><em>string</em></td>\n<td><code>^[0-9a-f\\-]{36}$</code></td>\n</tr>\n<tr>\n<td>correlation_id</td>\n<td>A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>number</td>\n<td>a valid number in <a href=\"https://en.wikipedia.org/wiki/E.164\">E.164</a> format</td>\n<td><em>string</em></td>\n<td><code>^\\d{10,15}$</code></td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>the subscriber's first name. Case or special characters are not important, the API will normalise before submission.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,20}$</code></td>\n</tr>\n<tr>\n<td>surname</td>\n<td>the subscriber's surname. Case or special characters are not important, the API will normalise before submission.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,20}$</code></td>\n</tr>\n<tr>\n<td>house_number</td>\n<td>the subscriber's house number.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,20}$</code></td>\n</tr>\n<tr>\n<td>house_name</td>\n<td>the subscriber's house name (if house number is not available).</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,80}$</code></td>\n</tr>\n<tr>\n<td>postcode</td>\n<td>the subscriber's postcode</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,7}$</code></td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>the subscriber's date of birth in <a href=\"https://en.wikipedia.org/wiki/Date_format_by_country\">hyphenated little endian</a> format (e.g. 01-12-2000).</td>\n<td><em>string</em></td>\n<td><code>^[0123]+[0-9]+\\-[01]+[012]+\\-[0-9]{4}\\-$</code></td>\n</tr>\n<tr>\n<td>from</td>\n<td>the originator of the text message</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,16}$</code></td>\n</tr>\n<tr>\n<td>on_success</td>\n<td>the content of the text message to send if checks succeed.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,160}$</code></td>\n</tr>\n<tr>\n<td>on_failure</td>\n<td>the content of the text message to send if checks fail.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,160}$</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"api-output-parameters-reference\">API output parameters reference</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n<th>Type</th>\n<th>Validation regxex</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>transaction_id</td>\n<td>a unique transaction identifier to track the request and response in UUID V4 format.</td>\n<td><em>string</em></td>\n<td><code>^[0-9a-f\\-]{36}$</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>The outcome of the request, 0 on success or an <a href=\"#API-status-codes-reference\">error code</a>.</td>\n<td><em>string</em></td>\n<td><code>^\\d{1,3}$</code></td>\n</tr>\n<tr>\n<td>status_message</td>\n<td>a textual representation of the <code>status</code>.</td>\n<td><em>string</em></td>\n<td><code>^.{1,255}$</code></td>\n</tr>\n<tr>\n<td>number</td>\n<td>echoes the input number in <a href=\"https://en.wikipedia.org/wiki/E.164\">E.164</a> format</td>\n<td><em>string</em></td>\n<td><code>^\\d{10,15}$</code></td>\n</tr>\n<tr>\n<td>number_ID</td>\n<td>a unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.</td>\n<td><em>string</em></td>\n<td><code>^\\w{64}$</code></td>\n</tr>\n<tr>\n<td>number_ID_updated_on</td>\n<td>the date and time when the routing information was last updated. In <a href=\"https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations\">ISO 8601</a> format</td>\n<td><em>string</em></td>\n<td><code>^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\.[0-9]+)?(Z)?$</code></td>\n</tr>\n<tr>\n<td>roaming_country</td>\n<td>the country the subscriber is currently in. Returned in <a href=\"https://en.wikipedia.org/wiki/ISO_3166-2\">ISO 3166-2</a> format (e.g. GB).</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>has_unconditional</td>\n<td>indicates if unconditional call forwarding is set (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>is_valid_</td>\n<td>indicates if the subscriber's number is valid (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>is_roaming</td>\n<td>indicates if the subscriber is roaming (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>is_lost_or_stolen</td>\n<td>indicates if the subscriber number is lost or stolen (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>is_online</td>\n<td>indicates if the subscriber is on the network (true) or not (false). <strong>Note that it is possible for the subscriber to appear online for a period of time after disconnecting from the network.</strong></td>\n<td></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>is_swapped</td>\n<td>indicates if the subscriber identify has changed (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>MCC</td>\n<td>the subscriber's <a href=\"https://en.wikipedia.org/wiki/Mobile_country_code\">mobile country code</a>.</td>\n<td><em>string</em></td>\n<td><code>^\\d{3}$</code></td>\n</tr>\n<tr>\n<td>MNC</td>\n<td>the subscriber's <a href=\"https://en.wikipedia.org/wiki/Mobile_country_code\">mobile country code</a>.</td>\n<td><em>string</em></td>\n<td><code>^\\d{2,3}$</code></td>\n</tr>\n<tr>\n<td>ported_from</td>\n<td>the network operator the subscriber ported from initially.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,50}$</code></td>\n</tr>\n<tr>\n<td>SPN</td>\n<td>the current network operator of the subscriber.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,50}$</code></td>\n</tr>\n<tr>\n<td>prefix</td>\n<td>the prefix of the subscriber's number matching its number range owner (see <strong>prefix_owner</strong>).</td>\n<td><em>string</em></td>\n<td><code>^\\d{1,7}$</code></td>\n</tr>\n<tr>\n<td>prefix_owner</td>\n<td>the network operator the subscriber's number belongs to.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,50}$</code></td>\n</tr>\n<tr>\n<td>SRI_updated_on</td>\n<td>the time and date the subscriber's routing information was acquired. In <a href=\"https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations\">ISO 8601</a> format.</td>\n<td><em>string</em></td>\n<td><code>^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\.[0-9]+)?(Z)?$</code></td>\n</tr>\n<tr>\n<td>name_match</td>\n<td>whether the name of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>name_data_available</td>\n<td>whether the name of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>first_name_match</td>\n<td>whether the first name of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>first_name_data_available</td>\n<td>whether the first name of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>last_name_match</td>\n<td>whether the last name of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>last_name_data_available</td>\n<td>whether the last name of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>address_match</td>\n<td>whether the address of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>address_data_available</td>\n<td>whether the address of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>postcode_match</td>\n<td>whether the postcode of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>postcode_data_available</td>\n<td>whether the postcode of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>birthdate_match</td>\n<td>whether the date of birth of the subscriber is correct (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>birthdate_data_available</td>\n<td>whether the date of birth of the subscriber is available to match (true) or not (false)</td>\n<td><em>boolean</em></td>\n<td><code>^(true|false)$</code></td>\n</tr>\n<tr>\n<td>contract_type</td>\n<td>the contract type of the subscriber.</td>\n<td><em>string</em></td>\n<td><code>^(PAYG|PAYM|Business)$</code></td>\n</tr>\n<tr>\n<td>country_name</td>\n<td>the country name the subscriber is registered in.</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>country_code</td>\n<td>the country code the subscriber is registered in. Returned in <a href=\"https://en.wikipedia.org/wiki/ISO_3166-2\">ISO 3166-2</a> format (e.g. GB).</td>\n<td><em>string</em></td>\n<td><code>^\\w{0,64}$</code></td>\n</tr>\n<tr>\n<td>country_dial_code</td>\n<td>the country dial code of the subscriber.</td>\n<td><em>string</em></td>\n<td><code>^\\d{1,3}$</code></td>\n</tr>\n<tr>\n<td>minutes</td>\n<td>the time in minutes since the acquisition of the subscriber's location.</td>\n<td><em>string</em></td>\n<td><code>^\\w{1,50}$</code></td>\n</tr>\n<tr>\n<td>meters</td>\n<td>the distance in meters between the geographical centre of the postcode submitted and the cell tower that the subscriber is attached to.</td>\n<td><em>string</em></td>\n<td><code>^\\d{1,10}$</code></td>\n</tr>\n<tr>\n<td>location_type</td>\n<td>if available, the level of accuracy in decreasing order.</td>\n<td><em>string</em></td>\n<td><code>^(CellTower|CellTowerGroup|IsoCountry|NoHandsetFix)$</code></td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>the time of acquisition of the location information in <a href=\"https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations\">ISO 8601</a> format.</td>\n<td><em>string</em></td>\n<td><code>^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\.[0-9]+)?(Z)?$</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"api-uk-coverage\">API UK coverage</h1>\n<ul>\n<li>X: available</li>\n<li>X (TBA): in implementation stage</li>\n<li>Roadmap date stated otherwise</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>API</th>\n<th>Vodafone UK</th>\n<th>EE UK</th>\n<th>H3G UK</th>\n<th>O2 UK</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>servingNetwork</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>numberValidity</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>numberRangeOwner</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>portedStatus</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>roamingStatus</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>Q3-2020</td>\n<td></td>\n</tr>\n<tr>\n<td>roamingCountry</td>\n<td>X (TBA)</td>\n<td>X (TBA)</td>\n<td>X (TBA)</td>\n<td>X (TBA)</td>\n<td></td>\n</tr>\n<tr>\n<td>callForward</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>SIMStatus</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>locationVicinity</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>SmartSM - Basic</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>SmartSM - Standard</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>SmartSM - Assured</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td></td>\n</tr>\n<tr>\n<td>MNO - Match</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>X</td>\n<td>first and last name &amp; postcode match only available on EE</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"api-reference\">API reference</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"API endpoints","slug":"api-endpoints"},{"content":"Authentication and Authorisation","slug":"authentication-and-authorisation"},{"content":"Support","slug":"support"},{"content":"API status codes reference","slug":"api-status-codes-reference"},{"content":"API input parameters reference","slug":"api-input-parameters-reference"},{"content":"API output parameters reference","slug":"api-output-parameters-reference"},{"content":"API UK coverage","slug":"api-uk-coverage"},{"content":"API reference","slug":"api-reference"}],"owner":"11369171","collectionId":"663776f1-97cb-4718-a159-43a6b151c216","publishedId":"UzJESyhn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-01T14:07:48.000Z"},"item":[{"name":"Number Discovery","item":[{"name":"servingNetwork","event":[{"listen":"test","script":{"id":"c154f2f4-5908-4f42-b224-f34fbab12c9a","exec":[""],"type":"text/javascript"}}],"id":"6dd24ccc-448f-431d-836e-274149ecc367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/servingNetwork","urlObject":{"path":["core","v1","NumberDiscovery","servingNetwork"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"63a04af9-08a3-4c3b-8cea-09cd26a9d3f8","name":"Subscriber number resolution","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/servingNetwork"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:02:53 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=l0hth2gacqium35ueodqv2io3geedni6; expires=Wed, 19-Sep-2018 17:02:54 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"MCC\": \"234\",\n    \"MNC\": \"15\",\n    \"SPN\": \"Vodafone UK\",\n    \"number\": \"447976918568\",\n    \"SRI_updated_on\": \"2018-10-16 13:25:22.330754\",\n    \"is_online\": true,\n    \"country_name\": \"United Kingdom\",\n    \"country_code\": \"GB\",\n    \"country_dial_code\": \"44\",\n    \"is_valid\": true,\n    \"prefix\": \"4479769\",\n    \"prefix_owner\": \"EE UK\",\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"532bea01-ec53-41cc-a0ea-22047c0be892\",\n    \"correlation_id\": \"1539706954\"\n}"}],"_postman_id":"6dd24ccc-448f-431d-836e-274149ecc367"},{"name":"numberValidity","event":[{"listen":"test","script":{"id":"84a4fb53-356a-4f72-93f0-4447c39f8e43","exec":[""],"type":"text/javascript"}}],"id":"9c384622-2239-4296-b778-1ae4d3716653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/numberValidity","urlObject":{"path":["core","v1","NumberDiscovery","numberValidity"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"b19497cd-f302-4d71-b949-265451618dea","name":"Verification of the validity of the subscriber's number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/numberValidity"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:08:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=438cjto8vutjnoc81j4hn98ehh1vnl84; expires=Wed, 19-Sep-2018 17:08:27 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"is_valid\":true,\"status_message\":\"Transaction successful\",\"transaction_id\":\"438bdcbb-9ad2-4e9a-9e53-05f4445423c9\",\"correlation_id\":\"1537376906\"}"}],"_postman_id":"9c384622-2239-4296-b778-1ae4d3716653"},{"name":"numberRangeOwner","event":[{"listen":"test","script":{"id":"b0af200d-71ee-4ef8-a74b-e21d02960189","exec":[""],"type":"text/javascript"}}],"id":"48a7950d-4fd3-4308-b6c2-21d490ab44de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/numberRangeOwner","urlObject":{"path":["core","v1","NumberDiscovery","numberRangeOwner"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"3884f98b-e94b-489e-ac15-ce369604f26c","name":"Identification of the original  owner of the subscriber's number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/numberRangeOwner"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 16:58:07 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=6rf70kfnb74u7sccpok2dfkrrn16d09c; expires=Wed, 19-Sep-2018 16:58:08 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"number\": \"447976000000\",\n    \"prefix\": \"4479769\",\n    \"SPN\": \"EE UK\",\n    \"country_name\": \"United Kingdom\",\n    \"country_code\": \"GB\",\n    \"country_dial_code\": \"44\",\n    \"status\": 0,\n    \"status_message\": \"Transaction successful\",\n    \"transaction_id\": \"02a4d3b7-b7fc-4ec6-b837-e995ef284d4f\",\n    \"correlation_id\": \"1537376286\"\n}"}],"_postman_id":"48a7950d-4fd3-4308-b6c2-21d490ab44de"},{"name":"portedStatus","event":[{"listen":"test","script":{"id":"1f517fe2-31e4-43ef-83fb-206f01c95dd4","exec":[""],"type":"text/javascript"}}],"id":"17d00f72-3425-4210-a6cb-a832b7861d68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/portedStatus","urlObject":{"path":["core","v1","NumberDiscovery","portedStatus"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"8540a0c0-5db8-4680-a290-ce7f643692f7","name":"number ported identified","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/portedStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:09:52 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=8u437bghu1g2d98rea35vfi15itaskpb; expires=Wed, 19-Sep-2018 17:09:53 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"is_ported\":true,\"ported_from\":\"EE UK\",\"SPN\":\"Vodafone UK\",\"status\":0,\"status_message\":\"Transaction successful\",\"transaction_id\":\"74758dce-0035-4520-adcc-af65db4b0a47\",\"correlation_id\":\"1537376992\"}"},{"id":"ac7c6936-e0db-41cf-8606-b769ee9a665c","name":"number not ported","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/portedStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:10:18 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=4g6l29s93otrf6c0mncd6j4cuurs46ds; expires=Wed, 19-Sep-2018 17:10:19 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"ported_status\":false,\"SPN\":\"O2 UK\",\"status\":0,\"status_message\":\"Transaction successful\",\"transaction_id\":\"cad973ef-66a8-42d0-aa29-5f8b5b9eef9d\",\"correlation_id\":\"1537377018\"}"}],"_postman_id":"17d00f72-3425-4210-a6cb-a832b7861d68"},{"name":"roamingStatus","event":[{"listen":"test","script":{"id":"60bcf5d7-fcf3-4a92-8b19-0866388a99e6","exec":[""],"type":"text/javascript"}}],"id":"29fb20b0-08db-47a7-afc4-7da4d3aee020","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/roamingStatus","urlObject":{"path":["core","v1","NumberDiscovery","roamingStatus"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"eab0daf6-16de-4fb1-9506-cbe33a40b273","name":"Verification of the roaming status of the subscriber","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/roamingStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:17:36 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=4jjonovtm8ap55qmlfhjga27cs73hequ; expires=Wed, 19-Sep-2018 17:17:37 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"is_roaming\": true,\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"8ea32dbc-0607-4ae8-886e-35788176e426\",\n    \"correlation_id\": \"1539706992\"\n}"}],"_postman_id":"29fb20b0-08db-47a7-afc4-7da4d3aee020"},{"name":"roamingCountry","event":[{"listen":"test","script":{"id":"486a1978-67e2-4438-bf16-51196884cabe","exec":[""],"type":"text/javascript"}}],"id":"13a05636-ea5d-4091-b9f4-df02a2f38c65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/roamingCountry","urlObject":{"path":["core","v1","NumberDiscovery","roamingCountry"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"4dbb9e34-e00b-4586-8240-3d60b7145a15","name":"Subscriber roaming country acquisition","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/roamingCountry"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:11:21 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=h4ag3oql1441eavvh4p8s2lm6fi6ffkf; expires=Wed, 19-Sep-2018 17:11:22 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"MCC\":\"234\",\"MNC\":\"15\",\"roaming_country\":\"GB\",\"status_message\":\"Transaction successful\",\"transaction_id\":\"63c0afa8-6f95-4276-99f9-c5dd981bde32\",\"correlation_id\":\"1537377081\"}"}],"_postman_id":"13a05636-ea5d-4091-b9f4-df02a2f38c65"},{"name":"callForward","event":[{"listen":"test","script":{"id":"0af5703b-9ee8-4a36-8ae5-6ce74ca4bb91","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'has_unconditional'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-callforward-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful Response\",","    \"description\": \"Expected response content of the callForward method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"status_message\": \"Transaction successful\",","            \"transaction_id\": \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\",","            \"correlation_id\": \"1537895865\",","            \"has_unconditional\": false","        }","    ],","    \"required\": [","        \"status\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\",","        \"has_unconditional\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        },","        \"has_unconditional\": {","            \"$id\": \"#/properties/has_unconditional\",","            \"type\": \"boolean\",","            \"title\": \"Has Unconditional Forward\",","            \"description\": \"Indicates if unconditional call forwarding is set (true) or not (false).\",","            \"default\": false,","            \"examples\": [","                true","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"91b188fa-2872-483c-94d6-799060daeea4","exec":[""],"type":"text/javascript"}}],"id":"2451481a-7272-44ac-a699-0907acceab47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/callForward","urlObject":{"path":["core","v1","NumberDiscovery","callForward"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"bb5e19a6-1ffc-4148-8ae1-892608ad9dc4","name":"Call forward unconditional not set","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/callForward"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:12:02 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=cfk401tef81gf02nc409p5vig8clnvra; expires=Wed, 19-Sep-2018 17:12:03 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"has_unconditional\": false,\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"71e819f1-2d53-461a-8bd5-a8f278b987fa\",\n    \"correlation_id\": \"1539707929\"\n}"}],"_postman_id":"2451481a-7272-44ac-a699-0907acceab47"},{"name":"SIMStatus","event":[{"listen":"test","script":{"id":"d2183410-3c34-4d54-821f-6f89b8d0ab23","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'MCC',","    'MNC',","    'history',","    'is_swapped'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-simstatus-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful response\",","    \"description\": \"Expected response content of the v1 simStatus method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"MCC\": \"234\",","            \"MNC\": \"15\",","            \"history\": [","                {","                    \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                    \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                },","                {","                    \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                    \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                }","            ],","            \"is_swapped\": true,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"7559f3e6-e554-4fb6-8a2e-332ca6a33a1e\",","            \"correlation_id\": \"1595252254\"","        }","    ],","    \"required\": [","        \"status\",","        \"MCC\",","        \"MNC\",","        \"history\",","        \"is_swapped\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"MCC\": {","            \"$id\": \"#/properties/MCC\",","            \"type\": \"string\",","            \"title\": \"Mobile Country Code\",","            \"description\": \"The subscriber's mobile country code\",","            \"default\": \"\",","            \"examples\": [","                \"234\"","            ],","            \"maxLength\": 3,","            \"minLength\": 3,","            \"pattern\": \"^\\\\d{3}$\"","        },","        \"MNC\": {","            \"$id\": \"#/properties/MNC\",","            \"type\": \"string\",","            \"title\": \"Mobile Network Code\",","            \"description\": \"The subscriber's mobile network code\",","            \"default\": \"\",","            \"examples\": [","                \"15\"","            ],","            \"maxLength\": 3,","            \"minLength\": 2,","            \"pattern\": \"^\\\\d{2,3}$\"","        },","        \"history\": {","            \"$id\": \"#/properties/history\",","            \"type\": \"array\",","            \"title\": \"Number history\",","            \"description\": \"Entries giving the history of the number\",","            \"default\": [],","            \"examples\": [","                [","                    {","                        \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                        \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                    },","                    {","                        \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                        \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                    }","                ]","            ],","            \"additionalItems\": true,","            \"items\": {","                \"anyOf\": [","                    {","                        \"$id\": \"#/properties/history/items/anyOf/0\",","                        \"type\": \"object\",","                        \"title\": \"Number History item\",","                        \"default\": {},","                        \"examples\": [","                            {","                                \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                                \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                            }","                        ],","                        \"required\": [","                            \"number_ID\",","                            \"number_ID_updated_on\"","                        ],","                        \"additionalProperties\": false,","                        \"properties\": {","                            \"number_ID\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID\",","                                \"type\": \"string\",","                                \"title\": \"Number ID\",","                                \"description\": \"A unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\"","                                ],","                                \"maxLength\": 64,","                                \"minLength\": 64,","                                \"pattern\": \"^\\\\w{64}$\"","                            },","                            \"number_ID_updated_on\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID_updated_on\",","                                \"type\": \"string\",","                                \"title\": \"Date Number ID updated\",","                                \"description\": \"The date and time when the routing information was last updated. In ISO 8601 format.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"2020-07-20 14:37:34.768764\"","                                ],","                                \"pattern\": \"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\\\\\.[0-9]+)?(Z)?$\"","                            }","                        }","                    }","                ],","                \"$id\": \"#/properties/history/items\"","            }","        },","        \"is_swapped\": {","            \"$id\": \"#/properties/is_swapped\",","            \"type\": \"boolean\",","            \"title\": \"Is Swapped\",","            \"description\": \"Indicates if the subscriber identify has changed (true) or not (false)\\t\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"a46c16ba-2a21-44a6-ac65-7a8529e2acae","protocolProfileBehavior":{"disableBodyPruning":true,"disableCookies":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/SIMStatus","urlObject":{"path":["core","v1","NumberDiscovery","SIMStatus"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"1acd80cd-cb31-4fdc-8ae9-2deaa3c93892","name":"SIM hasn't been swapped and acquisition of last known IMSI verification event timestamp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/SIMStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:12:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=t9oihq0merckr6vs4dcg9e853k6vqqrv; expires=Wed, 19-Sep-2018 17:12:27 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"is_swapped\":false,\"last_timestamp\":\"2014-05-19T10:35:01.230000\",\"status_message\":\"Transaction successful\",\"transaction_id\":\"fce0af54-4031-4111-9310-a99e1b00ee87\",\"correlation_id\":\"1537377146\"}"}],"_postman_id":"a46c16ba-2a21-44a6-ac65-7a8529e2acae"},{"name":"DeviceInfo","event":[{"listen":"test","script":{"id":"a19acaaa-6273-42db-9daf-1366b68fe766","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'MCC',","    'MNC',","    'history',","    'is_swapped'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-simstatus-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful response\",","    \"description\": \"Expected response content of the v1 simStatus method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"MCC\": \"234\",","            \"MNC\": \"15\",","            \"history\": [","                {","                    \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                    \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                },","                {","                    \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                    \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                }","            ],","            \"is_swapped\": true,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"7559f3e6-e554-4fb6-8a2e-332ca6a33a1e\",","            \"correlation_id\": \"1595252254\"","        }","    ],","    \"required\": [","        \"status\",","        \"MCC\",","        \"MNC\",","        \"history\",","        \"is_swapped\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"MCC\": {","            \"$id\": \"#/properties/MCC\",","            \"type\": \"string\",","            \"title\": \"Mobile Country Code\",","            \"description\": \"The subscriber's mobile country code\",","            \"default\": \"\",","            \"examples\": [","                \"234\"","            ],","            \"maxLength\": 3,","            \"minLength\": 3,","            \"pattern\": \"^\\\\d{3}$\"","        },","        \"MNC\": {","            \"$id\": \"#/properties/MNC\",","            \"type\": \"string\",","            \"title\": \"Mobile Network Code\",","            \"description\": \"The subscriber's mobile network code\",","            \"default\": \"\",","            \"examples\": [","                \"15\"","            ],","            \"maxLength\": 3,","            \"minLength\": 2,","            \"pattern\": \"^\\\\d{2,3}$\"","        },","        \"history\": {","            \"$id\": \"#/properties/history\",","            \"type\": \"array\",","            \"title\": \"Number history\",","            \"description\": \"Entries giving the history of the number\",","            \"default\": [],","            \"examples\": [","                [","                    {","                        \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                        \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                    },","                    {","                        \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                        \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                    }","                ]","            ],","            \"additionalItems\": true,","            \"items\": {","                \"anyOf\": [","                    {","                        \"$id\": \"#/properties/history/items/anyOf/0\",","                        \"type\": \"object\",","                        \"title\": \"Number History item\",","                        \"default\": {},","                        \"examples\": [","                            {","                                \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                                \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                            }","                        ],","                        \"required\": [","                            \"number_ID\",","                            \"number_ID_updated_on\"","                        ],","                        \"additionalProperties\": false,","                        \"properties\": {","                            \"number_ID\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID\",","                                \"type\": \"string\",","                                \"title\": \"Number ID\",","                                \"description\": \"A unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\"","                                ],","                                \"maxLength\": 64,","                                \"minLength\": 64,","                                \"pattern\": \"^\\\\w{64}$\"","                            },","                            \"number_ID_updated_on\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID_updated_on\",","                                \"type\": \"string\",","                                \"title\": \"Date Number ID updated\",","                                \"description\": \"The date and time when the routing information was last updated. In ISO 8601 format.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"2020-07-20 14:37:34.768764\"","                                ],","                                \"pattern\": \"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\\\\\.[0-9]+)?(Z)?$\"","                            }","                        }","                    }","                ],","                \"$id\": \"#/properties/history/items\"","            }","        },","        \"is_swapped\": {","            \"$id\": \"#/properties/is_swapped\",","            \"type\": \"boolean\",","            \"title\": \"Is Swapped\",","            \"description\": \"Indicates if the subscriber identify has changed (true) or not (false)\\t\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"9aded0de-699c-4f1a-8973-753275c961ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/DeviceInfo","urlObject":{"path":["core","v1","NumberDiscovery","DeviceInfo"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"d621ffa5-8d47-4897-bbca-35601121a5e3","name":"SIM hasn't been swapped and acquisition of last known IMSI verification event timestamp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/SIMStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:12:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=t9oihq0merckr6vs4dcg9e853k6vqqrv; expires=Wed, 19-Sep-2018 17:12:27 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"is_swapped\":false,\"last_timestamp\":\"2014-05-19T10:35:01.230000\",\"status_message\":\"Transaction successful\",\"transaction_id\":\"fce0af54-4031-4111-9310-a99e1b00ee87\",\"correlation_id\":\"1537377146\"}"}],"_postman_id":"9aded0de-699c-4f1a-8973-753275c961ac"},{"name":"deactivatedMSISDN","event":[{"listen":"test","script":{"id":"0940b94d-b683-4dfb-ac66-fd9c7c63c1de","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'MCC',","    'MNC',","    'history',","    'is_swapped'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-simstatus-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful response\",","    \"description\": \"Expected response content of the v1 simStatus method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"MCC\": \"234\",","            \"MNC\": \"15\",","            \"history\": [","                {","                    \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                    \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                },","                {","                    \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                    \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                }","            ],","            \"is_swapped\": true,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"7559f3e6-e554-4fb6-8a2e-332ca6a33a1e\",","            \"correlation_id\": \"1595252254\"","        }","    ],","    \"required\": [","        \"status\",","        \"MCC\",","        \"MNC\",","        \"history\",","        \"is_swapped\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"MCC\": {","            \"$id\": \"#/properties/MCC\",","            \"type\": \"string\",","            \"title\": \"Mobile Country Code\",","            \"description\": \"The subscriber's mobile country code\",","            \"default\": \"\",","            \"examples\": [","                \"234\"","            ],","            \"maxLength\": 3,","            \"minLength\": 3,","            \"pattern\": \"^\\\\d{3}$\"","        },","        \"MNC\": {","            \"$id\": \"#/properties/MNC\",","            \"type\": \"string\",","            \"title\": \"Mobile Network Code\",","            \"description\": \"The subscriber's mobile network code\",","            \"default\": \"\",","            \"examples\": [","                \"15\"","            ],","            \"maxLength\": 3,","            \"minLength\": 2,","            \"pattern\": \"^\\\\d{2,3}$\"","        },","        \"history\": {","            \"$id\": \"#/properties/history\",","            \"type\": \"array\",","            \"title\": \"Number history\",","            \"description\": \"Entries giving the history of the number\",","            \"default\": [],","            \"examples\": [","                [","                    {","                        \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                        \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                    },","                    {","                        \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                        \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                    }","                ]","            ],","            \"additionalItems\": true,","            \"items\": {","                \"anyOf\": [","                    {","                        \"$id\": \"#/properties/history/items/anyOf/0\",","                        \"type\": \"object\",","                        \"title\": \"Number History item\",","                        \"default\": {},","                        \"examples\": [","                            {","                                \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                                \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                            }","                        ],","                        \"required\": [","                            \"number_ID\",","                            \"number_ID_updated_on\"","                        ],","                        \"additionalProperties\": false,","                        \"properties\": {","                            \"number_ID\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID\",","                                \"type\": \"string\",","                                \"title\": \"Number ID\",","                                \"description\": \"A unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\"","                                ],","                                \"maxLength\": 64,","                                \"minLength\": 64,","                                \"pattern\": \"^\\\\w{64}$\"","                            },","                            \"number_ID_updated_on\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID_updated_on\",","                                \"type\": \"string\",","                                \"title\": \"Date Number ID updated\",","                                \"description\": \"The date and time when the routing information was last updated. In ISO 8601 format.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"2020-07-20 14:37:34.768764\"","                                ],","                                \"pattern\": \"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\\\\\.[0-9]+)?(Z)?$\"","                            }","                        }","                    }","                ],","                \"$id\": \"#/properties/history/items\"","            }","        },","        \"is_swapped\": {","            \"$id\": \"#/properties/is_swapped\",","            \"type\": \"boolean\",","            \"title\": \"Is Swapped\",","            \"description\": \"Indicates if the subscriber identify has changed (true) or not (false)\\t\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"8c451244-18a2-4860-911f-b503d5b6b2b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/deactivatedMSISDN","urlObject":{"path":["core","v1","NumberDiscovery","deactivatedMSISDN"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"78ba23df-6bf3-4d67-9191-7bda8cbe486c","name":"SIM hasn't been swapped and acquisition of last known IMSI verification event timestamp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/SIMStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:12:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=t9oihq0merckr6vs4dcg9e853k6vqqrv; expires=Wed, 19-Sep-2018 17:12:27 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"is_swapped\":false,\"last_timestamp\":\"2014-05-19T10:35:01.230000\",\"status_message\":\"Transaction successful\",\"transaction_id\":\"fce0af54-4031-4111-9310-a99e1b00ee87\",\"correlation_id\":\"1537377146\"}"}],"_postman_id":"8c451244-18a2-4860-911f-b503d5b6b2b7"},{"name":"mobileSubscriber","event":[{"listen":"test","script":{"id":"372e1f82-7ba3-444e-8330-08b94cedf334","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'MCC',","    'MNC',","    'history',","    'is_swapped'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-simstatus-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful response\",","    \"description\": \"Expected response content of the v1 simStatus method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"MCC\": \"234\",","            \"MNC\": \"15\",","            \"history\": [","                {","                    \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                    \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                },","                {","                    \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                    \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                }","            ],","            \"is_swapped\": true,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"7559f3e6-e554-4fb6-8a2e-332ca6a33a1e\",","            \"correlation_id\": \"1595252254\"","        }","    ],","    \"required\": [","        \"status\",","        \"MCC\",","        \"MNC\",","        \"history\",","        \"is_swapped\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"MCC\": {","            \"$id\": \"#/properties/MCC\",","            \"type\": \"string\",","            \"title\": \"Mobile Country Code\",","            \"description\": \"The subscriber's mobile country code\",","            \"default\": \"\",","            \"examples\": [","                \"234\"","            ],","            \"maxLength\": 3,","            \"minLength\": 3,","            \"pattern\": \"^\\\\d{3}$\"","        },","        \"MNC\": {","            \"$id\": \"#/properties/MNC\",","            \"type\": \"string\",","            \"title\": \"Mobile Network Code\",","            \"description\": \"The subscriber's mobile network code\",","            \"default\": \"\",","            \"examples\": [","                \"15\"","            ],","            \"maxLength\": 3,","            \"minLength\": 2,","            \"pattern\": \"^\\\\d{2,3}$\"","        },","        \"history\": {","            \"$id\": \"#/properties/history\",","            \"type\": \"array\",","            \"title\": \"Number history\",","            \"description\": \"Entries giving the history of the number\",","            \"default\": [],","            \"examples\": [","                [","                    {","                        \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                        \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                    },","                    {","                        \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                        \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                    }","                ]","            ],","            \"additionalItems\": true,","            \"items\": {","                \"anyOf\": [","                    {","                        \"$id\": \"#/properties/history/items/anyOf/0\",","                        \"type\": \"object\",","                        \"title\": \"Number History item\",","                        \"default\": {},","                        \"examples\": [","                            {","                                \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                                \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                            }","                        ],","                        \"required\": [","                            \"number_ID\",","                            \"number_ID_updated_on\"","                        ],","                        \"additionalProperties\": false,","                        \"properties\": {","                            \"number_ID\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID\",","                                \"type\": \"string\",","                                \"title\": \"Number ID\",","                                \"description\": \"A unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\"","                                ],","                                \"maxLength\": 64,","                                \"minLength\": 64,","                                \"pattern\": \"^\\\\w{64}$\"","                            },","                            \"number_ID_updated_on\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID_updated_on\",","                                \"type\": \"string\",","                                \"title\": \"Date Number ID updated\",","                                \"description\": \"The date and time when the routing information was last updated. In ISO 8601 format.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"2020-07-20 14:37:34.768764\"","                                ],","                                \"pattern\": \"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\\\\\.[0-9]+)?(Z)?$\"","                            }","                        }","                    }","                ],","                \"$id\": \"#/properties/history/items\"","            }","        },","        \"is_swapped\": {","            \"$id\": \"#/properties/is_swapped\",","            \"type\": \"boolean\",","            \"title\": \"Is Swapped\",","            \"description\": \"Indicates if the subscriber identify has changed (true) or not (false)\\t\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"f42715f6-1fed-404c-991b-4bfd92fb1212","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/mobileSubscriber","urlObject":{"path":["core","v1","NumberDiscovery","mobileSubscriber"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"67120f36-36b2-4254-8810-3cfbc9543348","name":"SIM hasn't been swapped and acquisition of last known IMSI verification event timestamp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/SIMStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:12:26 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=t9oihq0merckr6vs4dcg9e853k6vqqrv; expires=Wed, 19-Sep-2018 17:12:27 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"is_swapped\":false,\"last_timestamp\":\"2014-05-19T10:35:01.230000\",\"status_message\":\"Transaction successful\",\"transaction_id\":\"fce0af54-4031-4111-9310-a99e1b00ee87\",\"correlation_id\":\"1537377146\"}"}],"_postman_id":"f42715f6-1fed-404c-991b-4bfd92fb1212"},{"name":"numberRecycle","event":[{"listen":"test","script":{"id":"360fce23-4ad1-46a0-99a4-a2742748120e","exec":["/* REQUEST CONFIG */","","// Set default values for tests","// JSON keys used in Number Validate response","var expected_fields =","[","    'status',","    'status_message',","    'transaction_id',","    'correlation_id',","    'MCC',","    'MNC',","    'history',","    'is_swapped'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.com/v1-simstatus-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful response\",","    \"description\": \"Expected response content of the v1 simStatus method\",","    \"default\": {},","    \"examples\": [","        {","            \"status\": 0,","            \"MCC\": \"234\",","            \"MNC\": \"15\",","            \"history\": [","                {","                    \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                    \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                },","                {","                    \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                    \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                }","            ],","            \"is_swapped\": true,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"7559f3e6-e554-4fb6-8a2e-332ca6a33a1e\",","            \"correlation_id\": \"1595252254\"","        }","    ],","    \"required\": [","        \"status\",","        \"MCC\",","        \"MNC\",","        \"history\",","        \"is_swapped\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"additionalProperties\": false,","    \"properties\": {","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"MCC\": {","            \"$id\": \"#/properties/MCC\",","            \"type\": \"string\",","            \"title\": \"Mobile Country Code\",","            \"description\": \"The subscriber's mobile country code\",","            \"default\": \"\",","            \"examples\": [","                \"234\"","            ],","            \"maxLength\": 3,","            \"minLength\": 3,","            \"pattern\": \"^\\\\d{3}$\"","        },","        \"MNC\": {","            \"$id\": \"#/properties/MNC\",","            \"type\": \"string\",","            \"title\": \"Mobile Network Code\",","            \"description\": \"The subscriber's mobile network code\",","            \"default\": \"\",","            \"examples\": [","                \"15\"","            ],","            \"maxLength\": 3,","            \"minLength\": 2,","            \"pattern\": \"^\\\\d{2,3}$\"","        },","        \"history\": {","            \"$id\": \"#/properties/history\",","            \"type\": \"array\",","            \"title\": \"Number history\",","            \"description\": \"Entries giving the history of the number\",","            \"default\": [],","            \"examples\": [","                [","                    {","                        \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                        \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                    },","                    {","                        \"number_ID\": \"0ef57fb5ebcc16a2298c8820f1b3509780fc24539da1a07548c58ee911408542\",","                        \"number_ID_updated_on\": \"2018-11-15T16:31:32.000000Z\"","                    }","                ]","            ],","            \"additionalItems\": true,","            \"items\": {","                \"anyOf\": [","                    {","                        \"$id\": \"#/properties/history/items/anyOf/0\",","                        \"type\": \"object\",","                        \"title\": \"Number History item\",","                        \"default\": {},","                        \"examples\": [","                            {","                                \"number_ID\": \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\",","                                \"number_ID_updated_on\": \"2020-07-20T14:37:34.768764Z\"","                            }","                        ],","                        \"required\": [","                            \"number_ID\",","                            \"number_ID_updated_on\"","                        ],","                        \"additionalProperties\": false,","                        \"properties\": {","                            \"number_ID\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID\",","                                \"type\": \"string\",","                                \"title\": \"Number ID\",","                                \"description\": \"A unique subscriber identifier related and unique to a SIM card. In most cases this will be a SHA236 hashed version of the IMSI.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"5bae5073e3d8ec950a6790efbc938533d877888a8d4805216ea9a6d25143464b\"","                                ],","                                \"maxLength\": 64,","                                \"minLength\": 64,","                                \"pattern\": \"^\\\\w{64}$\"","                            },","                            \"number_ID_updated_on\": {","                                \"$id\": \"#/properties/history/items/anyOf/0/properties/number_ID_updated_on\",","                                \"type\": \"string\",","                                \"title\": \"Date Number ID updated\",","                                \"description\": \"The date and time when the routing information was last updated. In ISO 8601 format.\",","                                \"default\": \"\",","                                \"examples\": [","                                    \"2020-07-20 14:37:34.768764\"","                                ],","                                \"pattern\": \"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\\\\\\\\.[0-9]+)?(Z)?$\"","                            }","                        }","                    }","                ],","                \"$id\": \"#/properties/history/items\"","            }","        },","        \"is_swapped\": {","            \"$id\": \"#/properties/is_swapped\",","            \"type\": \"boolean\",","            \"title\": \"Is Swapped\",","            \"description\": \"Indicates if the subscriber identify has changed (true) or not (false)\\t\",","            \"default\": false,","            \"examples\": [","                true","            ]","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    expected_fields = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(expected_fields);","// collectionUtils.checkForExtraKeys(expected_fields);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"d41995fd-9394-4ddb-b9fd-f662450f5dbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/numberRecycle","urlObject":{"path":["core","v1","NumberDiscovery","numberRecycle"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d41995fd-9394-4ddb-b9fd-f662450f5dbf"},{"name":"locationVicinity","event":[{"listen":"test","script":{"id":"f2664578-e0c0-403d-bb4a-8b65d45bdefc","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"44e3a601-4989-49e3-9eb4-c0b1e0493e0b","exec":["// Reset any variables from previous iteration","pm.variables.unset(\"postcode\");","","// Check iteration data for variable replacements","if(pm.iterationData.get('postcode') && pm.iterationData.get('postcode') == '{{postcode}}') {","    console.log('Replacing {{postcode}} in iterationData');","    pm.variables.set(\"postcode\", pm.globals.get(\"postcode\"));","}"],"type":"text/javascript"}}],"id":"58f91d89-58bf-4b51-9b25-0d6b9f57b68b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\",\n  \"postcode\": \"{{postcode}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/locationVicinity","urlObject":{"path":["core","v1","NumberDiscovery","locationVicinity"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"6c4a0bb6-f431-47ee-8c6c-0e02324721f5","name":"Subscriber location acquisition with age of acquisition and distance from the postcode provided","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\",\n  \"postcode\": \"{{postcode}}\"\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/locationVicinity"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:13:19 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=i9ei93qo9gmc1e1sej23fesf8snetkcu; expires=Wed, 19-Sep-2018 17:13:20 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"status\":0,\"distance\":2195,\"location_type\":\"CellTowerGroup\",\"timestamp\":\"2018-01-18T14:01:15Z\",\"minutes\":64,\"status_message\":\"Transaction successful\",\"transaction_id\":\"acab7159-35cf-466e-83ef-61568381c5e2\",\"correlation_id\":\"1537377198\"}"}],"_postman_id":"58f91d89-58bf-4b51-9b25-0d6b9f57b68b"},{"name":"ageStatus","event":[{"listen":"prerequest","script":{"id":"e06527b2-aabb-4609-9b58-41e1ab5ea073","exec":["// Reset any variables from previous iteration","pm.variables.unset(\"date_of_birth\");","","// Check iteration data for variable replacements","if(pm.iterationData.get('date_of_birth') && pm.iterationData.get('date_of_birth') == '{{date_of_birth}}') {","    console.log('Replacing {{date_of_birth}} in iterationData');","    pm.variables.set(\"date_of_birth\", pm.globals.get(\"date_of_birth\"));","}","// JSON schema validation test using AJV","","/*","var Ajv = require('ajv');","var ajv = new Ajv({logger: console, coerceTypes: false, allErrors: true});","","var schema =","{","    \"required\": [","        \"API_token\",","        \"API_secret\",","        \"correlation_id\",","        \"number\",","        \"user_info\"","    ],","    \"properties\": {","        \"API_token\": {","            \"$id\": \"#/properties/API_token\",","            \"type\": \"string\"","        },","        \"API_secret\": {","            \"$id\": \"#/properties/API_secret\",","            \"type\": \"string\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\"","        },","        \"number\": {","            \"$id\": \"#/properties/number\",","            \"type\": \"integer\"","        },","        \"user_info\": {","            \"required\": [","                \"first_name\",","                \"surname\",","                \"house_number\",","                \"house_name\",","                \"postcode\",","                \"date_of_birth\"","            ],","            \"properties\": {","                \"first_name\": {","                    \"$id\": \"#/properties/user_info/properties/first_name\",","                    \"type\": \"string\"","                },","                \"surname\": {","                    \"$id\": \"#/properties/user_info/properties/surname\",","                    \"type\": \"string\"","                },","                \"house_number\": {","                    \"$id\": \"#/properties/user_info/properties/house_number\",","                    \"type\": \"string\"","                },","                \"house_name\": {","                    \"$id\": \"#/properties/user_info/properties/house_name\",","                    \"type\": \"string\"","                },","                \"postcode\": {","                    \"$id\": \"#/properties/user_info/properties/postcode\",","                    \"type\": \"string\"","                },","                \"date_of_birth\": {","                    \"$id\": \"#/properties/user_info/properties/date_of_birth\",","                    \"type\": \"string\"","                }","            },","            \"$id\": \"#/properties/user_info\",","            \"type\": \"object\"","        }","    },","    \"$id\": \"http://example.org/root.json#\",","    \"type\": \"object\",","    \"definitions\": {},","    \"$schema\": \"http://json-schema.org/draft-07/schema#\"","};","","var validate = ajv.compile(schema);","var valid = validate(pm.request.body);","if (!valid) console.log(validate.errors);*/","","//console.log(pm.request.body);",""],"type":"text/javascript"}},{"listen":"test","script":{"id":"6c0ea350-f708-43aa-a5b5-f75e6b14120d","exec":["/* REQUEST CONFIG */","","// Get default values for tests","// JSON keys used in Number Validate response","var assured_age_response_keys =","[","    'user_info_match',","    'status',","    'status_message',","    'transaction_id',","    'correlation_id'","];","","var schema = {","    \"$schema\": \"http://json-schema.org/draft-07/schema\",","    \"$id\": \"http://example.org/number-assurance-schema.json\",","    \"type\": \"object\",","    \"title\": \"Successful Response\",","    \"description\": \"Expected content of the NumberValidate response\",","    \"default\": {},","    \"examples\": [","        {","            \"user_info_match\": {","                \"name_match\": true,","                \"name_data_available\": true,","                \"address_match\": true,","                \"address_data_available\": true,","                \"birthdate_match\": true,","                \"birthdate_data_available\": true","            },","            \"status\": 0,","            \"status_message\": \"transaction successful\",","            \"transaction_id\": \"17981944-c548-4cbe-b0a8-a55823d11229\",","            \"correlation_id\": \"1594937565\"","        }","    ],","    \"required\": [","        \"user_info_match\",","        \"status\",","        \"status_message\",","        \"transaction_id\",","        \"correlation_id\"","    ],","    \"properties\": {","        \"user_info_match\": {","            \"required\": [","                \"name_match\",","                \"name_data_available\",","                \"address_match\",","                \"address_data_available\",","                \"birthdate_match\",","                \"birthdate_data_available\"","            ],","            \"properties\": {","                \"name_match\": {","                    \"$id\": \"#/properties/user_info_match/properties/name_match\",","                    \"type\": \"boolean\"","                },","                \"name_data_available\": {","                    \"$id\": \"#/properties/user_info_match/properties/name_data_available\",","                    \"type\": \"boolean\"","                },","                \"address_match\": {","                    \"$id\": \"#/properties/user_info_match/properties/address_match\",","                    \"type\": \"boolean\"","                },","                \"address_data_available\": {","                    \"$id\": \"#/properties/user_info_match/properties/address_data_available\",","                    \"type\": \"boolean\"","                },","                \"birthdate_match\": {","                    \"$id\": \"#/properties/user_info_match/properties/birthdate_match\",","                    \"type\": \"boolean\"","                },","                \"birthdate_data_available\": {","                    \"$id\": \"#/properties/user_info_match/properties/birthdate_data_available\",","                    \"type\": \"boolean\"","                }","            },","            \"$id\": \"#/properties/user_info_match\",","            \"type\": \"object\"","        },","        \"status\": {","            \"$id\": \"#/properties/status\",","            \"type\": \"integer\",","            \"title\": \"Request status\",","            \"description\": \"The outcome of the request, 0 on success or an error code.\",","            \"default\": 0,","            \"examples\": [","                0","            ],","            \"pattern\": \"^\\\\d{1,3}$\"","        },","        \"status_message\": {","            \"$id\": \"#/properties/status_message\",","            \"type\": \"string\",","            \"title\": \"Status Message\",","            \"description\": \"a textual representation of the status\",","            \"default\": \"\",","            \"examples\": [","                \"Transaction successful\"","            ],","            \"maxLength\": 255,","            \"minLength\": 1,","            \"pattern\": \"^.{1,255}$\"","        },","        \"transaction_id\": {","            \"$id\": \"#/properties/transaction_id\",","            \"type\": \"string\",","            \"default\": \"\",","            \"examples\": [","                \"0b7a4b79-43ad-4609-ac78-ea38d34d2685\"","            ],","            \"pattern\": \"^[0-9a-f\\\\-]{36}$\",","            \"title\": \"Transaction ID\",","            \"description\": \"Transaction ID\"","        },","        \"correlation_id\": {","            \"$id\": \"#/properties/correlation_id\",","            \"type\": \"string\",","            \"title\": \"Correlation ID\",","            \"description\": \"A correlation identifier provided by the customer and used to uniquely track the transactions end to end. The value provided will be echoed back in the responses.\",","            \"default\": \"\",","            \"examples\": [","                \"1537895865\"","            ]","        }","    }","};","","// Use iteration data if provided","if(pm.iterationData.get('expected_fields')) {","    assured_age_response_keys = pm.iterationData.get('expected_fields');","    console.log('Setting expected_fields from iteration data');","}","","if(pm.iterationData.get('schema')) {","    schema = pm.iterationData.get('schema');","    console.log('Setting schema from iteration data');","}","","// collectionUtils.checkResponseKeys(assured_age_response_keys);","// collectionUtils.checkForExtraKeys(assured_age_response_keys);","collectionUtils.validateSchema(schema);",""],"type":"text/javascript"}}],"id":"dfd3020a-5dbc-4d88-87a1-e499960eddde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"{{correlation_id}}\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n      \"age\": 18\n  }\n}"},"url":"{{API_endpoint}}/core/v1/NumberDiscovery/ageStatus","description":"<p>verify that the mobile phone number provided by a customer is registered to them and they meet certain age requirements </p>\n","urlObject":{"path":["core","v1","NumberDiscovery","ageStatus"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"84e40f6c-e705-4156-a5d1-e4f67eff2afa","name":"Age Verification","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"{{correlation_id}}\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n      \"age\": 18\n  }\n}"},"url":"{{API_endpoint}}/core/v2/NumberDiscovery/ageStatus"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.21.0"},{"key":"Date","value":"Fri, 29 Oct 2021 16:08:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"is_of_age\": true,\n    \"status\": 0,\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"716107f3-5271-4707-b3db-855000321025\",\n    \"correlation_id\": \"\",\n    \"HTTP_status\": 200\n}"}],"_postman_id":"dfd3020a-5dbc-4d88-87a1-e499960eddde"}],"id":"41ca0d17-7297-4586-9244-4909dcf5ff83","event":[{"listen":"prerequest","script":{"id":"620892bc-02dd-4b46-92cd-c80acedcd004","type":"text/javascript","exec":["// Reset any variables from previous iteration","pm.variables.unset(\"number\");","","// Check iteration data for variable replacements","if(pm.iterationData.get('number') && pm.iterationData.get('number') == '{{number}}') {","    console.log('Replacing {{number}} in iterationData');","    pm.variables.set(\"number\", pm.globals.get(\"number\"));","}",""]}},{"listen":"test","script":{"id":"a1d98003-8a03-441c-b9dd-5ecf1dc50507","type":"text/javascript","exec":[""]}}],"_postman_id":"41ca0d17-7297-4586-9244-4909dcf5ff83","description":""},{"name":"Smart Messaging","item":[{"name":"SmartSM - basic","id":"bcc64900-fb35-4752-ba2e-195662c1f35b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"number\": \"{{number}}\",\n  \"messages\": {\n    \"from\": \"{{from}}\",\n    \"on_success\": \"{{on_success}}\",\n    \"on_failure\": \"{{on_failure}}\"\n    }\n}"},"url":"{{API_endpoint}}/core/v1/SmartSM/basic","urlObject":{"path":["core","v1","SmartSM","basic"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"abb926d2-e5d2-4378-bbdb-24c8305ca7fd","name":"Smart messaging with basic checks","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\",\n  \"messages\": {\n    \"from\": \"Bankx\",\n    \"on_success\": \"BankX: Your security code is: 212343. Your code expires in 5 minutes. Please don't reply.\",\n    \"on_failure\": \"BankX: You have failed security checks. Please contact customer services on 0800123456 quoting ref 12Z34\",\n    \"on_delivery_callback\": \"https://mysite.com/SmartSM_callback.php\"\n    }\n}"},"url":"{{API_endpoint}}/core/v1/SmartSM/basic"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:21:06 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=8146p5ljatjh0frbl6cf07724356hv10; expires=Wed, 19-Sep-2018 17:21:07 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"call_forward_check\":\"pass\",\"sim_swap_check\":\"pass\",\"status\":0,\"status_message\":\"Transaction successful\",\"transaction_id\":\"00132b8f-c18a-40b3-adc7-55eaa2ff0a63\",\"correlation_id\":\"1537377665\"}"}],"_postman_id":"bcc64900-fb35-4752-ba2e-195662c1f35b"},{"name":"SmartSM - standard","id":"a64925b0-a65c-4ebd-9c89-45cd2fbca8a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"MSISDN\": \"{{number}}\",\n  \"vicinity_info\": {\n    \"country\": \"{{country}}\"\n  },\n  \"messages\": {\n    \"from\": \"{{from}}\",\n    \"on_success\": \"{{on_success}}\",\n    \"on_failure\": \"{{on_failure}}\"\n  }\n}"},"url":"{{API_endpoint}}/core/v1/SmartSM/basic","urlObject":{"path":["core","v1","SmartSM","basic"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a64925b0-a65c-4ebd-9c89-45cd2fbca8a0"},{"name":"SmartSM - assured","id":"d0a5e294-5a52-48a1-9b23-f5df95c1d67d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n    \"first_name\": \"{{first_name}}\",\n    \"surname\": \"{{surname}}\",\n    \"date_of_birth\": \"{{date_of_birth}}\",\n    \"house_number\": \"{{house_number}}\",\n    \"house_name\": \"{{house_name}}\"\n  },\n  \"vicinity_info\": {\n    \"postcode\": \"{{postcode}}\",\n    \"country\": \"{{country}}\"\n  },\n  \"messages\": {\n    \"from\": \"{{from}}\",\n    \"on_success\": \"{{on_success}}\",\n    \"on_failure\": \"{{on_failure}}\"\n  }\n}\n"},"url":"{{API_endpoint}}/core/v1/SmartSM/assured","urlObject":{"path":["core","v1","SmartSM","assured"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"7643253f-9fc6-4d70-9c0e-677b2ef04f49","name":"Smart messaging with assured checks","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"use_case\": \"{{use_case}}\",\n  \"MSISDN\": \"{{number}}\",\n  \"user_info\": {\n    \"first_name\": \"{{first_name}}\",\n    \"surname\": \"{{surname}}\",\n    \"date_of_birth\": \"{{date_of_birth}}\",\n    \"house_number\": \"{{house_number}}\",\n    \"house_name\": \"{{house_name}}\"\n  },\n  \"vicinity_info\": {\n    \"postcode\": \"{{postcode}}\",\n    \"radius\": 25000,\n    \"country\": \"{{country}}\"\n  },\n  \"messages\": {\n    \"from\": \"Bankx\",\n    \"on_success\": \"BankX: Your security code is: 212343. Your code expires in 5 minutes. Please don't reply.\",\n    \"on_failure\": \"BankX: You have failed security checks. Please contact customer services on 0800123456 quoting ref 12Z34\",\n    \"on_delivery_callback\": \"https://mysite.com/SmartSM_callback.php\"\n  }\n}\n"},"url":"{{API_endpoint}}/core/v1/SmartSM/assured"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 19 Sep 2018 17:21:14 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Pragma","value":"no-cache","name":"Pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"Server","value":"nginx/1.15.0","name":"Server","description":"A name for the server"},{"key":"Set-Cookie","value":"ci_session=3fadl0uvkqgkn8a3osdq31p33bs0nm9n; expires=Wed, 19-Sep-2018 17:21:15 GMT; Max-Age=1; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly","name":"Set-Cookie","description":"an HTTP cookie"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"X-Powered-By","value":"PHP/7.1.19","name":"X-Powered-By","description":"Specifies the technology (ASP.NET, PHP, JBoss, e.g.) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version)"}],"cookie":[],"responseTime":null,"body":"{\"call_forward_check\":\"pass\",\"sim_swap_check\":\"pass\",\"status\":0,\"country_check\":\"pass\",\"vicinity_check\":\"pass\",\"user_info_match\":{\"name_match\":false,\"address_match\":true,\"birthdate_match\":false,\"is_lost_or_stolen\":false,\"contract_type\":\"Business\"},\"status_message\":\"Transaction successful\",\"transaction_id\":\"82476b36-5010-4bec-ae3a-72eb4426f840\",\"correlation_id\":\"1537377671\"}"}],"_postman_id":"d0a5e294-5a52-48a1-9b23-f5df95c1d67d"}],"id":"ca64ab55-68c3-447d-9558-9bc59ca7d572","event":[{"listen":"prerequest","script":{"id":"42d207fb-3414-4400-b0c7-00dd7c645052","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"485d01bb-6bd3-4668-80d2-8150b3281fd8","type":"text/javascript","exec":[""]}}],"_postman_id":"ca64ab55-68c3-447d-9558-9bc59ca7d572","description":""},{"name":"KYC","item":[{"name":"MNO - Match","id":"c18985f6-98c4-47dd-b8aa-688e8482e71f","protocolProfileBehavior":{"disableBodyPruning":true,"disableCookies":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n      \"first_name\": \"{{first_name}}\",\n      \"surname\": \"{{surname}}\",\n      \"house_number\": \"{{house_number}}\",\n      \"house_name\": \"{{house_name}}\",\n      \"postcode\": \"{{postcode}}\",\n      \"date_of_birth\": \"{{date_of_birth}}\"\n  }\n}"},"url":"{{API_endpoint}}/core/v1/MNO/match","urlObject":{"path":["core","v1","MNO","match"],"host":["{{API_endpoint}}"],"query":[],"variable":[]}},"response":[{"id":"a024fa18-d64c-483a-9d0c-f96569014598","name":"MNO - Match with EE extensions","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n      \"first_name\": \"{{first_name}}\",\n      \"surname\": \"{{surname}}\",\n      \"house_number\": \"{{house_number}}\",\n      \"house_name\": \"{{house_name}}\",\n      \"postcode\": \"{{postcode}}\",\n      \"date_of_birth\": \"{{date_of_birth}}\"\n  }\n}"},"url":"{{API_endpoint}}/core/v1/MNO/match"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.17.7"},{"key":"Date","value":"Sun, 12 Jan 2020 11:53:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.4.1"},{"key":"Set-Cookie","value":"ci_session=5lt4ecflk82qc770vj2rtr2a9o0vr9hi; expires=Sun, 12-Jan-2020 11:53:28 GMT; Max-Age=1; path=/; HttpOnly"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_info_match\": {\n        \"first_name_match\": true,\n        \"first_name_data_available\": true,\n        \"last_name_match\": true,\n        \"last_name_data_available\": true,\n        \"name_match\": true,\n        \"name_data_available\": true,\n        \"postcode_match\": true,\n        \"postcode_data_available\": true,\n        \"address_match\": true,\n        \"address_data_available\": true,\n        \"birthdate_match\": true,\n        \"birthdate_data_available\": true,\n        \"is_lost_or_stolen\": false,\n        \"contract_type\": \"PAYM\"\n    },\n    \"status\": 0,\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"a298b6a6-1e5d-4d32-8529-10ecd555882e\",\n    \"correlation_id\": \"1578830001\"\n}"},{"id":"eabc8be4-759c-48da-9580-3f9bc70e4d9d","name":"MNO - Match results","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"API_token\": \"{{API_token}}\",\n  \"API_secret\": \"{{API_secret}}\",\n  \"correlation_id\": \"1775607722\",\n  \"number\": \"{{number}}\",\n  \"user_info\": {\n      \"first_name\": \"{{first_name}}\",\n      \"surname\": \"{{surname}}\",\n      \"house_number\": \"{{house_number}}\",\n      \"house_name\": \"{{house_name}}\",\n      \"postcode\": \"{{postcode}}\",\n      \"date_of_birth\": \"{{date_of_birth}}\"\n  }\n}"},"url":"{{API_endpoint}}/core/v1/MNO/match"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.17.0"},{"key":"Date","value":"Mon, 29 Jul 2019 08:53:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.6"},{"key":"Set-Cookie","value":"ci_session=kjp67sfqg166c1718l44vj2vrc77ovrd; expires=Mon, 29-Jul-2019 08:53:24 GMT; Max-Age=1; path=/; HttpOnly"},{"key":"Set-Cookie","value":"ci_session=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; HttpOnly"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_info_match\": {\n        \"name_match\": true,\n        \"name_data_available\": true,\n        \"address_match\": false,\n        \"address_data_available\": true,\n        \"birthdate_match\": false,\n        \"birthdate_data_available\": false,\n        \"is_lost_or_stolen\": false,\n        \"contract_type\": \"Business\"\n    },\n    \"status\": 0,\n    \"status_message\": \"transaction successful\",\n    \"transaction_id\": \"cfd08737-5fe9-4c45-93f8-3a624d6c47a7\",\n    \"correlation_id\": \"1564390402\"\n}"}],"_postman_id":"c18985f6-98c4-47dd-b8aa-688e8482e71f"}],"id":"df6174c4-0137-4327-913c-5d637bb2c253","_postman_id":"df6174c4-0137-4327-913c-5d637bb2c253","description":""}],"event":[{"listen":"prerequest","script":{"id":"f8f45417-d4a5-4e96-bac6-cb618e41380e","type":"text/javascript","exec":["console.log('Starting iteration ' + pm.info.iteration + ' with test_name: [' + pm.iterationData.get('test_name') + '] v1');","","pm.variables.unset(\"API_token\");","pm.variables.unset(\"API_secret\");","","if(pm.iterationData.get('API_token') && pm.iterationData.get('API_token') == '{{API_token}}') {","    console.log('Replacing {{API_token}} in iterationData');","    pm.variables.set(\"API_token\", pm.environment.get(\"API_token\"));","}","","if(pm.iterationData.get('API_secret') && pm.iterationData.get('API_secret') == '{{API_secret}}') {","    console.log('Replacing {{API_secret}} in iterationData');","    pm.variables.set(\"API_secret\", pm.environment.get(\"API_secret\"));","}",""]}},{"listen":"test","script":{"id":"99675277-67f2-4e1a-8ea6-f4736dd361f7","type":"text/javascript","exec":["/**"," * Returns the value of an object property from a given path or null"," * "," * @param {String} path Path of the property to resolve"," * @param {Object} obj Object to resolve the property on"," */","function resolve(path, obj) {","    return path.split('.').reduce(function(prev, curr) {","        return prev ? prev[curr] : null","    }, obj || self)","}","","var expected_status_id = pm.iterationData.get('expected_status_id') ? parseInt(pm.iterationData.get('expected_status_id')) : 200;","var expected_sub_status = pm.iterationData.get('expected_sub_status') ? parseInt(pm.iterationData.get('expected_sub_status')) : 0;","var expected_status_message = pm.iterationData.get('expected_status_message') ? pm.iterationData.get('expected_status_message') : 'transaction successful';","","// Test: HTTP status is 200 OK","pm.test('collection assert: HTTP status code is ' + expected_status_id, function()","{","    pm.response.to.have.status(expected_status_id);","","    if (pm.response.code !== 200)","    {","        console.warn('Response code: ' + pm.response.code);","    }","});","","var response = pm.response.json();","","// Test: Correlation ID matches","pm.test('collection assert: Correlation ID matches', function(){","    var requestBody = JSON.parse(pm.request.body.raw);","    if(requestBody && requestBody.correlation_id) {","        console.log('Testing correlation_id matches ' + requestBody.correlation_id);","        pm.expect(response.correlation_id).to.equal(requestBody.correlation_id);","    }","});","","// Test: Returned status code matches expected (defaults to 0)","console.log('Checking returned status code matches ' + expected_sub_status, response.status);","tests[\"collection assert: status code \" + expected_sub_status + \" - \" + expected_status_message] = response.status === expected_sub_status;","","// Test: 'transaction successful' transaction successful string","pm.test('collection assert: transaction status message', function()","{","    console.log('Testing for expected_status_message with value: ' + expected_status_message);","    pm.expect(response.status_message).to.have.string(expected_status_message);","});","","// Test expected responses, if any provided in the test data","// e.g. \"expected_response\": [","//    {","//        \"property\": \"user_info.first_name\", // a property of the response data, supports dot notation","//        \"value\": \"David\" // the expected response, compared using strict comparison ie. ===","//    },","//    {","//        \"property\": \"status_message\",","//        \"value\": \"transaction successful\"","//    }","// ]","if(pm.iterationData.get('expected_response')) {","    let expected_responses = pm.iterationData.get('expected_response');","","    // Loop through each expected response item and check against actual response","    expected_responses.forEach(function(expectedResponse, index){","        pm.test('collection assert: expected response [' + index +  '] for response.' + expectedResponse.property, function()","        {","            console.log('Testing expected_response ' + index + ' for response.' + expectedResponse.property + ' with value: ' + expectedResponse.value);","            let actualValue = resolve(expectedResponse.property, response);","            pm.expect(actualValue).to.equal(expectedResponse.value);","        });","    });","}","","/* Collection level utilties */","collectionUtils =","{","","    /**","     * Test: ensure that all required primary keys are present","     * @deprecated Use schema validation instead","     * @param {string[]} aResponseKeys Expected response object keys","     */","    checkResponseKeys: function(aResponseKeys)","    {","        //console.log(aResponseKeys);","        console.log('checkResponseKeys', aResponseKeys);","        ","        pm.test('collection assert: response contains required keys', function()","        {","            pm.expect(response).to.have.all.keys","            (","                aResponseKeys","            );","        });","    },","","    /**","     * Test: detect extra/spoofed keys","     * @deprecated Use schema validation instead","     * @param {string[]} aResponseKeys Expected response object keys","     */","    checkForExtraKeys: function(aResponseKeys)","    {","        console.log('checkForExtraKeys', aResponseKeys);","","        pm.test('collection assert: response does not contain extra keys', function()","        {","            var valid_keys = true;","        ","            for (var k in response)","            {","        \t\tif ( ! aResponseKeys.includes(k))","        \t\t{","        \t\t    valid_keys = false;","        \t\t    console.warn('response contains extra key: ' + k);","        \t\t    break; // exit on first key error","        \t\t}","        \t}","        ","            pm.expect(valid_keys).to.equal(true);","        });","    },","    ","    /**","     * Test: ensure all fields specified have values (of true)","     * @param {string[]} aFields Expected response object keys that should have a value of true","     * @param {object} oResponse Response object","     */","    checkFieldValues: function(aFields, oResponse)","    {","        console.log('checkFieldValues', aFields, oResponse);","","        pm.test('collection assert: all specified response fields have data matches', function()","        {","           var rf = oResponse;","","           aFields.forEach(function(key)","           {","               pm.expect(rf[key]).to.equal(true);","           });","        });","        ","    },","    ","    /**","     * Test: Response JSON schema validation using AJV","     * @param {object} sSchema Schema to validate against","     */","    validateSchema: function(sSchema)","    {","        console.log('validateSchema', sSchema);","        ","        var Ajv = require('ajv');","        var ajv = new Ajv({logger: console, coerceTypes: false, allErrors: true, verbose: true});","        var validate = ajv.compile(sSchema);","        var valid_schema = validate(pm.response.json()); //validate(response);","","        pm.test('collection assert: schema valid', function()","        {","            if (!valid_schema)","            {","                console.log('Schema validation failed', validate.errors);","            }","            ","            pm.expect(valid_schema).to.be.true;","        });","    }","","};","","// Clean up environment","pm.environment.unset('number');","pm.environment.unset('hashed_IMSI');","pm.environment.unset('first_name');","pm.environment.unset('surname');","pm.environment.unset('house_number');","pm.environment.unset('house_name');","pm.environment.unset('postcode');","pm.environment.unset('country');","pm.environment.unset('date_of_birth');","pm.environment.unset('use_case');","pm.environment.unset('from');","pm.environment.unset('on_success');","pm.environment.unset('on_failure');",""]}}]}