{"info":{"_postman_id":"8879628a-7be0-4d21-abfc-d678dac52ba1","name":"Travefy API - Public","description":"<html><head></head><body><img src=\"https://travefy-assets.s3.amazonaws.com/img/app/misc/Travefy-API-Banner.jpg\">\n\n<p>Here are some pre-made requests for you to explore the API using <a href=\"https://getpostman.com\">Postman.</a></p>\n<h1 id=\"api-keys\">API Keys</h1>\n<p>You need API credentials (keys) to use Travefy’s API. Please note that Travefy’s API is a paid product separate from seat licenses. Additionally, you can find all API pricing information <a href=\"https://intercom.help/travefy/articles/956803-api-pricing\">here</a>.</p>\n<ul>\n<li><p>To learn more about Travefy’s paid API or to purchase API Keys please email <a href=\"https://mailto:apisales@travefy.com\">apisales@travefy.com</a></p>\n</li>\n<li><p>If you already have API keys / credentials and are in need of support you can contact our API support team at <a href=\"https://mailto:apisupport@travefy.com\">apisupport@travefy.com</a></p>\n</li>\n</ul>\n<p>There is a public key and a private key for your platform.</p>\n<p>Think of your private key like a password:</p>\n<ul>\n<li><p>Store it securely</p>\n</li>\n<li><p>Don't share it with anyone outside of your organization</p>\n</li>\n<li><p>Don't put it in any code on your website or in a Url that someone could find</p>\n</li>\n</ul>\n<p><code>Users</code> you've created on the platform also have a <code>PublicKey</code> and private <code>AccessToken</code>. This <code>AccessToken</code> is specific to your platform and acts as a password for the <code>User</code>, so do not share this access token. It may be revoked by the <code>User</code> at any time.</p>\n<p>Different calls in the API require different keys. For example, creating and managing <code>Users</code> requires your platform's secret key. Creating <code>Trips</code> on behalf of a <code>User</code> requires your platform's public key and the <code>AaccessToken</code> for the <code>User</code>. Check each call for the requirements.</p>\n<h1 id=\"setup\">Setup</h1>\n<p>NOTE: You'll need to <a href=\"https://www.getpostman.com/docs/environments\">create an environment in Postman</a>, select that environment, and enter your platform's api keys in the <code>0 - Setup/Environment Setup</code> pre-request script (<a href=\"http://www.getpostman.com/docs/pre_request_scripts\">documentation on pre-request scripts</a>) to set the environment variables. Also, the calls have dependencies. A <code>Trip</code> must be created before a <code>TripDay</code>, a <code>TripDay</code> must be created before a <code>TripEvent</code>, and <code>GET</code>/<code>UPDATE</code>/<code>DELETE</code> calls will only work after an item is created with a <code>POST</code>.</p>\n<p>NOTE: The <a href=\"#10087261-a1b2-a05d-966d-bcf4609fc649\">Create Full Trip</a> request is the only request that allows child entities (days, events, and ideas) to be passed in with the parent entity. All other calls will only affect the primary entity.</p>\n<h1 id=\"making-your-first-call\">Making Your First Call</h1>\n<p>Making your first call<br>Test that you have the headers setup by making a <code>GET</code> request to <code>/api/v1/echo</code> with the <code>X-API-PUBLIC-KEY</code> header set to your platform's public key. <a href=\"#ae3d-d794-c1e9-ba9f-25414ce121bb\">Here's the Postman test for that</a>. You should get a <code>HTTP 200 OK</code> response if your keys are correct.</p>\n<p>Next, make a <code>GET</code> request to /api/v1/secureEcho with the <code>X-API-PUBLIC-KEY</code> and <code>X-API-PRIVATE-KEY</code> headers set to your platform's public and private keys. <a href=\"#bc0d6a-f565-164d-0699-baae5899a97e\">Here's the Postman test for that</a>. You should get a <code>HTTP 200 OK</code> response if your keys are correct.</p>\n<h1 id=\"environments\">Environments</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>API Base Url</th>\n<th>Web App Url</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Production</td>\n<td><a href=\"https://api.travefy.com/\">https://api.travefy.com/</a></td>\n<td><a href=\"https://travefy.com/\">https://travefy.com/</a></td>\n</tr>\n</tbody>\n</table>\n</div><p>Notes:</p>\n<ul>\n<li><p>Your platform will have separate API keys for each environment.</p>\n</li>\n<li><p>Data created or modified in each environment will not affect the other.</p>\n</li>\n<li><p>Data cannot be transfered from one environment to the other.</p>\n</li>\n</ul>\n<h1 id=\"versioning\">Versioning</h1>\n<p>If any breaking changes are made on an endpoint, then those change will be rolled out in a new version of the API. The version of an endpoint to use can be indicated in the request using the following methods:</p>\n<ol>\n<li><p><code>/v1-{apiVersion}/...</code>By adding a prefixed path to the api</p>\n</li>\n<li><p>Header value of <code>X-API-VERSION: {apiVersion}</code></p>\n</li>\n<li><p>Query string of <code>apiVersion={apiVersion}</code></p>\n</li>\n</ol>\n<p>The above methods are list in increasing precedence, e.g. if both the <code>apiVersion={apiVersion}</code> query string value is present and the <code>/v1-{apiVersion}/...</code> route is used, the version given in the <code>apiVersion</code> query string parameter will be used. The HTTP response, will contain the version number of the API version selected for the request in a <code>X-API-VERSION</code> header.</p>\n<p>To upgrade the API version application-wide, using Methods 1 or 2 is best.</p>\n<p>To upgrade the version to user for a specific enpoint, using Methods 2 or 3 is best.</p>\n<p>The api version numbers are 8-digit encodings of their release date in the format <code>YYYYMMDD</code>.</p>\n<h1 id=\"deprecations\">Deprecations</h1>\n<p>Deprecated endpoints are marked with <code>- Deprecated)</code>. The documentation for these endpoints will indicate when the endpoint was deprecated, as well as the proper alternative endpoint to use.</p>\n<p>Furthermore, When hitting these endpoints, the HTTP response with contain the headers <code>X-API-DEPRECATED-ON</code> and <code>X-API-DEPRECATED-MOVE-TO</code> to provide this information as well.</p>\n<h1 id=\"changelog\">Changelog</h1>\n<h2 id=\"02-12-2019-v20190212\">02-12-2019 (v20190212)</h2>\n<p>This update now includes the <code>Info &amp; Documents</code> section. Below is some information about this section:</p>\n<ul>\n<li><p>There is no way to delete this section</p>\n</li>\n<li><p>You can only have one <code>Info &amp; Documents</code> section on a trip</p>\n</li>\n<li><p>The <code>Info &amp; Documents</code> section cannot be renamed</p>\n</li>\n<li><p>The only event type that can be used in the <code>Info &amp; Documents</code> section is the \"info\" event type (12)</p>\n</li>\n<li><p>The <code>Info &amp; Documents</code> events only have 4 sections</p>\n<ol>\n<li><p>Name</p>\n</li>\n<li><p>Description</p>\n</li>\n<li><p>Images</p>\n</li>\n<li><p>TripIdeas</p>\n</li>\n</ol>\n</li>\n</ul>\n<p>The <code>Info &amp; Documents</code> section is parameter <code>isSupplemental</code> either <code>true</code> or <code>false</code>. If you set <code>\"isSupplemental\": false</code> the events you created are placed on a \"normal\" day. If you set this to <code>true</code>, the events you created are placed in the <code>Info &amp; Documents</code> section.</p>\n<p>You will find more infomation about how this section is created or affected by a request, in that specific request's information. Below is a list of some of the requests you should be aware of:</p>\n<ul>\n<li><p><a href=\"https://developer.travefy.com/#58752c87-04ef-4fdb-ad8c-b8619da0948f\">Create Trip</a> - the <code>Info &amp; Documents</code> section is automatically created</p>\n</li>\n<li><p><a href=\"https://developer.travefy.com/#cb4a3717-ca90-4c3a-8e3e-2edb1910c580\">Create Full Trip</a> - the <code>IsSupplemental</code> is required on all days</p>\n</li>\n<li><p><a href=\"https://developer.travefy.com/#e8c423ef-c19e-4d84-9473-a8f40d60814f\">Create Trip Day</a> - the <code>IsSupplemental</code> is not required on this request but is automatically set to <code>false</code></p>\n</li>\n</ul>\n<h1 id=\"single-sign-on-sso\">Single Sign-On (SSO)</h1>\n<p>For platforms that have it enabled, <code>Users</code> can be authenticated into your platform the Travefy environment from your site. To use this, <code>POST</code> a <code>form</code> to <code>https://{{your-travefy-platform-url}}/auth/tokenBasedLogin</code>. The <code>User</code> will then be authenticated and redirected to their account page.</p>\n<p>Here is a sample HTML form:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\"> &lt;body&gt;\n &lt;!-- Change the host name if you are using a custom domain --&gt;\n   &lt;form action=\"https://travefy.com/auth/tokenBasedLogin\" method=\"post\"&gt;\n    &lt;!-- add your PUBLIC key here --&gt;\n     &lt;input type=\"hidden\" name=\"platformPublicKey\" value=\"3f3663bca6b7471281e5751d233e970e\" /&gt;\n    &lt;!-- add the user&amp;#x27;s access token here (details on the user token: https://documenter.getpostman.com/view/322751/travefy-api-public/53p#Users) --&gt;\n     &lt;input type=\"hidden\" name=\"userAccessToken\" value=&amp;#x27;adf10ffa370b4b5a836dfd40d691df05&amp;#x27; /&gt;\n    &lt;!-- style/name this button whatever you&amp;#x27;d like --&gt;\n     &lt;button type=&amp;#x27;submit&amp;#x27;&gt;Go To Travefy!&lt;/button&gt;\n    &lt;!-- after clicking this button, the user will be authenticated on the Travefy platform and have their authentication cookies set --&gt;\n   &lt;/form&gt;\n   &lt;br/&gt;\n  &lt;a href=\"https://developer.travefy.com/#intro\"&gt;API welcome documentation&lt;/a&gt;\n   &lt;br/&gt;\n  &lt;a href=\"https://developer.travefy.com/#Users\"&gt;API Users documentation&lt;/a&gt;\n &lt;/body&gt;\n</code></pre>\n<p>You'll need to do a few changes from this example:</p>\n<ol>\n<li><p>Change the base URL from <code>travefy.com</code> to your Travefy platform URL.</p>\n</li>\n<li><p>Add your platform's public key. <em>NOTE: DO NOT add your Private Key to any public or user-accessible page</em>.</p>\n</li>\n<li><p>Add the user's access token. <em>NOTE: This is a secure token and should be on a page that only authorized users can access.</em></p>\n</li>\n<li><p>Style the button.</p>\n</li>\n</ol>\n<h1 id=\"authorization-redirect-url\">Authorization Redirect Url</h1>\n<p>For platforms that have it enabled, after users have completed authorization of the platform, they will be redirected to the authorization redirect url. The platform can retrieve information about user that has just completed authorization of the platform using the provided <code>authorizationCode</code>. This would most commonly be used associate a Travefy user account with the user account on the platform.</p>\n<h2 id=\"authorization-code\">Authorization Code</h2>\n<p>After the user has completed authorization they will be redirected to the platform provided authorization redirect url with the <code>authorizationCode</code> included in the <code>code</code> query parameter.</p>\n<p>Example: <code>https://yourdomain.com/travefy-authorization-callback?code={{authorizationCode}}</code></p>\n<p>The <code>authorizationCode</code> will only be valid for 10 minutes. Upon redirect he platform should immediately request user information using the <a href=\"https://developer.travefy.com/#7fc0d076-e8dc-4beb-940e-a45282a28a3e\"><code>GET Get Users by Authorization Code</code></a> request and complete the association of the Travefy user to the platform user.</p>\n<h2 id=\"enabling-a-platform-authorization-redirect-url\">Enabling a Platform Authorization Redirect Url</h2>\n<p>If you would like to enable an authorization redirect url please contact support at <a href=\"https://mailto:apisupport@travefy.com\">apisupport@travefy.com</a>.</p>\n<p>Before your authorization redirect url will be enabled, your redirect url must be tested by Travefy and meet the Guidelines for Authorization Redirect Url.</p>\n<h2 id=\"guidelines-for-authorization-redirect-url\">Guidelines for Authorization Redirect Url</h2>\n<p>To enable use of the Authorization Redirect Url your redirect url must meet the following guidelines.</p>\n<h3 id=\"user-experience-guidelines\">User Experience Guidelines</h3>\n<ul>\n<li><p>Upon redirection with a valid <code>authenticationCode</code>:</p>\n<ul>\n<li><p>The user must be displayed a message that indicates that authorization was successful.</p>\n</li>\n<li><p>The user should be shown a message that explains what a successful authorization means. An example of this would be <code>Your {platformName} account has been connected to your Travefy account. You can now send trips to your Travefy account.</code></p>\n</li>\n<li><p>The user must also be provided a link to either your application or Travefy that helps them to get back in to the application. In addition to the link you may also provide a delayed automatic redirect to the link destination.</p>\n</li>\n</ul>\n</li>\n<li><p>Upon redirection with an invalid <code>authenticationCode</code>:</p>\n<ul>\n<li><p>The user must be notified that their authentication was not successful.</p>\n</li>\n<li><p>The user must be provide with instructions on how to attempt their authorization again.</p>\n</li>\n<li><p>The user must be provided with support contact information for your platform.</p>\n</li>\n</ul>\n</li>\n<li><p>Provide a method to de-authorize the platform. This should send the user to <code>https://travefy.com/account/unauthorize/{platformSlug}</code> so that they are able to de-authorize your platform.</p>\n</li>\n</ul>\n<h3 id=\"security-guidelines\">Security Guidelines</h3>\n<ul>\n<li><p>The authorization redirect url must include a request throttle. More than 10 attempts an hour should not be allowed for a specific ip.</p>\n</li>\n<li><p>If the <code>authorizationCode</code> provided to the authorization redirect url is not valid you must not expose the specific reason. There should be no difference to the user if your platform receives a <code>Gone</code>, <code>NotFound</code> or any other error response from the <a href=\"https://developer.travefy.com/#7fc0d076-e8dc-4beb-940e-a45282a28a3e\"><code>GET Get Users by Authorization Code</code></a> request. Best practice would be to inform the user that their authorization is no longer valid and provide them with instructions on how to attempt again. The request endpoint exposes the specifics of the errors so that the platform assist users with issues they may experience during authorization.</p>\n</li>\n</ul>\n<h1 id=\"api-pricing\">API Pricing</h1>\n<p>Click <a href=\"https://intercom.help/travefy/api-and-developer-tools/api-pricing\">here</a> for information on our API pricing.</p>\n<h1 id=\"questionscommentssuggestions\">Questions/Comments/Suggestions</h1>\n<p>If you have any questions or comments, please let us know at <a href=\"https://mailto:apisupport@travefy.com\">apisupport@travefy.com</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"API Keys","slug":"api-keys"},{"content":"Setup","slug":"setup"},{"content":"Making Your First Call","slug":"making-your-first-call"},{"content":"Environments","slug":"environments"},{"content":"Versioning","slug":"versioning"},{"content":"Deprecations","slug":"deprecations"},{"content":"Changelog","slug":"changelog"},{"content":"Single Sign-On (SSO)","slug":"single-sign-on-sso"},{"content":"Authorization Redirect Url","slug":"authorization-redirect-url"},{"content":"API Pricing","slug":"api-pricing"},{"content":"Questions/Comments/Suggestions","slug":"questionscommentssuggestions"}],"owner":"242473","collectionId":"8879628a-7be0-4d21-abfc-d678dac52ba1","publishedId":"RzZFDcZB","public":true,"customColor":{"top-bar":"44BBFF","right-sidebar":"303030","highlight":"2BEAAF"},"publishDate":"2019-03-29T18:52:38.000Z"},"item":[{"name":"v1","item":[{"name":"Setup","item":[{"name":"Environment Setup","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["//set your platform api keys here\r","postman.setEnvironmentVariable(\"platform-private-key\", \"<YOUR-PLATFORM-PRIVATE-API-KEY>\");\r","postman.setEnvironmentVariable(\"platform-public-key\", \"<YOUR-PLATFORM-PUBLIC-API-KEY>\");\r","\r","//these are currently set to sandbox mode, set to live mode by removing the port at your own risk\r","postman.setEnvironmentVariable(\"base-api-url\", \"https://api.travefy.com:81/\");\r","\r","\r","//this is Travefy internal stuff for easier testing, so please ignore :)\r","if (globals['global-platform-private-key']) {\r","    postman.setEnvironmentVariable(\"platform-private-key\", globals['global-platform-private-key']);\r","    postman.setEnvironmentVariable(\"platform-public-key\", globals['global-platform-public-key']);\r","    \r","    //these are currently set to sandbox mode, set to live mode at your own risk\r","    postman.setEnvironmentVariable(\"base-api-url\", globals['global-base-api-url']);\r","}\r",""]}}],"id":"4dab2389-94da-41e2-ad4f-c7ac29f7d5bb","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://postman-echo.com/get","description":"<p>Setup your access keys for all further requests in the Pre-request script.  Don't have your access keys?  Contact <a href=\"mailto:apisupport@travefy.com\">apisupport@travefy.com</a>.</p>\n<p>You should only need to run this one time as these values will be stored in your Postman environment.</p>\n","urlObject":{"protocol":"https","path":["get"],"host":["postman-echo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4dab2389-94da-41e2-ad4f-c7ac29f7d5bb"},{"name":"Secure Echo","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""]}}],"id":"4d9b09b1-82b5-40bf-9be9-0681cf9f0a3c","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/secureEcho","description":"<p>Test that calls with your platform's <em>private</em> API key succeed.</p>\n","urlObject":{"path":["v1","secureEcho"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d9b09b1-82b5-40bf-9be9-0681cf9f0a3c"},{"name":"Echo","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""]}}],"id":"665d404d-df71-4f51-8393-5b56da60ed52","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/echo","description":"<p>Test that calls with your platform's <em>public</em> API key succeed.</p>\n","urlObject":{"path":["v1","echo"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"665d404d-df71-4f51-8393-5b56da60ed52"}],"id":"7957aded-afde-40f4-a265-ef611af4a43d","description":"<h2 id=\"note-you-need-to-run-this-before-any-other-request-if-you-are-using-postman--if-youre-using-another-client-feel-free-to-skip-this\">Note: You need to run this before <em>any</em> other request if you are using Postman.  If you're using another client, feel free to skip this.</h2>\n<p>Add your API keys to the Pre-request Script and execute the <code>Environment Setup</code> request to setup the environment.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>//set your platform api keys here\npostman.setEnvironmentVariable(\"platform-private-key\", \"&lt;YOUR-PLATFORM-PRIVATE-API-KEY&gt;\");\npostman.setEnvironmentVariable(\"platform-public-key\", \"&lt;YOUR-PLATFORM-PUBLIC-API-KEY&gt;\");\n</code></pre>","_postman_id":"7957aded-afde-40f4-a265-ef611af4a43d"},{"name":"Users","item":[{"name":"Create User (Level 1)","event":[{"listen":"test","script":{"id":"46d2f506-94cb-47cf-93b1-12e2be6fc900","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6858d000-e1f3-4054-bec4-dfc3487d7777","request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": false,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1/users/","description":"<p>Create a <code>User</code> on the Travefy platform.</p>\n<p>The response of this request give you a chance to store the <code>AccessToken</code> and <code>PublicKey</code> for the <code>User</code>. Those keys are also available on the <code>User</code> GET and GET by <code>Id</code> requests. These are automatically stored in the Postman environment for testing.</p>\n<p>Note: if the <code>User</code> already has an account on Travefy, they'll need to authorize your Platform on their account. Send them to https://{{your-travefy-platform-url}}/account/authorize and they can approve access. You can then retrieve their tokens via the Get Users call.</p>\n","urlObject":{"path":["v1","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"7d606260-7771-47c0-9031-a5715cc0d3a3","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1763754730@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"875","body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"6858d000-e1f3-4054-bec4-dfc3487d7777"},{"name":"Create User (SSO)","event":[{"listen":"test","script":{"id":"46d2f506-94cb-47cf-93b1-12e2be6fc900","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"024cfaa2-47f1-4b4e-9d95-11d6fe40d0f9","request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": false,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1/users/","description":"<p>Create a <code>User</code> on the Travefy platform that will authenticate using SSO.</p>\n<p>When a user is created through the API they receive a welcome email that enables them to login through the Travefy login form. If you users are using SSO then they wont need this and it can be confusing. You can prevent the welcome email from sending by setting <code>DisableWelcomeEmail</code> to <code>true</code>.</p>\n","urlObject":{"path":["v1","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"9ab530b1-a06d-4c00-9320-9a9c1e14b43f","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1763754731@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"875","body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"024cfaa2-47f1-4b4e-9d95-11d6fe40d0f9"},{"name":"Get User","event":[{"listen":"test","script":{"id":"4225b812-a38b-45df-b584-b3be0abab710","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3a6fa69e-988b-4959-b7d2-89310333ba52","request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":"{\r\n    \"asdf\": \"fdsa\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>Id</code>.</p>\n<p>### Sample Response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}\n\n</code></pre>\n","urlObject":{"path":["v1","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f19f35fe-19e8-4e0e-b790-ebdc7d5c8b85","name":"Get User","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":"{\r\n    \"asdf\": \"fdsa\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"412","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:47:08 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"224","body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"3a6fa69e-988b-4959-b7d2-89310333ba52"},{"name":"Update User","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.endsWith(\"agent2\");","tests['Username has string'] = data.User.Username.endsWith(\"-updated@example.com\");","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;",""]}}],"id":"1a82b70a-50c7-47fa-982a-7eb6b13ad29d","request":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"nate+agent1-1780225217-updated@example.com\",\r\n        \"fullName\" : \"nate test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}","description":"<p>Update a User.  Currently, this will update Username (email), FullName, and ImageUrl.</p>\n","urlObject":{"path":["v1","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2beba9ef-c675-40c2-bf4f-d6f04233f705","name":"Update User","originalRequest":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"updated+agent1-1763754959-updated@example.com\",\r\n        \"fullName\" : \"updated test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"405","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:50:27 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"103","body":"{\n    \"User\": {\n        \"Id\": 127630,\n        \"FullName\": \"updated test agent2\",\n        \"ImageUrl\": null,\n        \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"1a82b70a-50c7-47fa-982a-7eb6b13ad29d"},{"name":"Get Users","event":[{"listen":"test","script":{"id":"a6359111-11a0-4199-8e5e-0d4c33bbe711","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e09e63b8-b06c-40f2-ab1e-a212b26b05c9","request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":"{\r\n    \"asdf\": \"fdsa\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/users","description":"<p>Get all Users that your platform has access to.</p>\n<p>### Sample Response</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    },\n    ...\n]\n\n</code></pre>\n","urlObject":{"path":["v1","users"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"173e727e-5cdc-4428-98b0-821f754102fa","name":"Get Users","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":"{\r\n    \"asdf\": \"fdsa\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"491","body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    }\n]"}],"_postman_id":"e09e63b8-b06c-40f2-ab1e-a212b26b05c9"},{"name":"Get Users  by Authorization Code","event":[{"listen":"test","script":{"id":"932d190e-8211-47b8-a345-302a854d28db","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"04a1378f-ed3a-4baa-af6a-2a4ec3b78bf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","description":"<p>Get a <code>User</code> from the Travefy platform by their expiring <code>authorizationCode</code>. This will return a collection with a single user if the <code>authorizationCode</code> is valid.<br />This method should be used to associate a user that was sent to Travefy to authorize your platform. If the <code>authorizationCode</code> is expired the response code returned will be <code>Gone</code>.</p>\n<p>See <a href=\"https://developer.travefy.com/#authorization-redirect-url\">Authorization Redirect Url</a> for information on retrieving and using the <code>authorizationCode</code>.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}],"variable":[]}},"response":[{"id":"b0c5ca9c-b110-4dc8-ace0-ec1916fc8b2e","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"04a1378f-ed3a-4baa-af6a-2a4ec3b78bf4"},{"name":"Get Users by Partner Identifier","event":[{"listen":"test","script":{"id":"932d190e-8211-47b8-a345-302a854d28db","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e98f77ac-dd14-41e0-bdc3-2cd741d65a65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?partnerIdentifier={{partnerIdentifier}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>partnerIdentifier</code>. <code>partnerIdentifier</code> is a unique Id that was optionally set in the Create User call. This will return a collection with a single user if the <code>partnerIdentifier</code> is valid.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{partnerIdentifier}}"}],"variable":[]}},"response":[{"id":"3bd5a7c6-ea8d-4a80-bdb8-700dd4c94516","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"e98f77ac-dd14-41e0-bdc3-2cd741d65a65"}],"id":"e44c3cc0-923a-4a93-b697-5c279b1bee5c","description":"<h2 id=\"notes\">Notes</h2>\n<p>In production, your platform may be charged for any created users.  Sandbox users are free to create.</p>\n<h2 id=\"request\">Request</h2>\n<p><code>AgentSubscriptionLevel</code> values:</p>\n<ul>\n<li>1 = Plus</li>\n<li>2 = Premium</li>\n</ul>\n<h2 id=\"response-items\">Response Items</h2>\n<p>After successfully creating the <code>User</code>, <code>POST</code> method returns an object with the following properties:</p>\n<ul>\n<li><code>User</code> - The <code>User</code> that was created.</li>\n<li><code>AccessToke</code> - Your platform's <code>AccessToken</code> for this <code>User</code>, keep this securely stored like a password.</li>\n<li><code>PublicKey</code> - The <code>PublicKey</code> for this <code>User</code>, this is a unique, non-secure identifier and should be stored.</li>\n<li><code>AgentSubscriptionLevel</code> - The level of their Travefy Pro subscription.</li>\n</ul>\n","_postman_id":"e44c3cc0-923a-4a93-b697-5c279b1bee5c"},{"name":"Trips","item":[{"name":"Create Full Trip","event":[{"listen":"test","script":{"id":"55c8687c-e5fa-481a-91be-49b677beed9a","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");"," ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Return invite message'] = data.InviteMessage; ","tests['Return TripCoverPhotoUrl'] = data.TripCoverPhotoUrl.startsWith(\"http://lorempixel\");","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","tests['Body contains TripDay'] = data.TripDays.length > 0;","tests['Trip has 1 TripDay'] = data.TripDays.length === 1;","tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","","var firstDay = data.TripDays[0];","","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;","","var firstEvent = firstDay.TripEvents[0];","","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 12345;","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;","","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;","","var firstTripIdea = firstEvent.TripIdeas[0];","tests['TripIdea has name'] = firstTripIdea.Name;","tests['TripIdea has description'] = firstTripIdea.Description;","tests['TripIdea has url'] = firstTripIdea.Url;","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');","tests['TripIdea has address'] = firstTripIdea.Address;","tests['TripIdea has latitude'] = firstTripIdea.Latitude;","tests['TripIdea has longitude'] = firstTripIdea.Longitude;","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"98972589-f62d-4540-8c28-0629bc89cbbf","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo.png\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-1780225217\",\r\n    \"IsChatDisabled\": true,\r\n    \"IsPdfEnabled\": true,\r\n    \"IsAppEnabled\": true,\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Trip Day 1780225217\",\r\n            \"Date\": \"1\\/27\\/2017\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 12345,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My Place\",\r\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https://example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips","description":"<p>Create a <code>Trip</code> on the Travefy platform with a full itinerary (<code>TripDays</code> and <code>TripEvents</code>).</p>\n","urlObject":{"path":["v1","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"4b3c919d-5e5e-4121-9bfa-30b13551b430","name":"Create Full Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-1780225217\",\r\n    \"IsChatDisabled\": true,\r\n    \"IsPdfEnabled\": true,\r\n    \"IsAppEnabled\": true,\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Trip Day 1780225217\",\r\n            \"Date\": \"4\\/18\\/2019\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 12345,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My Place\",\r\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https://example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t    \t\t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"LBB\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"IAH\",\r\n        \t\t\t\"DepartureDateYear\": 2019,\r\n        \t\t\t\"DepartureDateMonth\": 4,\r\n        \t\t\t\"DepartureDateDay\": 18\r\n\t\t\t\t\t}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1489","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:57:41 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"852","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -123456789,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip 1508954257\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": false,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 123,\n            \"TripId\": 123456,\n            \"Title\": \"Trip Day 1508954257\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-10-25T17:57:32.8927258Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 456,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1508954257\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 789,\n                            \"TripEventId\": 456,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 987,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 18\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"98972589-f62d-4540-8c28-0629bc89cbbf"},{"name":"Create Trip","event":[{"listen":"test","script":{"id":"8f8f6378-b730-44f5-8cf0-4853b7f5a78d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","    ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Body contains CreatedOn'] = data.CreatedOn;","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;","tests['Return invite message'] = data.InviteMessage; ","tests['Return estimated cost'] = data.EstimatedCost; ","tests['Return isCostPerPerson'] = data.IsCostPerPerson; ","tests['Trip has no days'] = !data.TripDays || data.TripDays.length === 0;","tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-key\", data.VerificationKey);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","",""],"type":"text/javascript"}}],"id":"f9625038-762c-4a26-97ba-fcaa1d00a56b","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n\t\"Name\": \"Trip 1780225217\",\r\n\t\"InviteMessage\": \"Welcome to the trip!\",\r\n\t\"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n\t\"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo.png\",\r\n\t\"EstimatedCost\": \"$1,234\",\r\n\t\"IsCostPerPerson\": true,\r\n\t\"PartnerIdentifier\": \"trip-1780225217\",\r\n\t\"Status\": \"Quote\",\r\n\t\"IsChatDisabled\": false,\r\n\t\"IsPdfEnabled\": false,\r\n\t\"IsAppEnabled\": true\r\n}"},"url":"{{base-api-url}}api/v1/trips","description":"<p>Create an empty <code>Trip</code> on the Travefy platform.</p>\n","urlObject":{"path":["v1","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"cf4ccee1-20c3-4664-a91b-56d7daf4d098","name":"Create Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to the trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n    \"EstimatedCost\": \"$1,234\",\r\n    \"IsCostPerPerson\": true,\r\n    \"Status\": \"Quote\"\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"369","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:54:21 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"502","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": 1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc2lwqz2avhvjsquzkkmnwdq\",\n    \"Name\": \"Trip 1508954057\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:54:12.9919078Z\",\n    \"InviteMessage\": \"Welcome to the trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n    \"EstimatedCost\": \"$1,234\",\n    \"IsCostPerPerson\": true,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n    \"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"f9625038-762c-4a26-97ba-fcaa1d00a56b"},{"name":"Get Trip","event":[{"listen":"test","script":{"id":"53c78224-81ba-4626-9d70-7e4c374a5e3b","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;",""],"type":"text/javascript"}}],"id":"d9353a03-56c4-4dea-98c7-98139766344f","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"6ad93ecc-a052-44ed-8132-f5b5d2d2140f","name":"Get Trip","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"726","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:59:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"463","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -123456789,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip 1508954257\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n   \t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 123,\n            \"TripId\": 123456,\n            \"Title\": \"Trip Day 1508954257\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-10-25T17:57:32.8927258Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 456,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1508954257\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 789,\n                            \"TripEventId\": 456,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"d9353a03-56c4-4dea-98c7-98139766344f"},{"name":"Get Trip by Partner Identifier","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""]}}],"id":"b49e7f45-e02b-404f-9602-fa35ba2f9483","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips/?partnerIdentifier={{trip-partner-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>PartnerIdentifier</code>.</p>\n","urlObject":{"path":["v1","trips",""],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}],"variable":[]}},"response":[{"id":"633c7aa8-afc1-4bfb-bc89-96acce5bc6ca","name":"Get Trip by Partner Identifier","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1/trips/?partnerIdentifier={{trip-partner-id}}","host":["{{base-api-url}}api"],"path":["v1","trips",""],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":"258","body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"b49e7f45-e02b-404f-9602-fa35ba2f9483"},{"name":"Get Trip by Shared Id","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""],"type":"text/javascript"}}],"id":"1a8da968-d569-453d-ae71-2a26b3a28941","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-shared-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>SharedId</code>, which is the identifier at the end of <code>ShareUrlPath</code>.</p>\n","urlObject":{"path":["v1","trips","{{trip-shared-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1ab151da-b55c-4aac-9f11-daba2b8795ea","name":"Get Trip by Shared Id","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-shared-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"1a8da968-d569-453d-ae71-2a26b3a28941"},{"name":"Get Trips","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return some trips'] = data.length > 0; ",""]}}],"id":"1680d3ad-f67d-4a1b-a122-029f2cc79a70","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips","description":"<p>Get every <code>Trip</code> created by your platform for the given <code>User</code>.</p>\n","urlObject":{"path":["v1","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"4b21e12e-c26f-47ca-a254-5634cfb1bbed","name":"Get Trips","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"359","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:00:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"300","body":"[\n    {\n        \"Id\": 123456,\n        \"VerificationKey\": -1234567890,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954257\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n        \"InviteMessage\": \"Welcome to your trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n        \"EstimatedCost\": null,\n        \"IsCostPerPerson\": null,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": false,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    },\n    {\n        \"Id\": 456789123,\n        \"VerificationKey\": 789456123,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954057\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:54:12.993\",\n        \"InviteMessage\": \"Welcome to the trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n        \"EstimatedCost\": \"$1,234\",\n        \"IsCostPerPerson\": true,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": true,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    }\n]"}],"_postman_id":"1680d3ad-f67d-4a1b-a122-029f2cc79a70"},{"name":"Update Trip","event":[{"listen":"test","script":{"id":"efbdddbf-e0aa-4e3d-b546-0593b71b298e","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage; \r","\r","tests['Body contains TripDay'] = data.TripDays.length > 0;\r","tests['Trip has 1 TripDay'] = data.TripDays.length === 1;\r","\r","tests['Trip name was updated'] = data.Name.has('Updated');\r","\r","var firstDay = data.TripDays[0];\r","\r","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;\r","tests['First day name was updated'] = firstDay.Title.has('Updated');\r","tests['First day date was updated'] = firstDay.Date === '2019-04-19T00:00:00';\r","\r","var firstEvent = firstDay.TripEvents[0];\r","\r","tests['Event name was updated'] = firstEvent.Name.has('Updated');\r","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;\r","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;\r","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;\r","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;\r","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;\r","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 13579;\r","\r","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;\r","\r","var firstTripIdea = firstEvent.TripIdeas[0];\r","tests['TripIdea name was updated'] = firstTripIdea.Name.has('New');\r","tests['TripIdea has description'] = firstTripIdea.Description;\r","tests['TripIdea has url'] = firstTripIdea.Url;\r","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');\r","tests['TripIdea has address'] = firstTripIdea.Address;\r","tests['TripIdea has latitude'] = firstTripIdea.Latitude;\r","tests['TripIdea has longitude'] = firstTripIdea.Longitude;\r","\r","tests['App enabled is true'] = data.IsAppEnabled === true;\r","tests['Pdf enabled is true'] = data.IsPdfEnabled === true;\r","tests['Chat disabled is true'] = data.IsChatDisabled === true;\r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"a29ad352-5e20-4370-8aa4-fbe97e776d35","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated Should not change app, pdf or chat\",\r\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"4\\/19\\/2019\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"LBB\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"IAH\",\r\n        \t\t\t\"DepartureDateYear\": 2019,\r\n        \t\t\t\"DepartureDateMonth\": 4,\r\n        \t\t\t\"DepartureDateDay\": 19\r\n\t\t\t\t\t}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"<p>Update the <code>Trip</code> itinerary information AND metadata (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.).  Note: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripDays</code>, the entire trip itinerary information will be replaced.  Chat messages and saved <code>TripIdeas</code> will be maintained, but all <code>TripDays</code>, <code>TripEvents</code>, and <code>TripIdeas</code> on <code>TripEvents</code> will be replaced.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"3d22f8d2-1dbd-4eba-981b-927ce25209de","name":"Update Trip","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated Should not change app, pdf or chat\",\r\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"4\\/19\\/2019\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"LBB\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"IAH\",\r\n        \t\t\t\"DepartureDateYear\": 2019,\r\n        \t\t\t\"DepartureDateMonth\": 4,\r\n        \t\t\t\"DepartureDateDay\": 19\r\n\t\t\t\t\t}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"713","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:01:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"591","body":"{\n    \"Id\": 1234,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqdl3sqz2azvekuz957geapma\",\n    \"Name\": \"Updated Should not change app, pdf or chat\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-20T20:54:05.753\",\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 45678,\n            \"TripId\": 1234,\n            \"Title\": \"Updated 1553115617\",\n            \"Date\": \"2019-04-19T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-20T20:54:05.787\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 987,\n                    \"TripDayId\": 45678,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Updated 1553115617\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 13579,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 123,\n                            \"TripEventId\": 987,\n                            \"Name\": \"My New Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 654,\n                    \"TripDayId\": 45678,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 19\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"a29ad352-5e20-4370-8aa4-fbe97e776d35"},{"name":"Update Trip (Metadata only)","event":[{"listen":"test","script":{"id":"c078b4b6-1be2-41a0-8c9a-66fb6ec37e91","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""],"type":"text/javascript"}}],"id":"025784dc-ba26-416f-a059-c24e63ee0b9e","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\",\r\n\t\"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo-header.png\"\r\n}\r"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"<p>Update the <code>Trip</code> itinerary metadata <em>only</em> (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.).  Note: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"25145d50-8997-4d38-a777-09b0ddb358f0","name":"Update Trip (Metadata only)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:15 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"327","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"025784dc-ba26-416f-a059-c24e63ee0b9e"},{"name":"Archive Trip","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""]}}],"id":"edf47551-f9fd-4af6-85ba-f9f6a5dab740","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"<p>Archives the <code>Trip</code>.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"0b58d36d-42fd-4bf3-aede-e8cfd9a095d7","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"263","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"edf47551-f9fd-4af6-85ba-f9f6a5dab740"},{"name":"Delete Trip","event":[{"listen":"test","script":{"id":"8f94fcf6-72c4-47f4-bd1c-044dc1ebccbb","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""],"type":"text/javascript"}}],"id":"cf9af1f1-1353-4458-bdb1-66939e2f85e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}?hard=true","description":"<p>Deletes the <code>Trip</code>.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[{"key":"hard","value":"true"}],"variable":[]}},"response":[{"id":"d93daeaf-a236-4aed-8246-ed35c33e60fb","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"cf9af1f1-1353-4458-bdb1-66939e2f85e2"},{"name":"Update Trip (Unarchive)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""]}}],"id":"8ae85db1-d34a-49bf-95ab-c210fdcf6b0f","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"<p>Unarchives the <code>Trip</code>.  This request is the same as the other update and is only here so the trip will be unarchived once the test suite is finished.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"98dcf5a1-da70-4c04-8d4b-c6076126f8d3","name":"Update Trip (Unarchive)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:03:17 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"333","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954593\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"8ae85db1-d34a-49bf-95ab-c210fdcf6b0f"},{"name":"Copy Trip [Beta]","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","    \r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Body contains CreatedOn'] = data.CreatedOn;\r","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;\r","tests['Return invite message'] = data.InviteMessage; \r","tests['Return estimated cost'] = data.EstimatedCost; \r","tests['Return isCostPerPerson'] = data.IsCostPerPerson; \r","tests['Trip has no days'] = !data.TripDays || data.TripDays.length === 0;\r","tests['Return VerificationKey'] = data.VerificationKey; \r","tests['Return Status'] = data.Status === \"Quote\"; \r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""]}}],"id":"7bc0ed26-0dd2-48f1-b222-6df381f3f2a4","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/copy","description":"<p>This functionality is currently in beta.  Please contact us for more info.</p>\n","urlObject":{"path":["v1","trips","copy"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bc0ed26-0dd2-48f1-b222-6df381f3f2a4"}],"id":"bab51fb0-a0bb-4db0-870c-1dfd11a5ffb6","description":"<h1 id=\"notes\">Notes</h1>\n<p>Status can be set from one of the statuses the User has created in the web interface and is matched by the string provided.  The match is <em>not</em> case-sensitive.  If no matching Status is found, it is not set (\"No Status\" in the UI).  <code>Quote</code>, <code>Confirmed</code>, and <code>Paid</code> are default statuses for all agents currently, but this is subject to change.</p>\n<p><code>TripIdeas</code> are a collection on a <code>TripEvent</code> and are often establishments or other info that is associated with the <code>TripEvent</code>.  For example, the event may be \"Beachside Dinner\" with a time and reservation info and the idea may be \"Shorebird Resturant\" with the location, hours, etc.  Currently these are completely stand-alone and will not connect with any existing items from the Travefy database or an agent's Content Library.  See the Create Full Trip request for an example usage.</p>\n<p>The <code>PartnerIdentifier</code> field on a <code>Trip</code> can be used to store <em>your</em> identifier on the <code>Trip</code>.  For example, if you have a different identifier for the <code>Trip</code> in <em>your</em> database, you can store that here.  You can then query the <code>Trip</code> by that identifier to get the Travefy <code>Id</code> for the <code>Trip</code>.  Note: This field must be unique across your platform.</p>\n","event":[{"listen":"prerequest","script":{"id":"61b46978-32b3-4fbd-9f22-2686e7b158cf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e4f8111-3ec8-46be-b774-abbd114cdeb9","type":"text/javascript","exec":[""]}}],"_postman_id":"bab51fb0-a0bb-4db0-870c-1dfd11a5ffb6"},{"name":"Trip Days","item":[{"name":"Create Trip Day","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r",""]}}],"id":"11945a65-1fde-41dd-938e-ea2f7607ef55","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/04/20\"\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/","description":"<p>Create a <code>TripDay</code> on a given <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"99fd5112-666a-4764-8026-c36fe107328d","name":"Create Trip Day","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2017/01/15\"\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"205","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:04:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"386","body":"{\n    \"Id\": 123456,\n    \"TripId\": 789123,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"11945a65-1fde-41dd-938e-ea2f7607ef55"},{"name":"Get Trip Days","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","tests['Return some trip days'] = data.length > 0; ",""]}}],"id":"afbd8486-ae53-4570-bf88-c4ade807159e","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/","description":"<p>Get all the <code>TripDay</code>s for this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"42982cb2-8541-4502-bf4a-014b74d18388","name":"Get Trip Days","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"228","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"94","body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"Title\": \"Updated 1508954466\",\n        \"Date\": \"2016-03-21T00:00:00\",\n        \"Ordinal\": 0.5,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.893\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    },\n    {\n        \"Id\": 987654,\n        \"TripId\": 456789,\n        \"Title\": \"Trip Day 1508954678\",\n        \"Date\": \"2017-01-15T00:00:00\",\n        \"Ordinal\": 0.75,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"afbd8486-ae53-4570-bf88-c4ade807159e"},{"name":"Get Trip Day","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","tests['Return trip'] = data.Id; ",""]}}],"id":"c453c4c5-8d38-4bc0-b650-03811990e344","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}","description":"<p>Get the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"885908a8-ed44-484b-a6a9-5cba7b5e24a1","name":"Get Trip Day","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"181","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:46 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"95","body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"c453c4c5-8d38-4bc0-b650-03811990e344"},{"name":"Update Trip Day ","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r","\r","tests['Title is updated'] = data.Title.has(\"Updated\");\r","\r","tests['isActive is true'] = data.IsActive === true;\r",""]}}],"id":"6f5774a3-b87a-4a4a-a8ea-3feac9dce0c7","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/05/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}","description":"<p>Update the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"a8d490c4-5664-4225-94b5-6b1c875098d5","name":"Update Trip Day ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2016/02/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"182","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:14 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"163","body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"6f5774a3-b87a-4a4a-a8ea-3feac9dce0c7"},{"name":"Delete Trip Day","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""]}}],"id":"e3a2e14c-6925-47f3-a23f-ab3f9eea9e23","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}","description":"<p>Delete the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"08324a09-4c8a-4ccf-861c-72af6f0ce53a","name":"Delete Trip Day","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"187","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"137","body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": false,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"e3a2e14c-6925-47f3-a23f-ab3f9eea9e23"}],"id":"c1dff0c7-c11f-4f6e-91db-ce1c21fff844","description":"<p>A <code>TripDay</code> represents a day on the itinerary.  It may have a date (e.g. 2017/01/24) or may not (e.g. Day 2).</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code> for all of these calls.</p>\n","_postman_id":"c1dff0c7-c11f-4f6e-91db-ce1c21fff844"},{"name":"Trip Events","item":[{"name":"Create Trip Event","event":[{"listen":"test","script":{"id":"2f781fb8-5777-432c-beb2-55c58cf51309","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;\r","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;\r","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;\r","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;\r","tests['DurationInMinutes set'] = data.DurationInMinutes === 90;\r","tests['Event type is 5'] = data.EventType === 5;\r","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;\r","tests['Currency code is USD'] = data.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = data.PriceInCents === 12345;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r","postman.setEnvironmentVariable(\"trip-idea-id\", data.TripIdeas[0] && data.TripIdeas[0].Id);\r",""],"type":"text/javascript"}}],"id":"6cdefbae-bf84-4cbc-ba70-33ee55b952a2","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"379\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"Images\": [\"http://lorempixel.com/600/400/cats\", \"http://lorempixel.com/800/600/abstract\"],\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"Central Standard Time\",\r\n  \t\"FlightUpdateInformation\": {\r\n\t\t\"AirlineIataCode\": \"UA\",\r\n    \t\"FlightNumber\": \"4432\",        \t\t\r\n    \t\"DepartureAirportIataCode\": \"LBB\",\r\n    \t\"ArrivalAirportIataCode\": \"IAH\",\r\n    \t\"DepartureDateYear\": 2019,\r\n    \t\"DepartureDateMonth\": 4,\r\n    \t\"DepartureDateDay\": 20\r\n  \t},\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A great place to visit!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t]\r\n}\r\n"},"url":"{{base-api-url}}api/v1/tripEvents","description":"<p>Create a <code>TripEvent</code> on a given <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripEvents"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"6f089a66-f5d8-4b94-9277-8ba49f6ec504","name":"Create Trip Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"796\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"Images\": [\"http://lorempixel.com/600/400/cats\", \"http://lorempixel.com/800/600/abstract\"],\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"Central Standard Time\",\r\n  \t\"FlightUpdateInformation\": {\r\n\t\t\"AirlineIataCode\": \"UA\",\r\n    \t\"FlightNumber\": \"4432\",        \t\t\r\n    \t\"DepartureAirportIataCode\": \"LBB\",\r\n    \t\"ArrivalAirportIataCode\": \"IAH\",\r\n    \t\"DepartureDateYear\": 2019,\r\n    \t\"DepartureDateMonth\": 4,\r\n    \t\"DepartureDateDay\": 22\r\n  \t}\r\n}\r\n"},"url":"{{base-api-url}}api/v1/tripEvents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"624","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:07:59 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"527","body":"{\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\n    \"SegmentIdentifier\": \"YFH2XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Event 1553115818\",\n    \"Description\": \"This is great!\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 550,\n    \"DurationInMinutes\": 90,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 5,\n    \"IsEndingEvent\": true,\n    \"TripIdeas\": [],\n    \"PartnerIdentifier\": null,\n    \"Images\": [\n        \"https://dzvuz0qmhcd7m.cloudfront.net/img/c_w400,h300,mFocusCover/i_uaHR0cDovL2xvcmVtcGl4ZWwuY29tLzYwMC80MDAvY2F0cw.png\",\n        \"https://dzvuz0qmhcd7m.cloudfront.net/img/c_w400,h300,mFocusCover/i_uaHR0cDovL2xvcmVtcGl4ZWwuY29tLzgwMC82MDAvYWJzdHJhY3Q.png\"\n    ],\n    \"FlightUpdateInformation\": null\n}"}],"_postman_id":"6cdefbae-bf84-4cbc-ba70-33ee55b952a2"},{"name":"Get Trip Events","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","tests['Return some trip events'] = data.length > 0; ",""]}}],"id":"8d8e19ed-6f48-4ae4-975c-042e0ccbb387","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/","description":"<p>Get every <code>TripEvent</code> on this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the created <code>Trip</code>'s <code>TripId</code>.</p>\n","urlObject":{"path":["v1","tripEvents",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"52a5be62-b8bd-4ab0-8425-888a29d9c8f6","name":"Get Trip Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"523","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:08:26 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"182","body":"[\n    {\n        \"Id\": 123456,\n        \"TripDayId\": 456789,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n        \"SegmentProviderPhone\": \"555-867-5309\",\n        \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n        \"SegmentIdentifier\": \"YP02XVDB\",\n        \"Ordinal\": 0.5,\n        \"Name\": \"Updated 1508954466\",\n        \"Description\": \"\",\n        \"StartTimeZoneId\": null,\n        \"StartTimeInMinutes\": null,\n        \"DurationInMinutes\": null,\n        \"StartTerminal\": null,\n        \"StartGate\": null,\n        \"EndTerminal\": null,\n        \"EndGate\": null,\n        \"PriceInCents\": 13579,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": null,\n        \"EventType\": 1,\n        \"IsEndingEvent\": true,\n        \"IsArrival\": false,\n        \"TripIdeas\": [\n            {\n                \"Id\": 789,\n                \"TripEventId\": 0,\n                \"Name\": \"My New Place\",\n                \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                \"Url\": \"https://example.com\",\n                \"Description\": \"A great place to visit!\",\n                \"Latitude\": 34.0784796,\n                \"Longitude\": -107.6184694,\n                \"Address\": \"123 W Main St\",\n                \"City\": \"Citytown\",\n                \"State\": \"NM\",\n                \"ZipCode\": \"87825\",\n                \"Phone\": null,\n                \"Country\": \"US\",\n                \"IsActive\": true\n            }\n        ],\n        \"ReservationDescription\": null,\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"8d8e19ed-6f48-4ae4-975c-042e0ccbb387"},{"name":"Get Trip Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","","tests['Return trip day'] = data.TripDayId; ","","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;",""]}}],"id":"f5dc740f-6ad1-4343-b3a5-e5bedd6a8066","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Get a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5cb568a3-b00f-4861-bf16-04c5b4015873","name":"Get Trip Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"522","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:09:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"177","body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n    \"SegmentIdentifier\": \"YP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated 1508954466\",\n    \"Description\": \"\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": null,\n    \"DurationInMinutes\": null,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 13579,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 1,\n    \"IsEndingEvent\": true,\n    \"IsArrival\": false,\n    \"TripIdeas\": [\n        {\n            \"Id\": 987,\n            \"TripEventId\": 0,\n            \"Name\": \"My New Place\",\n            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n            \"Url\": \"https://example.com\",\n            \"Description\": \"A great place to visit!\",\n            \"Latitude\": 34.0784796,\n            \"Longitude\": -107.6184694,\n            \"Address\": \"123 W Main St\",\n            \"City\": \"Citytown\",\n            \"State\": \"NM\",\n            \"ZipCode\": \"87825\",\n            \"Phone\": null,\n            \"Country\": \"US\",\n            \"IsActive\": true\n        }\n    ],\n    \"ReservationDescription\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"f5dc740f-6ad1-4343-b3a5-e5bedd6a8066"},{"name":"Update Trip Event (Metadata Only)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""]}}],"id":"30472782-0f19-4fad-a515-79a2dfeaaff1","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"793\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Update the metadata of a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p>NOTE: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripIdeas</code>, the entire list of <code>TripIdeas</code> will be replaced.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"35222cdb-f4da-4d2b-967b-b1b24c42cfcf","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"919\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"226","body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"30472782-0f19-4fad-a515-79a2dfeaaff1"},{"name":"Update Trip Event","event":[{"listen":"test","script":{"id":"6aadc6b1-db38-486f-83e1-7cbbba34f0ef","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"dea75865-9dab-419d-8ad2-e987ffdf61d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"187\",\r\n    \"EventType\": 6,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\",\r\n    \"IsActive\": true,\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n  \t\t\t\"Id\": {{trip-idea-id}},\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A wonderful place to go!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t]\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Update a specified <code>TripEvent</code> and it's <code>TripIdeas</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p>NOTE: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripIdeas</code>, the entire list of <code>TripIdeas</code> will be replaced.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2ff7ccd4-4374-433d-a371-c28f58a45078","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"427\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\"\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"dea75865-9dab-419d-8ad2-e987ffdf61d8"},{"name":"Delete Trip Event ","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""]}}],"id":"699b69cc-01fc-44b1-8fca-7a86b53c7a18","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Delete a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"dc6e8400-ead9-4c23-a81f-3189101cf185","name":"Delete Trip Event ","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"363","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"172","body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"699b69cc-01fc-44b1-8fca-7a86b53c7a18"}],"id":"18a8408b-9aaa-4d06-a275-828bfac1f58a","description":"<p>A <code>TripEvent</code> is an item on the <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p><code>TripEventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n<th>Web equivalent</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Unspecified</td>\n<td><code>null</code></td>\n<td>Event</td>\n</tr>\n<tr>\n<td>Flight</td>\n<td>0</td>\n<td>Flight</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n<td>Transportation -&gt; Car Rental</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n<td>Transportation -&gt; Rail</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n<td>Cruise</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n<td>Transportation -&gt; Other</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n<td>Lodging</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n<td>Activity</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Food/Drink</td>\n<td>11</td>\n<td>Food/Drink</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n<td>Info</td>\n</tr>\n</tbody>\n</table>\n</div><p>Here's a list of time zones (use the \"Timezone\" field): <a href=\"https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones\">https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones</a></p>\n<p>For the <code>Description</code> field, the following restrictions apply:</p>\n<p>Allowed tags:\n<code>a, b, br, div, em, i, li, ol, p, span, strong, ul</code></p>\n<p>Allowed attributes:\n<code>href, style</code></p>\n<p>Allowed CSS properties\n<code>background-color</code></p>\n<p>Allowed URI Schemes:\n<code>https, http, mailto, tel</code></p>\n<p>The <code>ReservationDescription</code> field will display as \"Seat / Tickey Details\" for <code>Flight</code> (<code>0</code>) events and display \"Room Type / Bedding\" for <code>Hotel</code> (<code>6</code>) events and will not display for all others.</p>\n","event":[{"listen":"prerequest","script":{"id":"f80d0faf-99e5-4f58-95b4-33ae1af3fd25","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a120abf5-d651-465f-b5d2-301afcaeb357","type":"text/javascript","exec":[""]}}],"_postman_id":"18a8408b-9aaa-4d06-a275-828bfac1f58a"},{"name":"Trip Users","item":[{"name":"Create TripUsers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains TripUsers'] = data;\r","tests['Body contains 3 TripUsers'] = data.length === 3;\r","var firstTripUser = data[0];\r","\r","tests['TripUser 1 has Id'] = firstTripUser.Id;\r","tests['TripUser 1 has TripId'] = firstTripUser.TripId;\r","tests['TripUser 1 has UserId'] = firstTripUser.UserId;\r","tests['TripUser 1 has User'] = firstTripUser.User;\r","tests['TripUser 1 Role is 4'] = firstTripUser.Role === 4;\r","tests['TripUser 1 Name starts with readonly '] = firstTripUser.User.FullName.startsWith('readonly ');\r","tests['TripUser 1 Email starts with readonly+'] = firstTripUser.User.Username.startsWith('readonly+');\r","\r","var secondTripUser = data[1];\r","\r","tests['TripUser 2 has Id'] = secondTripUser.Id;\r","tests['TripUser 2 has TripId'] = secondTripUser.TripId;\r","tests['TripUser 2 has UserId'] = secondTripUser.UserId;\r","tests['TripUser 2 has User'] = secondTripUser.User;\r","tests['TripUser 2 Role is 4'] = secondTripUser.Role === 4;\r","tests['TripUser 2 Name starts with default '] = secondTripUser.User.FullName.startsWith('default ');\r","tests['TripUser 2 Email starts with default+'] = secondTripUser.User.Username.startsWith('default+');\r","\r","var thirdTripUser = data[2];\r","\r","tests['TripUser 3 has Id'] = thirdTripUser.Id;\r","tests['TripUser 3 has TripId'] = thirdTripUser.TripId;\r","tests['TripUser 3 has UserId'] = thirdTripUser.UserId;\r","tests['TripUser 3 has User'] = thirdTripUser.User;\r","tests['TripUser 3 Role is 3'] = thirdTripUser.Role === 3;\r","tests['TripUser 3 Name starts with collaborator '] = thirdTripUser.User.FullName.startsWith('collaborator ');\r","tests['TripUser 3 Email starts with collaborator+'] = thirdTripUser.User.Username.startsWith('collaborator+');\r","\r","postman.setEnvironmentVariable(\"trip-user-id\", firstTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id2\", secondTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id3\", thirdTripUser.Id);\r",""]}}],"id":"74ba66e4-9f00-4be4-b9ed-e9ea0847daae","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/invite","description":"<p>Create (invite) 1 or more <code>TripUsers</code> to a <code>Trip</code>.  <code>FullName</code> and <code>UserName</code> (email) are required.</p>\n<p>Currently, this will not send an invite email to them, so you will need to notify them to check their trips list if needed.</p>\n<p>NOTE: You cannot invite anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers","invite"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2fc80aab-d003-4ef4-beb1-2107bd462c85","name":"Create TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/invite"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"321","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:13:00 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"544","body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 789456,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789456,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 789453,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789453,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 12348,\n        \"TripId\": 456789,\n        \"UserId\": 78942,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 78942,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"74ba66e4-9f00-4be4-b9ed-e9ea0847daae"},{"name":"Get TripUser","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return TripUser'] = data.Id;","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return Role'] = data.Role;","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));",""]}}],"id":"96b5cacc-83c3-4adf-ad84-ae71ce226ef7","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Retreive a given <code>TripUser</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"e58969a6-65b2-4460-9e21-690a1b48faca","name":"Get TripUser","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"438","body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"96b5cacc-83c3-4adf-ad84-ae71ce226ef7"},{"name":"Get TripUsers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return TripUser'] = firstTripUser.Id; ","tests['Return Role'] = firstTripUser.Role;","tests['Return UserId'] = firstTripUser.UserId;","tests['Return User'] = firstTripUser.User;","tests['Return TripId'] = firstTripUser.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","postman.setEnvironmentVariable(\"organizer-trip-user-id\", firstTripUser.Id);",""]}}],"id":"ffe34019-c645-4688-8bef-b43635d411e3","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers","description":"<p>Retreive all <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"93d43c9d-a85c-4850-a7b9-cf7cc2a7a755","name":"Get TripUsers","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"401","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:56 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"196","body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 1,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"nate test agent\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-pro.png\",\n            \"Username\": \"cameron+agentlevel1@travefy.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-02-27T16:47:13\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123458,\n        \"TripId\": 456789,\n        \"UserId\": 321,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 321,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123459,\n        \"TripId\": 456789,\n        \"UserId\": 741,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 741,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"ffe34019-c645-4688-8bef-b43635d411e3"},{"name":"Update TripUser","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));\r","tests['Return TripUser'] = data.Id; \r","tests['Return Role'] = data.Role;\r","tests['Return UserId'] = data.UserId;\r","tests['Return User'] = data.User;\r","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));\r","\r","tests['Role was updated to ReadOnly'] = data.Role === 4;\r",""]}}],"id":"0ee9516a-d9cf-4266-9437-8ba680786b3b","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Update the Role of a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"22f65687-fd88-4248-8c71-7219ab6b3e22","name":"Update TripUser","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:16:30 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"344","body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"0ee9516a-d9cf-4266-9437-8ba680786b3b"},{"name":"Update TripUsers","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return first TripUser'] = firstTripUser.Id; ","tests['First TripUser Role Updated'] = firstTripUser.Role === 3;","","var secondTripUser = data[1];","","tests['Return second TripUser'] = secondTripUser.Id; ","tests['Second TripUser Role Updated'] = secondTripUser.Role === 2;",""]}}],"id":"6b312ed3-e378-45e2-a809-1ca8ee6e22f7","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/update","description":"<p>Update the Roles of multiple <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers","update"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f4ef4919-279a-4629-87fd-19bd0189898a","name":"Update TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"294","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:02 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"210","body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 2,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"6b312ed3-e378-45e2-a809-1ca8ee6e22f7"},{"name":"Remove TripUser","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return TripUser'] = data.Id; ","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","tests[\"Role is Uninvited\"] = data.Role === 2;",""]}}],"id":"e77b1b33-4062-4746-9df9-36a0fdd08939","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Delete (uninvite) a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot remove anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"37c3690a-4fc1-48e5-b441-625171b7f14f","name":"Remove TripUser","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"160","body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 2,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"e77b1b33-4062-4746-9df9-36a0fdd08939"}],"id":"cdc20573-6329-40ec-9556-f660141dcc3b","description":"<p>A <code>TripUser</code> represents a <code>User</code> on a <code>Trip</code>.  <code>TripUsers</code> can be invited to a trip and have different roles depending on your subscription level.  Here are the available Roles:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Role</th>\n<th>Value</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Default</td>\n<td><code>0</code> ( <code>null</code>)</td>\n<td>Defaults to <code>ItineraryViewOnly</code></td>\n</tr>\n<tr>\n<td>Organizer</td>\n<td><code>1</code></td>\n<td>Has full control of the <code>Trip</code> and <code>TripUsers</code> on it</td>\n</tr>\n<tr>\n<td>Uninvited</td>\n<td><code>2</code></td>\n<td>Cannot view or access the <code>Trip</code></td>\n</tr>\n<tr>\n<td>Collaborator</td>\n<td><code>3</code></td>\n<td>Can help build the itinerary and edit things on the itinerary, change <code>Trip</code> information, but can't cancel the <code>Trip</code> or invite others</td>\n</tr>\n<tr>\n<td>ItineraryViewOnly</td>\n<td><code>4</code></td>\n<td>Can only view the shared itinerary and has no edit abilities</td>\n</tr>\n</tbody>\n</table>\n</div><p>Available operations:</p>\n<ul>\n<li>Invite 1 or more <code>TripUsers</code></li>\n<li>Retrieve a single <code>TripUser</code></li>\n<li>Retrieve all of the <code>TripUsers</code> for a <code>Trip</code></li>\n<li>Update the role of a single <code>TripUser</code></li>\n<li>Update the roles of multiple <code>TripUsers</code></li>\n<li>Remove a <code>TripUser</code> which moves them to the <code>Uninvited</code> Role</li>\n</ul>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.  The <code>TripUser</code> endpoints use a slightly different URL structure than other <code>Trip</code> resources.  We will likely move to this type of structure in the future for all <code>Trip</code> resources.  We will version the API or allow the old style rather than making breaking changes to existing calls.</p>\n","_postman_id":"cdc20573-6329-40ec-9556-f660141dcc3b"},{"name":"Remove User","item":[{"name":"Remove User","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"User is returned\"] = data.Id;",""]}}],"id":"ad83c266-b386-4175-b3a0-5780e94db4a8","request":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/users/{{user-id}}","description":"<p>Remove a <code>User</code> from the Travefy platform.  </p>\n<p>Note: You will not be able to re-enable or re-create a <code>User</code> after calling this.  The <code>User</code> will have to re-authorize your platform manually.</p>\n","urlObject":{"path":["v1","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"03ad36fa-5a2a-4e39-aecf-739fcd852f1b","name":"Remove User","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"338","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:18:55 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"2204","body":"{\n    \"Id\": 123456,\n    \"FullName\": \"Stage Testing Account\",\n    \"ImageUrl\": \"https://static.pexels.com/photos/20787/pexels-photo.jpg\",\n    \"Username\": \"testing@travefy.com\",\n    \"IsAgent\": true,\n    \"SubscriptionPeriodEnd\": \"2017-11-04T18:18:54Z\",\n    \"AgentSubscriptionIsActive\": true,\n    \"Title\": \"Testing Specalist\",\n    \"Phone\": \"555-555-5555\",\n    \"Url\": \"http://travelco.example\",\n    \"CompanyLogoUrl\": \"https://static.pexels.com/photos/45170/kittens-cat-cat-puppy-rush-45170.jpeg\""}],"_postman_id":"ad83c266-b386-4175-b3a0-5780e94db4a8"}],"id":"061edec4-6f27-49af-9365-646d5949f90f","_postman_id":"061edec4-6f27-49af-9365-646d5949f90f","description":""},{"name":"Library","item":[{"name":"Events","item":[{"name":"Create Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");","","postman.setEnvironmentVariable(\"saved-event-id\", data.Id);","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""]}}],"id":"3e642c34-ba78-405d-b46c-bf802de63d37","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/events/","urlObject":{"path":["v1","library","events",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"c7815539-16f4-432f-ae03-8a1a8a1070a5","name":"Create Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/events/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:42:48 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"649","body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"3e642c34-ba78-405d-b46c-bf802de63d37"},{"name":"Get Events","event":[{"listen":"test","script":{"id":"58728b04-a13b-4a0c-ac03-2478391f6522","exec":["var data = JSON.parse(responseBody);","","tests['events were returned'] = data.length > 0;","","var firstEvent = data[0]; ","","tests['Event was created'] = firstEvent.Id > 0;","tests['Event is active'] = firstEvent.IsActive;","tests['Event segment provider'] = firstEvent.SegmentProviderName;","tests['Event segment identifier'] = firstEvent.SegmentIdentifier;","tests['Event Name'] = firstEvent.Name;","tests['Event Description'] = firstEvent.Description;","tests['Event TimeZoneId'] = firstEvent.StartTimeZoneId;","tests['Event start time'] = firstEvent.StartTimeInMinutes;","tests['Event duration'] = firstEvent.DurationInMinutes;","tests['Event terminal'] = firstEvent.StartTerminal;","tests['Event gate'] = firstEvent.StartGate;","tests['Event price'] = firstEvent.PriceInCents;","tests['Event currency'] = firstEvent.CurrencyCode;","tests['Event transporation id'] = firstEvent.TransportationIdentifier;",""],"type":"text/javascript"}}],"id":"0ef76e42-1b56-4a11-bfd8-6d8ba3814aa5","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/events?createdByUser=true","urlObject":{"path":["v1","library","events"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Events created by the user, <code>false</code> to return all Events for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"dd8bce4c-0e7e-48af-8c23-252c0e27e9a2","name":"Get Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"3150","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:43:18 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRz?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"467","body":"[\n    {\n        \"Id\": 1234,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"seg pro\",\n        \"SegmentIdentifier\": \"seg id\",\n        \"Name\": \"title\",\n        \"Description\": \"describe the event\",\n        \"StartTimeZoneId\": \"GMT Standard Time\",\n        \"StartTimeInMinutes\": 375,\n        \"DurationInMinutes\": 30,\n        \"StartTerminal\": \"Terminal A\",\n        \"StartGate\": \"Gate Alpha\",\n        \"PriceInCents\": 12345,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": \"transport id\",\n        \"EventType\": 10,\n        \"PartnerIdentifier\": \"test-event-id-1510779134\"\n    },\n    {\n        \"Id\": 1235,\n        \"IsActive\": false,\n        \"SegmentProviderName\": \"seg pro new\",\n        \"SegmentIdentifier\": \"seg id new\",\n        \"Name\": \"title updated\",\n        \"Description\": \"describe the event new\",\n        \"StartTimeZoneId\": \"Central Standard Time\",\n        \"StartTimeInMinutes\": 390,\n        \"DurationInMinutes\": 45,\n        \"StartTerminal\": \"Terminal A new\",\n        \"StartGate\": \"Gate Alpha new\",\n        \"PriceInCents\": 54321,\n        \"CurrencyCode\": \"GBP\",\n        \"TransportationIdentifier\": \"transport id new\",\n        \"EventType\": 2,\n        \"PartnerIdentifier\": \"test-event-id-1510779152-new\"\n    }\n]"}],"_postman_id":"0ef76e42-1b56-4a11-bfd8-6d8ba3814aa5"},{"name":"Get Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");"]}}],"id":"dbc2bcaf-56e1-4ffe-ba5a-6fc5975f69fb","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}","urlObject":{"path":["v1","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"350a45c9-d1df-427b-8462-49d576df60b1","name":"Get Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:01 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"315","body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"dbc2bcaf-56e1-4ffe-ba5a-6fc5975f69fb"},{"name":"Update Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Event id'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 2;","tests['Event partner identifier'] = data.PartnerIdentifier === (postman.getEnvironmentVariable(\"saved-event-partner-identifier\") + \"-new\");","","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""]}}],"id":"abef9ad8-94cb-4da9-93e6-0bcc9119a365","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}","urlObject":{"path":["v1","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2e77b36d-868b-4867-a4d0-ca14d027acb0","name":"Update Event","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"493","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:12 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"440","body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"abef9ad8-94cb-4da9-93e6-0bcc9119a365"},{"name":"Delete Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['event is not active'] = !data.IsActive; ",""]}}],"id":"61c9d3a3-ecee-45c4-a7c4-a45896427dba","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}","urlObject":{"path":["v1","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ac4ec17c-1f29-4ef7-97ec-da0377b700d6","name":"Delete Event","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"494","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:26 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"560","body":"{\n    \"Id\": 12345,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"61c9d3a3-ecee-45c4-a7c4-a45896427dba"}],"id":"2e048b6c-3877-47fb-be1e-0019be0770d9","description":"<p><code>EventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Flight</td>\n<td>0</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n</tr>\n<tr>\n<td>Food &amp; Drink</td>\n<td>11</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>ReservationDescription</code> field will display as \"Seat / Tickey Details\" for <code>Flight</code> (<code>0</code>) events and display \"Room Type / Bedding\" for <code>Hotel</code> (<code>6</code>) events and will not display for all others. </p>\n<p>Note: Attached content cannot be viewed or managed via the API at this time.</p>\n","_postman_id":"2e048b6c-3877-47fb-be1e-0019be0770d9"},{"name":"Content","item":[{"name":"Create Content","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","","postman.setEnvironmentVariable(\"saved-content-id\", data.Id);","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);"]}}],"id":"6cdb3d06-a158-49be-92cf-75c9775b938f","request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/content","urlObject":{"path":["v1","library","content"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"31733a5e-898a-498b-9fe3-594c43e0d71e","name":"Create Content","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/content"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"439","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:41 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"287","body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"6cdb3d06-a158-49be-92cf-75c9775b938f"},{"name":"Get All Content","event":[{"listen":"test","script":{"id":"40423847-f1e3-4306-9eae-1a2373e6e2b1","exec":["var data = JSON.parse(responseBody);","","tests['content was returned'] = data.length > 0;","","var firstContent = data[0]; ","","tests['Content was created'] = firstContent.Id > 0;","tests['Content is active'] = firstContent.IsActive;","tests['Content Name'] = firstContent.Name;","tests['Content image url'] = firstContent.ImageUrl;","tests['Content url'] = firstContent.Url;","tests['Content latutude'] = firstContent.Latitude;","tests['Content longutude'] = firstContent.Longitude;","tests['Content city'] = firstContent.City;","tests['Content state'] = firstContent.State;","tests['Content zip'] = firstContent.ZipCode;","tests['Content country'] = firstContent.Country;","tests['Content description'] = firstContent.Description;","tests['Content description'] = firstContent.Category;","tests['Content description'] = firstContent.Rating;","tests['Content description'] = firstContent.Phone;",""],"type":"text/javascript"}}],"id":"40b72fe2-05ac-4413-bdd4-2bd7ad41b83f","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/content?createdByUser=true","urlObject":{"path":["v1","library","content"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Content created by the user, <code>false</code> to return all Content for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"88f0e59d-1eef-453f-a50a-7765edd66d5a","name":"Get All Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/content"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"861","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:50 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"321","body":"[\n    {\n        \"Id\": 261577,\n        \"Name\": \"My Place\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": \"test-content-id-1510782282\"\n    },\n    {\n        \"Id\": 261487,\n        \"Name\": \"Pizzaville\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"40b72fe2-05ac-4413-bdd4-2bd7ad41b83f"},{"name":"Get Content","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Content was returned'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","",""]}}],"id":"1d0f003e-680d-484b-8467-0c802fa5826b","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}","urlObject":{"path":["v1","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"52d32724-32be-4fa9-874a-3765ebdb1528","name":"Get Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"440","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:06 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"191","body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"1d0f003e-680d-484b-8467-0c802fa5826b"},{"name":"Update Content","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name === \"My NEW Place\";","tests['Content image url'] = data.ImageUrl === \"http://lorempixel.com/g/400/200/cats/content2/\";","tests['Content url'] = data.Url === \"https://example2.com\";","tests['Content latutude'] = data.Latitude === 47.127931;","tests['Content longutude'] = data.Longitude === -77.122413;","tests['Content address'] = data.Address  === \"234 Main Street\";","tests['Content city'] = data.City === \"Lincoln2\";","tests['Content state'] = data.State === \"NE2\";","tests['Content zip'] = data.ZipCode === \"68502\";","tests['Content country'] = data.Country === \"UK\";","tests['Content description'] = data.Description === \"This is a GREAT place to visit!!\";","tests['Content description'] = data.Category === 372;","tests['Content description'] = data.Rating === 4.3;","tests['Content description'] = data.Phone === \"(308) 867-5309\";","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\") && data.PartnerIdentifier.endsWith(\"-new\");","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);","",""]}}],"id":"619cdeca-7f13-4aab-a5ac-a19996c3c823","request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}","urlObject":{"path":["v1","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"35275ce6-a5a9-423d-8258-3d000d012c4d","name":"Update Content","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"452","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:14 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"392","body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"619cdeca-7f13-4aab-a5ac-a19996c3c823"},{"name":"Delete Content","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests[\"content was deleted\"] = !data.IsActive;",""]}}],"id":"fd8fce31-4ee5-4dfd-a4c0-8a90459c15fb","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}","urlObject":{"path":["v1","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"bdea23ee-b410-4e50-ac1d-7347dea3e918","name":"Delete Content","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"454","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:24 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":"337","body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": false,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"fd8fce31-4ee5-4dfd-a4c0-8a90459c15fb"},{"name":"Delete Multiple Content","id":"fb2e32fa-8ded-4dd1-bd18-cdd6bc20cd7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","type":"text","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","type":"text","value":"{{platform-public-key}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content?ids={{saved-idea-id1}}&ids={{saved-idea-id2}}","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[{"key":"ids","value":"{{saved-idea-id1}}"},{"key":"ids","value":"{{saved-idea-id2}}"}],"variable":[]}},"response":[],"_postman_id":"fb2e32fa-8ded-4dd1-bd18-cdd6bc20cd7f"}],"id":"1bbdb08b-715b-4c31-86c4-08f5219076bf","_postman_id":"1bbdb08b-715b-4c31-86c4-08f5219076bf","description":""}],"id":"79dfab1e-5db6-40f1-bc81-2d253da4bad7","description":"<p>You can now manage the Library of your Users. </p>\n<p>Note, the following features are not yet available in the API:</p>\n<ul>\n<li>Managing Labels</li>\n<li>Accessing items using <code>PartnerIdentifier</code></li>\n<li>Adding multiple images to Content</li>\n<li>Managing items from other team members</li>\n</ul>\n","_postman_id":"79dfab1e-5db6-40f1-bc81-2d253da4bad7"},{"name":"Inventory Records","item":[{"name":"Create Inventory Record","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id.has(\"test-123\");","","postman.setEnvironmentVariable(\"inventory-id\", data.Id);"]}}],"id":"8c609d34-9bc3-45fe-81c2-2ed4665d7628","request":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/","description":"<p>Create an inventory record.</p>\n","urlObject":{"path":["v1","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1ff19ecd-2d39-45c9-95f0-f0e8d2be9226","name":"Create Inventory Record","originalRequest":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1047","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:21:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"657","body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"8c609d34-9bc3-45fe-81c2-2ed4665d7628"},{"name":"Get Inventory Record","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");",""]}}],"id":"8a1a014e-dd76-4dd8-9266-6357764f773f","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}","description":"<p>Get a given <code>InventoryRecord</code> by its <code>Id</code></p>\n","urlObject":{"path":["v1","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"24078d33-ce7a-4280-aa42-4f6130babb55","name":"Get Inventory Record","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"587","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"650","body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"8a1a014e-dd76-4dd8-9266-6357764f773f"},{"name":"Get Inventory Records","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Has records'] = data.length > 0; ","","postman.setEnvironmentVariable(\"inventory-id\", data[0].Id);",""]}}],"id":"9509d3b6-9e92-4515-9d86-ff605b4770e8","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/","description":"<p>Get all the <code>InventoryRecords</code> for your platform.</p>\n","urlObject":{"path":["v1","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"fd56a04a-6bd3-4fbc-a45d-5106f8bd1c6b","name":"Get Inventory Records","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"15227","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"557","body":"[\n    {\n        \"Id\": \"test-123\",\n        \"Name\": \"Personalized Tours of Travefy Office Updated!\",\n        \"Url\": \"https://travefy.com/\",\n        \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\n        \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\n        \"IsActive\": false,\n        \"Latitude\": 40.814385,\n        \"Longitude\": -96.710113,\n        \"Price\": null,\n        \"CurrencyCode\": null,\n        \"Address\": \"151 N 8th St, #300\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"68506\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [\n            {\n                \"Key\": \"Type\",\n                \"Value\": \"Office\"\n            },\n            {\n                \"Key\": \"Maximum Occupancy\",\n                \"Value\": \"15\"\n            }\n        ],\n        \"ImageUrls\": [\n            \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Office Tours\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Cost\",\n                \"Value\": \"FREE!\"\n            },\n            {\n                \"Key\": \"Hours\",\n                \"Value\": \"30pm\"\n            },\n            {\n                \"Key\": \"WiFi\",\n                \"Value\": \"Available\"\n            },\n            {\n                \"Key\": \"Parking\",\n                \"Value\": \"On Street\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"1\",\n        \"Name\": \"South Beach Cuban Food Tour\",\n        \"Url\": \"http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpbs\",\n        \"Description\": \"Join us at the Cuban-Inspired Food Tour and experience some of the most traditional Cuban dishes at places where locals go. Visit Little Havana which offers a vibrant culture where food is made from the soul and served to commemorate all that we left back in the island. With its colorful murals, guayabera-clad men playing dominoes and cigar rollers at work, Little Havana is where the spirit of Miamiâ€™s exile Cuban community comes alive, and where we make several delicious stops. But eating is not everything Little Havana is about. Check in on the cigar rollers of the area, stops at local art galleries, cheer on the domino experts holding court at Domino Park and take a stroll near the Tower Theater, the areaâ€™s oldest movie houses. - See more at: http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpuf\",\n        \"ImageUrl\": \"http://www.travelchannel.com/content/dam/images/travel/fullset/2013/04/23/ec/miami-cuban-restaurants.rend.tccom.616.462.jpeg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.785097,\n        \"Longitude\": -80.130342,\n        \"Price\": 50,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"555 South Beach Ave.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2014/09/cuban-empanadas.jpg\",\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2015/06/best-cuban-restaurant-miami.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforkssandwhichcubano.jpg\",\n            \"http://i30.photobucket.com/albums/c317/pms33013/ae9efc0b-f2c7-4d96-be49-71eca778e4ec_zpstrqwzg1b.jpg\",\n            \"https://img.vimbly.com/images/full_photos/south-beach-food-tour-7.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforks_samplerplate.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Weekdays\",\n                \"Value\": \"10am, 2pm, 6pm\"\n            },\n            {\n                \"Key\": \"Weekends\",\n                \"Value\": \"11am, 1pm, 5pm, 7pm, 10pm\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"2\",\n        \"Name\": \"5-Hour Snorkeling Cruise\",\n        \"Url\": \"http://www.miamiandbeaches.com/things-to-do/outdoor-activities/water-activities/snorkeling\",\n        \"Description\": \"Snorkeling is an easy, affordable, and fun way to discover the wonders of the coral reef, mangrove islands, and abundant marine life. The only skill you need is to be a confident swimmer. So grab your fins, mask and snorkel and get ready to see a whole world just below the surface in Miami.\",\n        \"ImageUrl\": \"http://www.colorfulplaces.com/wp-content/uploads/2014/01/612-snorkeling-miami-ARTICLE.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.771001,\n        \"Longitude\": -80.134216,\n        \"Price\": 36,\n        \"CurrencyCode\": \"EUR\",\n        \"Address\": \"1020 Miami Beach Drive\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://img.getyourguide.com/img/tour_img-249494-70.jpg\",\n            \"https://d11d3pftkotf97.cloudfront.net/wp-content/uploads/Fort-lauderdale-Snorkeling-Tour-Snorkel-South-Florida-Pompano-Beach-equipments2.jpg\",\n            \"http://media-cdn.tripadvisor.com/media/photo-s/06/db/84/49/miami-tours-water-adventures.jpg\",\n            \"http://www.miamidade.gov/ecoadventures/images/sea_kayak.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"3\",\n        \"Name\": \"7-Hour Catamaran Excursion\",\n        \"Url\": \"http://tropicalsailing.com/pu/miami-catamaran-charter-sbsss/\",\n        \"Description\": \"An unforgettable excursion awaits you aboard the Caribbean Spirit Miami Catamaran Charter. Trips depart daily from Bayside Marina. This is your opportunity to view mansions, mega yachts, historic sites and play in the beautiful blue and green tropical waters. Miami Beach and Biscayne Bay is home to a variety of marine life, with luck we may see dolphins or manatees! Come discover Miamiâ€™s finest natural treasures on this unforgettable excursion aboard our state of the art catamaran. Sit back and relax while we set sail to the ocean and our South Beach destination! See sights such as: Port of Miami, home to many cruise lines World famous Downtown Miami Skyline, Beautiful Mansions, Mega yachts and Historic sites\",\n        \"ImageUrl\": \"http://tropicalsailing.com/wp-content/uploads/2012/08/caribbean_spirit_with_a_lot_of_people.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.782683,\n        \"Longitude\": -80.16202,\n        \"Price\": 130,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"181 Carribean Blvd.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://secure.miamibeach411.com/images/P/snorkeling-in-key-west.jpg\",\n            \"https://img.grouponcdn.com/deal/kqnEySiBaVErZTegwcDk/G4-700x420/v1/c700x420.jpg\",\n            \"http://catamaransailingmiami.com/wp-content/uploads/2013/10/DSCN0303.jpg\",\n            \"http://www.miamicharters.com/photos/party_catamarans/Great_White/Great_White_Catamaran_food_area.jpg\",\n            \"http://tropicalsailin.wpengine.netdna-cdn.com/wp-content/uploads/2012/03/sunset27.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    }\n]"}],"_postman_id":"9509d3b6-9e92-4515-9d86-ff605b4770e8"},{"name":"Update Inventory Record","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");","tests['Updated name'] = data.Name.endsWith(\"Updated!\");",""]}}],"id":"f89497cd-4ed5-442e-99d6-43651dc8898c","request":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}","description":"<p>Update a given <code>InventoryRecord</code> by <code>Id</code>/</p>\n","urlObject":{"path":["v1","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ca3c5e49-f893-4e57-a11c-911b623dec11","name":"Update Inventory Record","originalRequest":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"586","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:23:53 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"670","body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"f89497cd-4ed5-442e-99d6-43651dc8898c"},{"name":"Delete Inventory Record","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Was deleted'] = !data.IsActive;",""]}}],"id":"e5b875e4-7f22-4927-a1e9-b84e2ff76d73","request":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}","description":"<p>Delete an <code>InventoryRecord</code> by <code>Id</code>.</p>\n","urlObject":{"path":["v1","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"96e23372-64eb-44d2-a69a-992954a705b8","name":"Delete Inventory Record","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"583","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:24:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":"445","body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":false,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"e5b875e4-7f22-4927-a1e9-b84e2ff76d73"}],"id":"37b365b6-c8a6-4421-8afe-36ec6b7f7f54","description":"<p>If you have platform search enabled, you can manage your <code>InventoryRecords</code> here.  Everything is keyed off of your provided <code>Id</code> field, so be sure that is unique and non-changing.</p>\n<p>If you're using the CSV upload, here is the list of CSV fields: <a href=\"https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880\">https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880</a></p>\n","_postman_id":"37b365b6-c8a6-4421-8afe-36ec6b7f7f54"}],"id":"8fca28d9-a73c-42a8-91b1-30d5060b2010","_postman_id":"8fca28d9-a73c-42a8-91b1-30d5060b2010","description":""},{"name":"v1-20190212","item":[{"name":"Setup","item":[{"name":"Environment Setup","event":[{"listen":"prerequest","script":{"id":"435adba6-e610-4a96-995d-ef71429bf959","exec":["//set your platform api keys here\r","postman.setEnvironmentVariable(\"platform-private-key\", \"<YOUR-PLATFORM-PRIVATE-API-KEY>\");\r","postman.setEnvironmentVariable(\"platform-public-key\", \"<YOUR-PLATFORM-PUBLIC-API-KEY>\");\r","\r","//these are currently set to sandbox mode, set to live mode by removing the port at your own risk\r","postman.setEnvironmentVariable(\"base-api-url\", \"https://api.travefy.com:81/\");\r","\r","\r","//this is Travefy internal stuff for easier testing, so please ignore :)\r","if (globals['global-platform-private-key']) {\r","    postman.setEnvironmentVariable(\"platform-private-key\", globals['global-platform-private-key']);\r","    postman.setEnvironmentVariable(\"platform-public-key\", globals['global-platform-public-key']);\r","    \r","    //these are currently set to sandbox mode, set to live mode at your own risk\r","    postman.setEnvironmentVariable(\"base-api-url\", globals['global-base-api-url']);\r","}\r",""],"type":"text/javascript"}}],"id":"df809ee7-5a3d-4e7e-800e-286b5b64cabe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://postman-echo.com/get","description":"<p>Setup your access keys for all further requests in the Pre-request script.  Don't have your access keys?  Contact <a href=\"mailto:apisupport@travefy.com\">apisupport@travefy.com</a>.</p>\n<p>You should only need to run this one time as these values will be stored in your Postman environment.</p>\n","urlObject":{"protocol":"https","path":["get"],"host":["postman-echo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df809ee7-5a3d-4e7e-800e-286b5b64cabe"},{"name":"Secure Echo","event":[{"listen":"test","script":{"id":"2e319462-068d-41fc-8fe7-fa6ca254b98e","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""],"type":"text/javascript"}}],"id":"1a356d2e-328a-4cce-a644-30f7b6489d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/secureEcho","description":"<p>Test that calls with your platform's <em>private</em> API key succeed.</p>\n","urlObject":{"path":["v1-{{api-version}}","secureEcho"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a356d2e-328a-4cce-a644-30f7b6489d3e"},{"name":"Echo","event":[{"listen":"test","script":{"id":"60224c84-3731-4ab6-8c7b-835353609422","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""],"type":"text/javascript"}}],"id":"df3a4743-bbd9-4043-8e40-f1eedaf606e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/echo","description":"<p>Test that calls with your platform's <em>public</em> API key succeed.</p>\n","urlObject":{"path":["v1-{{api-version}}","echo"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"df3a4743-bbd9-4043-8e40-f1eedaf606e1"}],"id":"3f7a1f41-e761-4e43-a9b4-95c1930410a9","description":"<h2 id=\"note-you-need-to-run-this-before-any-other-request-if-you-are-using-postman--if-youre-using-another-client-feel-free-to-skip-this\">Note: You need to run this before <em>any</em> other request if you are using Postman.  If you're using another client, feel free to skip this.</h2>\n<p>Add your API keys to the Pre-request Script and execute the <code>Environment Setup</code> request to setup the environment.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>//set your platform api keys here\npostman.setEnvironmentVariable(\"platform-private-key\", \"&lt;YOUR-PLATFORM-PRIVATE-API-KEY&gt;\");\npostman.setEnvironmentVariable(\"platform-public-key\", \"&lt;YOUR-PLATFORM-PUBLIC-API-KEY&gt;\");\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"6c4d6a46-3c42-4886-bf0a-dc491593f49c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"12beab34-98e2-4c53-b489-3f1ba2412502","type":"text/javascript","exec":[""]}}],"_postman_id":"3f7a1f41-e761-4e43-a9b4-95c1930410a9"},{"name":"Users","item":[{"name":"Create User (Level 1)","event":[{"listen":"test","script":{"id":"4a765a57-bfba-4de8-b779-4c72c83f075d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0227b61d-fd97-46d2-9fa4-503ce0db3072","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": false,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/","description":"<p>Create a <code>User</code> on the Travefy platform.</p>\n<p>The response of this request give you a chance to store the <code>AccessToken</code> and <code>PublicKey</code> for the <code>User</code>.  Those keys are also available on the <code>User</code> GET and GET by <code>Id</code> requests.  These are automatically stored in the Postman environment for testing.</p>\n<p>Note: if the <code>User</code> already has an account on Travefy, they'll need to authorize your Platform on their account.  Send them to https://{{your-travefy-platform-url}}/account/authorize and they can approve access.  You can then retrieve their tokens via the Get Users call. </p>\n","urlObject":{"path":["v1-{{api-version}}","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"d3dcc1a9-686e-4655-8f1f-f34c30f8158f","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"0227b61d-fd97-46d2-9fa4-503ce0db3072"},{"name":"Create User (SSO)","event":[{"listen":"test","script":{"id":"4a765a57-bfba-4de8-b779-4c72c83f075d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"515a0b04-6e50-4274-91f9-5c75a1de8441","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": true,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/","description":"<p>Create a <code>User</code> on the Travefy platform that will authenticate using SSO.</p>\n<p>When a user is created through the API they receive a welcome email that enables them to login through the Travefy login form. If you users are using SSO then they wont need this and it can be confusing. You can prevent the welcome email from sending by setting <code>DisableWelcomeEmail</code> to <code>true</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"a5083240-5b2b-40bc-967d-5fa1367fb257","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"515a0b04-6e50-4274-91f9-5c75a1de8441"},{"name":"Get User","event":[{"listen":"test","script":{"id":"b4c33b6a-8fbd-4027-bec5-d4ad7c846501","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"5052ef05-8723-4f52-8809-e04ff82df3e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>Id</code>.</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"06206023-29d3-463a-966f-7c1fbde4831c","name":"Get User","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"412","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:47:08 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"5052ef05-8723-4f52-8809-e04ff82df3e4"},{"name":"Update User","event":[{"listen":"test","script":{"id":"01f7ee45-206a-40b9-adcd-9d0c086ab3f2","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.endsWith(\"agent2\");","tests['Username has string'] = data.User.Username.endsWith(\"-updated@example.com\");","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;",""],"type":"text/javascript"}}],"id":"52339c55-d94a-4e3f-b338-bc90de08c5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"nate+agent1-1780225217-updated@example.com\",\r\n        \"fullName\" : \"nate test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Update a User.  Currently, this will update Username (email), FullName, and ImageUrl.</p>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"00c7051b-9114-4cab-b4c0-a443fe4c5b48","name":"Update User","originalRequest":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"updated+agent1-1780225217-updated@example.com\",\r\n        \"fullName\" : \"updated test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"405","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:50:27 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 127630,\n        \"FullName\": \"updated test agent2\",\n        \"ImageUrl\": null,\n        \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"52339c55-d94a-4e3f-b338-bc90de08c5f8"},{"name":"Get Users","event":[{"listen":"test","script":{"id":"597ff385-649a-4478-93c9-9c5abfe8e8e0","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a832d97a-b823-4b19-a58f-4e4db73f9f92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users","description":"<p>Get all Users that your platform has access to.</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    },\n    ...\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"bd306da3-d99f-498d-a2ca-b55f4fd4672c","name":"Get Users","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    }\n]"}],"_postman_id":"a832d97a-b823-4b19-a58f-4e4db73f9f92"},{"name":"Get Users  by Authorization Code","event":[{"listen":"test","script":{"id":"92e4237c-5849-48ef-8ef1-4b165cbb0958","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7fc0d076-e8dc-4beb-940e-a45282a28a3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","description":"<p>Get a <code>User</code> from the Travefy platform by their expiring <code>authorizationCode</code>. This will return a collection with a single user if the <code>authorizationCode</code> is valid.<br />This method should be used to associate a user that was sent to Travefy to authorize your platform. If the <code>authorizationCode</code> is expired the response code returned will be <code>Gone</code>.</p>\n<p>See <a href=\"https://developer.travefy.com/#authorization-redirect-url\">Authorization Redirect Url</a> for information on retrieving and using the <code>authorizationCode</code>.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}],"variable":[]}},"response":[{"id":"55703a68-e3a7-44f1-8083-dfb1a0df982a","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"7fc0d076-e8dc-4beb-940e-a45282a28a3e"},{"name":"Get Users by Partner Identifier","event":[{"listen":"test","script":{"id":"92e4237c-5849-48ef-8ef1-4b165cbb0958","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bff567a8-fc47-4c3c-a174-89ee9c5f4a2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?partnerIdentifier={{partnerIdentifier}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>partnerIdentifier</code>. <code>partnerIdentifier</code> is a unique Id that was optionally set in the Create User call. This will return a collection with a single user if the <code>partnerIdentifier</code> is valid.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{partnerIdentifier}}"}],"variable":[]}},"response":[{"id":"a4ffa8b2-604f-4f72-86b9-bb9bf72d5d08","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"bff567a8-fc47-4c3c-a174-89ee9c5f4a2f"}],"id":"d85638ab-a7d1-48d1-a116-09756e7ec957","description":"<h2 id=\"notes\">Notes</h2>\n<p>In production, your platform may be charged for any created users.  Sandbox users are free to create.</p>\n<h2 id=\"request\">Request</h2>\n<p><code>AgentSubscriptionLevel</code> values:</p>\n<ul>\n<li>1 = Plus</li>\n<li>2 = Premium</li>\n</ul>\n<h2 id=\"response-items\">Response Items</h2>\n<p>After successfully creating the <code>User</code>, <code>POST</code> method returns an object with the following properties:</p>\n<ul>\n<li><code>User</code> - The <code>User</code> that was created.</li>\n<li><code>AccessToke</code> - Your platform's <code>AccessToken</code> for this <code>User</code>, keep this securely stored like a password.</li>\n<li><code>PublicKey</code> - The <code>PublicKey</code> for this <code>User</code>, this is a unique, non-secure identifier and should be stored.</li>\n<li><code>AgentSubscriptionLevel</code> - The level of their Travefy Pro subscription.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"0a9b88e4-06bf-4940-868f-b6f122eee9fc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4501dd60-633a-410b-9210-d2746ace410a","type":"text/javascript","exec":[""]}}],"_postman_id":"d85638ab-a7d1-48d1-a116-09756e7ec957"},{"name":"Trips","item":[{"name":"Create Trip","event":[{"listen":"test","script":{"id":"8f8f6378-b730-44f5-8cf0-4853b7f5a78d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","    ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Body contains CreatedOn'] = data.CreatedOn;","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;","tests['Return invite message'] = data.InviteMessage; ","tests['Return estimated cost'] = data.EstimatedCost; ","tests['Return isCostPerPerson'] = data.IsCostPerPerson; ","tests['Trip has days'] = !data.TripDays || data.TripDays.length > 0;","tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-key\", data.VerificationKey);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","",""],"type":"text/javascript"}}],"id":"58752c87-04ef-4fdb-ad8c-b8619da0948f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n\t\"Name\": \"Trip 1780225217\",\r\n\t\"InviteMessage\": \"Welcome to the trip!\",\r\n\t\"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n\t\"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo.png\",\r\n\t\"EstimatedCost\": \"$1,234\",\r\n\t\"IsCostPerPerson\": true,\r\n\t\"PartnerIdentifier\": \"trip-1780225217\",\r\n\t\"Status\": \"Quote\",\r\n\t\"IsChatDisabled\": false,\r\n\t\"IsPdfEnabled\": false,\r\n\t\"IsAppEnabled\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create an empty <code>Trip</code> on the Travefy platform.</p>\n<p><code>IsSupplemental</code> is not required by this request as it will be automatically created.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"c1867b50-d374-40b4-9b53-4f8fbc5264e0","name":"Create Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to the trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n    \"EstimatedCost\": \"$1,234\",\r\n    \"IsCostPerPerson\": true,\r\n    \"Status\": \"Quote\"\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"369","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:54:21 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313894,\n    \"VerificationKey\": 488201857,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcndwqz2abnk497a5umkp78a\",\n    \"Name\": \"Trip 1553181793\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:22:52.313\",\n    \"InviteMessage\": \"Welcome to the trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n    \"EstimatedCost\": \"$1,234\",\n    \"IsCostPerPerson\": true,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717111,\n            \"TripId\": 313894,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717110,\n            \"TripId\": 313894,\n            \"Title\": null,\n            \"Date\": null,\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181793\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"58752c87-04ef-4fdb-ad8c-b8619da0948f"},{"name":"Create Full Trip","event":[{"listen":"test","script":{"id":"55c8687c-e5fa-481a-91be-49b677beed9a","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");"," ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Return invite message'] = data.InviteMessage; ","tests['Return TripCoverPhotoUrl'] = data.TripCoverPhotoUrl.startsWith(\"http://lorempixel\");","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","tests['Body contains TripDay'] = data.TripDays.length > 0;","tests['Trip has 2 TripDay'] = data.TripDays.length === 2;","//tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","","var firstDay = data.TripDays[1];","","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;","","var firstEvent = firstDay.TripEvents[0];","","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 12345;","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;","","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;","","var firstTripIdea = firstEvent.TripIdeas[0];","tests['TripIdea has name'] = firstTripIdea.Name;","tests['TripIdea has description'] = firstTripIdea.Description;","tests['TripIdea has url'] = firstTripIdea.Url;","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');","tests['TripIdea has address'] = firstTripIdea.Address;","tests['TripIdea has latitude'] = firstTripIdea.Latitude;","tests['TripIdea has longitude'] = firstTripIdea.Longitude;","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"cb4a3717-ca90-4c3a-8e3e-2edb1910c580","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \n    \"Name\": \"Trip 1780225217\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"Status\": \"Quote\",\n    \"PartnerIdentifier\": \"trip-1780225217\",\n    \"IsSupplemental\": false,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n    \t{\n    \t\t\"IsSupplemental\": true,\n    \t\t\"TripEvents\":[\n    \t\t\t{\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\n    \t\t\t\t\"EventType\": 12\n    \t\t\t}\n    \t\t]\n    \t},\n        {  \n            \"Title\": \"Trip Day 1780225217\",\n            \"Date\": \"6\\/13\\/2021\",\n            \"IsSupplemental\": false,\n            \"TripEvents\": [  \n                {  \n                    \"Name\": \"Trip Event 1780225217\",\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"CurrencyCode\": \"USD\",\n                    \"PriceInCents\": 12345,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [  \n                        {  \n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": 87825,\n                            \"Country\": \"US\"\n                        }\n                    ]\n                },\n                {\n\t\t        \t\"name\": \"Departure event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": 2021,\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },\n                {\n\t\t        \t\"name\": \"Arrival event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": 2021,\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },{\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 660,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"1\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\n                            \"ImageUrl\": null,\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\n                            \"Description\": null,\n                            \"Latitude\": 41.976570,\n                            \"Longitude\": -87.905130,\n                            \"Address\": \"10000 W Ohare Ave\",\n                            \"City\": \"Chicago\",\n                            \"State\": \"IL\",\n                            \"ZipCode\": \"60666\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": 2021,\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                },\n                {\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 831,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"B\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\n                            \"Description\": null,\n                            \"Latitude\": 38.852430,\n                            \"Longitude\": -77.042602,\n                            \"Address\": \"2401 S Smith Blvd\",\n                            \"City\": \"Arlington\",\n                            \"State\": \"VA\",\n                            \"ZipCode\": \"22202\",\n                            \"Phone\": \"(703) 417-8000\",\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": 2021,\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                }\n            ]\n        }\n    ]\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create a <code>Trip</code> on the Travefy platform with a full itinerary (<code>TripDays</code> and <code>TripEvents</code>).</p>\n<p>The <code>IsSupplemental</code> is <strong>required</strong> for this request. Be sure to add one day that <code>\"IsSupplemental\": true</code>. It can be as simple as below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"TripDays\":[\n    {\n        \"IsSupplemental\": true\n    },\n    {\n        \"Name\": \"Add more days\",\n        \"IsSupplemental\": false\n    }\n]\n</code></pre>","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"3060a1b3-2e28-4a32-9064-b89c6822b489","name":"Create Full Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-1780225217\",\r\n    \"IsSupplemental\": false,\r\n    \"IsChatDisabled\": true,\r\n    \"IsPdfEnabled\": true,\r\n    \"IsAppEnabled\": true,\r\n    \"TripDays\": [\r\n    \t{\r\n    \t\t\"IsSupplemental\": true,\r\n    \t\t\"TripEvents\":[\r\n    \t\t\t{\r\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\r\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\r\n    \t\t\t\t\"EventType\": 12\r\n    \t\t\t}\r\n    \t\t]\r\n    \t},\r\n        {  \r\n            \"Title\": \"Trip Day 1780225217\",\r\n            \"Date\": \"6\\/13\\/2021\",\r\n            \"IsSupplemental\": false,\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 12345,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My Place\",\r\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https://example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Arrival event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },{\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 660,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"1\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": false,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\r\n                            \"ImageUrl\": null,\r\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 41.976570,\r\n                            \"Longitude\": -87.905130,\r\n                            \"Address\": \"10000 W Ohare Ave\",\r\n                            \"City\": \"Chicago\",\r\n                            \"State\": \"IL\",\r\n                            \"ZipCode\": \"60666\",\r\n                            \"Phone\": null,\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                },\r\n                {\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 831,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"B\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\r\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 38.852430,\r\n                            \"Longitude\": -77.042602,\r\n                            \"Address\": \"2401 S Smith Blvd\",\r\n                            \"City\": \"Arlington\",\r\n                            \"State\": \"VA\",\r\n                            \"ZipCode\": \"22202\",\r\n                            \"Phone\": \"(703) 417-8000\",\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1489","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:57:41 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313892,\n    \"VerificationKey\": 724509696,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcxdwqz2acl5atypjmchjq2a\",\n    \"Name\": \"Trip 1553181388\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:16:06.577\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717106,\n            \"TripId\": 313892,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.593246Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270996,\n                    \"TripDayId\": 717106,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": null,\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Traveler Insurance\",\n                    \"Description\": \"You could attach pdf docs to this event.\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 12,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717107,\n            \"TripId\": 313892,\n            \"Title\": \"Trip Day 1553181388\",\n            \"Date\": \"2019-04-18T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.7182421Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270997,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1553181388\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 175644,\n                            \"TripEventId\": 270997,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 270998,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 18\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181388\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"cb4a3717-ca90-4c3a-8e3e-2edb1910c580"},{"name":"Get Trip","event":[{"listen":"test","script":{"id":"53c78224-81ba-4626-9d70-7e4c374a5e3b","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;",""],"type":"text/javascript"}}],"id":"e407dc8d-7ed8-4764-bf32-8f5570f746ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"0783291f-57a1-4b67-b9c5-c91506d02bd6","name":"Get Trip","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"726","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:59:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -123456789,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip 1508954257\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n   \t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 123,\n            \"TripId\": 123456,\n            \"Title\": \"Trip Day 1508954257\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-10-25T17:57:32.8927258Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 456,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1508954257\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 789,\n                            \"TripEventId\": 456,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"e407dc8d-7ed8-4764-bf32-8f5570f746ab"},{"name":"Get Trip by Partner Identifier","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""],"type":"text/javascript"}}],"id":"5b65c7a1-703f-4bb2-b54b-86e65b0128d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/?partnerIdentifier={{trip-partner-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>PartnerIdentifier</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips",""],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}],"variable":[]}},"response":[{"id":"b5a300da-08ac-4956-b21b-23c65282c667","name":"Get Trip by Partner Identifier","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1/trips/?partnerIdentifier={{trip-partner-id}}","host":["{{base-api-url}}api"],"path":["v1","trips",""],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"5b65c7a1-703f-4bb2-b54b-86e65b0128d9"},{"name":"Get Trip by Shared Id","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""],"type":"text/javascript"}}],"id":"0ebca504-7a00-45fb-81c9-77a26cd91e15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-shared-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>SharedId</code>, which is the identifier at the end of <code>ShareUrlPath</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-shared-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"e991fc21-3f29-4918-a329-afefa9d24149","name":"Get Trip by Shared Id","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-partner-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"0ebca504-7a00-45fb-81c9-77a26cd91e15"},{"name":"Get Trips","event":[{"listen":"test","script":{"id":"e82c6ecc-c225-4740-bb3e-7e987f998821","exec":["var data = JSON.parse(responseBody);","","tests['Return some trips'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"65383d03-559a-4a82-89c1-5dcedfda3330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Get every <code>Trip</code> created by your platform for the given <code>User</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"9802b796-ed86-4f0a-99f0-6b8c894b06d5","name":"Get Trips","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"359","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:00:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"VerificationKey\": -1234567890,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954257\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n        \"InviteMessage\": \"Welcome to your trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n        \"EstimatedCost\": null,\n        \"IsCostPerPerson\": null,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": false,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    },\n    {\n        \"Id\": 456789123,\n        \"VerificationKey\": 789456123,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954057\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:54:12.993\",\n        \"InviteMessage\": \"Welcome to the trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n        \"EstimatedCost\": \"$1,234\",\n        \"IsCostPerPerson\": true,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": true,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    }\n]"}],"_postman_id":"65383d03-559a-4a82-89c1-5dcedfda3330"},{"name":"Update Trip","event":[{"listen":"test","script":{"id":"efbdddbf-e0aa-4e3d-b546-0593b71b298e","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage; \r","\r","tests['Body contains TripDay'] = data.TripDays.length > 0;\r","tests['Trip has 1 TripDay'] = data.TripDays.length === 1;\r","\r","tests['Trip name was updated'] = data.Name.has('Updated');\r","\r","var firstDay = data.TripDays[0];\r","\r","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;\r","tests['First day name was updated'] = firstDay.Title.has('Updated');\r","tests['First day date was updated'] = firstDay.Date === '2019-04-19T00:00:00';\r","\r","var firstEvent = firstDay.TripEvents[0];\r","\r","tests['Event name was updated'] = firstEvent.Name.has('Updated');\r","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;\r","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;\r","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;\r","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;\r","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;\r","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 13579;\r","\r","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;\r","\r","var firstTripIdea = firstEvent.TripIdeas[0];\r","tests['TripIdea name was updated'] = firstTripIdea.Name.has('New');\r","tests['TripIdea has description'] = firstTripIdea.Description;\r","tests['TripIdea has url'] = firstTripIdea.Url;\r","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');\r","tests['TripIdea has address'] = firstTripIdea.Address;\r","tests['TripIdea has latitude'] = firstTripIdea.Latitude;\r","tests['TripIdea has longitude'] = firstTripIdea.Longitude;\r","\r","tests['App enabled is true'] = data.IsAppEnabled === true;\r","tests['Pdf enabled is true'] = data.IsPdfEnabled === true;\r","tests['Chat disabled is true'] = data.IsChatDisabled === true;\r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"422cdc7c-98e6-4b17-9e2f-d455d92dd2c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated Should not change app, pdf or chat\",\r\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"4\\/19\\/2019\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"LBB\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"IAH\",\r\n        \t\t\t\"DepartureDateYear\": 2019,\r\n        \t\t\t\"DepartureDateMonth\": 4,\r\n        \t\t\t\"DepartureDateDay\": 19\r\n\t\t\t\t\t}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Update the <code>Trip</code> itinerary information AND metadata (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.).  Note: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripDays</code>, the entire trip itinerary information will be replaced.  Chat messages and saved <code>TripIdeas</code> will be maintained, but all <code>TripDays</code>, <code>TripEvents</code>, and <code>TripIdeas</code> on <code>TripEvents</code> will be replaced.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"fe58276a-5951-479c-aef8-4f82a1e0f086","name":"Update Trip","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"3\\/21\\/2016\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"713","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:01:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313895,\n    \"VerificationKey\": -1325434303,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcldwqz2a6p5padt7k7f5lva\",\n    \"Name\": \"Updated Should not change app, pdf or chat\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:27:24.693\",\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717112,\n            \"TripId\": 313895,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:27:24.71\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717113,\n            \"TripId\": 313895,\n            \"Title\": \"Updated 1553182071\",\n            \"Date\": \"2019-04-19T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:27:24.82\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 271006,\n                    \"TripDayId\": 717113,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Updated 1553182071\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 13579,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 175648,\n                            \"TripEventId\": 271006,\n                            \"Name\": \"My New Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 271007,\n                    \"TripDayId\": 717113,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 19\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"422cdc7c-98e6-4b17-9e2f-d455d92dd2c3"},{"name":"Update Trip (Metadata only)","event":[{"listen":"test","script":{"id":"8c2ca6b7-dc58-4cfa-8c3e-2def93b59130","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""],"type":"text/javascript"}}],"id":"03555bd2-779c-407e-8349-49d9d7fe90f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\",\r\n\t\"SecondaryLogoUrl\": \"https://travefy.com/content/app/images/logo-header.png\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Update the <code>Trip</code> itinerary metadata <em>only</em> (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.).  Note: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"75816566-62c2-4526-bc12-aefbf5f0fd55","name":"Update Trip (Metadata only)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:15 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"03555bd2-779c-407e-8349-49d9d7fe90f8"},{"name":"Archive Trip","event":[{"listen":"test","script":{"id":"53989226-ec8f-48bb-9307-8b6fbdade19e","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""],"type":"text/javascript"}}],"id":"806ad287-4912-4b5f-a3eb-ae89acf89cb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Archives the <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"dfacdfd0-290a-4fab-bacb-cc93a341eb8c","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"806ad287-4912-4b5f-a3eb-ae89acf89cb6"},{"name":"Delete Trip","event":[{"listen":"test","script":{"id":"8f94fcf6-72c4-47f4-bd1c-044dc1ebccbb","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""],"type":"text/javascript"}}],"id":"34b865d6-3530-4ef3-9746-839ade15fbdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}?hard=true","description":"<p>Deletes the <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[{"key":"hard","value":"true"}],"variable":[]}},"response":[{"id":"6287b675-2e79-4808-81e6-a9bdeaf406db","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"34b865d6-3530-4ef3-9746-839ade15fbdb"},{"name":"Update Trip (Unarchive)","event":[{"listen":"test","script":{"id":"a838a490-4cf9-4779-aba8-1041d67795dd","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""],"type":"text/javascript"}}],"id":"fbd5354b-47f7-49da-8218-b48e74f5ddcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Unarchives the <code>Trip</code>.  This request is the same as the other update and is only here so the trip will be unarchived once the test suite is finished.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"06ee37ae-80e7-411c-b0f4-d847129b594f","name":"Update Trip (Unarchive)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:03:17 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954593\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"fbd5354b-47f7-49da-8218-b48e74f5ddcd"},{"name":"Copy Trip [Beta]","event":[{"listen":"test","script":{"id":"a8759552-2529-419b-9c64-3b223c027c65","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","    \r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Body contains CreatedOn'] = data.CreatedOn;\r","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;\r","tests['Return invite message'] = data.InviteMessage; \r","tests['Return estimated cost'] = data.EstimatedCost; \r","tests['Return isCostPerPerson'] = data.IsCostPerPerson; \r","tests['Trip has no days'] = !data.TripDays || data.TripDays.length === 0;\r","tests['Return VerificationKey'] = data.VerificationKey; \r","tests['Return Status'] = data.Status === \"Quote\"; \r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"26d6165c-5368-4088-a94f-a7c0130ff4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/copy","description":"<p>This functionality is currently in beta.  Please contact us for more info.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","copy"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"26d6165c-5368-4088-a94f-a7c0130ff4f6"}],"id":"2b569afc-0fc0-4283-bebb-2c1b7edc59f9","description":"<h1 id=\"notes\">Notes</h1>\n<p>Status can be set from one of the statuses the User has created in the web interface and is matched by the string provided.  The match is <em>not</em> case-sensitive.  If no matching Status is found, it is not set (\"No Status\" in the UI).  <code>Quote</code>, <code>Confirmed</code>, and <code>Paid</code> are default statuses for all agents currently, but this is subject to change.</p>\n<p><code>TripIdeas</code> are a collection on a <code>TripEvent</code> and are often establishments or other info that is associated with the <code>TripEvent</code>.  For example, the event may be \"Beachside Dinner\" with a time and reservation info and the idea may be \"Shorebird Resturant\" with the location, hours, etc.  Currently these are completely stand-alone and will not connect with any existing items from the Travefy database or an agent's Content Library.  See the Create Full Trip request for an example usage.</p>\n<p>The <code>PartnerIdentifier</code> field on a <code>Trip</code> can be used to store <em>your</em> identifier on the <code>Trip</code>.  For example, if you have a different identifier for the <code>Trip</code> in <em>your</em> database, you can store that here.  You can then query the <code>Trip</code> by that identifier to get the Travefy <code>Id</code> for the <code>Trip</code>.  Note: This field must be unique across your platform.</p>\n","event":[{"listen":"prerequest","script":{"id":"61b46978-32b3-4fbd-9f22-2686e7b158cf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e4f8111-3ec8-46be-b774-abbd114cdeb9","type":"text/javascript","exec":[""]}}],"_postman_id":"2b569afc-0fc0-4283-bebb-2c1b7edc59f9"},{"name":"Trip Days","item":[{"name":"Create Trip Day","event":[{"listen":"test","script":{"id":"d4af36b5-ca19-4489-9bed-2fded12c683b","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"e8c423ef-c19e-4d84-9473-a8f40d60814f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/04/15\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/","description":"<p>Create a <code>TripDay</code> on a given <code>Trip</code>.</p>\n<p><code>IsSupplemental</code> is not required for this request. The <code>IsSupplemental</code> parameter will be default set to <code>false</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5481bd2a-d425-4586-ae13-8aa703e76e13","name":"Create Trip Day","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2017/01/15\"\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"205","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:04:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 789123,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null,\n    \"IsSupplemental\": false\n}"}],"_postman_id":"e8c423ef-c19e-4d84-9473-a8f40d60814f"},{"name":"Get Trip Days","event":[{"listen":"test","script":{"id":"4bc95b80-e71b-444d-8a6b-c07240cdac53","exec":["var data = JSON.parse(responseBody);","tests['Return some trip days'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"7a920557-f58c-4be7-829a-e1040474a4e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/","description":"<p>Get all the <code>TripDay</code>s for this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"bcabaa4b-c590-47c2-b8cf-0479d1a2b7c1","name":"Get Trip Days","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/tripDays/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"228","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"Title\": \"Updated 1508954466\",\n        \"Date\": \"2016-03-21T00:00:00\",\n        \"Ordinal\": 0.5,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.893\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    },\n    {\n        \"Id\": 987654,\n        \"TripId\": 456789,\n        \"Title\": \"Trip Day 1508954678\",\n        \"Date\": \"2017-01-15T00:00:00\",\n        \"Ordinal\": 0.75,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"7a920557-f58c-4be7-829a-e1040474a4e7"},{"name":"Get Trip Day","event":[{"listen":"test","script":{"id":"068feae3-6a41-40f6-a3ff-68aa9ec3798a","exec":["var data = JSON.parse(responseBody);","tests['Return trip'] = data.Id; ",""],"type":"text/javascript"}}],"id":"ed03c160-0ea3-454d-b54b-f43f79d556e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Get the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"680265e9-c6f8-41b6-881f-a0038322428f","name":"Get Trip Day","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"181","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:46 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"ed03c160-0ea3-454d-b54b-f43f79d556e3"},{"name":"Update Trip Day ","event":[{"listen":"test","script":{"id":"3a948bb1-3947-41d5-8685-6406b94a797d","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r","\r","tests['Title is updated'] = data.Title.has(\"Updated\");\r","\r","tests['isActive is true'] = data.IsActive === true;\r",""],"type":"text/javascript"}}],"id":"560609eb-af0f-4f55-a9cb-0baef9820515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/05/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Update the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f329a505-d072-4b75-a139-da4a727137ea","name":"Update Trip Day ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2016/02/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"182","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:14 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null,\n    \"IsSupplemental\": false\n}\n"}],"_postman_id":"560609eb-af0f-4f55-a9cb-0baef9820515"},{"name":"Delete Trip Day","event":[{"listen":"test","script":{"id":"3ab3b7ad-0d09-4984-a277-096bf82c3f8a","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"a07e0390-6629-461f-8194-0346da4636ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Delete the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1b9034d7-2005-45b6-ac38-9c7fe7173f92","name":"Delete Trip Day","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"187","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": false,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"a07e0390-6629-461f-8194-0346da4636ee"}],"id":"beb6cb8d-167c-4a1b-922d-e0c01bebc88b","description":"<p>A <code>TripDay</code> represents a day on the itinerary.  It may have a date (e.g. 2017/01/24) or may not (e.g. Day 2).</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code> for all of these calls.</p>\n","_postman_id":"beb6cb8d-167c-4a1b-922d-e0c01bebc88b"},{"name":"Trip Events","item":[{"name":"Create Trip Event","event":[{"listen":"test","script":{"id":"6cd9bd09-d594-4c6a-b5c7-909ddcc8e3d9","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;\r","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;\r","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;\r","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;\r","tests['DurationInMinutes set'] = data.DurationInMinutes === 90;\r","tests['Event type is 5'] = data.EventType === 5;\r","tests['IsEndingEvent'] = data.IsEndingEvent;\r","tests['Currency code is USD'] = data.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = data.PriceInCents === 12345;\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r","postman.setEnvironmentVariable(\"trip-idea-id\", data.TripIdeas && data.TripIdeas[0] && TripIdeas[0].Id)"],"type":"text/javascript"}}],"id":"13f9baec-5f51-452e-b4f9-7d9cf9fc6daa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"985\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"Images\": [\"http://lorempixel.com/600/400/cats\", \"http://lorempixel.com/800/600/abstract\"],\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"Central Standard Time\",\r\n  \t\"FlightUpdateInformation\": {\r\n\t\t\"AirlineIataCode\": \"UA\",\r\n    \t\"FlightNumber\": \"4432\",        \t\t\r\n    \t\"DepartureAirportIataCode\": \"LBB\",\r\n    \t\"ArrivalAirportIataCode\": \"IAH\",\r\n    \t\"DepartureDateYear\": 2019,\r\n    \t\"DepartureDateMonth\": 4,\r\n    \t\"DepartureDateDay\": 22\r\n  \t},\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A great place to visit!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t]\r\n}\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents","description":"<p>Create a <code>TripEvent</code> on a given <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f1c29fc3-c3ba-450e-8c66-26ff8bc60329","name":"Create Trip Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"173\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"Central Standard Time\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/tripEvents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"624","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:07:59 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\n    \"SegmentIdentifier\": \"YFH2XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Event 1508954875\",\n    \"Description\": \"<p>This is great!</p>\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 764,\n    \"DurationInMinutes\": 90,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 5,\n    \"IsEndingEvent\": true,\n    \"IsArrival\": false,\n    \"TripIdeas\": [],\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"13f9baec-5f51-452e-b4f9-7d9cf9fc6daa"},{"name":"Get Trip Events","event":[{"listen":"test","script":{"id":"a190b281-185e-40b0-ab6e-8b8f87f6f1eb","exec":["var data = JSON.parse(responseBody);","tests['Return some trip events'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"df96aff0-ec02-4cce-b2ab-be7b2760c34c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/","description":"<p>Get every <code>TripEvent</code> on this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the created <code>Trip</code>'s <code>TripId</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2cdefe96-6114-4e8f-aecf-5fa5aba631e0","name":"Get Trip Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"523","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:08:26 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripDayId\": 456789,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n        \"SegmentProviderPhone\": \"555-867-5309\",\n        \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n        \"SegmentIdentifier\": \"YP02XVDB\",\n        \"Ordinal\": 0.5,\n        \"Name\": \"Updated 1508954466\",\n        \"Description\": \"\",\n        \"StartTimeZoneId\": null,\n        \"StartTimeInMinutes\": null,\n        \"DurationInMinutes\": null,\n        \"StartTerminal\": null,\n        \"StartGate\": null,\n        \"EndTerminal\": null,\n        \"EndGate\": null,\n        \"PriceInCents\": 13579,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": null,\n        \"EventType\": 1,\n        \"IsEndingEvent\": true,\n        \"IsArrival\": false,\n        \"TripIdeas\": [\n            {\n                \"Id\": 789,\n                \"TripEventId\": 0,\n                \"Name\": \"My New Place\",\n                \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                \"Url\": \"https://example.com\",\n                \"Description\": \"A great place to visit!\",\n                \"Latitude\": 34.0784796,\n                \"Longitude\": -107.6184694,\n                \"Address\": \"123 W Main St\",\n                \"City\": \"Citytown\",\n                \"State\": \"NM\",\n                \"ZipCode\": \"87825\",\n                \"Phone\": null,\n                \"Country\": \"US\",\n                \"IsActive\": true\n            }\n        ],\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"df96aff0-ec02-4cce-b2ab-be7b2760c34c"},{"name":"Get Trip Event","event":[{"listen":"test","script":{"id":"29b70192-8ba4-4385-8144-0f206ee7ac7d","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","","tests['Return trip day'] = data.TripDayId; ","","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;",""],"type":"text/javascript"}}],"id":"9a4aa232-3bc1-43cd-aaf8-3b8276b91547","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Get a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"c0b33401-1b8d-454c-9d12-902adafb727d","name":"Get Trip Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"522","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:09:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n    \"SegmentIdentifier\": \"YP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated 1508954466\",\n    \"Description\": \"\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": null,\n    \"DurationInMinutes\": null,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 13579,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 1,\n    \"IsEndingEvent\": true,\n    \"IsArrival\": false,\n    \"TripIdeas\": [\n        {\n            \"Id\": 987,\n            \"TripEventId\": 0,\n            \"Name\": \"My New Place\",\n            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n            \"Url\": \"https://example.com\",\n            \"Description\": \"A great place to visit!\",\n            \"Latitude\": 34.0784796,\n            \"Longitude\": -107.6184694,\n            \"Address\": \"123 W Main St\",\n            \"City\": \"Citytown\",\n            \"State\": \"NM\",\n            \"ZipCode\": \"87825\",\n            \"Phone\": null,\n            \"Country\": \"US\",\n            \"IsActive\": true\n        }\n    ],\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"9a4aa232-3bc1-43cd-aaf8-3b8276b91547"},{"name":"Update Trip Event  (Metadata Only)","event":[{"listen":"test","script":{"id":"eb3a9a77-0251-42d3-88ca-68ad7e0bec68","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"1bd25f65-1c90-4a58-97ef-50dfda72bcc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": {{trip-day-id}},\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"873\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Update a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ff3cac45-1126-4dcc-8d5b-f2a29f64c8c9","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"685\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"1bd25f65-1c90-4a58-97ef-50dfda72bcc6"},{"name":"Update Trip Event","event":[{"listen":"test","script":{"id":"432d8e74-34df-411e-80a6-d2707aa8788f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"9fa969ec-36b0-4b4f-aba1-3421db733251","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"265\",\r\n    \"EventType\": 6,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\",\r\n    \"IsActive\": true,\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n  \t\t\t\"Id\": {{trip-idea-id}},\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A wonderful place to go!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t]\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Update a specified <code>TripEvent</code> and it's <code>TripIdeas</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p>NOTE: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripIdeas</code>, the entire list of <code>TripIdeas</code> will be replaced.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"480ee3de-78a3-4e20-9bef-909ab21ce219","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"805\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\"\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"9fa969ec-36b0-4b4f-aba1-3421db733251"},{"name":"Delete Trip Event ","event":[{"listen":"test","script":{"id":"4dec2d19-1587-42c9-a686-459ad505a10f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"392eede5-43c2-4550-9991-c132d87d1d87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Delete a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5063f3c4-bd06-4dcd-b525-399fb510e589","name":"Delete Trip Event ","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"363","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"392eede5-43c2-4550-9991-c132d87d1d87"}],"id":"0b54fd78-a812-44d6-a3e5-993ca7ab26f5","description":"<p>A <code>TripEvent</code> is an item on the <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p><code>TripEventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n<th>Web equivalent</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Unspecified</td>\n<td><code>null</code></td>\n<td>Event</td>\n</tr>\n<tr>\n<td>Flight</td>\n<td>0</td>\n<td>Flight</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n<td>Transportation -&gt; Car Rental</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n<td>Transportation -&gt; Rail</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n<td>Cruise</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n<td>Transportation -&gt; Other</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n<td>Lodging</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n<td>Activity</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Food/Drink</td>\n<td>11</td>\n<td>Food/Drink</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n<td>Info</td>\n</tr>\n</tbody>\n</table>\n</div><p>Here's a list of time zones (use the \"Timezone\" field): <a href=\"https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones\">https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones</a></p>\n<p>For the <code>Description</code> field, the following restrictions apply:</p>\n<p>Allowed tags:\n<code>a, b, br, div, em, i, li, ol, p, span, strong, ul</code></p>\n<p>Allowed attributes:\n<code>href, style</code></p>\n<p>Allowed CSS properties\n<code>background-color</code></p>\n<p>Allowed URI Schemes:\n<code>https, http, mailto, tel</code></p>\n<p>The <code>ReservationDescription</code> field will display as \"Seat / Tickey Details\" for <code>Flight</code> (<code>0</code>) events and display \"Room Type / Bedding\" for <code>Hotel</code> (<code>6</code>) events and will not display for all others.</p>\n","event":[{"listen":"prerequest","script":{"id":"f80d0faf-99e5-4f58-95b4-33ae1af3fd25","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a120abf5-d651-465f-b5d2-301afcaeb357","type":"text/javascript","exec":[""]}}],"_postman_id":"0b54fd78-a812-44d6-a3e5-993ca7ab26f5"},{"name":"Trip Users","item":[{"name":"Create TripUsers","event":[{"listen":"test","script":{"id":"3a736d18-1dcc-4022-9953-bbfb71ba5c00","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains TripUsers'] = data;\r","tests['Body contains 3 TripUsers'] = data.length === 3;\r","var firstTripUser = data[0];\r","\r","tests['TripUser 1 has Id'] = firstTripUser.Id;\r","tests['TripUser 1 has TripId'] = firstTripUser.TripId;\r","tests['TripUser 1 has UserId'] = firstTripUser.UserId;\r","tests['TripUser 1 has User'] = firstTripUser.User;\r","tests['TripUser 1 Role is 4'] = firstTripUser.Role === 4;\r","tests['TripUser 1 Name starts with readonly '] = firstTripUser.User.FullName.startsWith('readonly ');\r","tests['TripUser 1 Email starts with readonly+'] = firstTripUser.User.Username.startsWith('readonly+');\r","\r","var secondTripUser = data[1];\r","\r","tests['TripUser 2 has Id'] = secondTripUser.Id;\r","tests['TripUser 2 has TripId'] = secondTripUser.TripId;\r","tests['TripUser 2 has UserId'] = secondTripUser.UserId;\r","tests['TripUser 2 has User'] = secondTripUser.User;\r","tests['TripUser 2 Role is 4'] = secondTripUser.Role === 4;\r","tests['TripUser 2 Name starts with default '] = secondTripUser.User.FullName.startsWith('default ');\r","tests['TripUser 2 Email starts with default+'] = secondTripUser.User.Username.startsWith('default+');\r","\r","var thirdTripUser = data[2];\r","\r","tests['TripUser 3 has Id'] = thirdTripUser.Id;\r","tests['TripUser 3 has TripId'] = thirdTripUser.TripId;\r","tests['TripUser 3 has UserId'] = thirdTripUser.UserId;\r","tests['TripUser 3 has User'] = thirdTripUser.User;\r","tests['TripUser 3 Role is 3'] = thirdTripUser.Role === 3;\r","tests['TripUser 3 Name starts with collaborator '] = thirdTripUser.User.FullName.startsWith('collaborator ');\r","tests['TripUser 3 Email starts with collaborator+'] = thirdTripUser.User.Username.startsWith('collaborator+');\r","\r","postman.setEnvironmentVariable(\"trip-user-id\", firstTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id2\", secondTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id3\", thirdTripUser.Id);\r",""],"type":"text/javascript"}}],"id":"5b728d29-8476-4e21-a89e-e8cfb38884d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/invite","description":"<p>Create (invite) 1 or more <code>TripUsers</code> to a <code>Trip</code>.  <code>FullName</code> and <code>UserName</code> (email) are required.</p>\n<p>Currently, this will not send an invite email to them, so you will need to notify them to check their trips list if needed.</p>\n<p>NOTE: You cannot invite anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","invite"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"6d23e890-3b05-4a86-9dad-8d38ee940e86","name":"Create TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/invite"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"321","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:13:00 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 789456,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789456,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 789453,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789453,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 12348,\n        \"TripId\": 456789,\n        \"UserId\": 78942,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 78942,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"5b728d29-8476-4e21-a89e-e8cfb38884d6"},{"name":"Get TripUser","event":[{"listen":"test","script":{"id":"170de1f8-2cc8-42c0-afe8-98acad34225e","exec":["var data = JSON.parse(responseBody);","","tests['Return TripUser'] = data.Id;","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return Role'] = data.Role;","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));",""],"type":"text/javascript"}}],"id":"573ffaf8-c40a-4ab4-be95-ff7b98dc047a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Retreive a given <code>TripUser</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5b4e881a-b255-485f-a30a-6cbffcb8dac2","name":"Get TripUser","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"573ffaf8-c40a-4ab4-be95-ff7b98dc047a"},{"name":"Get TripUsers","event":[{"listen":"test","script":{"id":"41e39fee-f19a-4988-9d20-e6b594dd0a15","exec":["var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return TripUser'] = firstTripUser.Id; ","tests['Return Role'] = firstTripUser.Role;","tests['Return UserId'] = firstTripUser.UserId;","tests['Return User'] = firstTripUser.User;","tests['Return TripId'] = firstTripUser.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","postman.setEnvironmentVariable(\"organizer-trip-user-id\", firstTripUser.Id);",""],"type":"text/javascript"}}],"id":"e1640971-418d-4755-acca-d8954cd4480b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers","description":"<p>Retreive all <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f63294df-5e14-4778-9cd0-bd0c57c7397e","name":"Get TripUsers","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"401","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:56 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 1,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"nate test agent\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-pro.png\",\n            \"Username\": \"cameron+agentlevel1@travefy.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-02-27T16:47:13\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123458,\n        \"TripId\": 456789,\n        \"UserId\": 321,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 321,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123459,\n        \"TripId\": 456789,\n        \"UserId\": 741,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 741,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"e1640971-418d-4755-acca-d8954cd4480b"},{"name":"Update TripUser","event":[{"listen":"test","script":{"id":"7c8f0ce8-081a-48ba-8194-52aee003081d","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));\r","tests['Return TripUser'] = data.Id; \r","tests['Return Role'] = data.Role;\r","tests['Return UserId'] = data.UserId;\r","tests['Return User'] = data.User;\r","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));\r","\r","tests['Role was updated to ReadOnly'] = data.Role === 4;\r",""],"type":"text/javascript"}}],"id":"6c268d09-5aeb-4bad-9060-a966cef19690","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1-20190212/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Update the Role of a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-20190212","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"64b585ef-e50e-4c64-a786-0820a9c16f7c","name":"Update TripUser","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:16:30 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"6c268d09-5aeb-4bad-9060-a966cef19690"},{"name":"Update TripUsers","event":[{"listen":"test","script":{"id":"4c0b823f-e68e-46ba-8a17-b91f048e7e1f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return first TripUser'] = firstTripUser.Id; ","tests['First TripUser Role Updated'] = firstTripUser.Role === 3;","","var secondTripUser = data[1];","","tests['Return second TripUser'] = secondTripUser.Id; ","tests['Second TripUser Role Updated'] = secondTripUser.Role === 2;",""],"type":"text/javascript"}}],"id":"5866b97e-08c8-4a7c-8d19-b446312420f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/update","description":"<p>Update the Roles of multiple <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","update"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f0069422-20f4-445a-a670-d8446fa7b29d","name":"Update TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"294","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:02 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 2,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"5866b97e-08c8-4a7c-8d19-b446312420f6"},{"name":"Remove TripUser","event":[{"listen":"test","script":{"id":"80c2156d-f5e8-4d6d-80eb-7dfa894489d8","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return TripUser'] = data.Id; ","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","tests[\"Role is Uninvited\"] = data.Role === 2;",""],"type":"text/javascript"}}],"id":"c42f9149-903f-4a51-aa01-efcc4fc46dcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Delete (uninvite) a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot remove anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2a27ff6f-4cf7-4493-b81b-13dd885ec385","name":"Remove TripUser","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 2,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"c42f9149-903f-4a51-aa01-efcc4fc46dcb"}],"id":"3432bbfc-9543-46b6-9b4d-4c23cf26100b","description":"<p>A <code>TripUser</code> represents a <code>User</code> on a <code>Trip</code>.  <code>TripUsers</code> can be invited to a trip and have different roles depending on your subscription level.  Here are the available Roles:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Role</th>\n<th>Value</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Default</td>\n<td><code>0</code> ( <code>null</code>)</td>\n<td>Defaults to <code>ItineraryViewOnly</code></td>\n</tr>\n<tr>\n<td>Organizer</td>\n<td><code>1</code></td>\n<td>Has full control of the <code>Trip</code> and <code>TripUsers</code> on it</td>\n</tr>\n<tr>\n<td>Uninvited</td>\n<td><code>2</code></td>\n<td>Cannot view or access the <code>Trip</code></td>\n</tr>\n<tr>\n<td>Collaborator</td>\n<td><code>3</code></td>\n<td>Can help build the itinerary and edit things on the itinerary, change <code>Trip</code> information, but can't cancel the <code>Trip</code> or invite others</td>\n</tr>\n<tr>\n<td>ItineraryViewOnly</td>\n<td><code>4</code></td>\n<td>Can only view the shared itinerary and has no edit abilities</td>\n</tr>\n</tbody>\n</table>\n</div><p>Available operations:</p>\n<ul>\n<li>Invite 1 or more <code>TripUsers</code></li>\n<li>Retrieve a single <code>TripUser</code></li>\n<li>Retrieve all of the <code>TripUsers</code> for a <code>Trip</code></li>\n<li>Update the role of a single <code>TripUser</code></li>\n<li>Update the roles of multiple <code>TripUsers</code></li>\n<li>Remove a <code>TripUser</code> which moves them to the <code>Uninvited</code> Role</li>\n</ul>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.  The <code>TripUser</code> endpoints use a slightly different URL structure than other <code>Trip</code> resources.  We will likely move to this type of structure in the future for all <code>Trip</code> resources.  We will version the API or allow the old style rather than making breaking changes to existing calls.</p>\n","_postman_id":"3432bbfc-9543-46b6-9b4d-4c23cf26100b"},{"name":"Remove User","item":[{"name":"Remove User","event":[{"listen":"test","script":{"id":"2956dd83-e501-4c20-ba8f-d4a0a583782f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"User is returned\"] = data.Id;",""],"type":"text/javascript"}}],"id":"9a0a84f8-fcea-439c-b1a2-1efbee9c0005","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Remove a <code>User</code> from the Travefy platform.  </p>\n<p>Note: You will not be able to re-enable or re-create a <code>User</code> after calling this.  The <code>User</code> will have to re-authorize your platform manually.</p>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"b5a12dd8-71e1-4678-899a-d892f89b88c9","name":"Remove User","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"338","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:18:55 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"FullName\": \"Stage Testing Account\",\n    \"ImageUrl\": \"https://static.pexels.com/photos/20787/pexels-photo.jpg\",\n    \"Username\": \"testing@travefy.com\",\n    \"IsAgent\": true,\n    \"SubscriptionPeriodEnd\": \"2017-11-04T18:18:54Z\",\n    \"AgentSubscriptionIsActive\": true,\n    \"Title\": \"Testing Specalist\",\n    \"Phone\": \"555-555-5555\",\n    \"Url\": \"http://travelco.example\",\n    \"CompanyLogoUrl\": \"https://static.pexels.com/photos/45170/kittens-cat-cat-puppy-rush-45170.jpeg\""}],"_postman_id":"9a0a84f8-fcea-439c-b1a2-1efbee9c0005"}],"id":"a6faf8ed-76d1-46bc-aff9-1841ea8c1e40","_postman_id":"a6faf8ed-76d1-46bc-aff9-1841ea8c1e40","description":""},{"name":"Library","item":[{"name":"Events","item":[{"name":"Create Event","event":[{"listen":"test","script":{"id":"4a6a9b2f-1606-431b-b87c-b0dff0a1a3e1","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");","","postman.setEnvironmentVariable(\"saved-event-id\", data.Id);","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"7c47305d-e1e8-4b5b-a5d3-27a9944cb58c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/","urlObject":{"path":["v1-{{api-version}}","library","events",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"990a9033-a6e6-49bb-93fa-dcde379001a1","name":"Create Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/events/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:42:48 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"7c47305d-e1e8-4b5b-a5d3-27a9944cb58c"},{"name":"Get Events","event":[{"listen":"test","script":{"id":"58728b04-a13b-4a0c-ac03-2478391f6522","exec":["var data = JSON.parse(responseBody);","","tests['events were returned'] = data.length > 0;","","var firstEvent = data[0]; ","","tests['Event was created'] = firstEvent.Id > 0;","tests['Event is active'] = firstEvent.IsActive;","tests['Event segment provider'] = firstEvent.SegmentProviderName;","tests['Event segment identifier'] = firstEvent.SegmentIdentifier;","tests['Event Name'] = firstEvent.Name;","tests['Event Description'] = firstEvent.Description;","tests['Event TimeZoneId'] = firstEvent.StartTimeZoneId;","tests['Event start time'] = firstEvent.StartTimeInMinutes;","tests['Event duration'] = firstEvent.DurationInMinutes;","tests['Event terminal'] = firstEvent.StartTerminal;","tests['Event gate'] = firstEvent.StartGate;","tests['Event price'] = firstEvent.PriceInCents;","tests['Event currency'] = firstEvent.CurrencyCode;","tests['Event transporation id'] = firstEvent.TransportationIdentifier;",""],"type":"text/javascript"}}],"id":"fc5cc9c0-02a9-42fb-b18e-5271186a8595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/events?createdByUser=true","urlObject":{"path":["v1-{{api-version}}","library","events"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Events created by the user, <code>false</code> to return all Events for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"d3f3c88b-bacf-49f7-bc33-410108d7fc76","name":"Get Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"3150","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:43:18 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRz?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 1234,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"seg pro\",\n        \"SegmentIdentifier\": \"seg id\",\n        \"Name\": \"title\",\n        \"Description\": \"describe the event\",\n        \"StartTimeZoneId\": \"GMT Standard Time\",\n        \"StartTimeInMinutes\": 375,\n        \"DurationInMinutes\": 30,\n        \"StartTerminal\": \"Terminal A\",\n        \"StartGate\": \"Gate Alpha\",\n        \"PriceInCents\": 12345,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": \"transport id\",\n        \"EventType\": 10,\n        \"PartnerIdentifier\": \"test-event-id-1510779134\"\n    },\n    {\n        \"Id\": 1235,\n        \"IsActive\": false,\n        \"SegmentProviderName\": \"seg pro new\",\n        \"SegmentIdentifier\": \"seg id new\",\n        \"Name\": \"title updated\",\n        \"Description\": \"describe the event new\",\n        \"StartTimeZoneId\": \"Central Standard Time\",\n        \"StartTimeInMinutes\": 390,\n        \"DurationInMinutes\": 45,\n        \"StartTerminal\": \"Terminal A new\",\n        \"StartGate\": \"Gate Alpha new\",\n        \"PriceInCents\": 54321,\n        \"CurrencyCode\": \"GBP\",\n        \"TransportationIdentifier\": \"transport id new\",\n        \"EventType\": 2,\n        \"PartnerIdentifier\": \"test-event-id-1510779152-new\"\n    }\n]"}],"_postman_id":"fc5cc9c0-02a9-42fb-b18e-5271186a8595"},{"name":"Get Event","event":[{"listen":"test","script":{"id":"240f9a91-d6be-481d-a010-17cb8353ec5f","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");"],"type":"text/javascript"}}],"id":"de9cfa3d-717b-4b27-9610-5c035fb6e079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f7a50706-c02d-4016-8820-53306b2ab983","name":"Get Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:01 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"de9cfa3d-717b-4b27-9610-5c035fb6e079"},{"name":"Update Event","event":[{"listen":"test","script":{"id":"367791a6-5827-46ef-866f-25e2d9cf7d0e","exec":["var data = JSON.parse(responseBody);","","tests['Event id'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 2;","tests['Event partner identifier'] = data.PartnerIdentifier === (postman.getEnvironmentVariable(\"saved-event-partner-identifier\") + \"-new\");","","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"3df2caf8-86a7-4a8d-b78b-5ad731f37437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f3af6062-8f8c-433d-8530-4c63c885d1e5","name":"Update Event","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"493","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:12 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"3df2caf8-86a7-4a8d-b78b-5ad731f37437"},{"name":"Delete Event","event":[{"listen":"test","script":{"id":"32aff829-a861-4148-b16f-15721c3db283","exec":["var data = JSON.parse(responseBody);","","tests['event is not active'] = !data.IsActive; ",""],"type":"text/javascript"}}],"id":"443f34e9-2505-4e35-9dc7-7e515504ebc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"0eed8d8d-3d55-4336-80ba-972eacfdfebe","name":"Delete Event","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"494","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:26 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"443f34e9-2505-4e35-9dc7-7e515504ebc0"}],"id":"cd53e0ef-e7a3-4efd-a9cd-f92999889430","description":"<p><code>EventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Flight</td>\n<td>0</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n</tr>\n<tr>\n<td>Food &amp; Drink</td>\n<td>11</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note: Attached content cannot be viewed or managed via the API at this time.</p>\n","_postman_id":"cd53e0ef-e7a3-4efd-a9cd-f92999889430"},{"name":"Content","item":[{"name":"Create Content","event":[{"listen":"test","script":{"id":"d1ccf7b7-7f6a-4230-9752-ab4c455072fd","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","","postman.setEnvironmentVariable(\"saved-content-id\", data.Id);","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);"],"type":"text/javascript"}}],"id":"631002e4-91d0-4861-8e75-56712ebdcbd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"2ba01f1c-7889-4277-9b2e-02bdd44a8aff","name":"Create Content","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/content"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"439","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:41 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"631002e4-91d0-4861-8e75-56712ebdcbd3"},{"name":"Get All Content","event":[{"listen":"test","script":{"id":"40423847-f1e3-4306-9eae-1a2373e6e2b1","exec":["var data = JSON.parse(responseBody);","","tests['content was returned'] = data.length > 0;","","var firstContent = data[0]; ","","tests['Content was created'] = firstContent.Id > 0;","tests['Content is active'] = firstContent.IsActive;","tests['Content Name'] = firstContent.Name;","tests['Content image url'] = firstContent.ImageUrl;","tests['Content url'] = firstContent.Url;","tests['Content latutude'] = firstContent.Latitude;","tests['Content longutude'] = firstContent.Longitude;","tests['Content city'] = firstContent.City;","tests['Content state'] = firstContent.State;","tests['Content zip'] = firstContent.ZipCode;","tests['Content country'] = firstContent.Country;","tests['Content description'] = firstContent.Description;","tests['Content description'] = firstContent.Category;","tests['Content description'] = firstContent.Rating;","tests['Content description'] = firstContent.Phone;",""],"type":"text/javascript"}}],"id":"6e07aaef-eb59-4bf1-9dca-95ed06011915","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content?createdByUser=true","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Content created by the user, <code>false</code> to return all Content for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"8349097a-0d25-40c0-96e8-e0d2c7c5fce0","name":"Get All Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/content"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"861","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:50 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 261577,\n        \"Name\": \"My Place\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": \"test-content-id-1510782282\"\n    },\n    {\n        \"Id\": 261487,\n        \"Name\": \"Pizzaville\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"6e07aaef-eb59-4bf1-9dca-95ed06011915"},{"name":"Get Content","event":[{"listen":"test","script":{"id":"637f30dc-4a59-4859-9863-5c1d6411dea7","exec":["var data = JSON.parse(responseBody);","","tests['Content was returned'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","",""],"type":"text/javascript"}}],"id":"6a2bea29-f0a8-41ca-bb0e-8103e762149c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"3420a8ad-94e9-4a4e-8894-ec191917dd18","name":"Get Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"440","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:06 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"6a2bea29-f0a8-41ca-bb0e-8103e762149c"},{"name":"Update Content","event":[{"listen":"test","script":{"id":"937b0b58-7083-4352-afc2-d68fa7eae4b2","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name === \"My NEW Place\";","tests['Content image url'] = data.ImageUrl === \"http://lorempixel.com/g/400/200/cats/content2/\";","tests['Content url'] = data.Url === \"https://example2.com\";","tests['Content latutude'] = data.Latitude === 47.127931;","tests['Content longutude'] = data.Longitude === -77.122413;","tests['Content address'] = data.Address  === \"234 Main Street\";","tests['Content city'] = data.City === \"Lincoln2\";","tests['Content state'] = data.State === \"NE2\";","tests['Content zip'] = data.ZipCode === \"68502\";","tests['Content country'] = data.Country === \"UK\";","tests['Content description'] = data.Description === \"This is a GREAT place to visit!!\";","tests['Content description'] = data.Category === 372;","tests['Content description'] = data.Rating === 4.3;","tests['Content description'] = data.Phone === \"(308) 867-5309\";","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\") && data.PartnerIdentifier.endsWith(\"-new\");","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);","",""],"type":"text/javascript"}}],"id":"1b9cb5cd-2c1f-4268-863b-48aa8bbd8be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"c80d6206-a332-4037-bb92-8817aa6ae83b","name":"Update Content","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"452","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:14 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"1b9cb5cd-2c1f-4268-863b-48aa8bbd8be9"},{"name":"Delete Content","event":[{"listen":"test","script":{"id":"a7516a1b-1390-4f17-b678-7dd126e58f45","exec":["var data = JSON.parse(responseBody);","","tests[\"content was deleted\"] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"fcc0db52-3aa0-42c3-ae66-05731f05517c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"eeabd68e-ebb0-46cd-9a58-b3a73e00c08f","name":"Delete Content","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"454","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:24 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": false,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"fcc0db52-3aa0-42c3-ae66-05731f05517c"},{"name":"Delete Multiple Content","id":"78f5dd3a-d0da-4fb4-ab88-20a34595a0f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}","type":"text"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content?ids={{saved-idea-id1}}&ids={{saved-idea-id2}}","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[{"key":"ids","value":"{{saved-idea-id1}}"},{"key":"ids","value":"{{saved-idea-id2}}"}],"variable":[]}},"response":[],"_postman_id":"78f5dd3a-d0da-4fb4-ab88-20a34595a0f8"}],"id":"c13d35fa-d9b0-4e64-9b0f-c1d45f04eb59","_postman_id":"c13d35fa-d9b0-4e64-9b0f-c1d45f04eb59","description":""}],"id":"4aaf046b-92bc-474c-bb76-f5f07592a465","description":"<p>You can now manage the Library of your Users. </p>\n<p>Note, the following features are not yet available in the API:</p>\n<ul>\n<li>Managing Labels</li>\n<li>Accessing items using <code>PartnerIdentifier</code></li>\n<li>Adding multiple images to Content</li>\n<li>Managing items from other team members</li>\n</ul>\n","_postman_id":"4aaf046b-92bc-474c-bb76-f5f07592a465"},{"name":"Inventory Records","item":[{"name":"Create Inventory Record","event":[{"listen":"test","script":{"id":"9a4c6d7a-1368-41a8-8c0e-79e4d39135ec","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id.has(\"test-123\");","","postman.setEnvironmentVariable(\"inventory-id\", data.Id);"],"type":"text/javascript"}}],"id":"8b77fa6b-3aeb-4dc7-a715-ffc2e73c6fb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/","description":"<p>Create an inventory record.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"c5eedd13-93aa-4397-8493-dbf5e329e9a2","name":"Create Inventory Record","originalRequest":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1047","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:21:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"8b77fa6b-3aeb-4dc7-a715-ffc2e73c6fb2"},{"name":"Get Inventory Record","event":[{"listen":"test","script":{"id":"bbc702e0-5d47-4622-be62-df3e717ed788","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");",""],"type":"text/javascript"}}],"id":"a4bf838f-3d08-4198-aac3-7b31ea82a0a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Get a given <code>InventoryRecord</code> by its <code>Id</code></p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"da7a7541-2474-4a50-94c2-bf9f01ab2acd","name":"Get Inventory Record","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"587","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"a4bf838f-3d08-4198-aac3-7b31ea82a0a3"},{"name":"Get Inventory Records","event":[{"listen":"test","script":{"id":"5b7fb0e4-4667-4152-b219-545a59d83497","exec":["var data = JSON.parse(responseBody);","","tests['Has records'] = data.length > 0; ","","postman.setEnvironmentVariable(\"inventory-id\", data[0].Id);",""],"type":"text/javascript"}}],"id":"fe1b59e4-6871-4ceb-8760-18b9d8bc372c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/","description":"<p>Get all the <code>InventoryRecords</code> for your platform.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"640b5f5e-277c-4f58-9ebe-17a1af2753d7","name":"Get Inventory Records","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"15227","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": \"test-123\",\n        \"Name\": \"Personalized Tours of Travefy Office Updated!\",\n        \"Url\": \"https://travefy.com/\",\n        \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\n        \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\n        \"IsActive\": false,\n        \"Latitude\": 40.814385,\n        \"Longitude\": -96.710113,\n        \"Price\": null,\n        \"CurrencyCode\": null,\n        \"Address\": \"151 N 8th St, #300\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"68506\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [\n            {\n                \"Key\": \"Type\",\n                \"Value\": \"Office\"\n            },\n            {\n                \"Key\": \"Maximum Occupancy\",\n                \"Value\": \"15\"\n            }\n        ],\n        \"ImageUrls\": [\n            \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Office Tours\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Cost\",\n                \"Value\": \"FREE!\"\n            },\n            {\n                \"Key\": \"Hours\",\n                \"Value\": \"30pm\"\n            },\n            {\n                \"Key\": \"WiFi\",\n                \"Value\": \"Available\"\n            },\n            {\n                \"Key\": \"Parking\",\n                \"Value\": \"On Street\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"1\",\n        \"Name\": \"South Beach Cuban Food Tour\",\n        \"Url\": \"http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpbs\",\n        \"Description\": \"Join us at the Cuban-Inspired Food Tour and experience some of the most traditional Cuban dishes at places where locals go. Visit Little Havana which offers a vibrant culture where food is made from the soul and served to commemorate all that we left back in the island. With its colorful murals, guayabera-clad men playing dominoes and cigar rollers at work, Little Havana is where the spirit of Miamiâ€™s exile Cuban community comes alive, and where we make several delicious stops. But eating is not everything Little Havana is about. Check in on the cigar rollers of the area, stops at local art galleries, cheer on the domino experts holding court at Domino Park and take a stroll near the Tower Theater, the areaâ€™s oldest movie houses. - See more at: http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpuf\",\n        \"ImageUrl\": \"http://www.travelchannel.com/content/dam/images/travel/fullset/2013/04/23/ec/miami-cuban-restaurants.rend.tccom.616.462.jpeg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.785097,\n        \"Longitude\": -80.130342,\n        \"Price\": 50,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"555 South Beach Ave.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2014/09/cuban-empanadas.jpg\",\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2015/06/best-cuban-restaurant-miami.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforkssandwhichcubano.jpg\",\n            \"http://i30.photobucket.com/albums/c317/pms33013/ae9efc0b-f2c7-4d96-be49-71eca778e4ec_zpstrqwzg1b.jpg\",\n            \"https://img.vimbly.com/images/full_photos/south-beach-food-tour-7.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforks_samplerplate.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Weekdays\",\n                \"Value\": \"10am, 2pm, 6pm\"\n            },\n            {\n                \"Key\": \"Weekends\",\n                \"Value\": \"11am, 1pm, 5pm, 7pm, 10pm\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"2\",\n        \"Name\": \"5-Hour Snorkeling Cruise\",\n        \"Url\": \"http://www.miamiandbeaches.com/things-to-do/outdoor-activities/water-activities/snorkeling\",\n        \"Description\": \"Snorkeling is an easy, affordable, and fun way to discover the wonders of the coral reef, mangrove islands, and abundant marine life. The only skill you need is to be a confident swimmer. So grab your fins, mask and snorkel and get ready to see a whole world just below the surface in Miami.\",\n        \"ImageUrl\": \"http://www.colorfulplaces.com/wp-content/uploads/2014/01/612-snorkeling-miami-ARTICLE.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.771001,\n        \"Longitude\": -80.134216,\n        \"Price\": 36,\n        \"CurrencyCode\": \"EUR\",\n        \"Address\": \"1020 Miami Beach Drive\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://img.getyourguide.com/img/tour_img-249494-70.jpg\",\n            \"https://d11d3pftkotf97.cloudfront.net/wp-content/uploads/Fort-lauderdale-Snorkeling-Tour-Snorkel-South-Florida-Pompano-Beach-equipments2.jpg\",\n            \"http://media-cdn.tripadvisor.com/media/photo-s/06/db/84/49/miami-tours-water-adventures.jpg\",\n            \"http://www.miamidade.gov/ecoadventures/images/sea_kayak.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"3\",\n        \"Name\": \"7-Hour Catamaran Excursion\",\n        \"Url\": \"http://tropicalsailing.com/pu/miami-catamaran-charter-sbsss/\",\n        \"Description\": \"An unforgettable excursion awaits you aboard the Caribbean Spirit Miami Catamaran Charter. Trips depart daily from Bayside Marina. This is your opportunity to view mansions, mega yachts, historic sites and play in the beautiful blue and green tropical waters. Miami Beach and Biscayne Bay is home to a variety of marine life, with luck we may see dolphins or manatees! Come discover Miamiâ€™s finest natural treasures on this unforgettable excursion aboard our state of the art catamaran. Sit back and relax while we set sail to the ocean and our South Beach destination! See sights such as: Port of Miami, home to many cruise lines World famous Downtown Miami Skyline, Beautiful Mansions, Mega yachts and Historic sites\",\n        \"ImageUrl\": \"http://tropicalsailing.com/wp-content/uploads/2012/08/caribbean_spirit_with_a_lot_of_people.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.782683,\n        \"Longitude\": -80.16202,\n        \"Price\": 130,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"181 Carribean Blvd.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://secure.miamibeach411.com/images/P/snorkeling-in-key-west.jpg\",\n            \"https://img.grouponcdn.com/deal/kqnEySiBaVErZTegwcDk/G4-700x420/v1/c700x420.jpg\",\n            \"http://catamaransailingmiami.com/wp-content/uploads/2013/10/DSCN0303.jpg\",\n            \"http://www.miamicharters.com/photos/party_catamarans/Great_White/Great_White_Catamaran_food_area.jpg\",\n            \"http://tropicalsailin.wpengine.netdna-cdn.com/wp-content/uploads/2012/03/sunset27.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    }\n]"}],"_postman_id":"fe1b59e4-6871-4ceb-8760-18b9d8bc372c"},{"name":"Update Inventory Record","event":[{"listen":"test","script":{"id":"9b3fef80-9d4f-4ebe-b500-ab100318a351","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");","tests['Updated name'] = data.Name.endsWith(\"Updated!\");",""],"type":"text/javascript"}}],"id":"641ce798-62bc-4b0e-991f-76080b9d4cc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Update a given <code>InventoryRecord</code> by <code>Id</code>/</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"86b0180c-1146-436b-8aeb-a03fee8f17e7","name":"Update Inventory Record","originalRequest":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"586","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:23:53 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"641ce798-62bc-4b0e-991f-76080b9d4cc7"},{"name":"Delete Inventory Record","event":[{"listen":"test","script":{"id":"53e6f82f-0cac-4ec5-ba97-61f14f580acf","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Was deleted'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"1e5fc0ae-d450-4dfd-9164-bf894677eadb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Delete an <code>InventoryRecord</code> by <code>Id</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"9b0c4b29-c49e-46ed-8564-f41d7e706fc6","name":"Delete Inventory Record","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"583","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:24:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":false,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"1e5fc0ae-d450-4dfd-9164-bf894677eadb"}],"id":"5ce7ef34-5a82-4f34-a18b-56adbc235916","description":"<p>If you have platform search enabled, you can manage your <code>InventoryRecords</code> here.  Everything is keyed off of your provided <code>Id</code> field, so be sure that is unique and non-changing.</p>\n<p>If you're using the CSV upload, here is the list of CSV fields: <a href=\"https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880\">https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880</a></p>\n","_postman_id":"5ce7ef34-5a82-4f34-a18b-56adbc235916"}],"id":"390161c2-e4ba-44ee-8776-d19985ea4eaa","event":[{"listen":"prerequest","script":{"id":"e4b67de7-69b2-4cc0-8110-cf6dae5f309a","type":"text/javascript","exec":["//preset version number","postman.setEnvironmentVariable(\"api-version\", 20190212);"]}},{"listen":"test","script":{"id":"ea9e7936-fc96-45eb-842b-9d2a5cac073b","type":"text/javascript","exec":[""]}}],"_postman_id":"390161c2-e4ba-44ee-8776-d19985ea4eaa","description":""},{"name":"v1-20241001 (Latest)","item":[{"name":"Setup","item":[{"name":"Environment Setup","event":[{"listen":"prerequest","script":{"id":"435adba6-e610-4a96-995d-ef71429bf959","exec":["//set your platform api keys here\r","postman.setEnvironmentVariable(\"platform-private-key\", \"<YOUR-PLATFORM-PRIVATE-API-KEY>\");\r","postman.setEnvironmentVariable(\"platform-public-key\", \"<YOUR-PLATFORM-PUBLIC-API-KEY>\");\r","\r","//these are currently set to sandbox mode, set to live mode by removing the port at your own risk\r","postman.setEnvironmentVariable(\"base-api-url\", \"https://api.travefy.com:81/\");\r","\r","\r","//this is Travefy internal stuff for easier testing, so please ignore :)\r","if (globals['global-platform-private-key']) {\r","    postman.setEnvironmentVariable(\"platform-private-key\", globals['global-platform-private-key']);\r","    postman.setEnvironmentVariable(\"platform-public-key\", globals['global-platform-public-key']);\r","    \r","    //these are currently set to sandbox mode, set to live mode at your own risk\r","    postman.setEnvironmentVariable(\"base-api-url\", globals['global-base-api-url']);\r","}\r",""],"type":"text/javascript"}}],"id":"1a810c6a-68db-4839-97b7-cee52f6750d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://postman-echo.com/get","description":"<p>Setup your access keys for all further requests in the Pre-request script.  Don't have your access keys?  Contact <a href=\"mailto:apisupport@travefy.com\">apisupport@travefy.com</a>.</p>\n<p>You should only need to run this one time as these values will be stored in your Postman environment.</p>\n","urlObject":{"protocol":"https","path":["get"],"host":["postman-echo","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a810c6a-68db-4839-97b7-cee52f6750d7"},{"name":"Secure Echo","event":[{"listen":"test","script":{"id":"2e319462-068d-41fc-8fe7-fa6ca254b98e","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""],"type":"text/javascript","packages":{}}}],"id":"83e34dc8-0c44-4e5e-a3e9-a65bd40eafcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1-12345/secureEcho","description":"<p>Test that calls with your platform's <em>private</em> API key succeed.</p>\n","urlObject":{"path":["v1-12345","secureEcho"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"83e34dc8-0c44-4e5e-a3e9-a65bd40eafcb"},{"name":"Echo","event":[{"listen":"test","script":{"id":"60224c84-3731-4ab6-8c7b-835353609422","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""],"type":"text/javascript"}}],"id":"824c8658-7994-44c2-8fcd-d8c2efe71ae1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/echo","description":"<p>Test that calls with your platform's <em>public</em> API key succeed.</p>\n","urlObject":{"path":["v1-{{api-version}}","echo"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"824c8658-7994-44c2-8fcd-d8c2efe71ae1"}],"id":"4d5136ca-ba3f-434c-bf52-28947cb08d66","description":"<h2 id=\"note-you-need-to-run-this-before-any-other-request-if-you-are-using-postman--if-youre-using-another-client-feel-free-to-skip-this\">Note: You need to run this before <em>any</em> other request if you are using Postman.  If you're using another client, feel free to skip this.</h2>\n<p>Add your API keys to the Pre-request Script and execute the <code>Environment Setup</code> request to setup the environment.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>//set your platform api keys here\npostman.setEnvironmentVariable(\"platform-private-key\", \"&lt;YOUR-PLATFORM-PRIVATE-API-KEY&gt;\");\npostman.setEnvironmentVariable(\"platform-public-key\", \"&lt;YOUR-PLATFORM-PUBLIC-API-KEY&gt;\");\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"6c4d6a46-3c42-4886-bf0a-dc491593f49c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"12beab34-98e2-4c53-b489-3f1ba2412502","type":"text/javascript","exec":[""]}}],"_postman_id":"4d5136ca-ba3f-434c-bf52-28947cb08d66"},{"name":"Users","item":[{"name":"Create User (Level 1)","event":[{"listen":"test","script":{"id":"4a765a57-bfba-4de8-b779-4c72c83f075d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"4e1c0d20-dfc8-41ef-88d5-c23c18b5b5e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": false,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/","description":"<p>Create a <code>User</code> on the Travefy platform.</p>\n<p>The response of this request give you a chance to store the <code>AccessToken</code> and <code>PublicKey</code> for the <code>User</code>.  Those keys are also available on the <code>User</code> GET and GET by <code>Id</code> requests.  These are automatically stored in the Postman environment for testing.</p>\n<p>Note: if the <code>User</code> already has an account on Travefy, they'll need to authorize your Platform on their account.  Send them to https://{{your-travefy-platform-url}}/account/authorize and they can approve access.  You can then retrieve their tokens via the Get Users call. </p>\n","urlObject":{"path":["v1-{{api-version}}","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"0917900b-b197-4d12-91b3-bc624eb095e8","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"4e1c0d20-dfc8-41ef-88d5-c23c18b5b5e1"},{"name":"Create User (SSO)","event":[{"listen":"test","script":{"id":"4a765a57-bfba-4de8-b779-4c72c83f075d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.has(\"Agent\");","tests['Username has string'] = data.User.Username.has(\"agent\");","tests['Response has Title'] = data.User.Title;","tests['Response has Phone'] = data.User.Phone;","tests['Response has Url'] = data.User.Url;","tests['Response has ImageUrl'] = data.User.ImageUrl;","tests['Response has CompanyLogoUrl'] = data.User.CompanyLogoUrl;","tests[\"Has usbscription period end\"] = data.User.SubscriptionPeriodEnd;","tests[\"Is Subscription Level 1\"] = data.AgentSubscriptionLevel === 1;","","","postman.setEnvironmentVariable(\"user-private-key\", data.AccessToken);","postman.setEnvironmentVariable(\"user-access-token\", data.AccessToken);","postman.setEnvironmentVariable(\"user-id\", data.User.Id);",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"660ecbcc-8259-4398-ba9e-c660b92fea78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"DisableWelcomeEmail\": true,\r\n    \"PartnerIdentifier\": \"user-123\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/","description":"<p>Create a <code>User</code> on the Travefy platform that will authenticate using SSO.</p>\n<p>When a user is created through the API they receive a welcome email that enables them to login through the Travefy login form. If you users are using SSO then they wont need this and it can be confusing. You can prevent the welcome email from sending by setting <code>DisableWelcomeEmail</code> to <code>true</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","users",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"d42cd48c-3d69-437d-a2f7-3edd19f03a72","name":"Create User (Level 1)","originalRequest":{"method":"POST","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"User\": {\r\n        \"Username\": \"agent1.1780225217@example.com\",\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Title\": \"Travel Expert\",\r\n        \"Phone\": \"555-555-1234\",\r\n        \"Url\": \"https://travefy.com/\",\r\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\r\n    },\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"PartnerIdentifier\": \"user-123\",\r\n    \"DisableWelcomeEmail\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-api-url}}api/v1/users/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"647","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"660ecbcc-8259-4398-ba9e-c660b92fea78"},{"name":"Get User","event":[{"listen":"test","script":{"id":"b4c33b6a-8fbd-4027-bec5-d4ad7c846501","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"392dac49-6992-441c-a4fd-3f5fdd081247","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>Id</code>.</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"8aabd102-ca0e-4cd1-a95b-b04df3ff9640","name":"Get User","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"412","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:47:08 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 123456,\n        \"FullName\": \"Agent Level 1 User\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n        \"Username\": \"agent1.1505227550@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"392dac49-6992-441c-a4fd-3f5fdd081247"},{"name":"Update User","event":[{"listen":"test","script":{"id":"01f7ee45-206a-40b9-adcd-9d0c086ab3f2","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Full name has string'] = data.User.FullName.endsWith(\"agent2\");","tests['Username has string'] = data.User.Username.endsWith(\"-updated@example.com\");","tests[\"Has created on\"] = data.CreatedOn;","tests[\"Is Active\"] = data.IsActive;",""],"type":"text/javascript"}}],"id":"d557144f-c205-453d-9de1-0a72171328d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"nate+agent1-1780225217-updated@example.com\",\r\n        \"fullName\" : \"nate test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Update a User. Currently, this will update Username (email), FullName, and ImageUrl.</p>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"474e87b9-1a6e-4dcd-a4fc-034b252aa84a","name":"Update User","originalRequest":{"method":"PUT","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"user\" : {\r\n        \"username\" : \"updated+agent1-1780225217-updated@example.com\",\r\n        \"fullName\" : \"updated test agent2\"\r\n    }\r\n}\r\n\r\n"},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"405","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:50:27 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"User\": {\n        \"Id\": 127630,\n        \"FullName\": \"updated test agent2\",\n        \"ImageUrl\": null,\n        \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n        \"IsAgent\": true,\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n        \"AgentSubscriptionIsActive\": true,\n        \"Title\": \"Travel Expert\",\n        \"Phone\": \"555-555-1234\",\n        \"Url\": \"https://travefy.com/\",\n        \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n    },\n    \"AccessToken\": \"f33ccb599f19844e4f7047bd1088cef0\",\n    \"PublicKey\": \"9318aebc16aa44e1bf552234f710e8ea\",\n    \"AgentSubscriptionLevel\": 1,\n    \"PartnerIdentifier\": \"user-123\",\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"d557144f-c205-453d-9de1-0a72171328d0"},{"name":"Get Users","event":[{"listen":"test","script":{"id":"597ff385-649a-4478-93c9-9c5abfe8e8e0","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6937ec53-50a2-49eb-ae0e-5b4e5249e4a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users","description":"<p>Get all Users that your platform has access to.</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    },\n    ...\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"302ee116-b06d-4b3a-a1be-edcebef5aa55","name":"Get Users","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    },\n    {\n        \"User\": {\n            \"Id\": 123457,\n            \"FullName\": \"updated test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505227826-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": \"Travel Expert\",\n            \"Phone\": \"555-555-1234\",\n            \"Url\": \"https://travefy.com/\",\n            \"CompanyLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n        },\n        \"AccessToken\": \"f7047bd3cef5999843ccbe410884ff10\",\n        \"PublicKey\": \"34f16a93e8ef51a44e7108aebc1b522a\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-456\",\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    }\n]"}],"_postman_id":"6937ec53-50a2-49eb-ae0e-5b4e5249e4a3"},{"name":"Get Users  by Authorization Code","event":[{"listen":"test","script":{"id":"92e4237c-5849-48ef-8ef1-4b165cbb0958","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"13fe8018-228c-4cbb-95fd-d74377b7451b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","description":"<p>Get a <code>User</code> from the Travefy platform by their expiring <code>authorizationCode</code>. This will return a collection with a single user if the <code>authorizationCode</code> is valid.<br />This method should be used to associate a user that was sent to Travefy to authorize your platform. If the <code>authorizationCode</code> is expired the response code returned will be <code>Gone</code>.</p>\n<p>See <a href=\"https://developer.travefy.com/#authorization-redirect-url\">Authorization Redirect Url</a> for information on retrieving and using the <code>authorizationCode</code>.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}],"variable":[]}},"response":[{"id":"45982308-c8e7-42ff-9ebf-cf32bea65e5a","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"13fe8018-228c-4cbb-95fd-d74377b7451b"},{"name":"Get Users by Partner Identifier","event":[{"listen":"test","script":{"id":"92e4237c-5849-48ef-8ef1-4b165cbb0958","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"at least one user was returned\"] = data.length;","","var firstUser = data[0];","tests[\"Has created on\"] = firstUser.CreatedOn;","tests[\"Is Active\"] = firstUser.IsActive;",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"78dbe55b-3308-43bc-8986-faa07c571793","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/users?partnerIdentifier={{partnerIdentifier}}","description":"<p>Get a <code>User</code> from the Travefy platform by their <code>partnerIdentifier</code>. <code>partnerIdentifier</code> is a unique Id that was optionally set in the Create User call. This will return a collection with a single user if the <code>partnerIdentifier</code> is valid.</p>\n<p>-<br />HEADERS<br />X-API-PRIVATE-KEY {{platform-private-key}}<br />X-API-PUBLIC-KEY {{platform-public-key}}</p>\n<h3 id=\"sample-response\">Sample Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["v1-{{api-version}}","users"],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{partnerIdentifier}}"}],"variable":[]}},"response":[{"id":"8367176e-545e-4a3e-ac0b-961d48edffb5","name":"Get Users by Authorization Code","originalRequest":{"method":"GET","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1-{{api-version}}/users?authorizationCode={{authorizationCode}}","host":["{{base-api-url}}api"],"path":["v1-{{api-version}}","users"],"query":[{"key":"authorizationCode","value":"{{authorizationCode}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-encoding","value":"gzip","description":""},{"key":"content-length","value":"37491","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.10.3","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"vary","value":"Accept-Encoding","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n  {\n        \"User\": {\n            \"Id\": 123456,\n            \"FullName\": \"a test agent2\",\n            \"ImageUrl\": null,\n            \"Username\": \"updated+agent1-1505226542-updated@example.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-09-22T14:29:35\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        },\n        \"AccessToken\": \"ced4a3f4c1822b221710afe4c2fba447\",\n        \"PublicKey\": \"cb3cbdc5507c3643093fea48d21fdc49\",\n        \"AgentSubscriptionLevel\": 1,\n        \"PartnerIdentifier\": \"user-123\",\n        \"IsActive\": false,\n        \"CreatedOn\": \"2017-09-12T14:28:57.503\"\n    }\n]"}],"_postman_id":"78dbe55b-3308-43bc-8986-faa07c571793"}],"id":"28681bee-6b8a-42e5-a181-e7026a056cc5","description":"<h2 id=\"notes\">Notes</h2>\n<p>In production, your platform may be charged for any created users.  Sandbox users are free to create.</p>\n<h2 id=\"request\">Request</h2>\n<p><code>AgentSubscriptionLevel</code> values:</p>\n<ul>\n<li>1 = Plus</li>\n<li>2 = Premium</li>\n</ul>\n<h2 id=\"response-items\">Response Items</h2>\n<p>After successfully creating the <code>User</code>, <code>POST</code> method returns an object with the following properties:</p>\n<ul>\n<li><code>User</code> - The <code>User</code> that was created.</li>\n<li><code>AccessToke</code> - Your platform's <code>AccessToken</code> for this <code>User</code>, keep this securely stored like a password.</li>\n<li><code>PublicKey</code> - The <code>PublicKey</code> for this <code>User</code>, this is a unique, non-secure identifier and should be stored.</li>\n<li><code>AgentSubscriptionLevel</code> - The level of their Travefy Pro subscription.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"0a9b88e4-06bf-4940-868f-b6f122eee9fc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4501dd60-633a-410b-9210-d2746ace410a","type":"text/javascript","exec":[""]}}],"_postman_id":"28681bee-6b8a-42e5-a181-e7026a056cc5"},{"name":"Trips","item":[{"name":"Create Trip","event":[{"listen":"test","script":{"id":"8f8f6378-b730-44f5-8cf0-4853b7f5a78d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","    ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Body contains CreatedOn'] = data.CreatedOn;","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;","tests['Return invite message'] = data.InviteMessage; ","tests['Return estimated cost'] = data.EstimatedCost; ","tests['Return isCostPerPerson'] = data.IsCostPerPerson; ","tests['Trip has days'] = !data.TripDays || data.TripDays.length > 0;","tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-key\", data.VerificationKey);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","",""],"type":"text/javascript"}}],"id":"54d5b2d9-7004-4214-91f5-d4ff2a2c9104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n\t\"Name\": \"Trip 1780225217\",\r\n\t\"InviteMessage\": \"Welcome to the trip!\",\r\n\t\"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n\t\"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo.png\",\r\n\t\"EstimatedCost\": \"$1,234\",\r\n\t\"IsCostPerPerson\": true,\r\n\t\"PartnerIdentifier\": \"trip-1780225217\",\r\n\t\"Status\": \"Quote\",\r\n\t\"IsChatDisabled\": false,\r\n\t\"IsPdfEnabled\": false,\r\n\t\"IsAppEnabled\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create an empty <code>Trip</code> on the Travefy platform.</p>\n<p><code>IsSupplemental</code> is not required by this request as it will be automatically created.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"b8810a3f-302c-4537-8764-10a2621f7cd1","name":"Create Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to the trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n    \"EstimatedCost\": \"$1,234\",\r\n    \"IsCostPerPerson\": true,\r\n    \"Status\": \"Quote\"\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"369","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:54:21 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313894,\n    \"VerificationKey\": 488201857,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcndwqz2abnk497a5umkp78a\",\n    \"Name\": \"Trip 1553181793\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:22:52.313\",\n    \"InviteMessage\": \"Welcome to the trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n    \"EstimatedCost\": \"$1,234\",\n    \"IsCostPerPerson\": true,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717111,\n            \"TripId\": 313894,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717110,\n            \"TripId\": 313894,\n            \"Title\": null,\n            \"Date\": null,\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181793\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"54d5b2d9-7004-4214-91f5-d4ff2a2c9104"},{"name":"Create Proposal","event":[{"listen":"test","script":{"id":"8f8f6378-b730-44f5-8cf0-4853b7f5a78d","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");","    ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Body contains CreatedOn'] = data.CreatedOn;","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;","tests['Return invite message'] = data.InviteMessage; ","tests['Return estimated cost'] = data.EstimatedCost; ","tests['Return isCostPerPerson'] = data.IsCostPerPerson; ","tests['Trip has days'] = !data.TripDays || data.TripDays.length > 0;","tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-key\", data.VerificationKey);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","",""],"type":"text/javascript","packages":{}}}],"id":"8e569cf6-b85a-4b53-8abc-ea7f346977c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n\t\"Name\": \"Trip 1780225217\",\r\n\t\"InviteMessage\": \"Welcome to the trip!\",\r\n\t\"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n\t\"SeconaryLogoUrl\": \"https://travefy.com/content/app/images/logo.png\",\r\n\t\"EstimatedCost\": \"$1,234\",\r\n\t\"IsCostPerPerson\": true,\r\n\t\"PartnerIdentifier\": \"trip-1780225217\",\r\n\t\"Status\": \"Quote\",\r\n    \"IsProposal\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create an empty <code>Trip</code> as a proposal on the Travefy platform.</p>\n<p><code>IsSupplemental</code> is not required by this request as it will be automatically created.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ce1fcb02-bf2a-4975-b4b6-127d7bdd5002","name":"Create Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to the trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\r\n    \"EstimatedCost\": \"$1,234\",\r\n    \"IsCostPerPerson\": true,\r\n    \"Status\": \"Quote\"\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"369","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:54:21 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313894,\n    \"VerificationKey\": 488201857,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcndwqz2abnk497a5umkp78a\",\n    \"Name\": \"Trip 1553181793\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:22:52.313\",\n    \"InviteMessage\": \"Welcome to the trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n    \"EstimatedCost\": \"$1,234\",\n    \"IsCostPerPerson\": true,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717111,\n            \"TripId\": 313894,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717110,\n            \"TripId\": 313894,\n            \"Title\": null,\n            \"Date\": null,\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:22:52.3288541Z\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181793\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"8e569cf6-b85a-4b53-8abc-ea7f346977c4"},{"name":"Create Full Proposal","event":[{"listen":"test","script":{"id":"55c8687c-e5fa-481a-91be-49b677beed9a","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");"," ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Return invite message'] = data.InviteMessage; ","tests['Return TripCoverPhotoUrl'] = data.TripCoverPhotoUrl.startsWith(\"http://lorempixel\");","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","tests['Body contains TripDay'] = data.TripDays.length > 0;","tests['Trip has 2 TripDay'] = data.TripDays.length === 2;","//tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","","var firstDay = data.TripDays[1];","","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;","","var firstEvent = firstDay.TripEvents[0];","","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 12345;","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;","","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;","","var firstTripIdea = firstEvent.TripIdeas[0];","tests['TripIdea has name'] = firstTripIdea.Name;","tests['TripIdea has description'] = firstTripIdea.Description;","tests['TripIdea has url'] = firstTripIdea.Url;","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');","tests['TripIdea has address'] = firstTripIdea.Address;","tests['TripIdea has latitude'] = firstTripIdea.Latitude;","tests['TripIdea has longitude'] = firstTripIdea.Longitude;","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","utils.loadTripDays(data.TripDays, pm.environment);","",""],"type":"text/javascript","packages":{}}}],"id":"7a3fa079-df19-433c-a4ed-a29537dc3599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \n    \"Name\": \"Trip 1780225217\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"Status\": \"Quote\",\n    \"PartnerIdentifier\": \"trip-1780225217\",\n    \"IsProposal\": true,\n    \"TripDays\": [\n    \t{\n    \t\t\"IsSupplemental\": true,\n    \t\t\"TripEvents\":[\n    \t\t\t{\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\n    \t\t\t\t\"EventType\": 12\n    \t\t\t}\n    \t\t]\n    \t},\n        {  \n            \"Title\": \"Trip Day 1780225217\",\n            \"Date\": \"6\\/13\\/{{$next-year}}\",\n            \"IsSupplemental\": false,\n            \"TripEvents\": [  \n                {  \n                    \"Name\": \"Trip Event 1780225217\",\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"CurrencyCode\": \"USD\",\n                    \"PriceInCents\": 12345,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [  \n                        {  \n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": 87825,\n                            \"Country\": \"US\"\n                        }\n                    ]\n                },\n                {\n\t\t        \t\"name\": \"Departure event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": {{$next-year}},\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },\n                {\n\t\t        \t\"name\": \"Arrival event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": {{$next-year}},\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },{\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 660,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"1\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\n                            \"ImageUrl\": null,\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\n                            \"Description\": null,\n                            \"Latitude\": 41.976570,\n                            \"Longitude\": -87.905130,\n                            \"Address\": \"10000 W Ohare Ave\",\n                            \"City\": \"Chicago\",\n                            \"State\": \"IL\",\n                            \"ZipCode\": \"60666\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": {{$next-year}},\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                },\n                {\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 831,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"B\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\n                            \"Description\": null,\n                            \"Latitude\": 38.852430,\n                            \"Longitude\": -77.042602,\n                            \"Address\": \"2401 S Smith Blvd\",\n                            \"City\": \"Arlington\",\n                            \"State\": \"VA\",\n                            \"ZipCode\": \"22202\",\n                            \"Phone\": \"(703) 417-8000\",\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": {{$next-year}},\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                }\n            ]\n        }\n    ]\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create a Proposalon the Travefy platform with a full proposal (<code>TripDays</code> and <code>TripEvents</code>).</p>\n<p>The <code>IsSupplemental</code> is <strong>required</strong> for this request. Be sure to add one day that <code>\"IsSupplemental\": true</code>. It can be as simple as below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"TripDays\":[\n    {\n        \"IsSupplemental\": true\n    },\n    {\n        \"Name\": \"Add more days\",\n        \"IsSupplemental\": false\n    }\n]\n\n</code></pre>","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"507ca6be-70c7-4d8f-a705-88e8e13bf7bf","name":"Create Full Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-1780225217\",\r\n    \"IsSupplemental\": false,\r\n    \"IsChatDisabled\": true,\r\n    \"IsPdfEnabled\": true,\r\n    \"IsAppEnabled\": true,\r\n    \"TripDays\": [\r\n    \t{\r\n    \t\t\"IsSupplemental\": true,\r\n    \t\t\"TripEvents\":[\r\n    \t\t\t{\r\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\r\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\r\n    \t\t\t\t\"EventType\": 12\r\n    \t\t\t}\r\n    \t\t]\r\n    \t},\r\n        {  \r\n            \"Title\": \"Trip Day 1780225217\",\r\n            \"Date\": \"6\\/13\\/2021\",\r\n            \"IsSupplemental\": false,\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 12345,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My Place\",\r\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https://example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Arrival event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },{\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 660,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"1\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": false,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\r\n                            \"ImageUrl\": null,\r\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 41.976570,\r\n                            \"Longitude\": -87.905130,\r\n                            \"Address\": \"10000 W Ohare Ave\",\r\n                            \"City\": \"Chicago\",\r\n                            \"State\": \"IL\",\r\n                            \"ZipCode\": \"60666\",\r\n                            \"Phone\": null,\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                },\r\n                {\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 831,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"B\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\r\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 38.852430,\r\n                            \"Longitude\": -77.042602,\r\n                            \"Address\": \"2401 S Smith Blvd\",\r\n                            \"City\": \"Arlington\",\r\n                            \"State\": \"VA\",\r\n                            \"ZipCode\": \"22202\",\r\n                            \"Phone\": \"(703) 417-8000\",\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1489","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:57:41 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313892,\n    \"VerificationKey\": 724509696,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcxdwqz2acl5atypjmchjq2a\",\n    \"Name\": \"Trip 1553181388\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:16:06.577\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717106,\n            \"TripId\": 313892,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.593246Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270996,\n                    \"TripDayId\": 717106,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": null,\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Traveler Insurance\",\n                    \"Description\": \"You could attach pdf docs to this event.\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 12,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717107,\n            \"TripId\": 313892,\n            \"Title\": \"Trip Day 1553181388\",\n            \"Date\": \"2019-04-18T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.7182421Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270997,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1553181388\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 175644,\n                            \"TripEventId\": 270997,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 270998,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 18\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181388\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"7a3fa079-df19-433c-a4ed-a29537dc3599"},{"name":"Create Full Trip","event":[{"listen":"test","script":{"id":"55c8687c-e5fa-481a-91be-49b677beed9a","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");"," ","var data = JSON.parse(responseBody);","","tests['Body contains Trip'] = data.Id;","tests['Return invite message'] = data.InviteMessage; ","tests['Return TripCoverPhotoUrl'] = data.TripCoverPhotoUrl.startsWith(\"http://lorempixel\");","tests['Return VerificationKey'] = data.VerificationKey; ","tests['Return Status'] = data.Status === \"Quote\"; ","","tests['Body contains TripDay'] = data.TripDays.length > 0;","tests['Trip has 2 TripDay'] = data.TripDays.length === 2;","//tests['Trip has PartnerIdentifier'] = data.PartnerIdentifier.startsWith('trip-');","","var firstDay = data.TripDays[1];","","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;","","var firstEvent = firstDay.TripEvents[0];","","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 12345;","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;","","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;","","var firstTripIdea = firstEvent.TripIdeas[0];","tests['TripIdea has name'] = firstTripIdea.Name;","tests['TripIdea has description'] = firstTripIdea.Description;","tests['TripIdea has url'] = firstTripIdea.Url;","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');","tests['TripIdea has address'] = firstTripIdea.Address;","tests['TripIdea has latitude'] = firstTripIdea.Latitude;","tests['TripIdea has longitude'] = firstTripIdea.Longitude;","","postman.setEnvironmentVariable(\"trip-id\", data.Id);","postman.setEnvironmentVariable(\"trip-partner-id\", data.PartnerIdentifier);","","utils.loadTripDays(data.TripDays, pm.environment);","",""],"type":"text/javascript","packages":{}}}],"id":"e0edcf5c-0dda-451f-801a-5a24229b925a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \n    \"Name\": \"Trip 1780225217\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"Status\": \"Quote\",\n    \"PartnerIdentifier\": \"trip-1780225217\",\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n    \t{\n    \t\t\"IsSupplemental\": true,\n    \t\t\"TripEvents\":[\n    \t\t\t{\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\n    \t\t\t\t\"EventType\": 12\n    \t\t\t}\n    \t\t]\n    \t},\n        {  \n            \"Title\": \"Trip Day 1780225217\",\n            \"Date\": \"6\\/13\\/{{$next-year}}\",\n            \"IsSupplemental\": false,\n            \"TripEvents\": [  \n                {  \n                    \"Name\": \"Trip Event 1780225217\",\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"CurrencyCode\": \"USD\",\n                    \"PriceInCents\": 12345,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [  \n                        {  \n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": 87825,\n                            \"Country\": \"US\"\n                        }\n                    ]\n                },\n                {\n\t\t        \t\"name\": \"Departure event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": {{$next-year}},\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },\n                {\n\t\t        \t\"name\": \"Arrival event title\",\n    \t\t\t\t\"description\": \"is awesome!\",\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\n\t\t\t\t\t\"EventType\" : 0, \n\t\t\t\t\t\"IsActive\": true,\n\t\t\t\t\t\"FlightUpdateInformation\": {\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\n        \t\t\t\"DepartureDateYear\": {{$next-year}},\n        \t\t\t\"DepartureDateMonth\": 6,\n        \t\t\t\"DepartureDateDay\": 13\n\t\t\t\t\t}\n                },{\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 660,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"1\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\n                            \"ImageUrl\": null,\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\n                            \"Description\": null,\n                            \"Latitude\": 41.976570,\n                            \"Longitude\": -87.905130,\n                            \"Address\": \"10000 W Ohare Ave\",\n                            \"City\": \"Chicago\",\n                            \"State\": \"IL\",\n                            \"ZipCode\": \"60666\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": {{$next-year}},\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                },\n                {\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 831,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": \"B\",\n                    \"StartGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"UA 4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\n                            \"Description\": null,\n                            \"Latitude\": 38.852430,\n                            \"Longitude\": -77.042602,\n                            \"Address\": \"2401 S Smith Blvd\",\n                            \"City\": \"Arlington\",\n                            \"State\": \"VA\",\n                            \"ZipCode\": \"22202\",\n                            \"Phone\": \"(703) 417-8000\",\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"ORD\",\n                        \"ArrivalAirportIataCode\": \"DCA\",\n                        \"DepartureDateYear\": {{$next-year}},\n                        \"DepartureDateMonth\": 6,\n                        \"DepartureDateDay\": 13\n                    }\n                }\n            ]\n        }\n    ]\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Create a <code>Trip</code> on the Travefy platform with a full itinerary (<code>TripDays</code> and <code>TripEvents</code>).</p>\n<p>The <code>IsSupplemental</code> is <strong>required</strong> for this request. Be sure to add one day that <code>\"IsSupplemental\": true</code>. It can be as simple as below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"TripDays\":[\n    {\n        \"IsSupplemental\": true\n    },\n    {\n        \"Name\": \"Add more days\",\n        \"IsSupplemental\": false\n    }\n]\n</code></pre>","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"d2073b20-cec8-4f3e-8bda-d5117e2d8755","name":"Create Full Trip","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Trip 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-1780225217\",\r\n    \"IsSupplemental\": false,\r\n    \"IsChatDisabled\": true,\r\n    \"IsPdfEnabled\": true,\r\n    \"IsAppEnabled\": true,\r\n    \"TripDays\": [\r\n    \t{\r\n    \t\t\"IsSupplemental\": true,\r\n    \t\t\"TripEvents\":[\r\n    \t\t\t{\r\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\r\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\r\n    \t\t\t\t\"EventType\": 12\r\n    \t\t\t}\r\n    \t\t]\r\n    \t},\r\n        {  \r\n            \"Title\": \"Trip Day 1780225217\",\r\n            \"Date\": \"6\\/13\\/2021\",\r\n            \"IsSupplemental\": false,\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 12345,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My Place\",\r\n                            \"ImageUrl\": \"http://lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https://example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },\r\n                {\r\n\t\t        \t\"name\": \"Arrival event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"ORD\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"DCA\",\r\n        \t\t\t\"DepartureDateYear\": 2021,\r\n        \t\t\t\"DepartureDateMonth\": 6,\r\n        \t\t\t\"DepartureDateDay\": 13\r\n\t\t\t\t\t}\r\n                },{\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Depart from Chicago O'Hare International Airport (ORD)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 660,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"1\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": false,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Chicago O'Hare International Airport (ORD)\",\r\n                            \"ImageUrl\": null,\r\n                            \"Url\": \"http://www.flychicago.com/ohare/en/home/Pages/default.aspx\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 41.976570,\r\n                            \"Longitude\": -87.905130,\r\n                            \"Address\": \"10000 W Ohare Ave\",\r\n                            \"City\": \"Chicago\",\r\n                            \"State\": \"IL\",\r\n                            \"ZipCode\": \"60666\",\r\n                            \"Phone\": null,\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                },\r\n                {\r\n                    \"IsActive\": true,\r\n                    \"SegmentProviderName\": \"United Airlines\",\r\n                    \"SegmentProviderUrl\": null,\r\n                    \"SegmentIdentifier\": null,\r\n                    \"Name\": \"Arrive at Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                    \"Description\": \"\",\r\n                    \"StartTimeZoneId\": null,\r\n                    \"StartTimeInMinutes\": 831,\r\n                    \"DurationInMinutes\": null,\r\n                    \"StartTerminal\": \"B\",\r\n                    \"StartGate\": null,\r\n                    \"PriceInCents\": null,\r\n                    \"CurrencyCode\": null,\r\n                    \"TransportationIdentifier\": \"UA 4432\",\r\n                    \"EventType\": 0,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [\r\n                        {\r\n                            \"Name\": \"Ronald Reagan Washington National Airport (DCA) (Ronald Reagan Washington National Airport)\",\r\n                            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/qa-tmpimg/653a193a10b670175b737ac09e82429d9b736d4a.jpg\",\r\n                            \"Url\": \"http://www.mwaa.com/reagan/reagan.htm\",\r\n                            \"Description\": null,\r\n                            \"Latitude\": 38.852430,\r\n                            \"Longitude\": -77.042602,\r\n                            \"Address\": \"2401 S Smith Blvd\",\r\n                            \"City\": \"Arlington\",\r\n                            \"State\": \"VA\",\r\n                            \"ZipCode\": \"22202\",\r\n                            \"Phone\": \"(703) 417-8000\",\r\n                            \"Country\": \"US\",\r\n                            \"IsActive\": true\r\n                        }\r\n                    ],\r\n                    \"PartnerIdentifier\": null,\r\n                    \"Images\": [],\r\n                    \"FlightUpdateInformation\": {\r\n                        \"AirlineIataCode\": \"UA\",\r\n                        \"FlightNumber\": \"4432\",\r\n                        \"DepartureAirportIataCode\": \"ORD\",\r\n                        \"ArrivalAirportIataCode\": \"DCA\",\r\n                        \"DepartureDateYear\": 2021,\r\n                        \"DepartureDateMonth\": 6,\r\n                        \"DepartureDateDay\": 13\r\n                    }\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1489","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:57:41 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313892,\n    \"VerificationKey\": 724509696,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcxdwqz2acl5atypjmchjq2a\",\n    \"Name\": \"Trip 1553181388\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:16:06.577\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717106,\n            \"TripId\": 313892,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.593246Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270996,\n                    \"TripDayId\": 717106,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": null,\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Traveler Insurance\",\n                    \"Description\": \"You could attach pdf docs to this event.\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 12,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717107,\n            \"TripId\": 313892,\n            \"Title\": \"Trip Day 1553181388\",\n            \"Date\": \"2019-04-18T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:16:06.7182421Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 270997,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1553181388\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 175644,\n                            \"TripEventId\": 270997,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 270998,\n                    \"TripDayId\": 717107,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 18\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1553181388\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"e0edcf5c-0dda-451f-801a-5a24229b925a"},{"name":"Get Trip","event":[{"listen":"test","script":{"id":"53c78224-81ba-4626-9d70-7e4c374a5e3b","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;",""],"type":"text/javascript"}}],"id":"d0abe7d5-a4d4-41b5-ba43-a71b9dab257a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"3c3a0203-a891-4e23-acbc-59024ea0b14e","name":"Get Trip","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"726","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:59:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -123456789,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip 1508954257\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n   \t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 123,\n            \"TripId\": 123456,\n            \"Title\": \"Trip Day 1508954257\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-10-25T17:57:32.8927258Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 456,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1508954257\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 789,\n                            \"TripEventId\": 456,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"d0abe7d5-a4d4-41b5-ba43-a71b9dab257a"},{"name":"Get Trip with Proposal Details","event":[{"listen":"test","script":{"id":"53c78224-81ba-4626-9d70-7e4c374a5e3b","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;",""],"type":"text/javascript","packages":{}}}],"id":"5b41c430-d4c7-4392-86ac-2eae14a5abf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}?includeProposalDetails=true","description":"<p>Get a <code>Trip</code> from the Travefy platform.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[{"key":"includeProposalDetails","value":"true"}],"variable":[]}},"response":[{"id":"b8a603a9-11bd-48ca-820f-130c7d663e4c","name":"Get Trip","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"726","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 17:59:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -123456789,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip 1508954257\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n   \t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 123,\n            \"TripId\": 123456,\n            \"Title\": \"Trip Day 1508954257\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-10-25T17:57:32.8927258Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 456,\n                    \"TripDayId\": 123,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1508954257\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 789,\n                            \"TripEventId\": 456,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"5b41c430-d4c7-4392-86ac-2eae14a5abf6"},{"name":"Get Trip by Partner Identifier","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""],"type":"text/javascript"}}],"id":"87e37380-3505-4842-89ae-1910919b102b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/?partnerIdentifier={{trip-partner-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>PartnerIdentifier</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips",""],"host":["{{base-api-url}}api"],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}],"variable":[]}},"response":[{"id":"95bc4f0b-aacd-4dd8-b539-9c8946213fbd","name":"Get Trip by Partner Identifier","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":{"raw":"{{base-api-url}}api/v1/trips/?partnerIdentifier={{trip-partner-id}}","host":["{{base-api-url}}api"],"path":["v1","trips",""],"query":[{"key":"partnerIdentifier","value":"{{trip-partner-id}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"87e37380-3505-4842-89ae-1910919b102b"},{"name":"Get Trip by Shared Id","event":[{"listen":"test","script":{"id":"deb0aa62-c7df-4ffe-9bd3-f8e2ea6017dc","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;","","tests['Trip Id matches'] = data.Id == postman.getEnvironmentVariable(\"trip-id\");",""],"type":"text/javascript"}}],"id":"32ecd345-864e-486a-b80f-eff3c33ef951","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-shared-id}}","description":"<p>Get a <code>Trip</code> from the Travefy platform by <code>SharedId</code>, which is the identifier at the end of <code>ShareUrlPath</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-shared-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"a7ed552f-537b-45f4-9225-90ab1db4c1f7","name":"Get Trip by Shared Id","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-partner-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","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-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"929","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 15 Jan 2018 22:16:32 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"-1","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.12.1","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31536000","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":"Custom header"}],"cookie":[{"expires":"Thu Mar 22 2018 05:17:17 GMT+0000 (Coordinated Universal Time)","httpOnly":true,"domain":"stage.travefy.com","path":"/","secure":false,"value":"12CDC53B0wEkAAAANmI4MDhiNzQtMDU2My00YjE5LTllNjUtNGY0YzY1MjYwOTJhXTAW0vzi_K3bSJKyQXPuPF42zfJ1unInwPgqJb7DJjY1","key":".ASPXANONYMOUS"}],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"VerificationKey\": -1234579,\n    \"Name\": \"Trip 1516054583\",\n    \"Active\": true,\n    \"CreatedOn\": \"2018-01-15T22:16:20.1915347Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 54321,\n            \"TripId\": 12345,\n            \"Title\": \"Trip Day 1516054583\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2018-01-15T22:16:20.2071603Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 65432,\n                    \"TripDayId\": 54321,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Trip Event 1516054583\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 12345,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"IsArrival\": false,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 13531,\n                            \"TripEventId\": 0,\n                            \"Name\": \"My Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null\n                }\n            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": \"trip-1516054583\",\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"32ecd345-864e-486a-b80f-eff3c33ef951"},{"name":"Get Trips","event":[{"listen":"test","script":{"id":"e82c6ecc-c225-4740-bb3e-7e987f998821","exec":["var data = JSON.parse(responseBody);","","tests['Return some trips'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"84360782-259c-461c-a18b-5749730482b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips","description":"<p>Get every <code>Trip</code> created by your platform for the given <code>User</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"bec7744f-5fde-4ca3-9056-55ab61ad3219","name":"Get Trips","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/trips"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"359","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:00:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"VerificationKey\": -1234567890,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954257\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.8614756Z\",\n        \"InviteMessage\": \"Welcome to your trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n        \"EstimatedCost\": null,\n        \"IsCostPerPerson\": null,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": false,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    },\n    {\n        \"Id\": 456789123,\n        \"VerificationKey\": 789456123,\n        \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n        \"Name\": \"Trip 1508954057\",\n        \"Active\": true,\n        \"CreatedOn\": \"2017-10-25T17:54:12.993\",\n        \"InviteMessage\": \"Welcome to the trip!\",\n        \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n        \"EstimatedCost\": \"$1,234\",\n        \"IsCostPerPerson\": true,\n        \"IsChatDisabled\": false,\n        \"IsPdfEnabled\": true,\n\t\t\"IsAppEnabled\": true,\n        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    }\n]"}],"_postman_id":"84360782-259c-461c-a18b-5749730482b5"},{"name":"Update Trip","event":[{"listen":"test","script":{"id":"efbdddbf-e0aa-4e3d-b546-0593b71b298e","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage; \r","\r","tests['Body contains TripDay'] = data.TripDays.length > 0;\r","tests['Trip has 1 TripDay'] = data.TripDays.length === 1;\r","\r","tests['Trip name was updated'] = data.Name.has('Updated');\r","\r","var firstDay = data.TripDays[0];\r","\r","tests['Body contains TripEvent'] = firstDay.TripEvents.length > 0;\r","tests['First day name was updated'] = firstDay.Title.has('Updated');\r","tests['First day date was updated'] = firstDay.Date === '2019-04-19T00:00:00';\r","\r","var firstEvent = firstDay.TripEvents[0];\r","\r","tests['Event name was updated'] = firstEvent.Name.has('Updated');\r","tests['Segment Provider Name'] = firstEvent.SegmentProviderName;\r","tests['Segment Provider Phone'] = firstEvent.SegmentProviderPhone;\r","tests['Segment Provider Url'] = firstEvent.SegmentProviderUrl;\r","tests['Segment Identifier'] = firstEvent.SegmentIdentifier;\r","tests['IsEndingEvent'] = firstEvent.IsEndingEvent;\r","tests['Currency code is USD'] = firstEvent.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = firstEvent.PriceInCents === 13579;\r","\r","tests['TripIdea was created'] = firstEvent.TripIdeas.length > 0;\r","\r","var firstTripIdea = firstEvent.TripIdeas[0];\r","tests['TripIdea name was updated'] = firstTripIdea.Name.has('New');\r","tests['TripIdea has description'] = firstTripIdea.Description;\r","tests['TripIdea has url'] = firstTripIdea.Url;\r","tests['TripIdea has adorable picture :)'] = firstTripIdea.ImageUrl.endsWith('cats');\r","tests['TripIdea has address'] = firstTripIdea.Address;\r","tests['TripIdea has latitude'] = firstTripIdea.Latitude;\r","tests['TripIdea has longitude'] = firstTripIdea.Longitude;\r","\r","tests['App enabled is true'] = data.IsAppEnabled === true;\r","tests['Pdf enabled is true'] = data.IsPdfEnabled === true;\r","tests['Chat disabled is true'] = data.IsChatDisabled === true;\r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""],"type":"text/javascript","packages":{}}}],"id":"838f95ad-baee-439f-9ca0-61450e5641dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated Should not change app, pdf or chat\",\r\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\r\n    \"TripDays\": [  \r\n        {\r\n            \"Id\": \"{{trip-day-id-0}}\",\t\r\n    \t\t\"IsSupplemental\": true,\r\n    \t\t\"TripEvents\":[\r\n    \t\t\t{\r\n                    \"Id\": \"{{trip-day-id-1-event-id-0}}\",\r\n    \t\t\t\t\"Name\": \"Traveler Insurance\",\r\n    \t\t\t\t\"description\": \"You could attach pdf docs to this event.\",\r\n    \t\t\t\t\"EventType\": 12\r\n    \t\t\t}\r\n    \t\t]\r\n    \t},\r\n        {  \r\n            \"Id\": \"{{trip-day-id-1}}\",\t\r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"4\\/19\\/{{$next-year}}\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Id\": \"{{trip-day-id-1-event-id-0}}\",\r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Id\": \"{{trip-day-id-1-event-id-0-idea-id-0}}\",\r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    \"Id\": \"{{trip-day-id-1-event-id-1}}\",\r\n\t\t        \t\"Name\": \"Departure event title\",\r\n    \t\t\t\t\"description\": \"is awesome!\",\r\n    \t\t\t\t\"SegmentProviderName\": \"United Airlines\",\r\n    \t\t\t\t\"TransportationIdentifier\": \"4432\",\r\n\t\t\t\t\t\"EventType\" : 0, \r\n\t\t\t\t\t\"IsActive\": true,\r\n\t\t\t\t\t\"FlightUpdateInformation\": {\r\n\t\t\t\t\t\"AirlineIataCode\": \"UA\",\r\n        \t\t\t\"FlightNumber\": \"4432\",        \t\t\r\n        \t\t\t\"DepartureAirportIataCode\": \"LBB\",\r\n        \t\t\t\"ArrivalAirportIataCode\": \"IAH\",\r\n        \t\t\t\"DepartureDateYear\": {{$next-year}},\r\n        \t\t\t\"DepartureDateMonth\": 4,\r\n        \t\t\t\"DepartureDateDay\": 19\r\n\t\t\t\t\t}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Update any <code>Trip</code> itinerary information AND metadata (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.). Move events to different days. Re-order days and events.</p>\n<p>A trip has <code>TripDays</code> as children. A <code>TripDay</code> has <code>TripEvents</code> as children. A <code>TripEvent</code> has <code>TripIdeas</code> as children. If you do not want the children of something to be updated then you should omit the collection property on the parent. For example if you only want to update the metadata, such as the name of the trip, then you should omit the <code>TripDays</code> property or set it to <code>null</code> in the request. If you provide an empty array it will delete all of the trip days.</p>\n<p>If you would like to update an existing <code>TripDays</code>, <code>TripEvents</code> or <code>TripIdeas</code> you must set the <code>Id</code> field on anything that you would like to be updated. If the <code>Id</code> field is omitted or does not belong on the trip, then a new item will be created.</p>\n<p>If you would like to remove an item you can omit it from any of the collections. Additionally, the <code>IsActive</code> field can be used in any case to remove it. You should always set the <code>IsActive</code> field to true if you want something to be included in the trip.</p>\n<p>If you would like to add something then you can omit the <code>Id</code> field.</p>\n<p><strong>Updating a full trip:</strong></p>\n<p>If you pass up <em>any</em> <code>TripDays</code>, all <code>TripDays</code>will be updated to match what you have provided in the request.</p>\n<p>Chat messages and saved <code>TripIdeas</code> will be maintained, but all <code>TripDays</code>, <code>TripEvents</code>, and <code>TripIdeas</code> on <code>TripEvents</code> will be replaced unless the collection is omitted or set to <code>null</code>.</p>\n<p>If you would only like to update the days, then all <code>TripEvents</code> fields should be <code>null</code> or omitted from the days in which you do not want to update the events. This same rule applies to <code>TripIdeas</code> that are attached to events.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f2b16cd3-3b3d-43b3-a8fb-da7df2ee37d0","name":"Update Trip","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Name\": \"Updated 1780225217\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated 1780225217\",\r\n            \"Date\": \"3\\/21\\/2016\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated 1780225217\",\r\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\r\n                    \"SegmentProviderPhone\": \"555-867-5309\",\r\n                    \"SegmentProviderUrl\": \"https:\\/\\/lincolngrandhotel.com\",\r\n                    \"SegmentIdentifier\": \"YP02XVDB\",\r\n                    \"CurrencyCode\": \"USD\",\r\n                    \"PriceInCents\": 13579,\r\n                    \"EventType\": 1,\r\n                    \"IsEndingEvent\": true,\r\n                    \"TripIdeas\": [  \r\n                        {  \r\n                            \"Name\": \"My New Place\",\r\n                            \"ImageUrl\": \"http:\\/\\/lorempixel.com\\/400\\/200\\/cats\",\r\n                            \"Url\": \"https:\\/\\/example.com\",\r\n                            \"Description\": \"A great place to visit!\",\r\n                            \"Latitude\": 34.0784796,\r\n                            \"Longitude\": -107.6184694,\r\n                            \"Address\": \"123 W Main St\",\r\n                            \"City\": \"Citytown\",\r\n                            \"State\": \"NM\",\r\n                            \"ZipCode\": 87825,\r\n                            \"Country\": \"US\"\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"713","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:01:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 313895,\n    \"VerificationKey\": -1325434303,\n    \"ShareUrlPath\": \"trip/6yw9rqtqcldwqz2a6p5padt7k7f5lva\",\n    \"Name\": \"Updated Should not change app, pdf or chat\",\n    \"Active\": true,\n    \"CreatedOn\": \"2019-03-21T15:27:24.693\",\n    \"InviteMessage\": \"Welcome to your trip! - chat disabled, pdf mobile on\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": true,\n    \"IsPdfEnabled\": true,\n    \"IsAppEnabled\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 717112,\n            \"TripId\": 313895,\n            \"Title\": \"Information & Documents\",\n            \"Date\": null,\n            \"Ordinal\": 0,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:27:24.71\",\n            \"TripEvents\": null,\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": true\n        },\n        {\n            \"Id\": 717113,\n            \"TripId\": 313895,\n            \"Title\": \"Updated 1553182071\",\n            \"Date\": \"2019-04-19T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2019-03-21T15:27:24.82\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 271006,\n                    \"TripDayId\": 717113,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n                    \"SegmentProviderPhone\": \"555-867-5309\",\n                    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n                    \"SegmentIdentifier\": \"YP02XVDB\",\n                    \"Ordinal\": 0.5,\n                    \"Name\": \"Updated 1553182071\",\n                    \"Description\": \"\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": null,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": 13579,\n                    \"CurrencyCode\": \"USD\",\n                    \"TransportationIdentifier\": null,\n                    \"EventType\": 1,\n                    \"IsEndingEvent\": true,\n                    \"TripIdeas\": [\n                        {\n                            \"Id\": 175648,\n                            \"TripEventId\": 271006,\n                            \"Name\": \"My New Place\",\n                            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                            \"Url\": \"https://example.com\",\n                            \"Description\": \"A great place to visit!\",\n                            \"Latitude\": 34.0784796,\n                            \"Longitude\": -107.6184694,\n                            \"Address\": \"123 W Main St\",\n                            \"City\": \"Citytown\",\n                            \"State\": \"NM\",\n                            \"ZipCode\": \"87825\",\n                            \"Phone\": null,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": null\n                },\n                {\n                    \"Id\": 271007,\n                    \"TripDayId\": 717113,\n                    \"IsActive\": true,\n                    \"SegmentProviderName\": \"United Airlines\",\n                    \"SegmentProviderPhone\": null,\n                    \"SegmentProviderUrl\": null,\n                    \"SegmentIdentifier\": null,\n                    \"Ordinal\": 0.75,\n                    \"Name\": \"Departure event title\",\n                    \"Description\": \"is awesome!\",\n                    \"StartTimeZoneId\": null,\n                    \"StartTimeInMinutes\": 425,\n                    \"DurationInMinutes\": null,\n                    \"StartTerminal\": null,\n                    \"StartGate\": null,\n                    \"EndTerminal\": null,\n                    \"EndGate\": null,\n                    \"PriceInCents\": null,\n                    \"CurrencyCode\": null,\n                    \"TransportationIdentifier\": \"4432\",\n                    \"EventType\": 0,\n                    \"IsEndingEvent\": false,\n                    \"TripIdeas\": [],\n                    \"PartnerIdentifier\": null,\n                    \"Images\": [],\n                    \"FlightUpdateInformation\": {\n                        \"AirlineIataCode\": \"UA\",\n                        \"FlightNumber\": \"4432\",\n                        \"DepartureAirportIataCode\": \"LBB\",\n                        \"ArrivalAirportIataCode\": \"IAH\",\n                        \"DepartureDateYear\": 2019,\n                        \"DepartureDateMonth\": 4,\n                        \"DepartureDateDay\": 19\n                    }\n                }\n            ],\n            \"PartnerIdentifier\": null,\n            \"IsSupplemental\": false\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"838f95ad-baee-439f-9ca0-61450e5641dc"},{"name":"Update Trip (Metadata only)","event":[{"listen":"test","script":{"id":"8c2ca6b7-dc58-4cfa-8c3e-2def93b59130","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""],"type":"text/javascript"}}],"id":"d5bb2cb4-8a78-4b04-9121-f42ed7d77c4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\",\r\n\t\"SecondaryLogoUrl\": \"https://travefy.com/content/app/images/logo-header.png\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Update the <code>Trip</code> itinerary metadata <em>only</em> (<code>Name</code>, <code>TripCoverPhotoUrl</code>, etc.).  Note: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"bd532666-a044-43e8-b224-981ba2592e69","name":"Update Trip (Metadata only)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:15 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"d5bb2cb4-8a78-4b04-9121-f42ed7d77c4c"},{"name":"Archive Trip","event":[{"listen":"test","script":{"id":"53989226-ec8f-48bb-9307-8b6fbdade19e","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""],"type":"text/javascript"}}],"id":"c5685c34-9cf0-4213-a950-f414e93d299e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Archives the <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"d5921b8d-6410-4529-b3b6-01a42fd40eb2","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"c5685c34-9cf0-4213-a950-f414e93d299e"},{"name":"Delete Trip","event":[{"listen":"test","script":{"id":"8f94fcf6-72c4-47f4-bd1c-044dc1ebccbb","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Trip is archived'] = data.IsArchived;\r",""],"type":"text/javascript"}}],"id":"03338a13-aa0a-4853-b3b2-4857d9c30db3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}?hard=true","description":"<p>Deletes the <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[{"key":"hard","value":"true"}],"variable":[]}},"response":[{"id":"89936f6b-6aa5-4ec1-b05e-d68fe117f499","name":"Archive Trip","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"261","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:02:45 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954531\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"03338a13-aa0a-4853-b3b2-4857d9c30db3"},{"name":"Update Trip (Unarchive)","event":[{"listen":"test","script":{"id":"a838a490-4cf9-4779-aba8-1041d67795dd","exec":["tests[\"Status code is 201\"] = responseCode.code === 200;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"OK\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Return invite message'] = data.InviteMessage;\r","tests['Return Status'] = data.Status === \"Paid\";\r","\r","tests['Trip name was updated'] = data.Name.has('Metadata');\r",""],"type":"text/javascript"}}],"id":"d5a3dbe9-0ea3-477d-ba56-f2953b4d9549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}","description":"<p>Unarchives the <code>Trip</code>.  This request is the same as the other update and is only here so the trip will be unarchived once the test suite is finished.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"301916f6-d44f-49c2-a538-e7a2b64bde16","name":"Update Trip (Unarchive)","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"Trip Metadata 1780225217\",\r\n    \"locationName\" : \"Good partytown, usa\",\r\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\r\n    \"Status\": \"Paid\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"264","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:03:17 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"ShareUrlPath\": \"trip/6yw9rqtqc4lwqz2avkc25ylgmd3yzfq\",\n    \"Name\": \"Trip Metadata 1508954593\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your metadata trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n\t\"IsPdfEnabled\": false,\n\t\"IsAppEnabled\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"d5a3dbe9-0ea3-477d-ba56-f2953b4d9549"},{"name":"Copy Trip [Beta]","event":[{"listen":"test","script":{"id":"a8759552-2529-419b-9c64-3b223c027c65","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","    \r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","tests['Body contains CreatedOn'] = data.CreatedOn;\r","tests['Body contains TripCoverPhotoUrl'] = data.TripCoverPhotoUrl;\r","tests['Return invite message'] = data.InviteMessage; \r","tests['Return estimated cost'] = data.EstimatedCost; \r","tests['Return isCostPerPerson'] = data.IsCostPerPerson; \r","tests['Trip has no days'] = !data.TripDays || data.TripDays.length === 0;\r","tests['Return VerificationKey'] = data.VerificationKey; \r","tests['Return Status'] = data.Status === \"Quote\"; \r","\r","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"268c2bf7-3c09-4cde-abe2-6cbfdb24caff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/copy","description":"<p>This functionality is currently in beta.  Please contact us for more info.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","copy"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[],"_postman_id":"268c2bf7-3c09-4cde-abe2-6cbfdb24caff"}],"id":"0b67dc64-89d4-4422-89c8-85afd8301f3d","description":"<h1 id=\"notes\">Notes</h1>\n<p>Status can be set from one of the statuses the User has created in the web interface and is matched by the string provided. The match is <em>not</em> case-sensitive. If no matching Status is found, it is not set (\"No Status\" in the UI). <code>Quote</code>, <code>Confirmed</code>, and <code>Paid</code> are default statuses for all agents currently, but this is subject to change.</p>\n<p><code>TripIdeas</code> are a collection on a <code>TripEvent</code> and are often establishments or other info that is associated with the <code>TripEvent</code>. For example, the event may be \"Beachside Dinner\" with a time and reservation info and the idea may be \"Shorebird Resturant\" with the location, hours, etc. Currently these are completely stand-alone and will not connect with any existing items from the Travefy database or an agent's Content Library. See the Create Full Trip request for an example usage.</p>\n<p>The <code>PartnerIdentifier</code> field on a <code>Trip</code> can be used to store <em>your</em> identifier on the <code>Trip</code>. For example, if you have a different identifier for the <code>Trip</code> in <em>your</em> database, you can store that here. You can then query the <code>Trip</code> by that identifier to get the Travefy <code>Id</code> for the <code>Trip</code>. Note: This field must be unique across your platform.</p>\n","event":[{"listen":"prerequest","script":{"id":"61b46978-32b3-4fbd-9f22-2686e7b158cf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e4f8111-3ec8-46be-b774-abbd114cdeb9","type":"text/javascript","exec":[""]}}],"_postman_id":"0b67dc64-89d4-4422-89c8-85afd8301f3d"},{"name":"Trip Days","item":[{"name":"Create Trip Day","event":[{"listen":"test","script":{"id":"d4af36b5-ca19-4489-9bed-2fded12c683b","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"8176c2cd-3028-480c-a116-5b93f75bf140","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/04/15\"\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/","description":"<p>Create a <code>TripDay</code> on a given <code>Trip</code>.</p>\n<p><code>IsSupplemental</code> is not required for this request. The <code>IsSupplemental</code> parameter will be default set to <code>false</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f90790b8-4b88-4b6c-a7eb-5ba1530334e4","name":"Create Trip Day","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2017/01/15\"\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"205","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:04:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 789123,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null,\n    \"IsSupplemental\": false\n}"}],"_postman_id":"8176c2cd-3028-480c-a116-5b93f75bf140"},{"name":"Get Trip Days","event":[{"listen":"test","script":{"id":"4bc95b80-e71b-444d-8a6b-c07240cdac53","exec":["var data = JSON.parse(responseBody);","tests['Return some trip days'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"f8f272fb-a6c3-4039-9b94-c5faa249ffa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/","description":"<p>Get all the <code>TripDay</code>s for this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"e61dabde-f77a-452c-b48f-87d8de1ae5db","name":"Get Trip Days","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/tripDays/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"228","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:11 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"Title\": \"Updated 1508954466\",\n        \"Date\": \"2016-03-21T00:00:00\",\n        \"Ordinal\": 0.5,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T17:57:32.893\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    },\n    {\n        \"Id\": 987654,\n        \"TripId\": 456789,\n        \"Title\": \"Trip Day 1508954678\",\n        \"Date\": \"2017-01-15T00:00:00\",\n        \"Ordinal\": 0.75,\n        \"IsActive\": true,\n        \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n        \"TripEvents\": null,\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"f8f272fb-a6c3-4039-9b94-c5faa249ffa7"},{"name":"Get Trip Day","event":[{"listen":"test","script":{"id":"068feae3-6a41-40f6-a3ff-68aa9ec3798a","exec":["var data = JSON.parse(responseBody);","tests['Return trip'] = data.Id; ",""],"type":"text/javascript"}}],"id":"7e40a724-192d-4652-9a0e-e7daeffdba49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Get the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1e033f3e-e531-4d48-b4f4-a8b6d7148b6e","name":"Get Trip Day","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"181","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:05:46 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"Title\": \"Trip Day 1508954678\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.3499478Z\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"7e40a724-192d-4652-9a0e-e7daeffdba49"},{"name":"Update Trip Day ","event":[{"listen":"test","script":{"id":"3a948bb1-3947-41d5-8685-6406b94a797d","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip'] = data.Id;\r","postman.setEnvironmentVariable(\"trip-day-id\", data.Id);\r","\r","tests['Title is updated'] = data.Title.has(\"Updated\");\r","\r","tests['isActive is true'] = data.IsActive === true;\r",""],"type":"text/javascript"}}],"id":"c82a975d-7742-44bf-81b5-2a5c0af6017a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2019/05/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Update the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"446c9268-2e03-4e9d-9a74-8619f31fcaa3","name":"Update Trip Day ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"Title\": \"Updated Trip Day 1780225217\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2016/02/15\",\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"182","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:14 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null,\n    \"IsSupplemental\": false\n}\n"}],"_postman_id":"c82a975d-7742-44bf-81b5-2a5c0af6017a"},{"name":"Delete Trip Day","event":[{"listen":"test","script":{"id":"3ab3b7ad-0d09-4984-a277-096bf82c3f8a","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"ee9b36c9-598d-4b20-9a47-3b37a2229f53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/tripDays/{{trip-day-id}}","description":"<p>Delete the specified <code>TripDay</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripDays","{{trip-day-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1ed9e640-4429-452f-b4ee-b9c99d09f321","name":"Delete Trip Day","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"187","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:06:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 987654,\n    \"Title\": \"Updated Trip Day 1508954770\",\n    \"Date\": \"2016-02-15T00:00:00\",\n    \"Ordinal\": 0.25,\n    \"IsActive\": false,\n    \"CreatedOn\": \"2017-10-25T18:04:34.35\",\n    \"TripEvents\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"ee9b36c9-598d-4b20-9a47-3b37a2229f53"}],"id":"305582b5-6a7e-444b-aa73-d0d80cd406a4","description":"<p>A <code>TripDay</code> represents a day on the itinerary.  It may have a date (e.g. 2017/01/24) or may not (e.g. Day 2).</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the  <code>TripId</code> from the created <code>Trip</code> for all of these calls.</p>\n","_postman_id":"305582b5-6a7e-444b-aa73-d0d80cd406a4"},{"name":"Trip Events","item":[{"name":"Create Trip Event","event":[{"listen":"test","script":{"id":"6cd9bd09-d594-4c6a-b5c7-909ddcc8e3d9","exec":["tests[\"Status code is 201\"] = responseCode.code === 201;\r","tests[\"Status code name has string\"] = responseCode.name.has(\"Created\");\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;\r","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;\r","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;\r","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;\r","tests['DurationInMinutes set'] = data.DurationInMinutes === 90;\r","tests['Event type is 5'] = data.EventType === 5;\r","tests['IsEndingEvent'] = data.IsEndingEvent;\r","tests['Currency code is USD'] = data.CurrencyCode === 'USD';\r","tests['PriceInCents is 12345'] = data.PriceInCents === 12345;\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r","postman.setEnvironmentVariable(\"trip-idea-id\", data.TripIdeas && data.TripIdeas[0] && TripIdeas[0].Id)"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"aeb9b772-0a6f-4504-81ed-ebd13d2aa542","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"355\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"Images\": [\"http://lorempixel.com/600/400/cats\", \"http://lorempixel.com/800/600/abstract\"],\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"America/Chicago\",\r\n  \t\"FlightUpdateInformation\": {\r\n\t\t\"AirlineIataCode\": \"UA\",\r\n    \t\"FlightNumber\": \"4432\",        \t\t\r\n    \t\"DepartureAirportIataCode\": \"LBB\",\r\n    \t\"ArrivalAirportIataCode\": \"IAH\",\r\n    \t\"DepartureDateYear\": 2019,\r\n    \t\"DepartureDateMonth\": 4,\r\n    \t\"DepartureDateDay\": 22\r\n  \t},\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A great place to visit!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t],\r\n    \"ThirdPartyPropertyIds\": {\r\n        \"Giata\": 168935\r\n    }\r\n}\r\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents","description":"<p>Create a <code>TripEvent</code> on a given <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p>Adding optional <code>ThirdPartyPropertyIds</code> will do a best-effort lookup of the property in the Travefy Global Properties database. If we find a matching property, we will add our photos to the TripEvent.  </p>\n<p>Currently supported <code>ThirdPartyPropertyIds</code> are Giata, Leonardo, IcePortal, and Sabre.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"708d5670-0f50-403c-ab16-e6a710a60410","name":"Create Trip Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"478\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"America/Chicago\"\r\n}\r\n"},"url":"{{base-api-url}}api/v1/tripEvents"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache","description":""},{"key":"connection","value":"keep-alive","description":""},{"key":"content-length","value":"624","description":""},{"key":"content-type","value":"application/json; charset=utf-8","description":""},{"key":"date","value":"Wed, 25 Oct 2017 18:07:59 GMT","description":""},{"key":"expires","value":"-1","description":""},{"key":"pragma","value":"no-cache","description":""},{"key":"server","value":"nginx/1.12.1","description":""},{"key":"strict-transport-security","value":"max-age=31536000","description":""},{"key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\n    \"SegmentIdentifier\": \"YFH2XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Event 1508954875\",\n    \"Description\": \"<p>This is great!</p>\",\n    \"StartTimeZoneId\": \"America/Chicago\",\n    \"StartTimeInMinutes\": 764,\n    \"DurationInMinutes\": 90,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 5,\n    \"IsEndingEvent\": true,\n    \"IsArrival\": false,\n    \"TripIdeas\": [],\n    \"PartnerIdentifier\": null\n}"},{"id":"30b80fe5-4de5-4449-b545-ae04cd0bb159","name":"Create Trip Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}","disabled":true},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}","disabled":true},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer eyJraWQiOiJlcTNUVWpaWStmN0FSMEJWVzFkSFZQVU1UeklHd1VcL2d6VGhSY1FqNFpEdz0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJiNDYwNmIyYy03OGIzLTQ5NmItYjk3YS1jOThiYjRjOTI5MmYiLCJkZXZpY2Vfa2V5IjoidXMtZWFzdC0xX2MyZTFiYWI5LTQzYTctNDI2NS04ZTQwLTMyMTRkZTQ0MGJjYSIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoiYXdzLmNvZ25pdG8uc2lnbmluLnVzZXIuYWRtaW4iLCJhdXRoX3RpbWUiOjE3NjUyMDU2MzksImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX3lUeVJpZjlSRCIsImV4cCI6MTc2NTk5MTQxNCwiaWF0IjoxNzY1OTg3ODE0LCJqdGkiOiI1YmYyODdlMy02MDE0LTQxZGYtOTJjNS0yNjM0YjkzOTI1ZGIiLCJjbGllbnRfaWQiOiIzb2hqMXVvYm4wYTh2Y2N1djNhZnJkcHFtZSIsInVzZXJuYW1lIjoiYjQ2MDZiMmMtNzhiMy00OTZiLWI5N2EtYzk4YmI0YzkyOTJmIn0.XvLuiumH8IU-vlgwglWBDhAIlF4NxeTODsLCsAZT8Xy_0IwTG8OqG0od6Kt4vjw8ISWs5xSQU-eV_avQ_yUylzKo55ha7Un6dI9adWtFD5HMNa4LlmpAL1bO8pwqjjBKKFHIZ8PQWJq2NzV2J8SR87YSlDKFOFstytmgjb33FbEkDpUZCM-DXgcbGBbirXr7-xzupOkHSS4PRWTZAsJpz3WnsCYGJr4cPtUdzxVAIeAR9lOIqe8E9LWBqgyuMB5BrtBe7QPm69GpEOog_UayNmpW18cH9eDBLqMKuTSG1bdqAj3VNbqv4D3IRln9c325WehT8ndKuZ_rxILmAMHHNg","type":"text"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Event 1780225217\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"17\",\r\n    \"EventType\": 5,\r\n    \"SegmentProviderName\": \"Lincoln's Grand Hotel\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://lincolnsgrandhotel.com\",\r\n    \"SegmentIdentifier\": \"YFH2XVDB\",\r\n    \"DurationInMinutes\": 90,\r\n    \"Images\": [\"http://lorempixel.com/600/400/cats\", \"http://lorempixel.com/800/600/abstract\"],\r\n    \"IsEndingEvent\": true,\r\n    \"CurrencyCode\": \"USD\",\r\n    \"PriceInCents\": 12345,\r\n    \"StartTimeZoneId\": \"America/Chicago\",\r\n  \t\"FlightUpdateInformation\": {\r\n\t\t\"AirlineIataCode\": \"UA\",\r\n    \t\"FlightNumber\": \"4432\",        \t\t\r\n    \t\"DepartureAirportIataCode\": \"LBB\",\r\n    \t\"ArrivalAirportIataCode\": \"IAH\",\r\n    \t\"DepartureDateYear\": 2019,\r\n    \t\"DepartureDateMonth\": 4,\r\n    \t\"DepartureDateDay\": 22\r\n  \t}\r\n}\r\n"},"url":"localhost:51035/api/v1/tripEvents"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"Content-Length","value":"4472"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Date","value":"Wed, 17 Dec 2025 16:12:16 GMT"},{"key":"X-MiniProfiler-Ids","value":"[\"293ce2b0-70eb-4fd3-b75e-92824cc5210f\",\"ebf115c2-8fb5-4824-b7a7-056336dbfcc0\",\"9541c935-8ef2-40b0-8b0e-b79336fee04d\",\"1b2d8385-2f3f-4520-9894-07f1e0daa5c0\",\"b2a0cb24-5706-45cd-b128-70ef1175a899\",\"9fc5d73a-2a99-4e99-8697-bf10a1389673\",\"244104ff-d18a-4ce2-ae37-c6fe5ed40dee\",\"d070d72d-d519-4955-bcf3-6119226620cb\",\"3a9b0316-658b-4e6c-94c6-402c17541ffb\",\"46bb9af2-a472-417b-9785-d0e3353b88a2\",\"4f98f422-e107-4326-ac79-d67425278d4a\",\"ae605097-237f-4f6d-ad04-5596a68ce560\",\"2e180fd2-b575-48c2-845c-2fd205fcb9ed\",\"d40cc99d-2dbc-4219-9e37-29f86e5b8f4b\",\"e219aa1e-72b4-4c31-94a1-c1a5919b2405\",\"39c42952-a98a-4e4e-9557-fd7b6d9ee46d\",\"bbda5592-13c4-4a89-8e73-7c731efb0561\",\"7df06148-de77-450d-a00a-77feb6fcd939\",\"adf46806-1b15-468e-91b9-5b6bed6e38e2\",\"429d39d1-fb56-4e28-a38a-17f319509ec4\",\"1d34d4ca-ad5f-4ece-b93f-43d13c481a37\",\"09b3f710-d4d6-4409-a5fe-a54ef90d8f2c\"]"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Security-Policy","value":"object-src 'none'; script-src 'nonce-+4KYOlDwLT874QCNrdBq0kG6htwNvbzNKZiEcKxzg9I=' use.typekit.net www.googletagmanager.com 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' 'report-sample' https: http:; base-uri 'none'; report-uri /logging/csp-reports; frame-ancestors 'self';"},{"key":"X-ENVIRONMENT","value":"dev"},{"key":"X-Release-Id","value":"local"},{"key":"X-Tenant","value":""},{"key":"X-Platform-Version-Result","value":"1"},{"key":"X-Response-Time","value":"147ms"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html>\n    <head>\n        <meta name=\"viewport\" content=\"width=device-width\" />\n        <title>Page Not Found</title>\n        <style type=\"text/css\">\n            body {\n                position: relative;\n                margin-top: 0;\n                padding: 0;\n                font-size: 100%;\n                font-family: Arial, Helvetica,sans-serif;\n                background: #FFF;\n                text-align: center;\n            }\n\n        .alertpage-bkg-back {\n            height: 100vh;\n            width: 100vw;\n            position: fixed;\n            top: 0;\n            left: 0;\n            background: url(\"/content/app/images-resp/app/bg/alertbkg-back.png\") no-repeat center center fixed;\n            -webkit-background-size: cover;\n            -moz-background-size: cover;\n            -o-background-size: cover;\n            background-size: cover;\n        }\n\n            .alertpage-bkg-front {\n                height: 100vh;\n                width: 100vw;\n                position: fixed;\n                top: 0;\n                left: 0;\n                background: url(\"/content/app/images-resp/app/bg/alertbkg-front.png\") no-repeat center center fixed;\n                -webkit-background-size: cover;\n                -moz-background-size: cover;\n                -o-background-size: cover;\n                background-size: cover;\n            }\n\n            .alertpage-code {\n                width: 100%;\n                color: rgba(255, 255, 255, 0.7);\n                font-size: calc(100vw/2.25);\n                font-weight: 900;\n                position: absolute;\n                bottom: 30vh;\n                text-align: center;\n            }\n\n            .alertpage-content {\n                padding: 1rem;\n                position: relative;\n                z-index: 10;\n                padding-top: 20%;\n                display: flex;\n                justify-content: center;\n                align-items: flex-start;\n            }\n\n            .alertpage-content.no-code {\n                padding-top: 5%;\n            }\n\n            .alertpage-card {\n                width: 100%;\n                max-width: 33rem;\n                padding: 1rem;\n                background: white;\n                border-radius: 0.25rem;\n                box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);\n            }\n\n            .alertpage-heading {\n                font-size: 1rem;\n                color: #052430;\n            }\n\n            .alertpage-copy {\n                font-size: 0.875rem;\n                color: #97ACB4;\n            }\n\n            @media (orientation: landscape) {\n                .alertpage-code {\n                    bottom: 0;\n                }\n\n                .alertpage-heading {\n                    font-size: 1.5rem;\n                }\n\n                .alertpage-copy {\n                    font-size: 1rem;\n                }\n            }\n    </style>\n    </head>\n    <body>\n        <div class=\"alertpage-bkg-back\">\n            <div class=\"alertpage-code\">404</div>\n            <div class=\"alertpage-bkg-front\"></div>\n            <div class=\"alertpage-content\">\n                <div class=\"alertpage-card\">\n                    <h1 class=\"alertpage-heading\">Sorry, we couldn’t find that page.</h1>\n                    <p class=\"alertpage-copy\">Perhaps there’s a problem with the link you used. Please contact your agent for assistance.</p>\n                </div>\n            </div>\n        </div>\n    </body>\n</html>\n<style>#app-version-banner { position: fixed; bottom: 0; right: 0; opacity: .6; z-index: 9999; padding: .25rem; color: black; font-size: .85rem; pointer-events: none;}\n#app-version-banner span { display: inline-block; background-color: #fde7e7; border-radius: .25rem; margin-left: .25rem; padding: .25rem;}</style>\n<script type=\"text/javascript\" nonce=\"+4KYOlDwLT874QCNrdBq0kG6htwNvbzNKZiEcKxzg9I=\">\n                const elementId = 'app-version-banner';\n                let existingDiv = document.getElementById(elementId);\n                if(!existingDiv){\n                    // create a new div element\n                    const newDiv = document.createElement('div');\n                    newDiv.setAttribute('id', elementId);\n                    // and give it some content\n                    // add the text node to the newly created div\n                    document.body.insertAdjacentElement('afterend', newDiv);\n                    existingDiv = newDiv;\n                }\n                existingDiv.innerHTML = existingDiv.innerHTML + '\n    <span>Server: local</span>';\n</script>"}],"_postman_id":"aeb9b772-0a6f-4504-81ed-ebd13d2aa542"},{"name":"Get Trip Events","event":[{"listen":"test","script":{"id":"a190b281-185e-40b0-ab6e-8b8f87f6f1eb","exec":["var data = JSON.parse(responseBody);","tests['Return some trip events'] = data.length > 0; ",""],"type":"text/javascript"}}],"id":"0f490cca-b81d-4077-b333-47e9a11e3478","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/","description":"<p>Get every <code>TripEvent</code> on this <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the created <code>Trip</code>'s <code>TripId</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"b5140e61-9c91-4861-9010-6d75a7f51799","name":"Get Trip Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"523","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:08:26 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripDayId\": 456789,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n        \"SegmentProviderPhone\": \"555-867-5309\",\n        \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n        \"SegmentIdentifier\": \"YP02XVDB\",\n        \"Ordinal\": 0.5,\n        \"Name\": \"Updated 1508954466\",\n        \"Description\": \"\",\n        \"StartTimeZoneId\": null,\n        \"StartTimeInMinutes\": null,\n        \"DurationInMinutes\": null,\n        \"StartTerminal\": null,\n        \"StartGate\": null,\n        \"EndTerminal\": null,\n        \"EndGate\": null,\n        \"PriceInCents\": 13579,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": null,\n        \"EventType\": 1,\n        \"IsEndingEvent\": true,\n        \"IsArrival\": false,\n        \"TripIdeas\": [\n            {\n                \"Id\": 789,\n                \"TripEventId\": 0,\n                \"Name\": \"My New Place\",\n                \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n                \"Url\": \"https://example.com\",\n                \"Description\": \"A great place to visit!\",\n                \"Latitude\": 34.0784796,\n                \"Longitude\": -107.6184694,\n                \"Address\": \"123 W Main St\",\n                \"City\": \"Citytown\",\n                \"State\": \"NM\",\n                \"ZipCode\": \"87825\",\n                \"Phone\": null,\n                \"Country\": \"US\",\n                \"IsActive\": true\n            }\n        ],\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"0f490cca-b81d-4077-b333-47e9a11e3478"},{"name":"Get Trip Event","event":[{"listen":"test","script":{"id":"29b70192-8ba4-4385-8144-0f206ee7ac7d","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","","tests['Return trip day'] = data.TripDayId; ","","tests['Body contains Segment Provider Name'] = data.SegmentProviderName;","tests['Body contains Segment Provider Phone'] = data.SegmentProviderPhone;","tests['Body contains Segment Provider Url'] = data.SegmentProviderUrl;","tests['Body contains Segment Identifier'] = data.SegmentIdentifier;",""],"type":"text/javascript"}}],"id":"ea811fab-01ca-4295-89d6-d7403ce1a6df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Get a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"a5f2704b-4b8a-4c66-967e-a5a1ee35e4d5","name":"Get Trip Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"522","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:09:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Lincoln Grand Hotel\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://lincolngrandhotel.com\",\n    \"SegmentIdentifier\": \"YP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated 1508954466\",\n    \"Description\": \"\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": null,\n    \"DurationInMinutes\": null,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": 13579,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": null,\n    \"EventType\": 1,\n    \"IsEndingEvent\": true,\n    \"IsArrival\": false,\n    \"TripIdeas\": [\n        {\n            \"Id\": 987,\n            \"TripEventId\": 0,\n            \"Name\": \"My New Place\",\n            \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\n            \"Url\": \"https://example.com\",\n            \"Description\": \"A great place to visit!\",\n            \"Latitude\": 34.0784796,\n            \"Longitude\": -107.6184694,\n            \"Address\": \"123 W Main St\",\n            \"City\": \"Citytown\",\n            \"State\": \"NM\",\n            \"ZipCode\": \"87825\",\n            \"Phone\": null,\n            \"Country\": \"US\",\n            \"IsActive\": true\n        }\n    ],\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"ea811fab-01ca-4295-89d6-d7403ce1a6df"},{"name":"Update Trip Event  (Metadata Only)","event":[{"listen":"test","script":{"id":"eb3a9a77-0251-42d3-88ca-68ad7e0bec68","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""],"type":"text/javascript"}}],"id":"74787c0f-babd-4c90-bd5a-07373601b866","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": {{trip-day-id}},\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"631\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Update a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"7b89fb72-66cd-4a37-b075-9a9b76640611","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"75\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"74787c0f-babd-4c90-bd5a-07373601b866"},{"name":"Update Trip Event","event":[{"listen":"test","script":{"id":"432d8e74-34df-411e-80a6-d2707aa8788f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains Trip Event'] = data.Id;\r","tests['Body contains Trip Day'] = data.TripDayId;\r","tests['Body contains event type'] = data.EventType;\r","\r","postman.setEnvironmentVariable(\"trip-event-id\", data.Id);\r",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"1a7f777f-425e-4542-a87b-88b90bd4c78f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"{{trip-day-id}}\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"659\",\r\n    \"EventType\": 6,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\",\r\n    \"IsActive\": true,\r\n  \t\"TripIdeas\": [\r\n  \t\t{\r\n  \t\t\t\"Id\": {{trip-idea-id}},\r\n\t        \"Name\": \"My New Place\",\r\n\t        \"ImageUrl\": \"http://lorempixel.com/400/200/cats\",\r\n\t        \"Url\": \"https://example.com\",\r\n\t        \"Description\": \"A wonderful place to go!\",\r\n\t        \"Latitude\": 34.0784796,\r\n\t        \"Longitude\": -107.6184694,\r\n\t        \"Address\": \"123 W Main St\",\r\n\t        \"City\": \"Citytown\",\r\n\t        \"State\": \"NM\",\r\n\t        \"ZipCode\": \"87825\",\r\n\t        \"Phone\": null,\r\n\t        \"Country\": \"US\",\r\n\t        \"IsActive\": true\r\n        }\r\n  \t],\r\n    \"ThirdPartyPropertyIds\": {\r\n        \"Giata\": 168935\r\n    }\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"<p>Update a specified <code>TripEvent</code> and it's <code>TripIdeas</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p>NOTE: do not pass up <em>any</em> <code>TripDays</code> if you only want to update the metadata.</p>\n<p>If you pass up <em>any</em> <code>TripIdeas</code>, the entire list of <code>TripIdeas</code> will be replaced.</p>\n<p>Adding optional <code>ThirdPartyPropertyIds</code> will do a best-effort lookup of the property in the Travefy Global Properties database. If we find a matching property, we will add our photos to the TripEvent.</p>\n<p>Currently supported <code>ThirdPartyPropertyIds</code> are Giata, Leonardo, IcePortal, and Sabre.</p>\n","urlObject":{"path":["v1","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5c21f967-f9eb-4477-996c-634fd8c22156","name":"Update Trip Event ","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{  \r\n    \"TripDayId\": \"353720\",\r\n    \"Name\": \"Updated Event 1780225217\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"606\",\r\n    \"EventType\": 4,\r\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\r\n    \"SegmentProviderPhone\": \"555-867-5309\",\r\n    \"SegmentProviderUrl\": \"https://hilton.com\",\r\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\r\n    \"DurationInMinutes\": 120,\r\n    \"ReservationDescription\": \"Executive Suite, One King\"\r\n    \"IsActive\": true\r\n}"},"url":"{{base-api-url}}api/v1/tripEvents/139105"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"366","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"1a7f777f-425e-4542-a87b-88b90bd4c78f"},{"name":"Delete Trip Event ","event":[{"listen":"test","script":{"id":"4dec2d19-1587-42c9-a686-459ad505a10f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","tests['IsActive is false'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"e40ffad0-0c32-4ffd-ad04-a42c6d5dbde0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/tripEvents/{{trip-event-id}}","description":"<p>Delete a specified <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","tripEvents","{{trip-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"eff873d0-7757-4a0d-a5cf-2625f8c8212f","name":"Delete Trip Event ","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"363","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:11:50 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripDayId\": 456789,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"Hilton-Kansas City\",\n    \"SegmentProviderPhone\": \"555-867-5309\",\n    \"SegmentProviderUrl\": \"https://hilton.com\",\n    \"SegmentIdentifier\": \"YFHP02XVDB\",\n    \"Ordinal\": 0.5,\n    \"Name\": \"Updated Event 1508955075\",\n    \"Description\": \"<p>is awesome!</p>\",\n    \"StartTimeZoneId\": null,\n    \"StartTimeInMinutes\": 137,\n    \"DurationInMinutes\": 120,\n    \"StartTerminal\": null,\n    \"StartGate\": null,\n    \"EndTerminal\": null,\n    \"EndGate\": null,\n    \"PriceInCents\": null,\n    \"CurrencyCode\": null,\n    \"TransportationIdentifier\": null,\n    \"EventType\": 4,\n    \"IsEndingEvent\": false,\n    \"IsArrival\": false,\n    \"TripIdeas\": null,\n    \"PartnerIdentifier\": null\n}"}],"_postman_id":"e40ffad0-0c32-4ffd-ad04-a42c6d5dbde0"}],"id":"c3f033b9-42e7-4f0b-9498-9d201fbf20d3","description":"<p>A <code>TripEvent</code> is an item on the <code>TripDay</code>.</p>\n<p>NOTE: You must supply a valid <code>TripDayId</code> for the <code>TripEvent</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code>.</p>\n<p><code>TripEventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n<th>Web equivalent</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Unspecified</td>\n<td><code>null</code></td>\n<td>Event</td>\n</tr>\n<tr>\n<td>Flight</td>\n<td>0</td>\n<td>Flight</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n<td>Transportation -&gt; Car Rental</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n<td>Transportation -&gt; Rail</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n<td>Cruise</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n<td>Transportation -&gt; Other</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n<td>Lodging</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n<td>Activity</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n<td>N/A</td>\n</tr>\n<tr>\n<td>Food/Drink</td>\n<td>11</td>\n<td>Food/Drink</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n<td>Info</td>\n</tr>\n</tbody>\n</table>\n</div><p>Here's a list of IANA time zones (use the \"Timezone\" field): <a href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a></p>\n<p>For the <code>Description</code> field, the following restrictions apply:</p>\n<p>Allowed tags:<br /><code>a, b, br, div, em, i, li, ol, p, span, strong, ul</code></p>\n<p>Allowed attributes:<br /><code>href, style</code></p>\n<p>Allowed CSS properties<br /><code>background-color</code></p>\n<p>Allowed URI Schemes:<br /><code>https, http, mailto, tel</code></p>\n<p>The <code>ReservationDescription</code> field will display as \"Seat / Tickey Details\" for <code>Flight</code> (<code>0</code>) events and display \"Room Type / Bedding\" for <code>Hotel</code> (<code>6</code>) events and will not display for all others.</p>\n","event":[{"listen":"prerequest","script":{"id":"f80d0faf-99e5-4f58-95b4-33ae1af3fd25","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a120abf5-d651-465f-b5d2-301afcaeb357","type":"text/javascript","exec":[""]}}],"_postman_id":"c3f033b9-42e7-4f0b-9498-9d201fbf20d3"},{"name":"Trip Users","item":[{"name":"Create TripUsers","event":[{"listen":"test","script":{"id":"3a736d18-1dcc-4022-9953-bbfb71ba5c00","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['Body contains TripUsers'] = data;\r","tests['Body contains 3 TripUsers'] = data.length === 3;\r","var firstTripUser = data[0];\r","\r","tests['TripUser 1 has Id'] = firstTripUser.Id;\r","tests['TripUser 1 has TripId'] = firstTripUser.TripId;\r","tests['TripUser 1 has UserId'] = firstTripUser.UserId;\r","tests['TripUser 1 has User'] = firstTripUser.User;\r","tests['TripUser 1 Role is 4'] = firstTripUser.Role === 4;\r","tests['TripUser 1 Name starts with readonly '] = firstTripUser.User.FullName.startsWith('readonly ');\r","tests['TripUser 1 Email starts with readonly+'] = firstTripUser.User.Username.startsWith('readonly+');\r","\r","var secondTripUser = data[1];\r","\r","tests['TripUser 2 has Id'] = secondTripUser.Id;\r","tests['TripUser 2 has TripId'] = secondTripUser.TripId;\r","tests['TripUser 2 has UserId'] = secondTripUser.UserId;\r","tests['TripUser 2 has User'] = secondTripUser.User;\r","tests['TripUser 2 Role is 4'] = secondTripUser.Role === 4;\r","tests['TripUser 2 Name starts with default '] = secondTripUser.User.FullName.startsWith('default ');\r","tests['TripUser 2 Email starts with default+'] = secondTripUser.User.Username.startsWith('default+');\r","\r","var thirdTripUser = data[2];\r","\r","tests['TripUser 3 has Id'] = thirdTripUser.Id;\r","tests['TripUser 3 has TripId'] = thirdTripUser.TripId;\r","tests['TripUser 3 has UserId'] = thirdTripUser.UserId;\r","tests['TripUser 3 has User'] = thirdTripUser.User;\r","tests['TripUser 3 Role is 3'] = thirdTripUser.Role === 3;\r","tests['TripUser 3 Name starts with collaborator '] = thirdTripUser.User.FullName.startsWith('collaborator ');\r","tests['TripUser 3 Email starts with collaborator+'] = thirdTripUser.User.Username.startsWith('collaborator+');\r","\r","postman.setEnvironmentVariable(\"trip-user-id\", firstTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id2\", secondTripUser.Id);\r","postman.setEnvironmentVariable(\"trip-user-id3\", thirdTripUser.Id);\r",""],"type":"text/javascript"}}],"id":"e1f25950-9e1b-484d-b656-3535afd59527","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/invite","description":"<p>Create (invite) 1 or more <code>TripUsers</code> to a <code>Trip</code>.  <code>FullName</code> and <code>UserName</code> (email) are required.</p>\n<p>Currently, this will not send an invite email to them, so you will need to notify them to check their trips list if needed.</p>\n<p>NOTE: You cannot invite anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","invite"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"49dbfe49-95c7-4411-a302-6f7ec0f1e6a0","name":"Create TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n      {  \n        \"email\": \"readonly+1780225217@example.com\",\n        \"fullName\": \"readonly 1780225217\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+1780225217@example.com\",\n        \"fullName\": \"collaborator 1780225217\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+1780225217@example.com\",\n        \"fullName\": \"default 1780225217\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/invite"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"321","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:13:00 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 789456,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789456,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 789453,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 789453,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 12348,\n        \"TripId\": 456789,\n        \"UserId\": 78942,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 78942,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"e1f25950-9e1b-484d-b656-3535afd59527"},{"name":"Get TripUser","event":[{"listen":"test","script":{"id":"170de1f8-2cc8-42c0-afe8-98acad34225e","exec":["var data = JSON.parse(responseBody);","","tests['Return TripUser'] = data.Id;","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return Role'] = data.Role;","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));",""],"type":"text/javascript"}}],"id":"f0eef79d-1ac0-41bb-92d5-a0b547ff901b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Retreive a given <code>TripUser</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"b5fc461e-7701-4cdb-a7cb-2967c068f049","name":"Get TripUser","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:24 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"f0eef79d-1ac0-41bb-92d5-a0b547ff901b"},{"name":"Get TripUsers","event":[{"listen":"test","script":{"id":"41e39fee-f19a-4988-9d20-e6b594dd0a15","exec":["var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return TripUser'] = firstTripUser.Id; ","tests['Return Role'] = firstTripUser.Role;","tests['Return UserId'] = firstTripUser.UserId;","tests['Return User'] = firstTripUser.User;","tests['Return TripId'] = firstTripUser.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","postman.setEnvironmentVariable(\"organizer-trip-user-id\", firstTripUser.Id);",""],"type":"text/javascript"}}],"id":"5b6cf114-354a-48b8-bbe5-ba3461778d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers","description":"<p>Retreive all <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"b028fb85-902a-4885-beab-3aad5bba970e","name":"Get TripUsers","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"401","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:14:56 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 1,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"nate test agent\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-pro.png\",\n            \"Username\": \"cameron+agentlevel1@travefy.com\",\n            \"IsAgent\": true,\n            \"SubscriptionPeriodEnd\": \"2017-02-27T16:47:13\",\n            \"AgentSubscriptionIsActive\": true,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123458,\n        \"TripId\": 456789,\n        \"UserId\": 321,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 321,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123459,\n        \"TripId\": 456789,\n        \"UserId\": 741,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 741,\n            \"FullName\": \"collaborator 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"collaborator+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"5b6cf114-354a-48b8-bbe5-ba3461778d81"},{"name":"Update TripUser","event":[{"listen":"test","script":{"id":"7c8f0ce8-081a-48ba-8194-52aee003081d","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;\r","\r","var data = JSON.parse(responseBody);\r","\r","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));\r","tests['Return TripUser'] = data.Id; \r","tests['Return Role'] = data.Role;\r","tests['Return UserId'] = data.UserId;\r","tests['Return User'] = data.User;\r","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));\r","\r","tests['Role was updated to ReadOnly'] = data.Role === 4;\r",""],"type":"text/javascript"}}],"id":"76b6a932-b1b4-4de2-a84d-81e66310a41b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1-20190212/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Update the Role of a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-20190212","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"06d9b021-11dd-4bda-91b2-745abda26dd6","name":"Update TripUser","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\r\n    \"role\": 4\r\n}\r\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:16:30 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"76b6a932-b1b4-4de2-a84d-81e66310a41b"},{"name":"Update TripUsers","event":[{"listen":"test","script":{"id":"4c0b823f-e68e-46ba-8a17-b91f048e7e1f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['Return some TripUsers'] = data.length > 0; ","","var firstTripUser = data[0];","","tests['Return first TripUser'] = firstTripUser.Id; ","tests['First TripUser Role Updated'] = firstTripUser.Role === 3;","","var secondTripUser = data[1];","","tests['Return second TripUser'] = secondTripUser.Id; ","tests['Second TripUser Role Updated'] = secondTripUser.Role === 2;",""],"type":"text/javascript"}}],"id":"24230a21-0f91-463e-b13f-36c12fb686d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/update","description":"<p>Update the Roles of multiple <code>TripUsers</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot update anyone to the <code>Organizer</code> Role.  You cannot change the Role of an existing <code>Organizer</code>.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","update"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ae30cfe9-1ec5-4ae0-abcd-c72aec2bb97c","name":"Update TripUsers","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":"{\n  \"tripUsers\":[\n    {  \n      \"id\": \"{{trip-user-id}}\",\n      \"role\": \"3\"\n    },\n    {  \n      \"id\": \"{{trip-user-id2}}\",\n      \"role\": \"2\"\n    }\n  ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"294","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:02 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 123456,\n        \"TripId\": 456789,\n        \"UserId\": 987,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 987,\n            \"FullName\": \"readonly 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"readonly+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    },\n    {\n        \"Id\": 123457,\n        \"TripId\": 456789,\n        \"UserId\": 654,\n        \"Role\": 2,\n        \"User\": {\n            \"Id\": 654,\n            \"FullName\": \"default 1508955175\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n            \"Username\": \"default+1508955175@example.com\",\n            \"IsAgent\": false,\n            \"SubscriptionPeriodEnd\": null,\n            \"AgentSubscriptionIsActive\": false,\n            \"Title\": null,\n            \"Phone\": null,\n            \"Url\": null,\n            \"CompanyLogoUrl\": null\n        }\n    }\n]"}],"_postman_id":"24230a21-0f91-463e-b13f-36c12fb686d3"},{"name":"Remove TripUser","event":[{"listen":"test","script":{"id":"80c2156d-f5e8-4d6d-80eb-7dfa894489d8","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests['TripUser Id matches'] = data.Id === parseInt(postman.getEnvironmentVariable(\"trip-user-id\"));","tests['Return TripUser'] = data.Id; ","tests['Return UserId'] = data.UserId;","tests['Return User'] = data.User;","tests['Return TripId'] = data.TripId === parseInt(postman.getEnvironmentVariable(\"trip-id\"));","","tests[\"Role is Uninvited\"] = data.Role === 2;",""],"type":"text/javascript"}}],"id":"bc3f2369-e3c7-45f4-8c9d-3b6f858a6638","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"<p>Delete (uninvite) a given <code>TripUser</code> on a <code>Trip</code>.</p>\n<p>NOTE: You cannot remove anyone in the <code>Organizer</code> Role.</p>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.</p>\n","urlObject":{"path":["v1-{{api-version}}","trips","{{trip-id}}","tripUsers","{{trip-user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5ad07949-3d48-4036-8167-056e682823eb","name":"Remove TripUser","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-TRIP-ID","value":"{{trip-id}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"260","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:17:43 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"TripId\": 456789,\n    \"UserId\": 987,\n    \"Role\": 2,\n    \"User\": {\n        \"Id\": 987,\n        \"FullName\": \"readonly 1508955175\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-8.gif\",\n        \"Username\": \"readonly+1508955175@example.com\",\n        \"IsAgent\": false,\n        \"SubscriptionPeriodEnd\": null,\n        \"AgentSubscriptionIsActive\": false,\n        \"Title\": null,\n        \"Phone\": null,\n        \"Url\": null,\n        \"CompanyLogoUrl\": null\n    }\n}"}],"_postman_id":"bc3f2369-e3c7-45f4-8c9d-3b6f858a6638"}],"id":"af1f6c06-601a-468c-9941-8388fc8132cc","description":"<p>A <code>TripUser</code> represents a <code>User</code> on a <code>Trip</code>.  <code>TripUsers</code> can be invited to a trip and have different roles depending on your subscription level.  Here are the available Roles:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Role</th>\n<th>Value</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Default</td>\n<td><code>0</code> ( <code>null</code>)</td>\n<td>Defaults to <code>ItineraryViewOnly</code></td>\n</tr>\n<tr>\n<td>Organizer</td>\n<td><code>1</code></td>\n<td>Has full control of the <code>Trip</code> and <code>TripUsers</code> on it</td>\n</tr>\n<tr>\n<td>Uninvited</td>\n<td><code>2</code></td>\n<td>Cannot view or access the <code>Trip</code></td>\n</tr>\n<tr>\n<td>Collaborator</td>\n<td><code>3</code></td>\n<td>Can help build the itinerary and edit things on the itinerary, change <code>Trip</code> information, but can't cancel the <code>Trip</code> or invite others</td>\n</tr>\n<tr>\n<td>ItineraryViewOnly</td>\n<td><code>4</code></td>\n<td>Can only view the shared itinerary and has no edit abilities</td>\n</tr>\n</tbody>\n</table>\n</div><p>Available operations:</p>\n<ul>\n<li>Invite 1 or more <code>TripUsers</code></li>\n<li>Retrieve a single <code>TripUser</code></li>\n<li>Retrieve all of the <code>TripUsers</code> for a <code>Trip</code></li>\n<li>Update the role of a single <code>TripUser</code></li>\n<li>Update the roles of multiple <code>TripUsers</code></li>\n<li>Remove a <code>TripUser</code> which moves them to the <code>Uninvited</code> Role</li>\n</ul>\n<p>NOTE: You must supply the <code>X-TRIP-ID</code> header with the <code>TripId</code> from the created <code>Trip</code> and it must match the <code>trip-id</code> in the URI.  The <code>TripUser</code> endpoints use a slightly different URL structure than other <code>Trip</code> resources.  We will likely move to this type of structure in the future for all <code>Trip</code> resources.  We will version the API or allow the old style rather than making breaking changes to existing calls.</p>\n","_postman_id":"af1f6c06-601a-468c-9941-8388fc8132cc"},{"name":"Remove User","item":[{"name":"Remove User","event":[{"listen":"test","script":{"id":"2956dd83-e501-4c20-ba8f-d4a0a583782f","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;","","var data = JSON.parse(responseBody);","","tests[\"User is returned\"] = data.Id;",""],"type":"text/javascript"}}],"id":"2cef65d9-9d8a-4616-8f3e-0d5aaaf8117e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/users/{{user-id}}","description":"<p>Remove a <code>User</code> from the Travefy platform.  </p>\n<p>Note: You will not be able to re-enable or re-create a <code>User</code> after calling this.  The <code>User</code> will have to re-authorize your platform manually.</p>\n","urlObject":{"path":["v1-{{api-version}}","users","{{user-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"760d28bb-688e-44b4-af41-2e6ca28be21f","name":"Remove User","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/users/{{user-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"338","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:18:55 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 123456,\n    \"FullName\": \"Stage Testing Account\",\n    \"ImageUrl\": \"https://static.pexels.com/photos/20787/pexels-photo.jpg\",\n    \"Username\": \"testing@travefy.com\",\n    \"IsAgent\": true,\n    \"SubscriptionPeriodEnd\": \"2017-11-04T18:18:54Z\",\n    \"AgentSubscriptionIsActive\": true,\n    \"Title\": \"Testing Specalist\",\n    \"Phone\": \"555-555-5555\",\n    \"Url\": \"http://travelco.example\",\n    \"CompanyLogoUrl\": \"https://static.pexels.com/photos/45170/kittens-cat-cat-puppy-rush-45170.jpeg\""}],"_postman_id":"2cef65d9-9d8a-4616-8f3e-0d5aaaf8117e"}],"id":"e1a6d66b-c5e8-4d49-861e-e96dab200702","_postman_id":"e1a6d66b-c5e8-4d49-861e-e96dab200702","description":""},{"name":"Library","item":[{"name":"Events","item":[{"name":"Create Event","event":[{"listen":"test","script":{"id":"4a6a9b2f-1606-431b-b87c-b0dff0a1a3e1","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");","","postman.setEnvironmentVariable(\"saved-event-id\", data.Id);","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"1d27febb-b35d-409d-b851-4a9a0a4d0f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/","urlObject":{"path":["v1-{{api-version}}","library","events",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"040accf8-81a5-4669-beb4-212503879aff","name":"Create Event","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/events/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:42:48 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"1d27febb-b35d-409d-b851-4a9a0a4d0f29"},{"name":"Get Events","event":[{"listen":"test","script":{"id":"58728b04-a13b-4a0c-ac03-2478391f6522","exec":["var data = JSON.parse(responseBody);","","tests['events were returned'] = data.length > 0;","","var firstEvent = data[0]; ","","tests['Event was created'] = firstEvent.Id > 0;","tests['Event is active'] = firstEvent.IsActive;","tests['Event segment provider'] = firstEvent.SegmentProviderName;","tests['Event segment identifier'] = firstEvent.SegmentIdentifier;","tests['Event Name'] = firstEvent.Name;","tests['Event Description'] = firstEvent.Description;","tests['Event TimeZoneId'] = firstEvent.StartTimeZoneId;","tests['Event start time'] = firstEvent.StartTimeInMinutes;","tests['Event duration'] = firstEvent.DurationInMinutes;","tests['Event terminal'] = firstEvent.StartTerminal;","tests['Event gate'] = firstEvent.StartGate;","tests['Event price'] = firstEvent.PriceInCents;","tests['Event currency'] = firstEvent.CurrencyCode;","tests['Event transporation id'] = firstEvent.TransportationIdentifier;",""],"type":"text/javascript"}}],"id":"f71e982e-d6df-4729-9a87-cbe867b82bd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/events?createdByUser=true","urlObject":{"path":["v1-{{api-version}}","library","events"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Events created by the user, <code>false</code> to return all Events for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"29f985d1-be78-4948-95aa-69b1747c71e7","name":"Get Events","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/events"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"3150","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:43:18 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRz?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 1234,\n        \"IsActive\": true,\n        \"SegmentProviderName\": \"seg pro\",\n        \"SegmentIdentifier\": \"seg id\",\n        \"Name\": \"title\",\n        \"Description\": \"describe the event\",\n        \"StartTimeZoneId\": \"GMT Standard Time\",\n        \"StartTimeInMinutes\": 375,\n        \"DurationInMinutes\": 30,\n        \"StartTerminal\": \"Terminal A\",\n        \"StartGate\": \"Gate Alpha\",\n        \"PriceInCents\": 12345,\n        \"CurrencyCode\": \"USD\",\n        \"TransportationIdentifier\": \"transport id\",\n        \"EventType\": 10,\n        \"PartnerIdentifier\": \"test-event-id-1510779134\"\n    },\n    {\n        \"Id\": 1235,\n        \"IsActive\": false,\n        \"SegmentProviderName\": \"seg pro new\",\n        \"SegmentIdentifier\": \"seg id new\",\n        \"Name\": \"title updated\",\n        \"Description\": \"describe the event new\",\n        \"StartTimeZoneId\": \"Central Standard Time\",\n        \"StartTimeInMinutes\": 390,\n        \"DurationInMinutes\": 45,\n        \"StartTerminal\": \"Terminal A new\",\n        \"StartGate\": \"Gate Alpha new\",\n        \"PriceInCents\": 54321,\n        \"CurrencyCode\": \"GBP\",\n        \"TransportationIdentifier\": \"transport id new\",\n        \"EventType\": 2,\n        \"PartnerIdentifier\": \"test-event-id-1510779152-new\"\n    }\n]"}],"_postman_id":"f71e982e-d6df-4729-9a87-cbe867b82bd7"},{"name":"Get Event","event":[{"listen":"test","script":{"id":"240f9a91-d6be-481d-a010-17cb8353ec5f","exec":["var data = JSON.parse(responseBody);","","tests['Event was created'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 0;","tests['Event partner identifier'] = data.PartnerIdentifier.startsWith(\"test-event-id-\");"],"type":"text/javascript"}}],"id":"25c56af8-c75a-49cd-a75f-181d23e0a044","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"4ad4c534-73bf-4fad-a7de-de9eb0d34925","name":"Get Event","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"453","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:01 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"Provider\",\n    \"SegmentIdentifier\": \"Confirmation #\",\n    \"Name\": \"This is a great event\",\n    \"Description\": \"Here is some detail about the event\",\n    \"StartTimeZoneId\": \"GMT Standard Time\",\n    \"StartTimeInMinutes\": 375,\n    \"DurationInMinutes\": 30,\n    \"StartTerminal\": \"Terminal A\",\n    \"StartGate\": \"42\",\n    \"PriceInCents\": 12345,\n    \"CurrencyCode\": \"USD\",\n    \"TransportationIdentifier\": \"Flight #\",\n    \"EventType\": 0,\n    \"PartnerIdentifier\": \"test-event-id-1510782168\"\n}"}],"_postman_id":"25c56af8-c75a-49cd-a75f-181d23e0a044"},{"name":"Update Event","event":[{"listen":"test","script":{"id":"367791a6-5827-46ef-866f-25e2d9cf7d0e","exec":["var data = JSON.parse(responseBody);","","tests['Event id'] = data.Id > 0;","tests['Event is active'] = data.IsActive;","tests['Event segment provider'] = data.SegmentProviderName;","tests['Event segment identifier'] = data.SegmentIdentifier;","tests['Event Name'] = data.Name;","tests['Event Description'] = data.Description;","tests['Event TimeZoneId'] = data.StartTimeZoneId;","tests['Event start time'] = data.StartTimeInMinutes;","tests['Event duration'] = data.DurationInMinutes;","tests['Event terminal'] = data.StartTerminal;","tests['Event gate'] = data.StartGate;","tests['Event price'] = data.PriceInCents;","tests['Event currency'] = data.CurrencyCode;","tests['Event transporation id'] = data.TransportationIdentifier;","tests['Event type'] = data.EventType === 2;","tests['Event partner identifier'] = data.PartnerIdentifier === (postman.getEnvironmentVariable(\"saved-event-partner-identifier\") + \"-new\");","","postman.setEnvironmentVariable(\"saved-event-partner-identifier\", data.PartnerIdentifier);",""],"type":"text/javascript"}}],"id":"58c688d9-b039-4295-8f15-f346c247b59a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"7e6a4ac9-847e-4565-9cc0-859fc44918bb","name":"Update Event","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":" {\n    \"SegmentProviderName\": \"New Provider\",\n    \"IsActive\": \"true\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"{{saved-event-partner-identifier}}-new\"\n}\n"},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"493","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:12 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": true,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 0,\n    \"ReservationDescription\": \"First Class\",\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"58c688d9-b039-4295-8f15-f346c247b59a"},{"name":"Delete Event","event":[{"listen":"test","script":{"id":"32aff829-a861-4148-b16f-15721c3db283","exec":["var data = JSON.parse(responseBody);","","tests['event is not active'] = !data.IsActive; ",""],"type":"text/javascript"}}],"id":"24cea130-139d-40a1-8f45-164420fc61a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/library/events/{{saved-event-id}}","urlObject":{"path":["v1-{{api-version}}","library","events","{{saved-event-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1a81179c-a670-4154-ad32-4db51d801a53","name":"Delete Event","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"494","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:26 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcZXZlbnRzXDE4MTU=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 12345,\n    \"IsActive\": false,\n    \"SegmentProviderName\": \"New Provider\",\n    \"SegmentIdentifier\": \"New Confirmation #\",\n    \"Name\": \"This is an even GREATER event\",\n    \"Description\": \"I can't begin to describe how great this event is\",\n    \"StartTimeZoneId\": \"Central Standard Time\",\n    \"StartTimeInMinutes\": 390,\n    \"DurationInMinutes\": 45,\n    \"StartTerminal\": \"Terminal B\",\n    \"StartGate\": \"43\",\n    \"PriceInCents\": 54321,\n    \"CurrencyCode\": \"GBP\",\n    \"TransportationIdentifier\": \"New Flight\",\n    \"EventType\": 2,\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"24cea130-139d-40a1-8f45-164420fc61a2"}],"id":"6baf93b0-c4de-49f9-8379-42e30753641a","description":"<p><code>EventType</code> can be set to one of the following:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Flight</td>\n<td>0</td>\n</tr>\n<tr>\n<td>Car Rental</td>\n<td>1</td>\n</tr>\n<tr>\n<td>Train</td>\n<td>2</td>\n</tr>\n<tr>\n<td>Cruise</td>\n<td>3</td>\n</tr>\n<tr>\n<td>Bus</td>\n<td>4</td>\n</tr>\n<tr>\n<td>Walk</td>\n<td>5</td>\n</tr>\n<tr>\n<td>Hotel</td>\n<td>6</td>\n</tr>\n<tr>\n<td>Vacation Rental</td>\n<td>7</td>\n</tr>\n<tr>\n<td>Camp</td>\n<td>8</td>\n</tr>\n<tr>\n<td>Event</td>\n<td>9</td>\n</tr>\n<tr>\n<td>Automobile</td>\n<td>10</td>\n</tr>\n<tr>\n<td>Food &amp; Drink</td>\n<td>11</td>\n</tr>\n<tr>\n<td>Info</td>\n<td>12</td>\n</tr>\n</tbody>\n</table>\n</div><p>Note: Attached content cannot be viewed or managed via the API at this time.</p>\n","_postman_id":"6baf93b0-c4de-49f9-8379-42e30753641a"},{"name":"Content","item":[{"name":"Create Content","event":[{"listen":"test","script":{"id":"d1ccf7b7-7f6a-4230-9752-ab4c455072fd","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","","postman.setEnvironmentVariable(\"saved-content-id\", data.Id);","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);"],"type":"text/javascript"}}],"id":"4e40cd44-861d-4aef-817e-8d5eae4187ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"ff9c4820-a1de-4805-874f-581da406dd1b","name":"Create Content","originalRequest":{"method":"POST","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1780225217\"\n}"},"url":"{{base-api-url}}api/v1/library/content"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"439","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:41 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"4e40cd44-861d-4aef-817e-8d5eae4187ea"},{"name":"Get All Content","event":[{"listen":"test","script":{"id":"40423847-f1e3-4306-9eae-1a2373e6e2b1","exec":["var data = JSON.parse(responseBody);","","tests['content was returned'] = data.length > 0;","","var firstContent = data[0]; ","","tests['Content was created'] = firstContent.Id > 0;","tests['Content is active'] = firstContent.IsActive;","tests['Content Name'] = firstContent.Name;","tests['Content image url'] = firstContent.ImageUrl;","tests['Content url'] = firstContent.Url;","tests['Content latutude'] = firstContent.Latitude;","tests['Content longutude'] = firstContent.Longitude;","tests['Content city'] = firstContent.City;","tests['Content state'] = firstContent.State;","tests['Content zip'] = firstContent.ZipCode;","tests['Content country'] = firstContent.Country;","tests['Content description'] = firstContent.Description;","tests['Content description'] = firstContent.Category;","tests['Content description'] = firstContent.Rating;","tests['Content description'] = firstContent.Phone;",""],"type":"text/javascript"}}],"id":"d2072146-841c-4773-af26-b2266dc6860e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content?createdByUser=true","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[{"description":{"content":"<p><code>true</code> to return only Content created by the user, <code>false</code> to return all Content for the User's team. Defaults to <code>true</code>.</p>\n","type":"text/plain"},"key":"createdByUser","value":"true"}],"variable":[]}},"response":[{"id":"8fc03e51-9f25-42c2-ab32-481f5b6b5487","name":"Get All Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/content"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"861","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:44:50 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudA==?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": 261577,\n        \"Name\": \"My Place\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": \"test-content-id-1510782282\"\n    },\n    {\n        \"Id\": 261487,\n        \"Name\": \"Pizzaville\",\n        \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n        \"Url\": \"https://example.com\",\n        \"Latitude\": 46.127931,\n        \"Longitude\": -76.122413,\n        \"Address\": \"123 Main Street\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"ZipCode\": \"68508\",\n        \"Country\": \"US\",\n        \"Description\": \"This is a GREAT place to visit!\",\n        \"Category\": 338,\n        \"Rating\": 4.2,\n        \"IsActive\": true,\n        \"Phone\": \"(402) 867-5309\",\n        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"d2072146-841c-4773-af26-b2266dc6860e"},{"name":"Get Content","event":[{"listen":"test","script":{"id":"637f30dc-4a59-4859-9863-5c1d6411dea7","exec":["var data = JSON.parse(responseBody);","","tests['Content was returned'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name;","tests['Content image url'] = data.ImageUrl;","tests['Content url'] = data.Url;","tests['Content latutude'] = data.Latitude;","tests['Content longutude'] = data.Longitude;","tests['Content city'] = data.City;","tests['Content state'] = data.State;","tests['Content zip'] = data.ZipCode;","tests['Content country'] = data.Country;","tests['Content description'] = data.Description;","tests['Content description'] = data.Category;","tests['Content description'] = data.Rating;","tests['Content description'] = data.Phone;","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\");","",""],"type":"text/javascript"}}],"id":"d388bd03-ff6d-45ea-a188-63c65d4f32f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"e4981282-21e6-4fae-b640-59b0d8f65111","name":"Get Content","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"440","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:06 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content/\",\n    \"Url\": \"https://example.com\",\n    \"Latitude\": 46.127931,\n    \"Longitude\": -76.122413,\n    \"Address\": \"123 Main Street\",\n    \"City\": \"Lincoln\",\n    \"State\": \"NE\",\n    \"ZipCode\": \"68508\",\n    \"Country\": \"US\",\n    \"Description\": \"This is a GREAT place to visit!\",\n    \"Category\": 338,\n    \"Rating\": 4.2,\n    \"IsActive\": true,\n    \"Phone\": \"(402) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282\"\n}"}],"_postman_id":"d388bd03-ff6d-45ea-a188-63c65d4f32f3"},{"name":"Update Content","event":[{"listen":"test","script":{"id":"937b0b58-7083-4352-afc2-d68fa7eae4b2","exec":["var data = JSON.parse(responseBody);","","tests['Content was created'] = data.Id > 0;","tests['Content is active'] = data.IsActive;","tests['Content Name'] = data.Name === \"My NEW Place\";","tests['Content image url'] = data.ImageUrl === \"http://lorempixel.com/g/400/200/cats/content2/\";","tests['Content url'] = data.Url === \"https://example2.com\";","tests['Content latutude'] = data.Latitude === 47.127931;","tests['Content longutude'] = data.Longitude === -77.122413;","tests['Content address'] = data.Address  === \"234 Main Street\";","tests['Content city'] = data.City === \"Lincoln2\";","tests['Content state'] = data.State === \"NE2\";","tests['Content zip'] = data.ZipCode === \"68502\";","tests['Content country'] = data.Country === \"UK\";","tests['Content description'] = data.Description === \"This is a GREAT place to visit!!\";","tests['Content description'] = data.Category === 372;","tests['Content description'] = data.Rating === 4.3;","tests['Content description'] = data.Phone === \"(308) 867-5309\";","","tests['Content partner identifier'] = data.PartnerIdentifier.startsWith(\"test-content-\") && data.PartnerIdentifier.endsWith(\"-new\");","postman.setEnvironmentVariable(\"saved-content-partner-identifier\", data.PartnerIdentifier);","",""],"type":"text/javascript"}}],"id":"27481a9a-7c5b-403b-8ed8-d7fe7038b6a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"d32e3ea3-c366-42f8-aa4f-5e05080c0bb8","name":"Update Content","originalRequest":{"method":"PUT","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"{{saved-content-partner-identifier}}-new\",\n    \"ImagesString\": null\n}"},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"452","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:14 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": true,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"27481a9a-7c5b-403b-8ed8-d7fe7038b6a5"},{"name":"Delete Content","event":[{"listen":"test","script":{"id":"a7516a1b-1390-4f17-b678-7dd126e58f45","exec":["var data = JSON.parse(responseBody);","","tests[\"content was deleted\"] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"5dcb6979-9dc2-46c4-a44f-986aa46a2a8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1-{{api-version}}/library/content/{{saved-content-id}}","urlObject":{"path":["v1-{{api-version}}","library","content","{{saved-content-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"40aca552-d0cd-4cd6-8076-4f99d2b7ea5c","name":"Delete Content","originalRequest":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Content-Length","value":"454","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":""},{"key":"Date","value":"Wed, 15 Nov 2017 21:45:24 GMT","name":"Date","description":""},{"key":"Expires","value":"-1","name":"Expires","description":""},{"key":"Pragma","value":"no-cache","name":"Pragma","description":""},{"key":"Server","value":"Microsoft-IIS/10.0","name":"Server","description":""},{"key":"X-AspNet-Version","value":"4.0.30319","name":"X-AspNet-Version","description":""},{"key":"X-Powered-By","value":"ASP.NET","name":"X-Powered-By","description":""},{"key":"X-SourceFiles","value":"=?UTF-8?B?Tjpcd29ya3NwYWNlc1x0cmF2ZWZ5XHRyYXZlZnlcVHJhdmVmeS5BcGlcYXBpXHYxXGxpYnJhcnlcY29udGVudFwyNjE1Nzc=?=","name":"X-SourceFiles","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"Id\": 261577,\n    \"Name\": \"My NEW Place\",\n    \"ImageUrl\": \"http://lorempixel.com/g/400/200/cats/content2/\",\n    \"Url\": \"https://example2.com\",\n    \"Latitude\": 47.127931,\n    \"Longitude\": -77.122413,\n    \"Address\": \"234 Main Street\",\n    \"City\": \"Lincoln2\",\n    \"State\": \"NE2\",\n    \"ZipCode\": \"68502\",\n    \"Country\": \"UK\",\n    \"Description\": \"This is a GREAT place to visit!!\",\n    \"Category\": 372,\n    \"Rating\": 4.3,\n    \"IsActive\": false,\n    \"Phone\": \"(308) 867-5309\",\n    \"PartnerIdentifier\": \"test-content-id-1510782282-new\"\n}"}],"_postman_id":"5dcb6979-9dc2-46c4-a44f-986aa46a2a8e"},{"name":"Delete Multiple Content","id":"1a3a317c-24d3-4483-9ade-ee193b57f80d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}","type":"text"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"{{base-api-url}}api/v1-{{api-version}}/library/content?ids={{saved-idea-id1}}&ids={{saved-idea-id2}}","urlObject":{"path":["v1-{{api-version}}","library","content"],"host":["{{base-api-url}}api"],"query":[{"key":"ids","value":"{{saved-idea-id1}}"},{"key":"ids","value":"{{saved-idea-id2}}"}],"variable":[]}},"response":[],"_postman_id":"1a3a317c-24d3-4483-9ade-ee193b57f80d"}],"id":"97291f94-a3f0-4a7d-b7bb-21061d00ae3e","_postman_id":"97291f94-a3f0-4a7d-b7bb-21061d00ae3e","description":""}],"id":"4eff4fd1-e5fc-4c89-8cfc-d778ec4c9a18","description":"<p>You can now manage the Library of your Users. </p>\n<p>Note, the following features are not yet available in the API:</p>\n<ul>\n<li>Managing Labels</li>\n<li>Accessing items using <code>PartnerIdentifier</code></li>\n<li>Adding multiple images to Content</li>\n<li>Managing items from other team members</li>\n</ul>\n","_postman_id":"4eff4fd1-e5fc-4c89-8cfc-d778ec4c9a18"},{"name":"Inventory Records","item":[{"name":"Create Inventory Record","event":[{"listen":"test","script":{"id":"9a4c6d7a-1368-41a8-8c0e-79e4d39135ec","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id.has(\"test-123\");","","postman.setEnvironmentVariable(\"inventory-id\", data.Id);"],"type":"text/javascript"}}],"id":"392a40ca-6fc5-4295-8410-79a69230ac7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/","description":"<p>Create an inventory record.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"9ae7d776-5798-4389-b122-b02b8ffc8cc9","name":"Create Inventory Record","originalRequest":{"method":"POST","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"test-123 1780225217\",\r\n    \"Name\": \"Personalized Tours of Travefy Office\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": true,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-length","key":"content-length","value":"1047","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:21:49 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"392a40ca-6fc5-4295-8410-79a69230ac7b"},{"name":"Get Inventory Record","event":[{"listen":"test","script":{"id":"bbc702e0-5d47-4622-be62-df3e717ed788","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");",""],"type":"text/javascript"}}],"id":"aeb84b98-9ceb-40c1-808f-83e823231e4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Get a given <code>InventoryRecord</code> by its <code>Id</code></p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"1a2355f0-2de6-4edd-a743-e5bc03e88529","name":"Get Inventory Record","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"587","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123 1508955704\",\"Name\":\"Personalized Tours of Travefy Office\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"aeb84b98-9ceb-40c1-808f-83e823231e4e"},{"name":"Get Inventory Records","event":[{"listen":"test","script":{"id":"5b7fb0e4-4667-4152-b219-545a59d83497","exec":["var data = JSON.parse(responseBody);","","tests['Has records'] = data.length > 0; ","","postman.setEnvironmentVariable(\"inventory-id\", data[0].Id);",""],"type":"text/javascript"}}],"id":"62d76055-27d1-4e6f-bac4-93d0fb8c9cdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/","description":"<p>Get all the <code>InventoryRecords</code> for your platform.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords",""],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"f1c1eb46-4df2-4678-9c3d-ada493e2402f","name":"Get Inventory Records","originalRequest":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"url":"{{base-api-url}}api/v1/inventoryRecords/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"15227","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:22:19 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": \"test-123\",\n        \"Name\": \"Personalized Tours of Travefy Office Updated!\",\n        \"Url\": \"https://travefy.com/\",\n        \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\n        \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\n        \"IsActive\": false,\n        \"Latitude\": 40.814385,\n        \"Longitude\": -96.710113,\n        \"Price\": null,\n        \"CurrencyCode\": null,\n        \"Address\": \"151 N 8th St, #300\",\n        \"City\": \"Lincoln\",\n        \"State\": \"NE\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"68506\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [\n            {\n                \"Key\": \"Type\",\n                \"Value\": \"Office\"\n            },\n            {\n                \"Key\": \"Maximum Occupancy\",\n                \"Value\": \"15\"\n            }\n        ],\n        \"ImageUrls\": [\n            \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\n            \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Office Tours\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Cost\",\n                \"Value\": \"FREE!\"\n            },\n            {\n                \"Key\": \"Hours\",\n                \"Value\": \"30pm\"\n            },\n            {\n                \"Key\": \"WiFi\",\n                \"Value\": \"Available\"\n            },\n            {\n                \"Key\": \"Parking\",\n                \"Value\": \"On Street\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"1\",\n        \"Name\": \"South Beach Cuban Food Tour\",\n        \"Url\": \"http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpbs\",\n        \"Description\": \"Join us at the Cuban-Inspired Food Tour and experience some of the most traditional Cuban dishes at places where locals go. Visit Little Havana which offers a vibrant culture where food is made from the soul and served to commemorate all that we left back in the island. With its colorful murals, guayabera-clad men playing dominoes and cigar rollers at work, Little Havana is where the spirit of Miamiâ€™s exile Cuban community comes alive, and where we make several delicious stops. But eating is not everything Little Havana is about. Check in on the cigar rollers of the area, stops at local art galleries, cheer on the domino experts holding court at Domino Park and take a stroll near the Tower Theater, the areaâ€™s oldest movie houses. - See more at: http://www.miamiculinarytours.com/tour/cuban-inspired-food-tour/#sthash.c1UYnexu.dpuf\",\n        \"ImageUrl\": \"http://www.travelchannel.com/content/dam/images/travel/fullset/2013/04/23/ec/miami-cuban-restaurants.rend.tccom.616.462.jpeg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.785097,\n        \"Longitude\": -80.130342,\n        \"Price\": 50,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"555 South Beach Ave.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2014/09/cuban-empanadas.jpg\",\n            \"http://i0.wp.com/cdn.miamiculinarytours.com/2015/06/best-cuban-restaurant-miami.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforkssandwhichcubano.jpg\",\n            \"http://i30.photobucket.com/albums/c317/pms33013/ae9efc0b-f2c7-4d96-be49-71eca778e4ec_zpstrqwzg1b.jpg\",\n            \"https://img.vimbly.com/images/full_photos/south-beach-food-tour-7.jpg\",\n            \"http://www.miamifoodtours.com/wp-content/uploads/2012/02/sobetourdesforks_samplerplate.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Weekdays\",\n                \"Value\": \"10am, 2pm, 6pm\"\n            },\n            {\n                \"Key\": \"Weekends\",\n                \"Value\": \"11am, 1pm, 5pm, 7pm, 10pm\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"2\",\n        \"Name\": \"5-Hour Snorkeling Cruise\",\n        \"Url\": \"http://www.miamiandbeaches.com/things-to-do/outdoor-activities/water-activities/snorkeling\",\n        \"Description\": \"Snorkeling is an easy, affordable, and fun way to discover the wonders of the coral reef, mangrove islands, and abundant marine life. The only skill you need is to be a confident swimmer. So grab your fins, mask and snorkel and get ready to see a whole world just below the surface in Miami.\",\n        \"ImageUrl\": \"http://www.colorfulplaces.com/wp-content/uploads/2014/01/612-snorkeling-miami-ARTICLE.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.771001,\n        \"Longitude\": -80.134216,\n        \"Price\": 36,\n        \"CurrencyCode\": \"EUR\",\n        \"Address\": \"1020 Miami Beach Drive\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://img.getyourguide.com/img/tour_img-249494-70.jpg\",\n            \"https://d11d3pftkotf97.cloudfront.net/wp-content/uploads/Fort-lauderdale-Snorkeling-Tour-Snorkel-South-Florida-Pompano-Beach-equipments2.jpg\",\n            \"http://media-cdn.tripadvisor.com/media/photo-s/06/db/84/49/miami-tours-water-adventures.jpg\",\n            \"http://www.miamidade.gov/ecoadventures/images/sea_kayak.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    },\n    {\n        \"Id\": \"3\",\n        \"Name\": \"7-Hour Catamaran Excursion\",\n        \"Url\": \"http://tropicalsailing.com/pu/miami-catamaran-charter-sbsss/\",\n        \"Description\": \"An unforgettable excursion awaits you aboard the Caribbean Spirit Miami Catamaran Charter. Trips depart daily from Bayside Marina. This is your opportunity to view mansions, mega yachts, historic sites and play in the beautiful blue and green tropical waters. Miami Beach and Biscayne Bay is home to a variety of marine life, with luck we may see dolphins or manatees! Come discover Miamiâ€™s finest natural treasures on this unforgettable excursion aboard our state of the art catamaran. Sit back and relax while we set sail to the ocean and our South Beach destination! See sights such as: Port of Miami, home to many cruise lines World famous Downtown Miami Skyline, Beautiful Mansions, Mega yachts and Historic sites\",\n        \"ImageUrl\": \"http://tropicalsailing.com/wp-content/uploads/2012/08/caribbean_spirit_with_a_lot_of_people.jpg\",\n        \"IsActive\": true,\n        \"Latitude\": 25.782683,\n        \"Longitude\": -80.16202,\n        \"Price\": 130,\n        \"CurrencyCode\": \"USD\",\n        \"Address\": \"181 Carribean Blvd.\",\n        \"City\": \"Miami\",\n        \"State\": \"FL\",\n        \"Country\": \"US\",\n        \"ZipCode\": \"55510\",\n        \"Phone\": null,\n        \"HideOnMap\": false,\n        \"SearchAttributes\": [],\n        \"ImageUrls\": [\n            \"http://secure.miamibeach411.com/images/P/snorkeling-in-key-west.jpg\",\n            \"https://img.grouponcdn.com/deal/kqnEySiBaVErZTegwcDk/G4-700x420/v1/c700x420.jpg\",\n            \"http://catamaransailingmiami.com/wp-content/uploads/2013/10/DSCN0303.jpg\",\n            \"http://www.miamicharters.com/photos/party_catamarans/Great_White/Great_White_Catamaran_food_area.jpg\",\n            \"http://tropicalsailin.wpengine.netdna-cdn.com/wp-content/uploads/2012/03/sunset27.jpg\"\n        ],\n        \"TopLevelCategories\": [\n            \"Tours & Experiences\"\n        ],\n        \"DescriptionAttributes\": [\n            {\n                \"Key\": \"Meals\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Gear\",\n                \"Value\": \"Included\"\n            },\n            {\n                \"Key\": \"Drinks\",\n                \"Value\": \"Included\"\n            }\n        ]\n    }\n]"}],"_postman_id":"62d76055-27d1-4e6f-bac4-93d0fb8c9cdc"},{"name":"Update Inventory Record","event":[{"listen":"test","script":{"id":"9b3fef80-9d4f-4ebe-b500-ab100318a351","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Matching id'] = data.Id === postman.getEnvironmentVariable(\"inventory-id\");","tests['Updated name'] = data.Name.endsWith(\"Updated!\");",""],"type":"text/javascript"}}],"id":"01a78adf-baad-4fdb-bbe4-77331abec344","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Update a given <code>InventoryRecord</code> by <code>Id</code>/</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"5bb5595d-65f6-451b-8bbd-48a2773b77d3","name":"Update Inventory Record","originalRequest":{"method":"PUT","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"Id\": \"{{inventory-id}}\",\r\n    \"Name\": \"Personalized Tours of Travefy Office Updated!\",\r\n    \"Url\": \"https://travefy.com/\",\r\n    \"Description\": \"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\r\n    \"ImageUrl\": \"http://nebraskaglobal.com/images/img-contact2.jpg\",\r\n    \"IsActive\": false,\r\n    \"Latitude\": 40.814385,\r\n    \"Longitude\": -96.710113,\r\n    \"Price\": null,\r\n    \"CurrencyCode\": null,\r\n    \"Address\": \"151 N 8th St, #300\",\r\n    \"City\": \"Lincoln\",\r\n    \"State\": \"NE\",\r\n    \"Country\": \"US\",\r\n    \"ZipCode\": \"68506\",\r\n    \"HideOnMap\": false,\r\n    \"SearchAttributes\": [\r\n        {\r\n            \"Key\": \"Type\",\r\n            \"Value\": \"Office\"\r\n        },\r\n        {\r\n            \"Key\": \"Maximum Occupancy\",\r\n            \"Value\": \"15\"\r\n        }\r\n    ],\r\n    \"ImageUrls\": [\r\n        \"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\r\n        \"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"\r\n    ],\r\n    \"TopLevelCategories\": [\r\n        \"Office Tours\"\r\n    ],\r\n    \"DescriptionAttributes\": [\r\n        {\r\n            \"Key\": \"Cost\",\r\n            \"Value\": \"FREE!\"\r\n        },\r\n        {\r\n            \"Key\": \"Hours\",\r\n            \"Value\": \"30pm\"\r\n        },\r\n        {\r\n            \"Key\": \"WiFi\",\r\n            \"Value\": \"Available\"\r\n        },\r\n        {\r\n            \"Key\": \"Parking\",\r\n            \"Value\": \"On Street\"\r\n        }\r\n    ]\r\n}"},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"586","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:23:53 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":true,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"01a78adf-baad-4fdb-bbe4-77331abec344"},{"name":"Delete Inventory Record","event":[{"listen":"test","script":{"id":"53e6f82f-0cac-4ec5-ba97-61f14f580acf","exec":["var data = JSON.parse(responseBody);","","tests['Has record'] = data.Id;","tests['Was deleted'] = !data.IsActive;",""],"type":"text/javascript"}}],"id":"a23b0278-1512-434f-9d13-85cb70c5a334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1-{{api-version}}/inventoryRecords/{{inventory-id}}","description":"<p>Delete an <code>InventoryRecord</code> by <code>Id</code>.</p>\n","urlObject":{"path":["v1-{{api-version}}","inventoryRecords","{{inventory-id}}"],"host":["{{base-api-url}}api"],"query":[],"variable":[]}},"response":[{"id":"0301d815-c9e3-4d75-aa3a-984748adf12a","name":"Delete Inventory Record","originalRequest":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"name":"cache-control","key":"cache-control","value":"no-cache","description":""},{"name":"connection","key":"connection","value":"keep-alive","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"583","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Wed, 25 Oct 2017 18:24:06 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.12.1","description":""},{"name":"strict-transport-security","key":"strict-transport-security","value":"max-age=31536000","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""},{"name":"x-aspnet-version","key":"x-aspnet-version","value":"4.0.30319","description":""}],"cookie":[],"responseTime":null,"body":"{\"Id\":\"test-123\",\"Name\":\"Personalized Tours of Travefy Office Updated!\",\"Url\":\"https://travefy.com/\",\"Description\":\"See where the Travefy magic happens! \\r\\n Enjoy your lovely view of the vibrant Lincoln Haymarket.\",\"ImageUrl\":\"http://nebraskaglobal.com/images/img-contact2.jpg\",\"IsActive\":false,\"Latitude\":40.814385,\"Longitude\":-96.710113,\"Price\":null,\"CurrencyCode\":null,\"Address\":\"151 N 8th St, #300\",\"City\":\"Lincoln\",\"State\":\"NE\",\"Country\":\"US\",\"ZipCode\":\"68506\",\"Phone\":null,\"HideOnMap\":false,\"SearchAttributes\":[{\"Key\":\"Type\",\"Value\":\"Office\"},{\"Key\":\"Maximum Occupancy\",\"Value\":\"15\"}],\"ImageUrls\":[\"https://about.travefy.com/wp-content/uploads/2015/09/team-bkgrd-2015.jpg\",\"https://about.travefy.com/wp-content/uploads/2014/08/Andrew-Badami-Travefy.jpg\",\"https://about.travefy.com/wp-content/uploads/2015/06/stephanie-leonard-travefy.jpg\"],\"TopLevelCategories\":[\"Office Tours\"],\"DescriptionAttributes\":[{\"Key\":\"Cost\",\"Value\":\"FREE!\"},{\"Key\":\"Hours\",\"Value\":\"30pm\"},{\"Key\":\"WiFi\",\"Value\":\"Available\"},{\"Key\":\"Parking\",\"Value\":\"On Street\"}]}"}],"_postman_id":"a23b0278-1512-434f-9d13-85cb70c5a334"}],"id":"6aeeab9d-2b99-4c05-8aa1-5b037ff529ff","description":"<p>If you have platform search enabled, you can manage your <code>InventoryRecords</code> here.  Everything is keyed off of your provided <code>Id</code> field, so be sure that is unique and non-changing.</p>\n<p>If you're using the CSV upload, here is the list of CSV fields: <a href=\"https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880\">https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880</a></p>\n","_postman_id":"6aeeab9d-2b99-4c05-8aa1-5b037ff529ff"}],"id":"cab0e67e-29d8-498f-9684-1ddf63dc600c","event":[{"listen":"prerequest","script":{"id":"421e5190-6cae-48a7-af26-22457f00cff1","type":"text/javascript","exec":["//preset version number","pm.environment.set(\"api-version\", 20241001);","pm.environment.set(\"current-year\", new Date().getFullYear());","pm.environment.set(\"next-year\", new Date().getFullYear() + 1);","","utils = {","    loadTripDays: (tripDays, env) => {","        const setId = (key, el) => {","            console.log(`${key} = ${el.Id}`);","            env.set(key, el.Id);","            console.log(`${key} == ${env.get(key)}`);","        }","","","        tripDays.forEach((dayEl, dayIndex) => {","            const dayKey = `trip-day-id-${dayIndex}`;","            setId(dayKey, dayEl);","            dayEl.TripEvents?.forEach((eventEl, eventIndex) => {","                const eventKey = `${dayKey}-event-id-${eventIndex}`;","                setId(eventKey, eventEl);","                eventEl.TripIdeas?.forEach((ideaEl, ideaIndex) => {","                    let ideaKey = `${eventKey}-idea-id-${ideaIndex}`;","                    setId(ideaKey, ideaEl);","                });","            });","        });","    }","};",""]}},{"listen":"test","script":{"id":"a9d4ce5d-1df4-4765-be09-bcc24df88351","type":"text/javascript","exec":[""]}}],"_postman_id":"cab0e67e-29d8-498f-9684-1ddf63dc600c","description":""}],"event":[{"listen":"prerequest","script":{"id":"b7862319-03ef-464f-a096-19ae8cfbf796","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"325694f1-d1b5-445c-8cc5-8dc516f58e77","type":"text/javascript","exec":[""]}}]}