{"info":{"_postman_id":"de35d19c-72f3-c410-2416-f2965f34ce42","name":"Travefy API - Public","description":"![Travefy Developer API Documentation](https://s3.amazonaws.com/travefy-storage/content/Travefy-API-Banner.jpg)\n\nWelcome to Travefy's API.  Here are some pre-made requests for you to explore the API using [Postman](https://getpostman.com).\n\n# API Keys\n\nYou'll need your API keys, so contact [apisupport@travefy.com](mailto:apisupport@travefy.com) if you don't have them.\n\nThere is a public key and a private key for your platform. \n\nThink of your private key like a password:\n- Store it securely\n- Don't share it with anyone outside of your organization\n- Don't put it in any code on your website or in a Url that someone could find\n\n`Users` you've created on the platform also have a `PublicKey` and private `AccessToken`. This `AccessToken` is specific to your platform and acts as a password for the `User`, so do not share this access token. It may be revoked by the `User` at any time.\n\nDifferent calls in the API require different keys. For example, creating and managing `Users` requires your platform's secret key. Creating `Trips` on behalf of a `User` requires your platform's public key and the `AaccessToken` for the `User`. Check each call for the requirements.\n\n# Setup\n\nNOTE: You'll need to [create an environment in Postman](https://www.getpostman.com/docs/environments), select that environment, and enter your platform's api keys in the `0 - Setup/Environment Setup` pre-request script ([documentation on pre-request scripts](http://www.getpostman.com/docs/pre_request_scripts)) to set the environment variables.  Also, the calls have dependencies.  A `Trip` must be created before a `TripDay`, a `TripDay` must be created before a `TripEvent`, and `GET`/`UPDATE`/`DELETE` calls will only work after an item is created with a `POST`.\n\nNOTE: The [Create Full Trip](#10087261-a1b2-a05d-966d-bcf4609fc649) 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.\n\n# Making Your First Call\n\nMaking your first call\nTest that you have the headers setup by making a `GET` request to `/api/v1/echo` with the `X-API-PUBLIC-KEY` header set to your platform's public key.  [Here's the Postman test for that](#ae3d-d794-c1e9-ba9f-25414ce121bb). You should get a `HTTP 200 OK` response if your keys are correct.\n\nNext, make a `GET` request to /api/v1/secureEcho with the `X-API-PUBLIC-KEY` and `X-API-PRIVATE-KEY` headers set to your platform's public and private keys. [Here's the Postman test for that](#bc0d6a-f565-164d-0699-baae5899a97e).  You should get a `HTTP 200 OK` response if your keys are correct.\n\n# Environments\n\nEnvironment | API Base Url | Web App Url\n----------- | ------- | -----------\nSandbox | https://api.travefy.com:81/ | https://sandbox.travefy.com:81/\nProduction | https://api.travefy.com/ | https://sandbox.travefy.com/\n\nNotes:\n- Your platform will have separate API keys for each environment.\n- Data created or modified in each environment will not affect the other.\n- Data cannot be transfered from one environment to the other.\n\n\n# Single Sign-On (SSO)\n\nFor platforms that have it enabled, `Users` can be authenticated into your platform the Travefy environment from your site.  To use this, `POST` a `form` to `https://{{your-travefy-platform-url}}/auth/tokenBasedLogin`.  The `User` will then be authenticated and redirected to their account page.\n\nHere's a working example of SSO working within our Sandbox environment:\nhttps://jsfiddle.net/6a100dyj/\n\nYou'll need to do a few changes from this example:\n1. Change the base url from `travelco-sandbox.travefy.com` to your travefy platform url and remove port 81.\n2. Add your platform's public key.  _NOTE: DO NOT add your Private Key to any public or user-accessible page_.\n3. Add the user's access token.  _NOTE: This is a secure token and should be on a page that only authorized users can access._\n4. Style the button.\n\n# API Pricing\nClick [here](https://intercom.help/travefy/api-and-developer-tools/api-pricing) for information on our API pricing.\n\n# Questions/Comments/Suggestions\n\nIf you have any questions or comments, please let us know at [apisupport@travefy.com](mailto:apisupport@travefy.com).","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"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":"5433f1f7-a551-73bf-fabf-f7ea69e7a6a8","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://postman-echo.com/get","description":"Setup your access keys for all further requests in the Pre-request script.  Don't have your access keys?  Contact [apisupport@travefy.com](mailto:apisupport@travefy.com).\n\nYou should only need to run this one time as these values will be stored in your Postman environment."},"response":[],"_postman_id":"5433f1f7-a551-73bf-fabf-f7ea69e7a6a8"},{"name":"Secure Echo","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""]}}],"id":"03bc0d6a-f565-164d-0699-baae5899a97e","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/secureEcho","description":"Test that calls with your platform's _private_ API key succeed."},"response":[],"_postman_id":"03bc0d6a-f565-164d-0699-baae5899a97e"},{"name":"Echo","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;",""]}}],"id":"a9515e3d-d794-c1e9-ba9f-25414ce121bb","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/echo","description":"Test that calls with your platform's _public_ API key succeed."},"response":[],"_postman_id":"a9515e3d-d794-c1e9-ba9f-25414ce121bb"}],"id":"bc2f2ea0-1081-8174-5c62-38eb4200e2db","description":"Note: You need to run this before _any_ other request if you are using Postman.  If you're using another client, feel free to skip this.\n--------------------\n\nAdd your API keys to the Pre-request Script and execute the `Environment Setup` request to setup the environment.\n\n```\n//set your platform api keys here\npostman.setEnvironmentVariable(\"platform-private-key\", \"<YOUR-PLATFORM-PRIVATE-API-KEY>\");\npostman.setEnvironmentVariable(\"platform-public-key\", \"<YOUR-PLATFORM-PUBLIC-API-KEY>\");\n```","_postman_id":"bc2f2ea0-1081-8174-5c62-38eb4200e2db"},{"name":"Users","item":[{"name":"Create User (Level 1)","event":[{"listen":"test","script":{"type":"text/javascript","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);",""]}}],"id":"18b7f520-2f5f-ac3d-17a7-23246ccc6bbc","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.{{$timestamp}}@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}"},"url":"{{base-api-url}}api/v1/users/","description":"Create a `User` on the Travefy platform.\n\nThe response of this request give you a chance to store the `AccessToken` and `PublicKey` for the `User`.  Those keys are also available on the `User` GET and GET by `Id` requests.  These are automatically stored in the Postman environment for testing.\n\nNote: if the `User` 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. \n\n<!--\n### Sample Response\n```\n{\n  \"User\": {\n    \"Id\": 1234,\n    \"FullName\": \"Agent Level 1 User\",\n    \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n    \"Username\": \"agent1.1491421454@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\": \"xxxxxxxxxxxx\",\n  \"PublicKey\": \"xxxxxxxxxxxx\",\n  \"AgentSubscriptionLevel\": 1,\n  \"IsActive\": true,\n  \"CreatedOn\": \"2017-04-05T19:44:13.4028771Z\"\n}\n```\n-->"},"response":[{"id":"e6e487ec-a779-80e1-fafc-8a3164e26a15","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"}],"body":{"mode":"raw","raw":"{  \r\n    \"User\":{  \r\n        \"Username\": \"agent1.{{$timestamp}}@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}"},"url":"{{base-api-url}}api/v1/users/"},"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":"647","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 12 Sep 2017 14:45:52 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.10.3","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":"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    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.3962603Z\"\n}"}],"_postman_id":"18b7f520-2f5f-ac3d-17a7-23246ccc6bbc"},{"name":"Get User","event":[{"listen":"test","script":{"type":"text/javascript","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;"]}}],"id":"1e49732b-73d2-ddaa-49e6-cae130966cdb","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":"Get a `User` from the Travefy platform by their `Id`.\r\n\r\n<!--\r\n### Sample Response\r\n```\r\n{\r\n    \"User\": {\r\n        \"Id\": 1234,\r\n        \"FullName\": \"Agent Level 1 User\",\r\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\r\n        \"Username\": \"agent1.1491422490@example.com\",\r\n        \"IsAgent\": true,\r\n        \"SubscriptionPeriodEnd\": \"2019-10-10T00:00:00\",\r\n        \"AgentSubscriptionIsActive\": true,\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    \"AccessToken\": \"xxxxxxxxxxxx\",\r\n    \"PublicKey\": \"xxxxxxxxxxxx\",\r\n    \"AgentSubscriptionLevel\": 1,\r\n    \"IsActive\": true,\r\n    \"CreatedOn\": \"2017-04-05T20:01:27.25\"\r\n}```\r\n-->"},"response":[{"id":"d085c1f0-ebaf-1039-fdda-99940a64d6ac","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":[{"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":"412","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 12 Sep 2017 14:47:08 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.10.3","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":"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    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"1e49732b-73d2-ddaa-49e6-cae130966cdb"},{"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":"81a0a618-35bd-92ca-8067-15fb2f3a4e06","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-{{$timestamp}}-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":"Update a User.  Currently, this will update Username (email), FullName, and ImageUrl.\n\n<!--\n### Sample Response\n```\n{\n    \"User\": {\n        \"Id\": 1234,\n        \"FullName\": \"nate test agent2\",\n        \"ImageUrl\": null,\n        \"Username\": \"nate+agent1-1491422734-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\": \"xxxxxxxxxxxx\",\n    \"PublicKey\": \"xxxxxxxxxxxx\",\n    \"AgentSubscriptionLevel\": 1,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-04-05T20:01:27.25\"\n}```\n-->"},"response":[{"id":"ada355af-3e41-3190-bcb0-b7232beb4f19","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-{{$timestamp}}-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":[{"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":"405","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 12 Sep 2017 14:50:27 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.10.3","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":"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    \"IsActive\": true,\n    \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n}"}],"_postman_id":"81a0a618-35bd-92ca-8067-15fb2f3a4e06"},{"name":"Get Users","event":[{"listen":"test","script":{"type":"text/javascript","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;",""]}}],"id":"c82968bf-0bc4-ecb3-396e-bfacd2141a30","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":"Get all Users that your platform has access to.\n\n<!--\n### Sample Response\n```[\n  {\n    \"User\": {\n      \"Id\": 1234,\n      \"FullName\": \"nate not agent from api!\",\n      \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-pro.png\",\n      \"Username\": \"nate+notagentfromapi1455044172@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    \"AccessToken\": \"xxxxxxxxxxxx\",\n    \"PublicKey\": \"xxxxxxxxxxxx\",\n    \"AgentSubscriptionLevel\": null,\n    \"IsActive\": true,\n    \"CreatedOn\": \"0001-01-01T00:00:00\"\n  },\n  {\n    \"User\": {\n      \"Id\": 1235,\n      \"FullName\": \"nate agent from api!\",\n      \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-pro.png\",\n      \"Username\": \"nate+notagentfromapi1455045001@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\": \"xxxxxxxxxxxx\",\n    \"PublicKey\": \"xxxxxxxxxxxx\",\n    \"AgentSubscriptionLevel\": 1,\n    \"IsActive\": true,\n    \"CreatedOn\": \"0001-01-01T00:00:00\"\n  },...```\n  -->"},"response":[{"id":"6b823ff4-dac1-8149-4d53-2a2d9ac8b8d5","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":[{"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":"37491","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=utf-8","description":""},{"name":"date","key":"date","value":"Tue, 12 Sep 2017 14:51:39 GMT","description":""},{"name":"expires","key":"expires","value":"-1","description":""},{"name":"pragma","key":"pragma","value":"no-cache","description":""},{"name":"server","key":"server","value":"nginx/1.10.3","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":"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        \"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        \"IsActive\": true,\n        \"CreatedOn\": \"2017-09-12T14:45:46.397\"\n    }\n]"}],"_postman_id":"c82968bf-0bc4-ecb3-396e-bfacd2141a30"}],"id":"3ca5cc06-f0de-5453-9b1b-6ad1ff4843e9","description":"Notes\n------------\nIn production, your platform may be charged for any created users.  Sandbox users are free to create.\n\nRequest\n-------------\n\n`AgentSubscriptionLevel` values:\n\n- 0 = Starter\n- 1 = Plus\n- 2 = Premium\n\nResponse Items\n-------------\nAfter successfully creating the `User`, `POST` method returns an object with the following properties:\n- `User` - The `User` that was created.\n- `AccessToke` - Your platform's `AccessToken` for this `User`, keep this securely stored like a password.\n- `PublicKey` - The `PublicKey` for this `User`, this is a unique, non-secure identifier and should be stored.\n- `AgentSubscriptionLevel` - The level of their Travefy Pro subscription.","_postman_id":"3ca5cc06-f0de-5453-9b1b-6ad1ff4843e9"},{"name":"Trips","item":[{"name":"Create Trip","event":[{"listen":"test","script":{"type":"text/javascript","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);","","",""]}}],"id":"a445e9b0-539a-d6db-d97e-ba72ca6824c9","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 {{$timestamp}}\",\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    \"PartnerIdentifier\": \"trip-{{$timestamp}}\",\r\n\t\"Status\": \"Quote\",\r\n\t\"IsChatDisabled\": false\r\n}"},"url":"{{base-api-url}}api/v1/trips","description":"Create an empty `Trip` on the Travefy platform.\n\n<!--### Sample Response\n```{\n  \"Id\": 1234,\n  \"VerificationKey\": xxxxxxxxxxxx,\n  \"Name\": \"Trip 1491423330\",\n  \"Active\": true,\n  \"CreatedOn\": \"2017-04-05T20:15:26.5392324Z\",\n  \"InviteMessage\": \"Welcome to the trip!\",\n  \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n  \"EstimatedCost\": \"$1,234\",\n  \"IsCostPerPerson\": true,\n  \"TripDays\": null,\n  \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n}```-->"},"response":[{"id":"5b8feb3d-b586-133e-0d92-0884a78a8721","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 {{$timestamp}}\",\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    \"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    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"a445e9b0-539a-d6db-d97e-ba72ca6824c9"},{"name":"Create Full Trip","event":[{"listen":"test","script":{"type":"text/javascript","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);",""]}}],"id":"10087261-a1b2-a05d-966d-bcf4609fc649","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 {{$timestamp}}\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"PartnerIdentifier\": \"trip-{{$timestamp}}\",\r\n    \"IsChatDisabled\": true,\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Trip Day {{$timestamp}}\",\r\n            \"Date\": \"1\\/27\\/2017\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event {{$timestamp}}\",\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":"Create a `Trip` on the Travefy platform with a full itinerary (`TripDays` and `TripEvents`).\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Trip 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 12345,\n            \"TripId\": 1234,\n            \"Title\": \"Trip Day 1491423686\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-04-05T20:21:22.5138857Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 123456,\n                    \"TripDayId\": 12345,\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 1491423686\",\n                    \"Description\": \"Former hotel in Lincoln Nebraska\",\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\": 654,\n                            \"TripEventId\": 123456,\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\": \"54321\",\n                            \"Phone\": 555-555-1234,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                }\n            ],\n        }\n    ],\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n}```-->"},"response":[{"id":"8331d590-14d2-2c74-c492-465956464b6a","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 {{$timestamp}}\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\r\n    \"Status\": \"Quote\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Trip Day {{$timestamp}}\",\r\n            \"Date\": \"1\\/27\\/2017\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Trip Event {{$timestamp}}\",\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"},"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    \"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    \"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":"10087261-a1b2-a05d-966d-bcf4609fc649"},{"name":"Get Trip","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return trip'] = data.Id; ","tests['Return trip day'] = data.TripDays;",""]}}],"id":"895024b1-98a2-4086-192d-6b7fe65114ca","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}","description":"Get a `Trip` from the Travefy platform.\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Trip 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 12345,\n            \"TripId\": 1234,\n            \"Title\": \"Trip Day 1491423686\",\n            \"Date\": \"2017-01-27T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-04-05T20:21:22.5138857Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 123456,\n                    \"TripDayId\": 12345,\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 1491423686\",\n                    \"Description\": \"Former hotel in Lincoln Nebraska\",\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\": 654,\n                            \"TripEventId\": 123456,\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\": \"54321\",\n                            \"Phone\": 555-555-1234,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                }\n            ],\n        }\n    ],\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n}```-->"},"response":[{"id":"0253abec-0b6b-d013-9696-860de4a5954d","name":"Get Trip","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"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":"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    \"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    \"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":"895024b1-98a2-4086-192d-6b7fe65114ca"},{"name":"Get Trip by Partner Identifier","event":[{"listen":"test","script":{"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":"89cf54bf-ffa3-5416-58cc-8a261d91cc18","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"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}}"}]},"description":"Get a `Trip` from the Travefy platform by `PartnerIdentifier`."},"response":[{"id":"3462f2ea-e31f-e4d9-c3a4-12bded7e4187","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}}"}],"body":{"mode":"raw","raw":""},"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":"Invalid Date","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    \"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":"89cf54bf-ffa3-5416-58cc-8a261d91cc18"},{"name":"Get Trips","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['Return some trips'] = data.length > 0; ",""]}}],"id":"66f23f4f-64ad-84f8-f3d9-21d27752a357","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips","description":"Get every `Trip` created by your platform for the given `User`.\n\n<!--### Sample Response\n\n```\n[\n  {\n    \"Id\": 10002,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Trip 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n  },\n  {\n    \"Id\": 10001,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Trip 1491423330\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:15:26.54\",\n    \"InviteMessage\": \"Welcome to the trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/640/480/city\",\n    \"EstimatedCost\": \"$1,234\",\n    \"IsCostPerPerson\": true,\n    \"TripDays\": null,\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n  }\n]```-->"},"response":[{"id":"59dc1285-133d-b923-ed72-5c6c58369c85","name":"Get Trips","originalRequest":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"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        \"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        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    },\n    {\n        \"Id\": 456789123,\n        \"VerificationKey\": 789456123,\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        \"TripDays\": null,\n        \"SecondaryLogoUrl\": null,\n        \"PartnerIdentifier\": null,\n        \"Status\": \"Quote\",\n        \"IsArchived\": false\n    }\n]"}],"_postman_id":"66f23f4f-64ad-84f8-f3d9-21d27752a357"},{"name":"Update Trip","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","\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 === '2016-03-21T00: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","postman.setEnvironmentVariable(\"trip-id\", data.Id);\r",""]}}],"id":"bac6da9c-fdc8-9c84-f272-17b20c266598","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 {{$timestamp}}\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated {{$timestamp}}\",\r\n            \"Date\": \"3\\/21\\/2016\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated {{$timestamp}}\",\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}}","description":"Update the `Trip` itinerary information AND metadata (`Name`, `TripCoverPhotoUrl`, etc.).  Note: do not pass up _any_ `TripDays` if you only want to update the metadata.\n\nIf you pass up _any_ `TripDays`, the entire trip itinerary information will be replaced.  Chat messages and saved `TripIdeas` will be maintained, but all `TripDays`, `TripEvents`, and `TripIdeas` on `TripEvents` will be replaced.\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Updated 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"TripDays\": [\n        {\n            \"Id\": 12345,\n            \"TripId\": 1234,\n            \"Title\": \"Updated 1491423686\",\n            \"Date\": \"2017-03-21T00:00:00\",\n            \"Ordinal\": 0.5,\n            \"IsActive\": true,\n            \"CreatedOn\": \"2017-04-05T20:21:22.5138857Z\",\n            \"TripEvents\": [\n                {\n                    \"Id\": 123456,\n                    \"TripDayId\": 12345,\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 1491423686\",\n                    \"Description\": \"Former hotel in Lincoln Nebraska\",\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\": 654,\n                            \"TripEventId\": 123456,\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\": \"54321\",\n                            \"Phone\": 555-555-1234,\n                            \"Country\": \"US\",\n                            \"IsActive\": true\n                        }\n                    ],\n                }\n            ],\n        }\n    ],\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n}```-->"},"response":[{"id":"787812fe-eb71-e7ef-3df4-83c25cc9e351","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 {{$timestamp}}\",\r\n    \"InviteMessage\": \"Welcome to your trip!\",\r\n    \"TripDays\": [  \r\n        {  \r\n            \"Title\": \"Updated {{$timestamp}}\",\r\n            \"Date\": \"3\\/21\\/2016\",\r\n            \"TripEvents\": [  \r\n                {  \r\n                    \"Name\": \"Updated {{$timestamp}}\",\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":"591","body":"{\n    \"Id\": 123456,\n    \"VerificationKey\": -1234567890,\n    \"Name\": \"Updated 1508954466\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-10-25T17:57:32.86\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": null,\n    \"EstimatedCost\": null,\n    \"IsCostPerPerson\": null,\n    \"IsChatDisabled\": false,\n    \"TripDays\": [\n        {\n            \"Id\": 456,\n            \"TripId\": 123456,\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\": [\n                {\n                    \"Id\": 789,\n                    \"TripDayId\": 456,\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\": 123,\n                            \"TripEventId\": 789,\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            ],\n            \"PartnerIdentifier\": null\n        }\n    ],\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Quote\",\n    \"IsArchived\": false\n}"}],"_postman_id":"bac6da9c-fdc8-9c84-f272-17b20c266598"},{"name":"Update Trip (Metadata only)","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":"6c0a1d39-4d40-f7de-68cb-92677141b31b","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 {{$timestamp}}\",\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":"Update the `Trip` itinerary metadata _only_ (`Name`, `TripCoverPhotoUrl`, etc.).  Note: do not pass up _any_ `TripDays` if you only want to update the metadata.\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Updated 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\"\n}```-->"},"response":[{"id":"e8c2e896-6b6b-4667-3de1-eaba94a9ad93","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 {{$timestamp}}\",\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    \"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    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"6c0a1d39-4d40-f7de-68cb-92677141b31b"},{"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":"2116fc20-709a-672c-3e87-233f57ecdea5","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":"Archives the `Trip`.\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Updated 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\",\n    \"IsArchived\": true\n}```-->"},"response":[{"id":"00ad1d48-6175-3f77-e171-3956354dbe1f","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    \"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    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": true\n}"}],"_postman_id":"2116fc20-709a-672c-3e87-233f57ecdea5"},{"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":"ebbc6afc-14d1-d8b8-53cd-c709a2e3a47d","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 {{$timestamp}}\",\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":"Unarchives the `Trip`.  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.\n\n<!--### Sample Response\n```\n{\n    \"Id\": 1234,\n    \"VerificationKey\": xxxxxxxxxxxx,\n    \"Name\": \"Updated 1491423686\",\n    \"Active\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.4826361Z\",\n    \"InviteMessage\": \"Welcome to your trip!\",\n    \"TripCoverPhotoUrl\": \"http://lorempixel.com/400/200/cats/\",\n    \"EstimatedCost\": $1,234,\n    \"IsCostPerPerson\": true,\n    \"SecondaryLogoUrl\": \"https://s3.amazonaws.com/travefy-storage/link-content/companyLogo/13551d3417bd481883931d9d8ff054aa.jpg\",\n    \"IsArchived\": false\n}```-->"},"response":[{"id":"65e56e2a-b705-5ced-898f-8ef849dd42de","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 {{$timestamp}}\",\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    \"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    \"TripDays\": null,\n    \"SecondaryLogoUrl\": null,\n    \"PartnerIdentifier\": null,\n    \"Status\": \"Paid\",\n    \"IsArchived\": false\n}"}],"_postman_id":"ebbc6afc-14d1-d8b8-53cd-c709a2e3a47d"},{"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":"0d09b9a4-a7a2-1235-6eb8-822404580836","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":"This functionality is currently in beta.  Please contact us for more info."},"response":[],"_postman_id":"0d09b9a4-a7a2-1235-6eb8-822404580836"}],"id":"e3bab665-673a-177e-d158-aa46bede2bd3","description":"# Notes\n\nStatus 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 *not* case-sensitive.  If no matching Status is found, it is not set (\"No Status\" in the UI).  `Quote`, `Confirmed`, and `Paid` are default statuses for all agents currently, but this is subject to change.\n\n`TripIdeas` are a collection on a `TripEvent` and are often establishments or other info that is associated with the `TripEvent`.  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.\n\nThe `PartnerIdentifier` field on a `Trip` can be used to store _your_ identifier on the `Trip`.  For example, if you have a different identifier for the `Trip` in _your_ database, you can store that here.  You can then query the `Trip` by that identifier to get the Travefy `Id` for the `Trip`.  Note: This field must be unique across your platform.","_postman_id":"e3bab665-673a-177e-d158-aa46bede2bd3"},{"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":"e1bed0de-1cac-a1c2-12df-6b20b02815db","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 {{$timestamp}}\",\r\n    \"TripId\": \"{{trip-id}}\",\r\n    \"Date\": \"2017/01/15\"\r\n}"},"url":"{{base-api-url}}api/v1/tripDays/","description":"Create a `TripDay` on a given `Trip`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 654321,\n  \"TripId\": 10002,\n  \"Title\": \"Trip Day 1491424870\",\n  \"Date\": \"2017-01-15T00:00:00\",\n  \"Ordinal\": 0.75,\n  \"IsActive\": true,\n  \"CreatedOn\": \"2017-04-05T20:41:07.0284278Z\",\n  \"TripEvents\": null\n}```-->"},"response":[{"id":"0c0c017e-c8e5-a016-01a5-612075340b86","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 {{$timestamp}}\",\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":"e1bed0de-1cac-a1c2-12df-6b20b02815db"},{"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":"a7d9d300-89c9-2f98-606a-483ff134be9c","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/tripDays/","description":"Get all the `TripDay`s for this `Trip`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n[\n  {\n    \"Id\": 654321,\n    \"TripId\": 10002,\n    \"Title\": \"Updated 1491424553\",\n    \"Date\": \"2016-03-21T00:00:00\",\n    \"Ordinal\": 0.5,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-04-05T20:21:22.513\",\n    \"TripEvents\": null\n  },\n  {\n    \"Id\": 543210,\n    \"TripId\": 10002,\n    \"Title\": \"Trip Day 1491424870\",\n    \"Date\": \"2017-01-15T00:00:00\",\n    \"Ordinal\": 0.75,\n    \"IsActive\": true,\n    \"CreatedOn\": \"2017-04-05T20:41:07.0284278Z\",\n    \"TripEvents\": null\n  }\n]```-->"},"response":[{"id":"79c2c74d-b099-75d0-2889-6d6d40b57206","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":"raw","raw":""},"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":"a7d9d300-89c9-2f98-606a-483ff134be9c"},{"name":"Get Trip Day","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","tests['Return trip'] = data.Id; ",""]}}],"id":"3163e7c8-2fef-69a8-4697-2a5883a05a66","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/tripDays/{{trip-day-id}}","description":"Get the specified `TripDay`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 654321,\n  \"TripId\": 10002,\n  \"Title\": \"Trip Day 1491424870\",\n  \"Date\": \"2017-01-15T00:00:00\",\n  \"Ordinal\": 0.75,\n  \"IsActive\": true,\n  \"CreatedOn\": \"2017-04-05T20:41:07.0284278Z\",\n  \"TripEvents\": null\n}```-->"},"response":[{"id":"d8346c65-6b8d-88d0-065b-e7d2e0f1e605","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":"raw","raw":""},"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":"3163e7c8-2fef-69a8-4697-2a5883a05a66"},{"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":"52e379d2-b23c-64e2-0d57-9855f968a498","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 {{$timestamp}}\",\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}}","description":"Update the specified `TripDay`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 654321,\n  \"TripId\": 10002,\n  \"Title\": \"Updated Trip Day 1491425270\",\n  \"Date\": \"2016-02-15T00:00:00\",\n  \"Ordinal\": 0.25,\n  \"IsActive\": true,\n  \"CreatedOn\": \"2017-04-05T20:41:07.027\",\n  \"TripEvents\": null\n}```-->"},"response":[{"id":"792cab7c-4611-9307-007f-845c5ffb7424","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 {{$timestamp}}\",\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":"52e379d2-b23c-64e2-0d57-9855f968a498"},{"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":"5b91b2c7-d7ea-67b6-46cd-fc35d040bdab","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/tripDays/{{trip-day-id}}","description":"Delete the specified `TripDay`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 654321,\n  \"TripId\": 10002,\n  \"Title\": \"Updated Trip Day 1491425270\",\n  \"Date\": \"2016-02-15T00:00:00\",\n  \"Ordinal\": 0.25,\n  \"IsActive\": false,\n  \"CreatedOn\": \"2017-04-05T20:41:07.027\",\n  \"TripEvents\": null\n}```-->"},"response":[{"id":"65f7b130-f13c-ae62-a6e3-5fe0706b5a30","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":"raw","raw":""},"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":"5b91b2c7-d7ea-67b6-46cd-fc35d040bdab"}],"id":"a1590271-f2ed-1081-c043-7c229d171da4","description":"A `TripDay` represents a day on the itinerary.  It may have a date (e.g. 2017/01/24) or may not (e.g. Day 2).\n\nNOTE: You must supply the `X-TRIP-ID` header with the  `TripId` from the created `Trip` for all of these calls.","_postman_id":"a1590271-f2ed-1081-c043-7c229d171da4"},{"name":"Trip Events","item":[{"name":"Create Trip Event","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 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",""]}}],"id":"59804fe1-8bb6-0e32-fd87-e1208180a54f","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 {{$timestamp}}\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"{{$randomInt}}\",\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","description":"Create a `TripEvent` on a given `TripDay`.\n\nNOTE: You must supply a valid `TripDayId` for the `TripEvent`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 12345,\n  \"TripDayId\": 54321,\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 1491425432\",\n  \"Description\": \"<p>This is great!</p>\",\n  \"StartTimeZoneId\": \"Central Standard Time\",\n  \"StartTimeInMinutes\": 991,\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}```-->"},"response":[{"id":"1e8619e9-3d2a-8fbb-6630-9c8dbb9be56c","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 {{$timestamp}}\",\r\n    \"Description\": \"This is great!\",\r\n    \"StartTimeInMinutes\": \"{{$randomInt}}\",\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":"527","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":"59804fe1-8bb6-0e32-fd87-e1208180a54f"},{"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":"ece15252-6ec7-da27-3fa5-efb3dcd5faaa","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/tripEvents/","description":"Get every `TripEvent` on this `Trip`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the created `Trip`'s `TripId`.\n\n<!--### Sample Response\n\n```\n[\n  {\n    \"Id\": 12345,\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\": \"Updated 1491424553\",\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\": 59145,\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  }\n]```-->"},"response":[{"id":"eed518ab-220b-6ad3-d05b-80258a95d9a4","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"}],"body":{"mode":"raw","raw":""},"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        \"PartnerIdentifier\": null\n    }\n]"}],"_postman_id":"ece15252-6ec7-da27-3fa5-efb3dcd5faaa"},{"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":"2a96a965-cd86-a22e-aab3-b78889cab4e5","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"Get a specified `TripEvent`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip`.\n\n<!--### Sample Response\n\n```\n{\n  \"Id\": 12345,\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\": \"Updated 1491424553\",\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\": 5432,\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}```-->"},"response":[{"id":"88a0e2ab-a20a-44f7-b6e8-73a4b11ab415","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"}],"body":{"mode":"raw","raw":""},"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    \"PartnerIdentifier\": null\n}"}],"_postman_id":"2a96a965-cd86-a22e-aab3-b78889cab4e5"},{"name":"Update Trip Event ","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":"9139405a-eaa0-59a6-b845-72b48b3c5288","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 {{$timestamp}}\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"{{$randomInt}}\",\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":"Update a specified `TripEvent`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip`.\n\n<!--### Sample Reponse\n\n```\n{\n  \"Id\": 12345,\n  \"TripDayId\": 54321,\n  \"IsActive\": true,\n  \"SegmentProviderName\": \"Hilton-Kansas City\",\n  \"SegmentProviderPhone\": \"555-867-5309\",\n  \"SegmentProviderUrl\": \"https://hilton.com\",\n  \"SegmentIdentifier\": \"YFHP02XVDB\",\n  \"Ordinal\": 0.375,\n  \"Name\": \"Updated Event 1491426990\",\n  \"Description\": \"<p>is awesome!</p>\",\n  \"StartTimeZoneId\": null,\n  \"StartTimeInMinutes\": 952,\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}```-->"},"response":[{"id":"1e26ca97-97f7-7660-8e6a-e8f114a342a5","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 {{$timestamp}}\",\r\n    \"Description\": \"is awesome!\",\r\n    \"StartTimeInMinutes\": \"{{$randomInt}}\",\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":"9139405a-eaa0-59a6-b845-72b48b3c5288"},{"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":"d51361ae-8762-2d65-616e-bdc1b8206058","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/tripEvents/{{trip-event-id}}","description":"Delete a specified `TripEvent`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip`.\n\n<!--### Sample Reponse\n\n```\n{\n  \"Id\": 12345,\n  \"TripDayId\": 54321,\n  \"IsActive\": false,\n  \"SegmentProviderName\": \"Hilton-Kansas City\",\n  \"SegmentProviderPhone\": \"555-867-5309\",\n  \"SegmentProviderUrl\": \"https://hilton.com\",\n  \"SegmentIdentifier\": \"YFHP02XVDB\",\n  \"Ordinal\": 0.375,\n  \"Name\": \"Updated Event 1491426990\",\n  \"Description\": \"<p>is awesome!</p>\",\n  \"StartTimeZoneId\": null,\n  \"StartTimeInMinutes\": 952,\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}```-->"},"response":[{"id":"161dc850-55a0-c082-40ce-fe9a1ea4ad3e","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":"raw","raw":""},"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":"d51361ae-8762-2d65-616e-bdc1b8206058"}],"id":"9c40df5c-fe20-e32e-1d44-80ea8bd00e09","description":"A `TripEvent` is an item on the `TripDay`.\n\nNOTE: You must supply a valid `TripDayId` for the `TripEvent`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip`.\n\n`TripEventType` can be set to one of the following:\n\nType | Value | Web equivalent \n-----|-------|---------------\nUnspecified | `null` | Event\nFlight | 0 | Flight\nCar Rental | 1 | Transportation -> Car Rental\nTrain | 2 | Transportation -> Rail\nCruise | 3 | Cruise\nBus | 4 | Transportation -> Other\nWalk | 5 | N/A\nHotel | 6 | Lodging\nVacation Rental | 7 | N/A\nCamp | 8 | N/A\nEvent | 9 | Activity\nAutomobile | 10 | N/A\nFood/Drink | 11 | Food/Drink\nInfo | 12 | Info\n\nHere's a list of time zones (use the \"Timezone\" field): [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)\n\nFor the `Description` field, the following restrictions apply:\n\nAllowed tags:\n`a, b, br, div, em, i, li, ol, p, span, strong, ul`\n\nAllowed attributes:\n`href, style`\n\nAllowed CSS properties\n`background-color`\n\nAllowed URI Schemes:\n`https, http, mailto, tel`\n\n\n","_postman_id":"9c40df5c-fe20-e32e-1d44-80ea8bd00e09"},{"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":"54aa956a-d34b-1289-013e-87ca76c16fed","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+{{$timestamp}}@example.com\",\n        \"fullName\": \"readonly {{$timestamp}}\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+{{$timestamp}}@example.com\",\n        \"fullName\": \"collaborator {{$timestamp}}\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+{{$timestamp}}@example.com\",\n        \"fullName\": \"default {{$timestamp}}\",\n        \"role\": \"0\"\n      }\n    ]\n}\n"},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/invite","description":"Create (invite) 1 or more `TripUsers` to a `Trip`.  `FullName` and `UserName` (email) are required.\n\nCurrently, this will not send an invite email to them, so you will need to notify them to check their trips list if needed.\n\nNOTE: You cannot invite anyone in the `Organizer` Role.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```[\n    {\n        \"Id\": 123,\n        \"TripId\": 12345,\n        \"UserId\": 67890,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67890,\n            \"FullName\": \"readonly 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"readonly+1500310460@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\": 124,\n        \"TripId\": 12345,\n        \"UserId\": 67891,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67891,\n            \"FullName\": \"default 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"default+1500310460@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\": 125,\n        \"TripId\": 12345,\n        \"UserId\": 67892,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 67892,\n            \"FullName\": \"collaborator 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-6.gif\",\n            \"Username\": \"collaborator+1500310460@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]```-->"},"response":[{"id":"073888f0-1b7d-fde6-aee2-ed2b59243d18","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+{{$timestamp}}@example.com\",\n        \"fullName\": \"readonly {{$timestamp}}\",\n        \"role\": \"4\"\n      },\n      {  \n        \"email\": \"collaborator+{{$timestamp}}@example.com\",\n        \"fullName\": \"collaborator {{$timestamp}}\",\n        \"role\": \"3\"\n      },\n      {  \n        \"email\": \"default+{{$timestamp}}@example.com\",\n        \"fullName\": \"default {{$timestamp}}\",\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":"54aa956a-d34b-1289-013e-87ca76c16fed"},{"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":"e5b49da1-af08-2496-86d5-3f1d349e2c84","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers/{{trip-user-id}}","description":"Retreive a given `TripUser`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```{\n    \"Id\": 123,\n    \"TripId\": 12345,\n    \"UserId\": 67890,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 112233,\n        \"FullName\": \"readonly 1500310460\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n        \"Username\": \"readonly+1500310460@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}```-->"},"response":[{"id":"a61624ad-3f50-3d0b-f2f7-db234274bb8c","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":"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: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":"e5b49da1-af08-2496-86d5-3f1d349e2c84"},{"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":"fd03f262-ed3f-24af-737f-3aba9a6f97d3","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/trips/{{trip-id}}/tripUsers","description":"Retreive all `TripUsers` on a `Trip`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```[\n    {\n        \"Id\": 123,\n        \"TripId\": 12345,\n        \"UserId\": 67890,\n        \"Role\": 1,\n        \"User\": {\n            \"Id\": 67890,\n            \"FullName\": \"Agent Level 1 User\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-4.gif\",\n            \"Username\": \"agent1.1500310214@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    },\n    {\n        \"Id\": 12346,\n        \"TripId\": 12345,\n        \"UserId\": 67891,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67891,\n            \"FullName\": \"Cameron Example\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-5.gif\",\n            \"Username\": \"cameron@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\": 125,\n        \"TripId\": 12345,\n        \"UserId\": 67892,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67892,\n            \"FullName\": \"Default Example\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-5.gif\",\n            \"Username\": \"default@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\": 126,\n        \"TripId\": 12345,\n        \"UserId\": 67893,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 67893,\n            \"FullName\": \"Collaborator Example\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-9.gif\",\n            \"Username\": \"collaborator@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\": 127,\n        \"TripId\": 12345,\n        \"UserId\": 67894,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67894,\n            \"FullName\": \"readonly 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"readonly+1500310460@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\": 128,\n        \"TripId\": 12345,\n        \"UserId\": 67895,\n        \"Role\": 4,\n        \"User\": {\n            \"Id\": 67895,\n            \"FullName\": \"default 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"default+1500310460@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\": 129,\n        \"TripId\": 12345,\n        \"UserId\": 67899,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 67899,\n            \"FullName\": \"collaborator 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-6.gif\",\n            \"Username\": \"collaborator+1500310460@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]```-->"},"response":[{"id":"a31895e0-23bb-1672-3dd3-3effe9d6c933","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":"raw","raw":""},"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":"fd03f262-ed3f-24af-737f-3aba9a6f97d3"},{"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":"ba2a9b1e-7a2e-d779-cca3-77b85d760d94","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":"Update the Role of a given `TripUser` on a `Trip`.\n\nNOTE: You cannot update anyone to the `Organizer` Role.  You cannot change the Role of an existing `Organizer`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```{\n    \"Id\": 123,\n    \"TripId\": 12345,\n    \"UserId\": 67890,\n    \"Role\": 4,\n    \"User\": {\n        \"Id\": 67890,\n        \"FullName\": \"readonly 1500310460\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n        \"Username\": \"readonly+1500310460@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}```-->"},"response":[{"id":"bdd012ed-c706-6f97-ac51-95cdf1e8471f","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":"ba2a9b1e-7a2e-d779-cca3-77b85d760d94"},{"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":"77f08353-562f-2e76-1099-201f20783a12","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":"Update the Roles of multiple `TripUsers` on a `Trip`.\n\nNOTE: You cannot update anyone to the `Organizer` Role.  You cannot change the Role of an existing `Organizer`.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```[\n    {\n        \"Id\": 123,\n        \"TripId\": 12345,\n        \"UserId\": 67890,\n        \"Role\": 3,\n        \"User\": {\n            \"Id\": 67890,\n            \"FullName\": \"readonly 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"readonly+1500310460@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\": 124,\n        \"TripId\": 12345,\n        \"UserId\": 67891,\n        \"Role\": 2,\n        \"User\": {\n            \"Id\": 67891,\n            \"FullName\": \"default 1500310460\",\n            \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n            \"Username\": \"default+1500310460@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]```-->"},"response":[{"id":"c066039c-039f-3770-2c4d-915590b6e4a5","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":"77f08353-562f-2e76-1099-201f20783a12"},{"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":"6af7842b-443b-dcf7-1221-cbf9b58c8e3d","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":"Delete (uninvite) a given `TripUser` on a `Trip`.\n\nNOTE: You cannot remove anyone in the `Organizer` Role.\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.\n\n<!--### SAMPLE RESPONSE\n\n```{\n    \"Id\": 123,\n    \"TripId\": 12345,\n    \"UserId\": 67890,\n    \"Role\": 2,\n    \"User\": {\n        \"Id\": 67890,\n        \"FullName\": \"readonly 1500310460\",\n        \"ImageUrl\": \"https://s3.amazonaws.com/travefy-storage/content/default-7.gif\",\n        \"Username\": \"readonly+1500310460@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}```-->"},"response":[{"id":"81b4460a-8204-18ee-9439-5d7ef4c5feed","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":"6af7842b-443b-dcf7-1221-cbf9b58c8e3d"}],"id":"d7343bd9-9516-573a-b298-ba7965a0e43d","description":"A `TripUser` represents a `User` on a `Trip`.  `TripUsers` can be invited to a trip and have different roles depending on your subscription level.  Here are the available Roles:\n\n| Role   |      Value      |  Notes |\n|----------|-------------|------|\n| Default |  `0` ( `null`) | Defaults to `ItineraryViewOnly` |\n| Organizer |  `1` | Has full control of the `Trip` and `TripUsers` on it |\n| Uninvited |  `2` | Cannot view or access the `Trip` |\n| Collaborator |  `3` | Can help build the itinerary and edit things on the itinerary, change `Trip` information, but can't cancel the `Trip` or invite others |\n| ItineraryViewOnly |  `4` | Can only view the shared itinerary and has no edit abilities |\n\nAvailable operations:\n- Invite 1 or more `TripUsers`\n- Retrieve a single `TripUser`\n- Retrieve all of the `TripUsers` for a `Trip`\n- Update the role of a single `TripUser`\n- Update the roles of multiple `TripUsers`\n- Remove a `TripUser` which moves them to the `Uninvited` Role\n\nNOTE: You must supply the `X-TRIP-ID` header with the `TripId` from the created `Trip` and it must match the `trip-id` in the URI.  The `TripUser` endpoints use a slightly different URL structure than other `Trip` resources.  We will likely move to this type of structure in the future for all `Trip` resources.  We will version the API or allow the old style rather than making breaking changes to existing calls.\n","_postman_id":"d7343bd9-9516-573a-b298-ba7965a0e43d"},{"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":"3ae99900-59a8-053f-0b0f-3a67f9bdc9c7","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":"Remove a `User` from the Travefy platform.  \n\nNote: You will not be able to re-enable or re-create a `User` after calling this.  The `User` will have to re-authorize your platform manually."},"response":[{"id":"e3a983b3-2085-17a2-0fd5-e0d1eee3fe49","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":"3ae99900-59a8-053f-0b0f-3a67f9bdc9c7"}],"id":"9bc597de-f423-a09f-79e1-f0a1052f39cf","_postman_id":"9bc597de-f423-a09f-79e1-f0a1052f39cf"},{"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":"a3dcdf16-e3e8-adff-0a85-8468b39e6df7","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-{{$timestamp}}\"\n}"},"url":"{{base-api-url}}api/v1/library/events/"},"response":[{"id":"dadba2dc-bbf0-0f03-68e8-0ba7d30a3045","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-{{$timestamp}}\"\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":"a3dcdf16-e3e8-adff-0a85-8468b39e6df7"},{"name":"Get Events","event":[{"listen":"test","script":{"type":"text/javascript","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;",""]}}],"id":"969244d2-8409-44f4-25e8-bb58cf11547d","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/events"},"response":[{"id":"df60398c-2191-0955-22ea-b21e9e71c5ab","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":"raw","raw":""},"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":"969244d2-8409-44f4-25e8-bb58cf11547d"},{"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":"e1cc66b5-1602-9fa0-7364-cf9b131be4da","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"response":[{"id":"78801823-7d1e-ccd5-eebf-d69e1b2d0dc0","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":"raw","raw":""},"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":"e1cc66b5-1602-9fa0-7364-cf9b131be4da"},{"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":"3e12945f-cc31-4dcf-2b17-e73740c0f685","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}}"},"response":[{"id":"227e0be2-9b17-af6f-b4f8-23d24b0ab317","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\": 2,\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\": 2,\n    \"PartnerIdentifier\": \"test-event-id-1510782168-new\"\n}"}],"_postman_id":"3e12945f-cc31-4dcf-2b17-e73740c0f685"},{"name":"Delete Event","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests['event is not active'] = !data.IsActive; ",""]}}],"id":"fb092c97-d839-d3c2-0b5b-745968f55a20","request":{"method":"DELETE","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/events/{{saved-event-id}}"},"response":[{"id":"4db1db76-2c7d-a5be-45b8-77957ec50a0a","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":"raw","raw":""},"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":"fb092c97-d839-d3c2-0b5b-745968f55a20"}],"id":"cc142175-8c38-2205-b0b7-6cc3c5cc5d6f","description":"`EventType` can be set to one of the following:\n\nType | Value \n-----|-------\nFlight | 0 \nCar Rental | 1 \nTrain | 2 \nCruise | 3 \nBus | 4 \nWalk | 5 \nHotel | 6 \nVacation Rental | 7 \nCamp | 8 \nEvent | 9 \nAutomobile | 10 \nFood & Drink | 11\nInfo | 12\n\n\nNote: Attached content cannot be viewed or managed via the API at this time.","_postman_id":"cc142175-8c38-2205-b0b7-6cc3c5cc5d6f"},{"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":"0a84bd9a-ac54-ecd4-af8c-1ad9bbe97bed","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-{{$timestamp}}\"\n}"},"url":"{{base-api-url}}api/v1/library/content"},"response":[{"id":"d9293908-eeb4-d2f3-aa3d-6a7ce0a0a448","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-{{$timestamp}}\"\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":"0a84bd9a-ac54-ecd4-af8c-1ad9bbe97bed"},{"name":"Get All Content","event":[{"listen":"test","script":{"type":"text/javascript","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;",""]}}],"id":"b79bf226-7065-daff-6866-e3271599567b","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content"},"response":[{"id":"9f7dd660-5071-a669-bcc8-6cb5a1c3a713","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":"raw","raw":""},"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":"b79bf226-7065-daff-6866-e3271599567b"},{"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":"bb972e5b-0c39-e909-5775-419de21fee22","request":{"method":"GET","header":[{"key":"X-USER-TOKEN","value":"{{user-access-token}}"},{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/library/content/{{saved-content-id}}"},"response":[{"id":"e3b1fa9a-8c02-f4e5-b316-5fe06700f9d3","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":"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":"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":"bb972e5b-0c39-e909-5775-419de21fee22"},{"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":"f6a02df0-d7bc-c0c0-baea-4026aaea42f7","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}}"},"response":[{"id":"3d9714f6-aad1-e39b-3ef2-18755f11d43c","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":"f6a02df0-d7bc-c0c0-baea-4026aaea42f7"},{"name":"Delete Content","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var data = JSON.parse(responseBody);","","tests[\"content was deleted\"] = !data.IsActive;",""]}}],"id":"6d1d4ad6-e2db-2391-d128-2a4da342e46b","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}}"},"response":[{"id":"2487114e-1d17-3b81-b7e9-040c80c779e3","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":"6d1d4ad6-e2db-2391-d128-2a4da342e46b"}],"id":"5e4703c6-b7b6-742d-0599-ae6526a544ce","_postman_id":"5e4703c6-b7b6-742d-0599-ae6526a544ce"}],"id":"d69ff92e-407c-b013-588e-15c1bf76c9bd","description":"You can now manage the Library of your Users. \n\nNote, the following features are not yet available in the API:\n- Managing Labels\n- Accessing items using `PartnerIdentifier`\n- Adding multiple images to Content\n- Managing items from other team members\n","_postman_id":"d69ff92e-407c-b013-588e-15c1bf76c9bd"},{"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":"2e3ae808-bf03-3475-3c92-1af12a2cda98","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 {{$timestamp}}\",\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":"Create an inventory record."},"response":[{"id":"95e1e589-4f27-ec4e-c9e1-280669cfcd70","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 {{$timestamp}}\",\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":"2e3ae808-bf03-3475-3c92-1af12a2cda98"},{"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":"bdc79d02-f146-c39e-f920-a96c5e17ea83","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":"raw","raw":""},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}","description":"Get a given `InventoryRecord` by its `Id`"},"response":[{"id":"b262f601-6da4-861b-c1a6-c7e38b1bfb93","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":"raw","raw":""},"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":"bdc79d02-f146-c39e-f920-a96c5e17ea83"},{"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":"10222add-ddad-a832-973c-08b975c1dda3","request":{"method":"GET","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/inventoryRecords/","description":"Get all the `InventoryRecords` for your platform."},"response":[{"id":"0aeef65a-b8b8-b172-2c59-0c7527d2a9cb","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":"raw","raw":""},"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":"10222add-ddad-a832-973c-08b975c1dda3"},{"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":"878a333c-c11f-c6ef-5f11-f0e5d8d9cfa6","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":"Update a given `InventoryRecord` by `Id`/"},"response":[{"id":"43ca5118-d547-c1f1-31e1-4f4c5cf54d7e","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":"878a333c-c11f-c6ef-5f11-f0e5d8d9cfa6"},{"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":"22089f41-dee8-1b86-9de6-accd2f128456","request":{"method":"DELETE","header":[{"key":"X-API-PUBLIC-KEY","value":"{{platform-public-key}}"},{"key":"X-API-PRIVATE-KEY","value":"{{platform-private-key}}"}],"body":{"mode":"raw","raw":""},"url":"{{base-api-url}}api/v1/inventoryRecords/{{inventory-id}}","description":"Delete an `InventoryRecord` by `Id`."},"response":[{"id":"a25053e7-556b-7feb-2a10-75217a1e97ab","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":"raw","raw":""},"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":"22089f41-dee8-1b86-9de6-accd2f128456"}],"id":"49a54362-672e-8538-319f-f481e27b6415","description":"If you have platform search enabled, you can manage your `InventoryRecords` here.  Everything is keyed off of your provided `Id` field, so be sure that is unique and non-changing.\n\nIf you're using the CSV upload, here is the list of CSV fields: [https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880](https://slack-files.com/T03PA1YTJ-F0BP4RPDW-7cd557a880)","_postman_id":"49a54362-672e-8538-319f-f481e27b6415"}]}