{"info":{"_postman_id":"c0781ecc-d361-4925-b689-38e66fa9ec25","name":"HolidayLAB Public CM API","description":"This is the complete API reference of **HolidayLAB Public CM API** which is fully designed and developed by [Prime Travel Service](https://www.primetravel.com.tr). This API currently covers the required functionality for both *Contract API* and *Channel Manager API*.\n\nThe **HolidayLAB Public CM API** is organized around [REST](http://en.wikipedia.org/wiki/Representational_State_Transfer).\n* The API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors.\n* The API supports [cross-origin resource sharing](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing), allows interacting securely with the API from a client-side web application.\n* JSON is returned by all API responses, including errors.\n\n#### Root endpoint\n* **Base URL (production)**: `https://api.holidaylab.net`\n* **Base URL (development)**: `https://api-dev.holidaylab.net`\n\n### Authentication\nIn order to utilize the *Contract API* and *Channel Manager API*, the first thing to be made is to acquire an **access token**. HolidayLAB works with [Auth0](https://auth0.com) as authentication provider.\n\nThe following `POST` request will help acquiring the **access token** to be passed as a bearer token in the Authorization header of **HolidayLAB Public CM API** methods.\n\n```console\ncurl --request POST \\\n  --url 'https://primetravel.eu.auth0.com/oauth/token' \\\n  --data 'grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_secret}}&audience={{audience}}'\n```\n\nThe parameters `client_id`, `client_secret` and `audience` may be provided by [Prime Travel Service Engineering Dept](engineering@primetravel.com.tr), on request.\n\nBy requesting the Auth0 authentication API, a **JWT token** is going to be returned (*with a validity of 36000 seconds*). After the expiry, a new token should be acquired.\n\n> It's a best practice to have a failover implementation before the API calls – checking if the access token has expired or not, and then follow the usual API call process.\n\n### Errors\nThe **HolidayLAB Public CM API** uses conventional HTTP success or error status codes. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (*ex: a required parameter was omitted, an operation failed, etc.*), and codes in the 5xx range indicate an error with the servers (*these must be rare*).\n\nMost common HTTP status codes that the system may return are listed below.\n\nSignature | Description\n--- | ---\n200 - OK | The request has succeeded.\n201 - Created | The request has been fulfilled and the resource was successfully created.\n400 - Bad Request | The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.\n401 - Unauthorized | The request requires user authentication. The client MAY repeat the request with a valid API key.\n403 - Forbidden | The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.\n404 - Not Found | The requested resource doesn’t exist.\n405 - Method Not Allowed | The method specified in the request is known by the server but has been disabled and cannot be used.\n409 - Conflict | The request could not be completed due to a conflict with the current state of the resource (*idempotent request*).\n422 - Unprocessable Entity | The server understands the content type of the request and the request is syntactically correct, but was unable to process the contained instructions (*semantically erroneous*).\n429 - Too Many Requests | The 429 status code indicates that the client has sent too many requests in a given amount of time (*rate limiting*).\n50X - Internal Server Error | An error occurred with the API.\n\n### Error types\nNot all errors map cleanly onto HTTP response codes. When a request is valid but does not complete successfully a `4xx error code` is returned. To understand why the request failed, error details are returned with the response in JSON format, with a `type` and optional `message`.\n\nSignature | Description\n--- | ---\nmissing | The resource does not exist.\nmissing_field | A required field on a resource has not been set.\ninvalid | The formatting of a field is invalid.\nalready_exists | Another resource has the same value as this field.\n\n### Searching\nThe `?q` (*query*) parameter is used to perform URI-based full-text search. The **HolidayLAB Public CM API** parses the input and splits text around colons (*`term:value`*). Multiple field/value pairs (*textual parts*) are joined by commas (*`term1:value1,term2:value2`*) and each textual part is analyzed independently of each other.\n\n**Example**:\n\nThe request `GET /tickets?q=name:test,status:received` returns the list of available tickets having the text `test` on the `name` property and the text `received` on the `status` property.\n\n### Projecting fields\nBy default, the **HolidayLAB Public CM API** return all fields in matching resources. Using the `?fields` parameter, fields of the matching resources that the API returns may be specified or restricted.\n\n**Example:**\n\nSupposing the method `GET /tickets` returns the list of available tickets having all available fields:\n\n```json\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"_id\": \"000000000000000000000001\",\n\t\t\t\"name\": \"Test ticket #1\",\n\t\t\t\"owner\": '000000000000000000000002'\n\t\t}\n\t],\n\t\"hasMore\": \"false\",\n\t\"totalCount\": 1\n}\n```\n\nAppending `?fields=name` to the request (*`GET /tickets?fields=name`*) will restrict the results to only contain the `name` field.\n\n```json\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"_id\": \"000000000000000000000001\",\n\t\t\t\"name\": \"Test ticket #1\"\n\t\t}\n\t],\n\t\"hasMore\": \"false\",\n\t\"totalCount\": 1\n}\n```\n\n**Note:** The `_id` field is always returned by the API.\n\n### Population\nThe **HolidayLAB Public CM API** has the join-like `?populate` parameter, automatically replacing the specified paths with document(s) from other collection(s). Using the `?populate` parameter and specifying comma-separated list of field name(s), the API returns populated paths instead of original `_id`s of the documents.\n\n**Example:**\n\nSupposing the method `GET /tickets` returns the list of available tickets:\n\n```json\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"_id\": \"000000000000000000000001\",\n\t\t\t\"name\": \"Test ticket #1\",\n\t\t\t\"owner\": '000000000000000000000002'\n\t\t}\n\t],\n\t\"hasMore\": \"false\",\n\t\"totalCount\": 1\n}\n```\n\nAppending `?populate=owner` to the request (*`GET /tickets?populate=owner`*) will replace the reference of `owner` property with its populated path.\n\n```json\n{\n\t\"data\": [\n\t\t{\n\t\t\t\"_id\": \"000000000000000000000001\",\n\t\t\t\"name\": \"Test ticket #1\",\n\t\t\t\"owner\": {\n\t\t\t\t\"name\": \"Ian\",\n\t\t\t\t\"age\": \"32\"\n\t\t\t}\n\t\t}\n\t],\n\t\"hasMore\": \"false\",\n\t\"totalCount\": 1\n}\n```\n\n### Pagination\nRequests that return multiple resources will be paginated to `20` resources by default. You can specify further pages with the `?page` parameter.\n\nFor some resources, you can also set a custom page size with the `?per_page` parameter. Note that for technical reasons not all endpoints may respect the `?per_page` parameter.\n\nName | Type | Description\n--- | --- | ---\npage | number | Optional, default =  0. The cursor to use in pagination.\nper_page | number | Optional, default =  20. The number of resources to be returned, between 1 and 100.\n\n### Sorting\nRequests that return multiple resources will retrieve these resources in sorted order, with the most recent resource appearing first. Similar to pagination, you can describe the sorting rule with the `?sort` parameter - if supported.\n\nName | Type | Description\n--- | --- | ---\nsort | string | Optional. The field(s) to retrieve the resources in ascending/descending sort order.\n\nAlso, it’s possible to accommodate complex sorting requirements by letting the sort parameter take in list of comma separated fields, each with a possible unary negative `-` prefix to imply descending sort order. For example:\n\n* `GET /tickets?sort=-priority`: Retrieves a list of tickets in descending order of priority.\n* `GET /tickets?sort=-priority,created_at`: Retrieves a list of tickets in descending order of priority. Within a specific priority, older tickets are ordered first.\n\n### Versioning\nIn order to prevent breaking changes to hubs and/or breaking the existing products or services using the API:\n\n* The [SemVer](http://semver.org/) spec is strictly followed,\n* The API version is required with all requests, by using a major version number (*ex: v1*) - followed by the root endpoint (*ex: https://api.holidaylab.net/v1/some-method*),\n* Well documented and announced multi-month deprecation schedules are adopted.\n","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Contract/CM API","item":[{"name":"Hotel contracts","item":[{"name":"List or search hotel contracts","id":"b1ff73d7-8169-4c99-b3d9-278855c3b15a","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel contracts.\r\n* Scopes required: `read:contracts--hotelContract`, `contracts--hotelContract--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel contracts matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"code\": \"AA\",\r\n            \"season\": \"100000000000000000000001\",\r\n            \"type\": 1,\r\n            \"opacity\": 1,\r\n    \t\t\"pricingStrategy\": 1,\r\n    \t\t\"supplier\": \"100000000000000000000002\",\r\n    \t\t\"units\": [\r\n    \t\t\t\"100000000000000000000003\"\r\n\t\t    ],\r\n\t\t    \"contractor\": \"100000000000000000000004\",\r\n\t\t    \"contractPerson\": \"100000000000000000000005\",\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000006\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n    \t\t\"restrictions\": [\r\n    \t\t\t{\r\n    \t\t\t\t\"type\": 1,\r\n    \t\t\t\t\"isNegation\": false,\r\n\t\t\t        \"isCondition\": false,\r\n\t\t\t        \"operator\": 1,\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"dayStrategy\": 8,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 2,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"durationStrategy\": 2,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"minLoS\": 1,\r\n\t\t            \t\t\"maxLoS\": 21\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 4,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"occupancyType\": \"CHD\",\r\n\t\t            \t\t\"minAge\": 1.99,\r\n\t\t            \t\t\"maxAge\": 11.99\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"type\": 16,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"board\": \"100000000000000000000007\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"periods\": [\r\n\t\t\t\t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t},\r\n\t    \t\t{\r\n\t\t\t        \"code\": \"B\",\r\n\t\t\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 7,\r\n\t\t\t        \"minLoS\": 3,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t}\r\n\t\t    ],\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t    \"paymentTerms\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 2,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 4,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t}\r\n\t\t    ],\r\n\t\t    \"inboundGateway\": null,\r\n\t\t    \"inboundVersion\": 0,\r\n\t\t    \"outboundGateways\": [],\r\n\t\t    \"outboundVersion\": 0,\r\n\t\t    \"publicationStatus\": 1,\r\n\t\t    \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n            \"code\": \"AB\",\r\n            \"season\": \"100000000000000000000001\",\r\n            \"type\": 1,\r\n            \"opacity\": 1,\r\n    \t\t\"pricingStrategy\": 1,\r\n    \t\t\"supplier\": \"100000000000000000000008\",\r\n    \t\t\"units\": [\r\n    \t\t\t\"100000000000000000000009\"\r\n\t\t    ],\r\n\t\t    \"contractor\": \"100000000000000000000004\",\r\n\t\t    \"contractPerson\": \"100000000000000000000005\",\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000006\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n    \t\t\"restrictions\": [\r\n    \t\t\t{\r\n    \t\t\t\t\"type\": 1,\r\n    \t\t\t\t\"isNegation\": false,\r\n\t\t\t        \"isCondition\": false,\r\n\t\t\t        \"operator\": 1,\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"dayStrategy\": 8,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 2,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"durationStrategy\": 2,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"minLoS\": 1,\r\n\t\t            \t\t\"maxLoS\": 21\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 4,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"occupancyType\": \"CHD\",\r\n\t\t            \t\t\"minAge\": 1.99,\r\n\t\t            \t\t\"maxAge\": 11.99\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"type\": 16,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"board\": \"100000000000000000000007\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"periods\": [\r\n\t\t\t\t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t},\r\n\t    \t\t{\r\n\t\t\t        \"code\": \"B\",\r\n\t\t\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 7,\r\n\t\t\t        \"minLoS\": 3,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t}\r\n\t\t    ],\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t    \"paymentTerms\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 2,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 4,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t}\r\n\t\t    ],\r\n\t\t    \"inboundGateway\": null,\r\n\t\t    \"inboundVersion\": 0,\r\n\t\t    \"outboundGateways\": [],\r\n\t\t    \"outboundVersion\": 0,\r\n\t\t    \"publicationStatus\": 1,\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"b1ff73d7-8169-4c99-b3d9-278855c3b15a"},{"name":"Create hotel contracts","id":"a64a7bd6-f62c-40e3-baa9-027b5066b010","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n        \"code\": \"AA\",\r\n        \"season\": \"100000000000000000000001\",\r\n        \"type\": 1,\r\n        \"opacity\": 1,\r\n\t\t\"pricingStrategy\": 1,\r\n\t\t\"supplier\": \"100000000000000000000002\",\r\n\t\t\"units\": [\r\n\t\t\t\"100000000000000000000003\"\r\n\t    ],\r\n\t    \"contractor\": \"100000000000000000000004\",\r\n\t    \"contractPerson\": \"100000000000000000000005\",\r\n\t    \"markets\": [],\r\n\t    \"isForAllMarkets\": true,\r\n\t    \"exclusiveCountries\": null,\r\n\t    \"vendors\": [],\r\n\t    \"isForAllVendors\": true,\r\n\t    \"isOffline\": false,\r\n\t    \"baseCurrency\": \"100000000000000000000006\",\r\n\t    \"convertibleCurrencies\": null,\r\n\t\t\"restrictions\": [\r\n\t\t\t{\r\n\t\t\t\t\"type\": 1,\r\n\t\t\t\t\"isNegation\": false,\r\n\t\t        \"isCondition\": false,\r\n\t\t        \"operator\": 1,\r\n\t\t        \"cutOff\": 1,\r\n\t        \t\"elements\": [\r\n\t        \t\t{\r\n\t            \t\t\"dayStrategy\": 8,\r\n\t            \t\t\"sourceStrategy\": 1,\r\n\t            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t},\r\n\t    \t{\r\n\t        \t\"type\": 2,\r\n\t        \t\"isNegation\": false,\r\n\t        \t\"isCondition\": false,\r\n\t        \t\"operator\": 1,\r\n\t        \t\"elements\": [\r\n\t        \t\t{\r\n\t            \t\t\"durationStrategy\": 2,\r\n\t            \t\t\"sourceStrategy\": 1,\r\n\t            \t\t\"minLoS\": 1,\r\n\t            \t\t\"maxLoS\": 21\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t},\r\n\t    \t{\r\n\t        \t\"type\": 4,\r\n\t        \t\"isNegation\": false,\r\n\t        \t\"isCondition\": false,\r\n\t        \t\"operator\": 1,\r\n\t        \t\"elements\": [\r\n\t        \t\t{\r\n\t            \t\t\"occupancyType\": \"CHD\",\r\n\t            \t\t\"minAge\": 1.99,\r\n\t            \t\t\"maxAge\": 11.99\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t},\r\n\t    \t{\r\n\t\t        \"type\": 16,\r\n\t        \t\"isNegation\": false,\r\n\t        \t\"isCondition\": false,\r\n\t        \t\"operator\": 1,\r\n\t        \t\"elements\": [\r\n\t        \t\t{\r\n\t            \t\t\"board\": \"100000000000000000000007\"\r\n\t        \t\t}\r\n\t        \t]\r\n\t    \t}\r\n\t    ],\r\n\t    \"periods\": [\r\n\t\t\t{\r\n\t\t        \"code\": \"A\",\r\n\t\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t\t        \"cutOff\": 1,\r\n\t\t        \"minLoS\": 1,\r\n\t\t        \"maxLoS\": 21\r\n    \t\t},\r\n    \t\t{\r\n\t\t        \"code\": \"B\",\r\n\t\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t\t        \"cutOff\": 7,\r\n\t\t        \"minLoS\": 3,\r\n\t\t        \"maxLoS\": 21\r\n\t    \t},\r\n\t    \t{\r\n\t\t        \"code\": \"A\",\r\n\t\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t        \"cutOff\": 1,\r\n\t\t        \"minLoS\": 1,\r\n\t\t        \"maxLoS\": 21\r\n    \t\t}\r\n\t    ],\r\n\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t    \"paymentTerms\": [\r\n\t\t\t{\r\n\t\t\t\t\"strategy\": 2,\r\n\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\"percent\": 50\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"strategy\": 4,\r\n\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\"percent\": 25\r\n\t\t\t}\r\n\t    ],\r\n\t    \"inboundGateway\": null,\r\n\t    \"inboundVersion\": 0,\r\n\t    \"outboundGateways\": [],\r\n\t    \"outboundVersion\": 0,\r\n\t    \"publicationStatus\": 1\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts","description":"* Creates a hotel contract(s).\r\n* Scopes required: `create:contracts--hotelContract`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel contract(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n\t        \"_id\": \"000000000000000000000001\",\r\n\t        \"code\": \"AA\",\r\n\t        \"season\": \"100000000000000000000001\",\r\n\t        \"type\": 1,\r\n\t        \"opacity\": 1,\r\n\t\t\t\"pricingStrategy\": 1,\r\n\t\t\t\"supplier\": \"100000000000000000000002\",\r\n\t\t\t\"units\": [\r\n\t\t\t\t\"100000000000000000000003\"\r\n\t\t    ],\r\n\t\t    \"contractor\": \"100000000000000000000004\",\r\n\t\t    \"contractPerson\": \"100000000000000000000005\",\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000006\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n\t\t\t\"restrictions\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"type\": 1,\r\n\t\t\t\t\t\"isNegation\": false,\r\n\t\t\t        \"isCondition\": false,\r\n\t\t\t        \"operator\": 1,\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"dayStrategy\": 8,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 2,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"durationStrategy\": 2,\r\n\t\t            \t\t\"sourceStrategy\": 1,\r\n\t\t            \t\t\"minLoS\": 1,\r\n\t\t            \t\t\"maxLoS\": 21\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t        \t\"type\": 4,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"occupancyType\": \"CHD\",\r\n\t\t            \t\t\"minAge\": 1.99,\r\n\t\t            \t\t\"maxAge\": 11.99\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"type\": 16,\r\n\t\t        \t\"isNegation\": false,\r\n\t\t        \t\"isCondition\": false,\r\n\t\t        \t\"operator\": 1,\r\n\t\t        \t\"elements\": [\r\n\t\t        \t\t{\r\n\t\t            \t\t\"board\": \"100000000000000000000007\"\r\n\t\t        \t\t}\r\n\t\t        \t]\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"periods\": [\r\n\t\t\t\t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t},\r\n\t    \t\t{\r\n\t\t\t        \"code\": \"B\",\r\n\t\t\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 7,\r\n\t\t\t        \"minLoS\": 3,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t    \t},\r\n\t\t    \t{\r\n\t\t\t        \"code\": \"A\",\r\n\t\t\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t\t\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t\t        \"cutOff\": 1,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t    \t\t}\r\n\t\t    ],\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t\t    \"paymentTerms\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 2,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"strategy\": 4,\r\n\t\t\t\t\t\"offset\": 15,\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t}\r\n\t\t    ],\r\n\t\t    \"inboundGateway\": null,\r\n\t\t    \"inboundVersion\": 0,\r\n\t\t    \"outboundGateways\": [],\r\n\t\t    \"outboundVersion\": 0,\r\n\t\t    \"publicationStatus\": 1,\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"a64a7bd6-f62c-40e3-baa9-027b5066b010"},{"name":"Get a hotel contract","id":"bdb886d9-4d56-4f77-bce8-af7a49144785","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel contract.\r\n* Scopes required: `read:contracts--hotelContract`, `read:contracts--hotelContract--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel contract.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"code\": \"AA\",\r\n    \"season\": \"100000000000000000000001\",\r\n    \"type\": 1,\r\n    \"opacity\": 1,\r\n\t\"pricingStrategy\": 1,\r\n\t\"supplier\": \"100000000000000000000002\",\r\n\t\"units\": [\r\n\t\t\"100000000000000000000003\"\r\n    ],\r\n    \"contractor\": \"100000000000000000000004\",\r\n    \"contractPerson\": \"100000000000000000000005\",\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000006\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"restrictions\": [\r\n\t\t{\r\n\t\t\t\"type\": 1,\r\n\t\t\t\"isNegation\": false,\r\n\t        \"isCondition\": false,\r\n\t        \"operator\": 1,\r\n\t        \"cutOff\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"dayStrategy\": 8,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 2,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"durationStrategy\": 2,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"minLoS\": 1,\r\n            \t\t\"maxLoS\": 21\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 4,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"occupancyType\": \"CHD\",\r\n            \t\t\"minAge\": 1.99,\r\n            \t\t\"maxAge\": 11.99\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n\t        \"type\": 16,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"board\": \"100000000000000000000007\"\r\n        \t\t}\r\n        \t]\r\n    \t}\r\n    ],\r\n    \"periods\": [\r\n\t\t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t        \"code\": \"B\",\r\n\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 7,\r\n\t        \"minLoS\": 3,\r\n\t        \"maxLoS\": 21\r\n    \t},\r\n    \t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n    ],\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"paymentTerms\": [\r\n\t\t{\r\n\t\t\t\"strategy\": 2,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 50\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"strategy\": 4,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 25\r\n\t\t}\r\n    ],\r\n    \"inboundGateway\": null,\r\n    \"inboundVersion\": 0,\r\n    \"outboundGateways\": [],\r\n    \"outboundVersion\": 0,\r\n    \"publicationStatus\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"bdb886d9-4d56-4f77-bce8-af7a49144785"},{"name":"Update a hotel contract","id":"116c5f88-ed8c-45e3-9eac-e1d1b9706986","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"AA\",\r\n    \"season\": \"100000000000000000000001\",\r\n    \"type\": 1,\r\n    \"opacity\": 1,\r\n\t\"pricingStrategy\": 1,\r\n\t\"supplier\": \"100000000000000000000002\",\r\n\t\"units\": [\r\n\t\t\"100000000000000000000003\"\r\n    ],\r\n    \"contractor\": \"100000000000000000000004\",\r\n    \"contractPerson\": \"100000000000000000000005\",\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000006\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"restrictions\": [\r\n\t\t{\r\n\t\t\t\"type\": 1,\r\n\t\t\t\"isNegation\": false,\r\n\t        \"isCondition\": false,\r\n\t        \"operator\": 1,\r\n\t        \"cutOff\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"dayStrategy\": 8,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 2,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"durationStrategy\": 2,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"minLoS\": 1,\r\n            \t\t\"maxLoS\": 21\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 4,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"occupancyType\": \"CHD\",\r\n            \t\t\"minAge\": 1.99,\r\n            \t\t\"maxAge\": 11.99\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n\t        \"type\": 16,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"board\": \"100000000000000000000007\"\r\n        \t\t}\r\n        \t]\r\n    \t}\r\n    ],\r\n    \"periods\": [\r\n\t\t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t        \"code\": \"B\",\r\n\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 7,\r\n\t        \"minLoS\": 3,\r\n\t        \"maxLoS\": 21\r\n    \t},\r\n    \t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n    ],\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"paymentTerms\": [\r\n\t\t{\r\n\t\t\t\"strategy\": 2,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 50\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"strategy\": 4,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 25\r\n\t\t}\r\n    ],\r\n    \"inboundGateway\": null,\r\n    \"inboundVersion\": 0,\r\n    \"outboundGateways\": [],\r\n    \"outboundVersion\": 0,\r\n    \"publicationStatus\": 1\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{id}}","description":"* Updates a hotel contract.\r\n* Scopes required: `update:contracts--hotelContract`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel contract.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"code\": \"AA\",\r\n    \"season\": \"100000000000000000000001\",\r\n    \"type\": 1,\r\n    \"opacity\": 1,\r\n\t\"pricingStrategy\": 1,\r\n\t\"supplier\": \"100000000000000000000002\",\r\n\t\"units\": [\r\n\t\t\"100000000000000000000003\"\r\n    ],\r\n    \"contractor\": \"100000000000000000000004\",\r\n    \"contractPerson\": \"100000000000000000000005\",\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000006\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"restrictions\": [\r\n\t\t{\r\n\t\t\t\"type\": 1,\r\n\t\t\t\"isNegation\": false,\r\n\t        \"isCondition\": false,\r\n\t        \"operator\": 1,\r\n\t        \"cutOff\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"dayStrategy\": 8,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-12-31T23:59:59.000Z\"\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 2,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"durationStrategy\": 2,\r\n            \t\t\"sourceStrategy\": 1,\r\n            \t\t\"minLoS\": 1,\r\n            \t\t\"maxLoS\": 21\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n        \t\"type\": 4,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"occupancyType\": \"CHD\",\r\n            \t\t\"minAge\": 1.99,\r\n            \t\t\"maxAge\": 11.99\r\n        \t\t}\r\n        \t]\r\n    \t},\r\n    \t{\r\n\t        \"type\": 16,\r\n        \t\"isNegation\": false,\r\n        \t\"isCondition\": false,\r\n        \t\"operator\": 1,\r\n        \t\"elements\": [\r\n        \t\t{\r\n            \t\t\"board\": \"100000000000000000000007\"\r\n        \t\t}\r\n        \t]\r\n    \t}\r\n    ],\r\n    \"periods\": [\r\n\t\t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-03-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t        \"code\": \"B\",\r\n\t        \"startAtUtc\": \"2018-04-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-10-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 7,\r\n\t        \"minLoS\": 3,\r\n\t        \"maxLoS\": 21\r\n    \t},\r\n    \t{\r\n\t        \"code\": \"A\",\r\n\t        \"startAtUtc\": \"2018-11-01T00:00:00.000Z\",\r\n\t        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n\t        \"cutOff\": 1,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n    ],\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"paymentTerms\": [\r\n\t\t{\r\n\t\t\t\"strategy\": 2,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 50\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"strategy\": 4,\r\n\t\t\t\"offset\": 15,\r\n\t\t\t\"percent\": 25\r\n\t\t}\r\n    ],\r\n    \"inboundGateway\": null,\r\n    \"inboundVersion\": 0,\r\n    \"outboundGateways\": [],\r\n    \"outboundVersion\": 0,\r\n    \"publicationStatus\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"116c5f88-ed8c-45e3-9eac-e1d1b9706986"},{"name":"Delete a hotel contract","id":"f5a831ac-9b88-40a4-9cf0-2734ad0ee0f4","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{id}}","description":"* Deletes (deactivates) a hotel contract.\r\n* Scopes required: `delete:contracts--hotelContract`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"f5a831ac-9b88-40a4-9cf0-2734ad0ee0f4"}],"id":"906ea9b0-f3fe-488d-87aa-0fd2f3fee20b","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\ncode | string | Required\nseason | string (*ref `_id`*) | Required\ntype | number (*enum `ContractType`*) | Required\nopacity | number (*enum `Opacity`*) | Required (default: `Opacity.HotelOnly`)\npricingStrategy | number (*enum `PricingStrategy`*) | Required (default: `PricingStrategy.Variable`)\nsupplier | string (*ref `_id`*) | Required\nunits | array (*ref `_id`*) | 1..*\ncontractor | string (*ref `_id`*) | Optional\ncontractPerson | string (*ref `_id`*) | Optional\nmarkets | array (*ref `_id`*) | 0..*\nisForAllMarkets | boolean | Required (default: `false`)\nexclusiveCountries | array (*ref `_id`*) | 0..*\nvendors | array (*ref `_id`*) | 0..*\nisForAllVendors | boolean | Required (default: `false`)\nisOffline | boolean | Required (default: `false`)\nbaseCurrency | string (*ref `_id`*) | Required\nconvertibleCurrencies | array (*ref `_id`*) | 0..*\nrestrictions | array (*object*) | 0..*\nrestrictions/type | number (*enum `RestrictionType`*) | Required\nrestrictions/isNegation | boolean | Required (default: `false`)\nrestrictions/isCondition | boolean | Required (default: `true`)\nrestrictions/operator | number (*enum `Operator`*) | Required (default: `Operator.Or`)\nrestrictions/cutOff | number | Optional\nrestrictions/inventoryStatus | number | Optional\nrestrictions/elements | array (*object*) | 1..*\nrestrictions/elements/dayStrategy | number (*enum `DayStrategy`*) | Optional\nrestrictions/elements/sourceStrategy | number (*enum `SourceStrategy`*) | Optional\nrestrictions/elements/durationStrategy | number (*enum `DurationStrategy`*) | Optional\nrestrictions/elements/bookingStartAtUtc | date | Optional\nrestrictions/elements/bookingEndAtUtc | date | Optional\nrestrictions/elements/minBookingOffset | number | Optional\nrestrictions/elements/maxBookingOffset | number | Optional\nrestrictions/elements/startAtUtc | date | Optional\nrestrictions/elements/endAtUtc | date | Optional\nrestrictions/elements/occurrences | number | Optional\nrestrictions/elements/minLoS | number | Optional\nrestrictions/elements/maxLoS | number | Optional\nrestrictions/elements/sequentialLoS | number | Optional\nrestrictions/elements/occupancyType | string (*enum `OccupancyType`*) | Optional\nrestrictions/elements/minCount | number | Optional\nrestrictions/elements/maxCount | number | Optional\nrestrictions/elements/minAge | number | Optional\nrestrictions/elements/maxAge | number | Optional\nrestrictions/elements/onMonday | boolean | Optional\nrestrictions/elements/onTuesday | boolean | Optional\nrestrictions/elements/onWednesday | boolean | Optional\nrestrictions/elements/onThursday | boolean | Optional\nrestrictions/elements/onFriday | boolean | Optional\nrestrictions/elements/onSaturday | boolean | Optional\nrestrictions/elements/onSunday | boolean | Optional\nrestrictions/elements/board | string (*ref `_id`*) | Optional\nrestrictions/elements/period | string | Optional\nperiods | array (*object*) | 0..*\nperiods/code | string | Required\nperiods/mask | string | Optional\nperiods/startAtUtc | date | Required\nperiods/endAtUtc | date | Required\nperiods/cutOff | number | Required\nperiods/minLoS | number | Required\nperiods/maxLoS | number | Optional\nstartAtUtc | date | Required\nendAtUtc | date | Required\npaymentTerms | array (*object*) | 1..*\npaymentTerms/strategy | number (*enum `PaymentStrategy`*) | Required\npaymentTerms/offset | number | Required\npaymentTerms/percent | number | Required\ninboundGateway | string (*ref `_id`*) | Optional\ninboundVersion | number | Required (default: `0`)\noutboundGateways | array (*ref `_id`*) | 0..*\noutboundVersion | number | Required (default: `0`)\npublicationStatus | number (*enum `PublicationStatus`*) | Required (default: `PublicationStatus.Ingested`)\nisActive | boolean | Optional (default: `true`)\n\n#### `ContractType` enum\n\nName | Value\n--- | ---\nNormal | 1\nGuaranteed | 2\nOnRequest | 4\n\n#### `Opacity` enum\n\nName | Value\n--- | ---\nHotelOnly | 1\nPackage | 2\nDynamic | 4\n\n#### `PricingStrategy` enum\n\nName | Value\n--- | ---\nFixed | 1\nVariable | 2\n\n#### `RestrictionType` enum\n\nName | Value\n--- | ---\nDate | 1\nStay | 2\nOccupancy | 4\nWeekDay | 8\nBoard | 16\nPeriod| 32\n\n#### `Operator` enum\n\nName | Value\n--- | ---\nAnd | 1\nOr | 2\n\n#### `DayStrategy` enum\n\nName | Value\n--- | ---\nArrival | 1\nDeparture | 2\nStay | 4\nStrict | 8\n\n#### `SourceStrategy` enum\n\nName | Value\n--- | ---\nHotel | 1\nFlight | 2\n\n#### `DurationStrategy` enum\n\nName | Value\n--- | ---\nStay | 1\nStrict | 2\nPaid | 4\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n\n#### `PaymentStrategy` enum\n\nName | Value\n--- | ---\nBooking | 1\nCheckIn | 2\nCheckOut | 4\n\n#### `PublicationStatus` enum\n\nName | Value\n--- | ---\nDraft | 1\nIngested | 2\nQueued | 4\nPublished | 8\nWithdrawn | 16\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"906ea9b0-f3fe-488d-87aa-0fd2f3fee20b"},{"name":"Hotel charge plans","item":[{"name":"List or search hotel charge plans","id":"1bf560aa-8c93-4f95-84b3-34264f8a49ac","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/charge-plans?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","charge-plans"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel charge plans.\r\n* Scopes required: `read:contracts--hotelChargePlan`, `read:contracts--hotelChargePlan--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel charge plans matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"code\": \"AA\",\r\n\t\t\t\"contract\": \"100000000000000000000001\",\r\n\t\t\t\"gatewayReferences\": [],\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000002\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n\t\t\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\t\t\"restrictions\": [],\r\n\t\t\t\"opacity\": 1,\r\n\t        \"isNonRefundable\": false,\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n            \"code\": \"AB\",\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"gatewayReferences\": [],\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000002\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n\t\t\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\t\t\"restrictions\": [],\r\n\t\t\t\"opacity\": 1,\r\n\t        \"isNonRefundable\": false,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"1bf560aa-8c93-4f95-84b3-34264f8a49ac"},{"name":"Create hotel charge plans","id":"ea81037a-d330-4973-9406-1c61fd7bdc2e","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n        \"code\": \"AA\",\r\n\t\t\"gatewayReferences\": [],\r\n\t    \"markets\": [],\r\n\t    \"isForAllMarkets\": true,\r\n\t    \"exclusiveCountries\": null,\r\n\t    \"vendors\": [],\r\n\t    \"isForAllVendors\": true,\r\n\t    \"isOffline\": false,\r\n\t    \"baseCurrency\": \"100000000000000000000002\",\r\n\t    \"convertibleCurrencies\": null,\r\n\t\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\t\"restrictions\": [],\r\n\t\t\"opacity\": 1,\r\n        \"isNonRefundable\": false\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/charge-plans","description":"* Creates a hotel charge plan(s).\r\n* Scopes required: `create:contracts--hotelChargePlan`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel charge plan(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"code\": \"AA\",\r\n\t\t\t\"contract\": \"100000000000000000000001\",\r\n\t\t\t\"gatewayReferences\": [],\r\n\t\t    \"markets\": [],\r\n\t\t    \"isForAllMarkets\": true,\r\n\t\t    \"exclusiveCountries\": null,\r\n\t\t    \"vendors\": [],\r\n\t\t    \"isForAllVendors\": true,\r\n\t\t    \"isOffline\": false,\r\n\t\t    \"baseCurrency\": \"100000000000000000000002\",\r\n\t\t    \"convertibleCurrencies\": null,\r\n\t\t\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\t\t\"restrictions\": [],\r\n\t\t\t\"opacity\": 1,\r\n\t        \"isNonRefundable\": false,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"ea81037a-d330-4973-9406-1c61fd7bdc2e"},{"name":"Get a hotel charge plan","id":"18e23832-eb81-4840-8f6a-0626d6fa012b","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/charge-plans/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","charge-plans","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel charge plan.\r\n* Scopes required: `read:contracts--hotelChargePlan`, `read:contracts--hotelChargePlan--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel charge plan.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"code\": \"AA\",\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"gatewayReferences\": [],\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000002\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\"restrictions\": [],\r\n\t\"opacity\": 1,\r\n    \"isNonRefundable\": false,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"18e23832-eb81-4840-8f6a-0626d6fa012b"},{"name":"Update a hotel charge plan","id":"0534d970-09b1-405a-add6-7d61a7cb7009","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"AA\",\r\n\t\"gatewayReferences\": [],\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000002\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\"restrictions\": [],\r\n\t\"opacity\": 1,\r\n    \"isNonRefundable\": false\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/charge-plans/{{id}}","description":"* Updates a hotel charge plan.\r\n* Scopes required: `update:contracts--hotelChargePlan`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel charge plan.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"code\": \"AA\",\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"gatewayReferences\": [],\r\n    \"markets\": [],\r\n    \"isForAllMarkets\": true,\r\n    \"exclusiveCountries\": null,\r\n    \"vendors\": [],\r\n    \"isForAllVendors\": true,\r\n    \"isOffline\": false,\r\n    \"baseCurrency\": \"100000000000000000000002\",\r\n    \"convertibleCurrencies\": null,\r\n\t\"baseBoard\": \"100000000000000000000003\",\r\n\t\"restrictions\": [],\r\n\t\"opacity\": 1,\r\n    \"isNonRefundable\": false,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"0534d970-09b1-405a-add6-7d61a7cb7009"},{"name":"Delete a hotel charge plan","id":"d8964d59-3822-494c-ac98-5680633ddd66","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/charge-plans/{{id}}","description":"* Deletes (deactivates) a hotel charge plan.\r\n* Scopes required: `delete:contracts--hotelChargePlan`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"d8964d59-3822-494c-ac98-5680633ddd66"}],"id":"9aff4246-542c-487f-ad24-2d7224785d3d","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\ncode | string | Required\ncontract | string (*ref `_id`*) | Required (*route param `contractId`*)\ngatewayReferences | array (*object*) | 0..*\ngatewayReferences/gateway | string (*ref `_id`*) | Required\ngatewayReferences/reference | string | Required\nmarkets | array (*ref `_id`*) | 0..*\nisForAllMarkets | boolean | Required (default: `false`)\nexclusiveCountries | array (*ref `_id`*) | 0..*\nvendors | array (*ref `_id`*) | 0..*\nisForAllVendors | boolean | Required (default: `false`)\nisOffline | boolean | Required (default: `false`)\nbaseCurrency | string (*ref `_id`*) | Required\nconvertibleCurrencies | array (*ref `_id`*) | 0..*\nbaseBoard | string (*ref `_id`*) | Required\nrestrictions | array (*object*) | 0..*\nrestrictions/type | number (*enum `RestrictionType`*) | Required\nrestrictions/isNegation | boolean | Required (default: `false`)\nrestrictions/isCondition | boolean | Required (default: `true`)\nrestrictions/operator | number (*enum `Operator`*) | Required (default: `Operator.Or`)\nrestrictions/cutOff | number | Optional\nrestrictions/inventoryStatus | number | Optional\nrestrictions/elements | array (*object*) | 1..*\nrestrictions/elements/dayStrategy | number (*enum `DayStrategy`*) | Optional\nrestrictions/elements/sourceStrategy | number (*enum `SourceStrategy`*) | Optional\nrestrictions/elements/durationStrategy | number (*enum `DurationStrategy`*) | Optional\nrestrictions/elements/bookingStartAtUtc | date | Optional\nrestrictions/elements/bookingEndAtUtc | date | Optional\nrestrictions/elements/minBookingOffset | number | Optional\nrestrictions/elements/maxBookingOffset | number | Optional\nrestrictions/elements/startAtUtc | date | Optional\nrestrictions/elements/endAtUtc | date | Optional\nrestrictions/elements/occurrences | number | Optional\nrestrictions/elements/minLoS | number | Optional\nrestrictions/elements/maxLoS | number | Optional\nrestrictions/elements/sequentialLoS | number | Optional\nrestrictions/elements/occupancyType | string (*enum `OccupancyType`*) | Optional\nrestrictions/elements/minCount | number | Optional\nrestrictions/elements/maxCount | number | Optional\nrestrictions/elements/minAge | number | Optional\nrestrictions/elements/maxAge | number | Optional\nrestrictions/elements/onMonday | boolean | Optional\nrestrictions/elements/onTuesday | boolean | Optional\nrestrictions/elements/onWednesday | boolean | Optional\nrestrictions/elements/onThursday | boolean | Optional\nrestrictions/elements/onFriday | boolean | Optional\nrestrictions/elements/onSaturday | boolean | Optional\nrestrictions/elements/onSunday | boolean | Optional\nrestrictions/elements/board | string (*ref `_id`*) | Optional\nrestrictions/elements/period | string | Optional\nopacity | number (*enum `Opacity`*) | Required (default: `Opacity.HotelOnly`)\nisNonRefundable | boolean | Required\nisActive | boolean | Optional (default: `true`)\n\n#### `RestrictionType` enum\n\nName | Value\n--- | ---\nDate | 1\nStay | 2\nOccupancy | 4\nWeekDay | 8\nBoard | 16\nPeriod| 32\n\n#### `Operator` enum\n\nName | Value\n--- | ---\nAnd | 1\nOr | 2\n\n#### `DayStrategy` enum\n\nName | Value\n--- | ---\nArrival | 1\nDeparture | 2\nStay | 4\nStrict | 8\n\n#### `SourceStrategy` enum\n\nName | Value\n--- | ---\nHotel | 1\nFlight | 2\n\n#### `DurationStrategy` enum\n\nName | Value\n--- | ---\nStay | 1\nStrict | 2\nPaid | 4\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n\n#### `Opacity` enum\n\nName | Value\n--- | ---\nHotelOnly | 1\nPackage | 2\nDynamic | 4\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"9aff4246-542c-487f-ad24-2d7224785d3d"},{"name":"Hotel base charges","item":[{"name":"List or search hotel base charges","id":"01947b47-f851-46c1-aa4b-2858cac75d38","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/base-charges?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","base-charges"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel base charges.\r\n* Scopes required: `read:contracts--hotelBaseCharge`, `read:contracts--hotelBaseCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel base charges matching criterias.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"amount\": 100,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"amount\": 110,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"amount\": 200,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"amount\": 220,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 100,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 110,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 200,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 220,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"01947b47-f851-46c1-aa4b-2858cac75d38"},{"name":"Create hotel base charges","id":"2aa8dc4c-3eb9-4298-bf6a-22359da42ada","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\"prices\": [\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 100,\r\n                \"minLoS\": 1,\r\n                \"maxLoS\": 21\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 110,\r\n                \"minLoS\": 1,\r\n                \"maxLoS\": 21\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/base-charges","description":"* Creates a hotel base charge(s).\r\n* Scopes required: `create:contracts--hotelBaseCharge`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel base charge(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 100,\r\n                    \"minLoS\": 1,\r\n                    \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 110,\r\n                    \"minLoS\": 1,\r\n                    \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"2aa8dc4c-3eb9-4298-bf6a-22359da42ada"},{"name":"Get a hotel base charge","id":"7d1f0f31-fd29-473b-a4f5-5a2b11d75de1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/base-charges/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","base-charges","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel base charge.\r\n* Scopes required: `read:contracts--hotelBaseCharge`, `read:contracts--hotelBaseCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel base charge.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"period\": \"A\",\r\n\t\t\t\"amount\": 100,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"period\": \"B\",\r\n\t\t\t\"amount\": 110,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n\t],\r\n    \"isActive\": true\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n\t],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"7d1f0f31-fd29-473b-a4f5-5a2b11d75de1"},{"name":"Update a hotel base charge","id":"9a9ad3d1-f21a-45dc-bb00-65d6cb1b5270","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t}\r\n\t]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/base-charges/{{id}}","description":"* Updates a hotel base charge.\r\n* Scopes required: `update:contracts--hotelBaseCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel base charge.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t}\r\n\t],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"9a9ad3d1-f21a-45dc-bb00-65d6cb1b5270"},{"name":"Delete a hotel base charge","id":"b37db208-7035-4c65-9c52-ebd3d0fc1bda","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/base-charges/{{id}}","description":"* Deletes (deactivates) a hotel base charge.\r\n* Scopes required: `delete:contracts--hotelBaseCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"b37db208-7035-4c65-9c52-ebd3d0fc1bda"}],"id":"fcf474a7-024c-42c1-973f-8525e0beb2b3","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\nroom | string (*ref `_id`*) | Required\nprices | array (*object*) | 1..*\nprices/startAtUtc | Date | Optional\nprices/endAtUtc | Date | Optional\nprices/period | string | Optional\nprices/amount | number | Optional\nprices/minLoS | number | Optional\nprices/maxLoS | number | Optional\nisActive | boolean | Optional (default: `true`)\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"fcf474a7-024c-42c1-973f-8525e0beb2b3"},{"name":"Hotel override base charges","item":[{"name":"List or search hotel override base charges","id":"6969757f-7e97-4f1c-a093-f24e30b9bf06","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/override-base-charges?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","override-base-charges"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel override base charges.\r\n* Scopes required: `read:contracts--hotelOverrideBaseCharge`, `read:contracts--hotelOverrideBaseCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel override base charges matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 100,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 110,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 200,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 220,\r\n\t\t\t        \"minLoS\": 1,\r\n\t\t\t        \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"6969757f-7e97-4f1c-a093-f24e30b9bf06"},{"name":"Create hotel override base charges","id":"c92ea593-6ede-4ccf-ac18-52f61a953758","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\"prices\": [\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 100,\r\n                \"minLoS\": 1,\r\n                \"maxLoS\": 21\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 110,\r\n                \"minLoS\": 1,\r\n                \"maxLoS\": 21\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/5baa56145cca9618a8d516e8/override-base-charges","description":"* Creates a hotel override base charge(s).\r\n* Scopes required: `create:contracts--hotelOverrideBaseCharge`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel override base charge(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 100,\r\n                    \"minLoS\": 1,\r\n                    \"maxLoS\": 21\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 110,\r\n                    \"minLoS\": 1,\r\n                    \"maxLoS\": 21\r\n\t\t\t\t}\r\n\t\t\t],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"c92ea593-6ede-4ccf-ac18-52f61a953758"},{"name":"Get a hotel override base charge","id":"ea69d3f6-d5c9-4d89-b073-8ab8c3325ba3","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/override-base-charges/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","override-base-charges","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel override base charge.\r\n* Scopes required: `read:contracts--hotelOverrideBaseCharge`, `read:contracts--hotelOverrideBaseCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel override base charge.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n\t        \"minLoS\": 1,\r\n\t        \"maxLoS\": 21\r\n\t\t}\r\n\t],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"ea69d3f6-d5c9-4d89-b073-8ab8c3325ba3"},{"name":"Update a hotel override base charge","id":"a31c01f2-8755-49d6-ad62-2578331775c1","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t}\r\n\t]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/override-base-charges/{{id}}","description":"* Updates a hotel override base charge.\r\n* Scopes required: `update:contracts--hotelOverrideBaseCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel override base charge.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 100,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 110,\r\n            \"minLoS\": 1,\r\n            \"maxLoS\": 21\r\n\t\t}\r\n\t],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"a31c01f2-8755-49d6-ad62-2578331775c1"},{"name":"Delete a hotel override base charge","id":"97605eb4-d3bf-4fd1-aea6-72456a7c907f","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/override-base-charges/{{id}}","description":"* Deletes (deactivates) a hotel override base charge.\r\n* Scopes required: `delete:contracts--hotelOverrideBaseCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"97605eb4-d3bf-4fd1-aea6-72456a7c907f"}],"id":"55e12754-d3ad-41fd-8f23-63bcb51ea7ee","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\nroom | string (*ref `_id`*) | Required\nprices | array (*object*) | 1..*\nprices/startAtUtc | Date | Optional\nprices/endAtUtc | Date | Optional\nprices/period | string | Optional\nprices/amount | number | Optional\nprices/minLoS | number | Optional\nprices/maxLoS | number | Optional\nisActive | boolean | Optional (default: `true`)\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"55e12754-d3ad-41fd-8f23-63bcb51ea7ee"},{"name":"Hotel board charges","item":[{"name":"List or search hotel board charges","id":"42020bf5-3660-478a-97a8-5827ca7fcec9","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/board-charges?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","board-charges"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel board charges.\r\n* Scopes required: `read:contracts--hotelBoardCharge`, `read:contracts--hotelBoardCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel board charges matching criterias.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"amount\": 10\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"amount\": 11\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t    \"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t        \t\"occupancyType\": \"F/P\",\r\n\t\t        \t\"minCount\": 1,\r\n\t\t        \t\"maxCount\": 1\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\t\"room\": \"100000000000000000000004\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"amount\": 20\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"amount\": 22\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t    \"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t        \t\"occupancyType\": \"F/P\",\r\n\t\t        \t\"minCount\": 1,\r\n\t\t        \t\"maxCount\": 1\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 10\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 11\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t    \"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t        \t\"occupancyType\": \"F/P\",\r\n\t\t        \t\"minCount\": 1,\r\n\t\t        \t\"maxCount\": 1\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\t\"room\": \"100000000000000000000004\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 20\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 22\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t    \"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t        \t\"occupancyType\": \"F/P\",\r\n\t\t        \t\"minCount\": 1,\r\n\t\t        \t\"maxCount\": 1\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"42020bf5-3660-478a-97a8-5827ca7fcec9"},{"name":"Create hotel board charges","id":"ad5d5cb1-06c0-4011-a867-64191b76f5de","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\"prices\": [\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 10\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\"amount\": 11\r\n\t\t\t}\r\n\t\t],\r\n\t    \"occupancyRestrictions\": [\r\n\t    \t{\r\n\t        \t\"occupancyType\": \"F/P\",\r\n\t        \t\"minCount\": 1,\r\n\t        \t\"maxCount\": 1\r\n\t    \t}\r\n\t    ],\r\n\t    \"loS\": 1\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/board-charges","description":"* Creates a hotel board charge(s).\r\n* Scopes required: `create:contracts--hotelBoardCharge`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel board charge(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n\t\t\t\"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"board\": \"100000000000000000000002\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 10\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"amount\": 11\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t    \"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t        \t\"occupancyType\": \"F/P\",\r\n\t\t        \t\"minCount\": 1,\r\n\t\t        \t\"maxCount\": 1\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"ad5d5cb1-06c0-4011-a867-64191b76f5de"},{"name":"Get a hotel board charge","id":"052ef6a5-1809-43a4-8dd8-a0b064a98359","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/board-charges/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","board-charges","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel board charge.\r\n* Scopes required: `read:contracts--hotelBoardCharge`, `read:contracts--hotelBoardCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel board charge.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"board\": \"100000000000000000000002\",\r\n\t\"room\": \"100000000000000000000003\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"period\": \"A\",\r\n\t\t\t\"amount\": 10\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"period\": \"B\",\r\n\t\t\t\"amount\": 11\r\n\t\t}\r\n\t],\r\n    \"occupancyRestrictions\": [\r\n    \t{\r\n        \t\"occupancyType\": \"F/P\",\r\n        \t\"minCount\": 1,\r\n        \t\"maxCount\": 1\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"board\": \"100000000000000000000002\",\r\n\t\"room\": \"100000000000000000000003\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 10\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 11\r\n\t\t}\r\n\t],\r\n    \"occupancyRestrictions\": [\r\n    \t{\r\n        \t\"occupancyType\": \"F/P\",\r\n        \t\"minCount\": 1,\r\n        \t\"maxCount\": 1\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"052ef6a5-1809-43a4-8dd8-a0b064a98359"},{"name":"Update a hotel board charge","id":"175c41bb-0ac9-4cd8-be29-9c89638fa441","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"board\": \"100000000000000000000002\",\r\n\t\"room\": \"100000000000000000000003\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 10\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 11\r\n\t\t}\r\n\t],\r\n    \"occupancyRestrictions\": [\r\n    \t{\r\n        \t\"occupancyType\": \"F/P\",\r\n        \t\"minCount\": 1,\r\n        \t\"maxCount\": 1\r\n    \t}\r\n    ],\r\n    \"loS\": 1\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/board-charges/{{id}}","description":"* Updates a hotel board charge.\r\n* Scopes required: `update:contracts--hotelBoardCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel board charge.\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"board\": \"100000000000000000000002\",\r\n\t\"room\": \"100000000000000000000003\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"amount\": 10\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"amount\": 11\r\n\t\t}\r\n\t],\r\n    \"occupancyRestrictions\": [\r\n    \t{\r\n        \t\"occupancyType\": \"F/P\",\r\n        \t\"minCount\": 1,\r\n        \t\"maxCount\": 1\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"175c41bb-0ac9-4cd8-be29-9c89638fa441"},{"name":"Delete a hotel board charge","id":"87e4d12c-dd2c-49c2-86e5-5ffc0896db09","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/board-charges/{{id}}","description":"* Deletes (deactivates) a hotel board charge.\r\n* Scopes required: `delete:contracts--hotelBoardCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"87e4d12c-dd2c-49c2-86e5-5ffc0896db09"}],"id":"d3a441fd-7710-4bc4-9b02-93e3e8e8c5e2","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\nboard | string (*ref `_id`*) | Required\nroom | string (*ref `_id`*) | Required\nprices | array (*object*) | 1..*\nprices/startAtUtc | Date | Optional\nprices/endAtUtc | Date | Optional\nprices/period | string | Optional\nprices/amount | number | Optional\nprices/percent | number | Optional\nprices/minLoS | number | Optional\nprices/maxLoS | number | Optional\noccupancyRestrictions | array (*object*) | 1..*\noccupancyRestrictions/occupancyType | string (*enum `OccupancyType`*) | Optional\noccupancyRestrictions/minCount | number | Optional\noccupancyRestrictions/maxCount | number | Optional\noccupancyRestrictions/minAge | number | Optional\noccupancyRestrictions/maxAge | number | Optional\nloS | number | Required (default: `1`)\nisActive | boolean | Optional (default: `true`)\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"d3a441fd-7710-4bc4-9b02-93e3e8e8c5e2"},{"name":"Hotel occupancy charges","item":[{"name":"List or search hotel occupancy charges","id":"db5d0f33-166b-4b4d-9bd5-c06ee68fa3ba","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/occupancy-charges?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","occupancy-charges"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel occupancy charges.\r\n* Scopes required: `read:contracts--hotelOccupancyCharge`, `read:contracts--hotelOccupancyCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel occupancy charges matching criterias.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"boardStrategy\": 2,\r\n\t\t\t\"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t\t        \"occupancyType\": \"CHD\",\r\n\t\t\t        \"minCount\": 1,\r\n\t\t\t        \"maxCount\": 1,\r\n\t\t\t        \"minAge\": 2,\r\n\t\t\t        \"maxAge\": 11.99\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"A\",\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"period\": \"B\",\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"boardStrategy\": 2,\r\n\t\t\t\"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t\t        \"occupancyType\": \"CHD\",\r\n\t\t\t        \"minCount\": 1,\r\n\t\t\t        \"maxCount\": 1,\r\n\t\t\t        \"minAge\": 2,\r\n\t\t\t        \"maxAge\": 11.99\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"boardStrategy\": 2,\r\n\t\t\t\"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t\t        \"occupancyType\": \"CHD\",\r\n\t\t\t        \"minCount\": 1,\r\n\t\t\t        \"maxCount\": 1,\r\n\t\t\t        \"minAge\": 2,\r\n\t\t\t        \"maxAge\": 11.99\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000003\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"boardStrategy\": 2,\r\n\t\t\t\"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t\t        \"occupancyType\": \"CHD\",\r\n\t\t\t        \"minCount\": 1,\r\n\t\t\t        \"maxCount\": 1,\r\n\t\t\t        \"minAge\": 2,\r\n\t\t\t        \"maxAge\": 11.99\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"db5d0f33-166b-4b4d-9bd5-c06ee68fa3ba"},{"name":"Create hotel occupancy charges","id":"b4b0c822-59d2-42f5-84a8-af7cd272d30e","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\"prices\": [\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\"percent\": 25\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\"percent\": 50\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"boardStrategy\": 2,\r\n\t\t\"occupancyRestrictions\": [\r\n\t    \t{\r\n\t\t        \"occupancyType\": \"CHD\",\r\n\t\t        \"minCount\": 1,\r\n\t\t        \"maxCount\": 1,\r\n\t\t        \"minAge\": 2,\r\n\t\t        \"maxAge\": 11.99\r\n\t    \t}\r\n\t    ],\r\n\t    \"loS\": 1\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/occupancy-charges","description":"* Creates a hotel occupancy charge(s).\r\n* Scopes required: `create:contracts--hotelOccupancyCharge`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel occupancy charge(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n\t\t    \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"room\": \"100000000000000000000002\",\r\n\t\t\t\"prices\": [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 25\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\t\t\"percent\": 50\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\t\"boardStrategy\": 2,\r\n\t\t\t\"occupancyRestrictions\": [\r\n\t\t    \t{\r\n\t\t\t        \"occupancyType\": \"CHD\",\r\n\t\t\t        \"minCount\": 1,\r\n\t\t\t        \"maxCount\": 1,\r\n\t\t\t        \"minAge\": 2,\r\n\t\t\t        \"maxAge\": 11.99\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"loS\": 1,\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"b4b0c822-59d2-42f5-84a8-af7cd272d30e"},{"name":"Get a hotel occupancy charge","id":"18e02dc9-1517-4e38-938f-1d1bf170913c","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/occupancy-charges/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","occupancy-charges","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel occupancy charge.\r\n* Scopes required: `read:contracts--hotelOccupancyCharge`, `read:contracts--hotelOccupancyCharge--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel occupancy charge.\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"period\": \"A\",\r\n\t\t\t\"percent\": 25\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"period\": \"B\",\r\n\t\t\t\"percent\": 50\r\n\t\t}\r\n\t],\r\n\t\"boardStrategy\": 2,\r\n\t\"occupancyRestrictions\": [\r\n    \t{\r\n\t        \"occupancyType\": \"CHD\",\r\n\t        \"minCount\": 1,\r\n\t        \"maxCount\": 1,\r\n\t        \"minAge\": 2,\r\n\t        \"maxAge\": 11.99\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n\r\n> When `chargePlan.contract.pricingStrategy` === `PricingStrategy.Variable`\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"percent\": 25\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"percent\": 50\r\n\t\t}\r\n\t],\r\n\t\"boardStrategy\": 2,\r\n\t\"occupancyRestrictions\": [\r\n    \t{\r\n\t        \"occupancyType\": \"CHD\",\r\n\t        \"minCount\": 1,\r\n\t        \"maxCount\": 1,\r\n\t        \"minAge\": 2,\r\n\t        \"maxAge\": 11.99\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"18e02dc9-1517-4e38-938f-1d1bf170913c"},{"name":"Update a hotel occupancy charge","id":"440dc4af-9fdd-423a-baa0-9ae196a8d22f","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"percent\": 25\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"percent\": 50\r\n\t\t}\r\n\t],\r\n\t\"boardStrategy\": 2,\r\n\t\"occupancyRestrictions\": [\r\n    \t{\r\n\t        \"occupancyType\": \"CHD\",\r\n\t        \"minCount\": 1,\r\n\t        \"maxCount\": 1,\r\n\t        \"minAge\": 2,\r\n\t        \"maxAge\": 11.99\r\n    \t}\r\n    ],\r\n    \"loS\": 1\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/occupancy-charges/{{id}}","description":"* Updates a hotel occupancy charge.\r\n* Scopes required: `update:contracts--hotelOccupancyCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel occupancy charge.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"room\": \"100000000000000000000002\",\r\n\t\"prices\": [\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t\t\"percent\": 25\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t\t\"percent\": 50\r\n\t\t}\r\n\t],\r\n\t\"boardStrategy\": 2,\r\n\t\"occupancyRestrictions\": [\r\n    \t{\r\n\t        \"occupancyType\": \"CHD\",\r\n\t        \"minCount\": 1,\r\n\t        \"maxCount\": 1,\r\n\t        \"minAge\": 2,\r\n\t        \"maxAge\": 11.99\r\n    \t}\r\n    ],\r\n    \"loS\": 1,\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"440dc4af-9fdd-423a-baa0-9ae196a8d22f"},{"name":"Delete a hotel occupancy charge","id":"e2919f6d-7dfc-4b6e-910f-e789a636f5b7","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/occupancy-charges/{{id}}","description":"* Deletes (deactivates) a hotel occupancy charge.\r\n* Scopes required: `delete:contracts--hotelOccupancyCharge`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"e2919f6d-7dfc-4b6e-910f-e789a636f5b7"}],"id":"a80527e0-905e-43d9-a7c1-f5e6b7280aff","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\nroom | string (*ref `_id`*) | Required\nroomLookup | string (*ref `_id`*) | Optional\nprices | array (*object*) | 1..*\nprices/startAtUtc | Date | Optional\nprices/endAtUtc | Date | Optional\nprices/period | string | Optional\nprices/amount | number | Optional\nprices/percent | number | Optional\nprices/minLoS | number | Optional\nprices/maxLoS | number | Optional\nboardStrategy | number (*enum `BoardStrategy`*) | Required (default: `BoardStrategy.Board`)\noccupancyRestrictions | array (*object*) | 1..*\noccupancyRestrictions/occupancyType | string (*enum `OccupancyType`*) | Optional\noccupancyRestrictions/minCount | number | Optional\noccupancyRestrictions/maxCount | number | Optional\noccupancyRestrictions/minAge | number | Optional\noccupancyRestrictions/maxAge | number | Optional\nloS | number | Required (default: `1`)\nisActive | boolean | Optional (default: `true`)\n\n#### `BoardStrategy` enum\n\nName | Value\n--- | ---\nBase | 1\nBoard | 2\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"a80527e0-905e-43d9-a7c1-f5e6b7280aff"},{"name":"Hotel cancellation terms","item":[{"name":"List or search hotel cancellation terms","id":"6042367a-043e-44fc-99db-4fbf267cdd1a","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/cancellation-terms?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","cancellation-terms"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel cancellation terms.\r\n* Scopes required: `read:contracts--hotelCancellationTerm`, `read:contracts--hotelCancellationTerm--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel cancellation terms matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"chargePlan\": \"100000000000000000000001\",\r\n\t\t    \"strategy\": 2,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"offset\": 7,\r\n\t\t        \t\"percent\": 100\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t    \"strategy\": 2,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"offset\": 14,\r\n\t\t        \t\"percent\": 50\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"6042367a-043e-44fc-99db-4fbf267cdd1a"},{"name":"Create hotel cancellation terms","id":"19f997d5-f18d-4582-92ae-3fd2941d54ca","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t    \"strategy\": 2,\r\n\t    \"grades\": [\r\n\t    \t{\r\n\t        \t\"offset\": 7,\r\n\t        \t\"percent\": 100\r\n\t    \t}\r\n\t    ]\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/cancellation-terms","description":"* Creates a hotel cancellation term(s).\r\n* Scopes required: `create:contracts--hotelCancellationTerm`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel cancellation term(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"chargePlan\": \"100000000000000000000001\",\r\n\t\t    \"strategy\": 2,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"offset\": 7,\r\n\t\t        \t\"percent\": 100\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"19f997d5-f18d-4582-92ae-3fd2941d54ca"},{"name":"Get a hotel cancellation term","id":"5e9d1688-2764-43cd-a192-0eb53e9b0f19","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/cancellation-terms/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","cancellation-terms","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel cancellation term.\r\n* Scopes required: `read:contracts--hotelCancellationTerm`, `read:contracts--hotelCancellationTerm--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel cancellation term.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"chargePlan\": \"100000000000000000000001\",\r\n    \"strategy\": 2,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"offset\": 7,\r\n        \t\"percent\": 100\r\n    \t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"5e9d1688-2764-43cd-a192-0eb53e9b0f19"},{"name":"Update a hotel cancellation term","id":"987b9bd7-84d5-4797-8a01-7e38ab5bdd7e","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"strategy\": 2,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"offset\": 7,\r\n        \t\"percent\": 100\r\n    \t}\r\n    ]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/cancellation-terms/{{id}}","description":"* Updates a hotel cancellation term.\r\n* Scopes required: `update:contracts--hotelCancellationTerm`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel cancellation term.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"chargePlan\": \"100000000000000000000001\",\r\n    \"strategy\": 2,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"offset\": 7,\r\n        \t\"percent\": 100\r\n    \t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"987b9bd7-84d5-4797-8a01-7e38ab5bdd7e"},{"name":"Delete a hotel cancellation term","id":"7f207ba8-8358-460d-b5c1-d8dfe7514ba9","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/cancellation-terms/{{id}}","description":"* Deletes (deactivates) a hotel cancellation term.\r\n* Scopes required: `delete:contracts--hotelCancellationTerm`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"7f207ba8-8358-460d-b5c1-d8dfe7514ba9"}],"id":"dab718e9-8f7a-4def-a453-3894f2c1e4fb","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\nstrategy | number (*enum `CancellationStrategy`*) | Required\ngrades | array (*object*) | 1..*\ngrades/startAtUtc | Date | Optional\ngrades/endAtUtc | Date | Optional\ngrades/period | string | Optional\ngrades/offset | number | Required\ngrades/amount | number | Optional\ngrades/percent | number | Optional\nisActive | boolean | Optional (default: `true`)\n\n#### `CancellationStrategy` enum\n\nName | Value\n--- | ---\nBooking | 1\nCheckIn | 2\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"dab718e9-8f7a-4def-a453-3894f2c1e4fb"},{"name":"Hotel fees","item":[{"name":"List or search hotel fees","id":"938498ac-f1f8-409c-adc8-b6d07d533028","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/fees?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","fees"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel fees.\r\n* Scopes required: `read:contracts--hotelFee`, `read:contracts--hotelFee--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel fees matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"type\": 1,\r\n\t\t    \"strategy\": 1,\r\n\t\t    \"isPerPax\": false,\r\n\t\t    \"interval\": 1,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"percent\": 2.5\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        },\r\n        {\r\n            \"_id\": \"000000000000000000000002\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t    \"type\": 8,\r\n\t\t    \"strategy\": 2,\r\n\t\t    \"isPerPax\": false,\r\n\t\t    \"interval\": 2,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"amount\": 3\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"938498ac-f1f8-409c-adc8-b6d07d533028"},{"name":"Create hotel fees","id":"c3701004-33c8-458e-801a-0141a3938fda","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n        \"type\": 1,\r\n\t    \"strategy\": 1,\r\n\t    \"isPerPax\": false,\r\n\t    \"interval\": 1,\r\n\t    \"grades\": [\r\n\t    \t{\r\n\t        \t\"percent\": 2.5\r\n\t    \t}\r\n\t    ]\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/fees","description":"* Creates a hotel fee(s).\r\n* Scopes required: `create:contracts--hotelFee`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel fee(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n\t\t\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\t\t\"type\": 1,\r\n\t\t    \"strategy\": 1,\r\n\t\t    \"isPerPax\": false,\r\n\t\t    \"interval\": 1,\r\n\t\t    \"grades\": [\r\n\t\t    \t{\r\n\t\t        \t\"percent\": 2.5\r\n\t\t    \t}\r\n\t\t    ],\r\n\t\t    \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"c3701004-33c8-458e-801a-0141a3938fda"},{"name":"Get a hotel fee","id":"851eae0e-ddb8-42ff-a279-f8186baf54c9","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/fees/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-charge-plans","{{chargePlanId}}","fees","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel fee.\r\n* Scopes required: `read:contracts--hotelFee`, `read:contracts--hotelFee--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel fee.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"type\": 1,\r\n    \"strategy\": 1,\r\n    \"isPerPax\": false,\r\n    \"interval\": 1,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"percent\": 2.5\r\n    \t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"851eae0e-ddb8-42ff-a279-f8186baf54c9"},{"name":"Update a hotel fee","id":"5b727627-8b48-4c0d-94d0-6935416015ad","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"type\": 1,\r\n    \"strategy\": 1,\r\n    \"isPerPax\": false,\r\n    \"interval\": 1,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"percent\": 2.5\r\n    \t}\r\n    ]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/fees/{{id}}","description":"* Updates a hotel fee.\r\n* Scopes required: `update:contracts--hotelFee`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel fee.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n\t\"chargePlan\": \"100000000000000000000001\",\r\n\t\"type\": 1,\r\n    \"strategy\": 1,\r\n    \"isPerPax\": false,\r\n    \"interval\": 1,\r\n    \"grades\": [\r\n    \t{\r\n        \t\"percent\": 2.5\r\n    \t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"5b727627-8b48-4c0d-94d0-6935416015ad"},{"name":"Delete a hotel fee","id":"a7a8898b-ce50-4caa-a983-45dbb730498f","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-charge-plans/{{chargePlanId}}/fees/{{id}}","description":"* Deletes (deactivates) a hotel fee.\r\n* Scopes required: `delete:contracts--hotelFee`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"a7a8898b-ce50-4caa-a983-45dbb730498f"}],"id":"f75d9f4c-4cb4-4d92-bced-ff72673dc4f3","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nchargePlan | string (*ref `_id`*) | Required (*route param `chargePlanId`*)\ntype | number (*enum `FeeType`*) | Required\nstrategy | number (*enum `FeeStrategy`*) | Required\nisPerPax | boolean | Required\ninterval | number (*enum `VariableInterval`*) | Required (default: `VariableInterval.Night`)\ngrades | array (*object*) | 1..*\ngrades/startAtUtc | Date | Optional\ngrades/endAtUtc | Date | Optional\ngrades/amount | number | Optional\ngrades/percent | number | Optional\nisActive | boolean | Optional (default: `true`)\n\n#### `FeeType` enum\n\nName | Value\n--- | ---\nContribution | 1\nMarkup | 2\nHandlingFee | 4\nSystemFee | 8\n\n#### `FeeStrategy` enum\n\nName | Value\n--- | ---\nTotal | 1\nPartial | 2\n\n#### `VariableInterval` enum\n\nName | Value\n--- | ---\nNight | 1\nWeek | 2\nStay | 4\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"f75d9f4c-4cb4-4d92-bced-ff72673dc4f3"},{"name":"Hotel variables","item":[{"name":"List or search hotel variables","id":"d567ccb7-76a9-4806-bd33-beac103803c3","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variables?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","variables"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel variables.\r\n* Scopes required: `read:contracts--hotelVariable`, `read:contracts--hotelVariable--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel variables matching criterias.\r\n\r\n> When `discount` is set (*indicating that the hotel variable is a discount*)\r\n\r\n```json\r\n{\r\n\t\"data\": [\r\n\t\t{\r\n    \t\t\"_id\": \"000000000000000000000001\",\r\n    \t\t\"type\": 1,\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n    \t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n    \t\t\"rooms\": [\r\n        \t\t\"100000000000000000000002\"\r\n    \t\t],\r\n    \t\t\"chargePlans\": [\r\n        \t\t\"100000000000000000000003\"\r\n    \t\t],\r\n    \t\t\"discount\": \"100000000000000000000004\",\r\n    \t\t\"service\": null,\r\n    \t\t\"restrictions\": [\r\n        \t\t{\r\n        \t\t\t\"type\": 1,\r\n        \t\t\t\"isNegation\": false,\r\n        \t\t\t\"isCondition\": true,\r\n        \t\t\t\"operator\": 1,\r\n        \t\t\t\"cutOff\": null,\r\n        \t\t\t\"inventoryStatus\": null,\r\n        \t\t\t\"elements\": [\r\n            \t\t\t{\r\n            \t\t\t\t\"dayStrategy\": 8,\r\n            \t\t\t\t\"sourceStrategy\": 1,\r\n            \t\t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n            \t\t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n        \t\t\t\t\t\"minBookingOffset\": null,\r\n        \t\t\t\t\t\"maxBookingOffset\": null,\r\n\t\t\t\t\t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n            \t\t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n            \t\t\t\t\"occurrences\": 1\r\n            \t\t\t}\r\n        \t\t\t]\r\n        \t\t}\r\n    \t\t],\r\n    \t\t\"reductions\": [\r\n        \t\t{\r\n        \t\t\t\"chargePlan\": \"100000000000000000000003\",\r\n        \t\t\t\"amount\": null,\r\n        \t\t\t\"percent\": 20,\r\n        \t\t\t\"isPerPax\": true,\r\n        \t\t\t\"interval\": 1,\r\n        \t\t\t\"strategy\": 2,\r\n        \t\t\t\"requiredNights\": null,\r\n        \t\t\t\"freeNights\": null,\r\n        \t\t\t\"loS\": 1,\r\n        \t\t\t\"constraints\": []\r\n        \t\t}\r\n    \t\t],\r\n    \t\t\"charges\": [],\r\n    \t\t\"isCumulative\": true,\r\n    \t\t\"isCombinable\": true,\r\n    \t\t\"compulsion\": 1,\r\n    \t\t\"paymentTerms\": [\r\n    \t\t\t{\r\n        \t\t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n        \t\t\t\"dueOffset\": null,\r\n        \t\t\t\"amount\": null,\r\n        \t\t\t\"percent\": 75\r\n        \t\t}\r\n    \t\t],\r\n    \t\t\"isActive\": true,\r\n    \t\t\"order\": 0\r\n\t\t}\r\n\t],\r\n\t\"hasMore\": false,\r\n\t\"totalCount\": 1\r\n}\r\n```\r\n\r\n> When `service` is set (*indicating that the hotel variable is a service*)\r\n\r\n```json\r\n{\r\n\t\"data\": [\r\n\t\t{\r\n    \t\t\"_id\": \"000000000000000000000001\",\r\n    \t\t\"type\": 2,\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"startAtUtc\": \"2018-05-01T00:00:00.000Z\",\r\n    \t\t\"endAtUtc\": \"2018-05-01T23:59:59.000Z\",\r\n    \t\t\"rooms\": [\r\n        \t\t\"100000000000000000000002\"\r\n    \t\t],\r\n    \t\t\"chargePlans\": [\r\n        \t\t\"100000000000000000000003\"\r\n    \t\t],\r\n    \t\t\"discount\": null,\r\n    \t\t\"service\": \"100000000000000000000005\",\r\n    \t\t\"restrictions\": [\r\n        \t\t{\r\n        \t\t\t\"type\": 1,\r\n        \t\t\t\"isNegation\": false,\r\n        \t\t\t\"isCondition\": true,\r\n        \t\t\t\"operator\": 1,\r\n        \t\t\t\"cutOff\": null,\r\n        \t\t\t\"inventoryStatus\": null,\r\n        \t\t\t\"elements\": [\r\n            \t\t\t{\r\n            \t\t\t\t\"dayStrategy\": 8,\r\n            \t\t\t\t\"sourceStrategy\": 1,\r\n            \t\t\t\t\"bookingStartAtUtc\": null,\r\n            \t\t\t\t\"bookingEndAtUtc\": null,\r\n            \t\t\t\t\"minBookingOffset\": null,\r\n            \t\t\t\t\"maxBookingOffset\": null,\r\n            \t\t\t\t\"startAtUtc\": \"2018-05-01T00:00:00.000Z\",\r\n            \t\t\t\t\"endAtUtc\": \"2018-05-01T23:59:59.000Z\",\r\n            \t\t\t\t\"occurrences\": 1\r\n            \t\t\t}\r\n        \t\t\t]\r\n        \t\t}\r\n    \t\t],\r\n    \t\t\"reductions\": [],\r\n    \t\t\"charges\": [\r\n        \t\t{\r\n        \t\t\t\"chargePlan\": \"100000000000000000000003\",\r\n        \t\t\t\"amount\": null,\r\n        \t\t\t\"percent\": 0,\r\n        \t\t\t\"isPerPax\": true,\r\n        \t\t\t\"interval\": 4,\r\n        \t\t\t\"loS\": 1,\r\n        \t\t\t\"constraints\": [\r\n        \t\t\t\t{\r\n            \t\t\t\t\"isNegation\": false,\r\n        \t\t\t\t\t\"type\": 4,\r\n        \t\t\t\t\t\"code\": null,\r\n            \t\t\t\t\"baseStrategy\": 2,\r\n            \t\t\t\t\"boardStrategy\": 2,\r\n            \t\t\t\t\"occupancyRestrictions\": [\r\n                \t\t\t\t{\r\n                \t\t\t\t\t\"occupancyType\": \"CHD\",\r\n                \t\t\t\t\t\"minCount\": null,\r\n                \t\t\t\t\t\"maxCount\": null,\r\n                \t\t\t\t\t\"minAge\": null,\r\n                \t\t\t\t\t\"maxAge\": 11.99\r\n                \t\t\t\t}\r\n            \t\t\t\t]\r\n            \t\t\t}\r\n        \t\t\t]\r\n        \t\t}\r\n    \t\t],\r\n    \t\t\"isCumulative\": false,\r\n    \t\t\"isCombinable\": false,\r\n    \t\t\"compulsion\": 1,\r\n    \t\t\"paymentTerms\": [],\r\n    \t\t\"isActive\": true,\r\n    \t\t\"order\": 0\r\n\t\t}\r\n\t],\r\n\t\"hasMore\": false,\r\n\t\"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"d567ccb7-76a9-4806-bd33-beac103803c3"},{"name":"Create hotel variables","id":"be0fcbd5-e529-4877-beb3-4bb95bdf8811","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n    \t\"type\": 1,\r\n    \t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n    \t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n    \t\"rooms\": [\r\n    \t\t\"100000000000000000000002\"\r\n    \t\t],\r\n    \t\"chargePlans\": [\r\n    \t\t\"100000000000000000000003\"\r\n\t\t],\r\n    \t\"discount\": \"100000000000000000000004\",\r\n    \t\"service\": null,\r\n    \t\"restrictions\": [\r\n        \t{\r\n        \t\t\"type\": 1,\r\n        \t\t\"isNegation\": false,\r\n        \t\t\"isCondition\": true,\r\n        \t\t\"operator\": 1,\r\n        \t\t\"cutOff\": null,\r\n        \t\t\"inventoryStatus\": null,\r\n        \t\t\"elements\": [\r\n            \t\t{\r\n            \t\t\t\"dayStrategy\": 8,\r\n            \t\t\t\"sourceStrategy\": 1,\r\n            \t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n            \t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n            \t\t\t\"minBookingOffset\": null,\r\n            \t\t\t\"maxBookingOffset\": null,\r\n            \t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n            \t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n            \t\t\t\"occurrences\": 1\r\n            \t\t}\r\n        \t\t]\r\n        \t}\r\n    \t],\r\n    \t\"reductions\": [\r\n        \t{\r\n        \t\t\"chargePlan\": \"100000000000000000000003\",\r\n        \t\t\"amount\": null,\r\n        \t\t\"percent\": 20,\r\n        \t\t\"isPerPax\": true,\r\n        \t\t\"interval\": 1,\r\n        \t\t\"strategy\": 2,\r\n        \t\t\"requiredNights\": null,\r\n        \t\t\"freeNights\": null,\r\n        \t\t\"loS\": 1,\r\n        \t\t\"constraints\": []\r\n        \t}\r\n    \t],\r\n    \t\"charges\": [],\r\n    \t\"isCumulative\": true,\r\n    \t\"isCombinable\": true,\r\n    \t\"compulsion\": 1,\r\n    \t\"paymentTerms\": [\r\n\t        {\r\n        \t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n        \t\t\"dueOffset\": null,\r\n        \t\t\"amount\": null,\r\n        \t\t\"percent\": 75\r\n        \t}\r\n    \t],\r\n\t\t\"order\": 0\r\n    }\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variables","description":"* Creates a hotel variable(s).\r\n* Scopes required: `create:contracts--hotelVariable`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel variable(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n\t    \t\"_id\": \"000000000000000000000001\",\r\n\t    \t\"type\": 1,\r\n\t    \t\"contract\": \"100000000000000000000001\",\r\n\t    \t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n\t    \t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n\t    \t\"rooms\": [\r\n\t    \t\t\"100000000000000000000002\"\r\n\t    \t\t],\r\n\t    \t\"chargePlans\": [\r\n\t    \t\t\"100000000000000000000003\"\r\n\t\t\t],\r\n\t    \t\"discount\": \"100000000000000000000004\",\r\n\t    \t\"service\": null,\r\n\t    \t\"restrictions\": [\r\n\t        \t{\r\n\t        \t\t\"type\": 1,\r\n\t        \t\t\"isNegation\": false,\r\n\t        \t\t\"isCondition\": true,\r\n\t        \t\t\"operator\": 1,\r\n\t        \t\t\"cutOff\": null,\r\n\t        \t\t\"inventoryStatus\": null,\r\n\t        \t\t\"elements\": [\r\n\t            \t\t{\r\n\t            \t\t\t\"dayStrategy\": 8,\r\n\t            \t\t\t\"sourceStrategy\": 1,\r\n\t            \t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n\t            \t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n\t            \t\t\t\"minBookingOffset\": null,\r\n\t            \t\t\t\"maxBookingOffset\": null,\r\n\t            \t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n\t            \t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n\t            \t\t\t\"occurrences\": 1\r\n\t            \t\t}\r\n\t        \t\t]\r\n\t        \t}\r\n\t    \t],\r\n\t    \t\"reductions\": [\r\n\t        \t{\r\n\t        \t\t\"chargePlan\": \"100000000000000000000003\",\r\n\t        \t\t\"amount\": null,\r\n\t        \t\t\"percent\": 20,\r\n\t        \t\t\"isPerPax\": true,\r\n\t        \t\t\"interval\": 1,\r\n\t        \t\t\"strategy\": 2,\r\n\t        \t\t\"requiredNights\": null,\r\n\t        \t\t\"freeNights\": null,\r\n\t        \t\t\"loS\": 1,\r\n\t        \t\t\"constraints\": []\r\n\t        \t}\r\n\t    \t],\r\n\t    \t\"charges\": [],\r\n\t    \t\"isCumulative\": true,\r\n\t    \t\"isCombinable\": true,\r\n\t    \t\"compulsion\": 1,\r\n\t    \t\"paymentTerms\": [\r\n\t\t        {\r\n\t        \t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n\t        \t\t\"dueOffset\": null,\r\n\t        \t\t\"amount\": null,\r\n\t        \t\t\"percent\": 75\r\n\t        \t}\r\n\t    \t],\r\n\t    \t\"isActive\": true,\r\n\t    \t\"order\": 0\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"be0fcbd5-e529-4877-beb3-4bb95bdf8811"},{"name":"Get a hotel variable","id":"6ae5de3e-23bc-467b-870c-64ae643eacba","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variables/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","variables","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel variable.\r\n* Scopes required: `read:contracts--hotelVariable`, `read:contracts--hotelVariable--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel variable.\r\n\r\n> When `discount` is set (*indicating that the hotel variable is a discount*)\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"type\": 1,\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n\t\"rooms\": [\r\n\t\t\"100000000000000000000002\"\r\n\t],\r\n\t\"chargePlans\": [\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"discount\": \"100000000000000000000004\",\r\n\t\"service\": null,\r\n\t\"restrictions\": [\r\n\t\t{\r\n\t\t\t\"type\": 1,\r\n\t\t\t\"isNegation\": false,\r\n\t\t\t\"isCondition\": true,\r\n\t\t\t\"operator\": 1,\r\n\t\t\t\"cutOff\": null,\r\n\t\t\t\"inventoryStatus\": null,\r\n\t\t\t\"elements\": [\r\n    \t\t\t{\r\n    \t\t\t\t\"dayStrategy\": 8,\r\n    \t\t\t\t\"sourceStrategy\": 1,\r\n    \t\t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n    \t\t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n\t\t\t\t\t\"minBookingOffset\": null,\r\n\t\t\t\t\t\"maxBookingOffset\": null,\r\n\t\t\t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n    \t\t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n    \t\t\t\t\"occurrences\": 1\r\n    \t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"reductions\": [\r\n\t\t{\r\n\t\t\t\"chargePlan\": \"100000000000000000000003\",\r\n\t\t\t\"amount\": null,\r\n\t\t\t\"percent\": 20,\r\n\t\t\t\"isPerPax\": true,\r\n\t\t\t\"interval\": 1,\r\n\t\t\t\"strategy\": 2,\r\n\t\t\t\"requiredNights\": null,\r\n\t\t\t\"freeNights\": null,\r\n\t\t\t\"loS\": 1,\r\n\t\t\t\"constraints\": []\r\n\t\t}\r\n\t],\r\n\t\"charges\": [],\r\n\t\"isCumulative\": true,\r\n\t\"isCombinable\": true,\r\n\t\"compulsion\": 1,\r\n\t\"paymentTerms\": [\r\n\t\t{\r\n\t\t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n\t\t\t\"dueOffset\": null,\r\n\t\t\t\"amount\": null,\r\n\t\t\t\"percent\": 75\r\n\t\t}\r\n\t],\r\n\t\"isActive\": true,\r\n\t\"order\": 0\r\n}\r\n```\r\n\r\n> When `service` is set (*indicating that the hotel variable is a service*)\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"type\": 2,\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"startAtUtc\": \"2018-05-01T00:00:00.000Z\",\r\n\t\"endAtUtc\": \"2018-05-01T23:59:59.000Z\",\r\n\t\"rooms\": [\r\n\t\t\"100000000000000000000002\"\r\n\t],\r\n\t\"chargePlans\": [\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"discount\": null,\r\n\t\"service\": \"100000000000000000000005\",\r\n\t\"restrictions\": [\r\n\t\t{\r\n\t\t\t\"type\": 1,\r\n\t\t\t\"isNegation\": false,\r\n\t\t\t\"isCondition\": true,\r\n\t\t\t\"operator\": 1,\r\n\t\t\t\"cutOff\": null,\r\n\t\t\t\"inventoryStatus\": null,\r\n\t\t\t\"elements\": [\r\n    \t\t\t{\r\n    \t\t\t\t\"dayStrategy\": 8,\r\n    \t\t\t\t\"sourceStrategy\": 1,\r\n    \t\t\t\t\"bookingStartAtUtc\": null,\r\n    \t\t\t\t\"bookingEndAtUtc\": null,\r\n    \t\t\t\t\"minBookingOffset\": null,\r\n    \t\t\t\t\"maxBookingOffset\": null,\r\n    \t\t\t\t\"startAtUtc\": \"2018-05-01T00:00:00.000Z\",\r\n    \t\t\t\t\"endAtUtc\": \"2018-05-01T23:59:59.000Z\",\r\n    \t\t\t\t\"occurrences\": 1\r\n    \t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"reductions\": [],\r\n\t\"charges\": [\r\n\t\t{\r\n\t\t\t\"chargePlan\": \"100000000000000000000003\",\r\n\t\t\t\"amount\": null,\r\n\t\t\t\"percent\": 0,\r\n\t\t\t\"isPerPax\": true,\r\n\t\t\t\"interval\": 4,\r\n\t\t\t\"loS\": 1,\r\n\t\t\t\"constraints\": [\r\n\t\t\t\t{\r\n    \t\t\t\t\"isNegation\": false,\r\n\t\t\t\t\t\"type\": 4,\r\n\t\t\t\t\t\"code\": null,\r\n    \t\t\t\t\"baseStrategy\": 2,\r\n    \t\t\t\t\"boardStrategy\": 2,\r\n    \t\t\t\t\"occupancyRestrictions\": [\r\n        \t\t\t\t{\r\n        \t\t\t\t\t\"occupancyType\": \"CHD\",\r\n        \t\t\t\t\t\"minCount\": null,\r\n        \t\t\t\t\t\"maxCount\": null,\r\n        \t\t\t\t\t\"minAge\": null,\r\n        \t\t\t\t\t\"maxAge\": 11.99\r\n        \t\t\t\t}\r\n    \t\t\t\t],\r\n    \t\t\t\t\"weekdayRestriction\": {\r\n    \t\t\t\t\t\"dayStrategy\": 4,\r\n        \t\t\t\t\"onMonday\": true,\r\n        \t\t\t\t\"onTuesday\": true,\r\n        \t\t\t\t\"onWednesday\": true,\r\n        \t\t\t\t\"onThursday\": true,\r\n        \t\t\t\t\"onFriday\": true,\r\n        \t\t\t\t\"onSaturday\": true,\r\n        \t\t\t\t\"onSunday\": true\r\n    \t\t\t\t}\r\n    \t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\t\"isCumulative\": false,\r\n\t\"isCombinable\": false,\r\n\t\"compulsion\": 1,\r\n\t\"paymentTerms\": [],\r\n\t\"isActive\": true,\r\n\t\"order\": 0\r\n}\r\n```\r\n"},"response":[],"_postman_id":"6ae5de3e-23bc-467b-870c-64ae643eacba"},{"name":"Update a hotel variable","id":"e93e331f-d44d-4d09-b9e1-ea866712000a","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"type\": 1,\r\n\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n\t\"rooms\": [\r\n\t\t\"100000000000000000000002\"\r\n\t\t],\r\n\t\"chargePlans\": [\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"discount\": \"100000000000000000000004\",\r\n\t\"service\": null,\r\n\t\"restrictions\": [\r\n    \t{\r\n    \t\t\"type\": 1,\r\n    \t\t\"isNegation\": false,\r\n    \t\t\"isCondition\": true,\r\n    \t\t\"operator\": 1,\r\n    \t\t\"cutOff\": null,\r\n    \t\t\"inventoryStatus\": null,\r\n    \t\t\"elements\": [\r\n        \t\t{\r\n        \t\t\t\"dayStrategy\": 8,\r\n        \t\t\t\"sourceStrategy\": 1,\r\n        \t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n        \t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n        \t\t\t\"minBookingOffset\": null,\r\n        \t\t\t\"maxBookingOffset\": null,\r\n        \t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n        \t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n        \t\t\t\"occurrences\": 1\r\n        \t\t}\r\n    \t\t]\r\n    \t}\r\n\t],\r\n\t\"reductions\": [\r\n    \t{\r\n    \t\t\"chargePlan\": \"100000000000000000000003\",\r\n    \t\t\"amount\": null,\r\n    \t\t\"percent\": 20,\r\n    \t\t\"isPerPax\": true,\r\n    \t\t\"interval\": 1,\r\n    \t\t\"strategy\": 2,\r\n    \t\t\"requiredNights\": null,\r\n    \t\t\"freeNights\": null,\r\n    \t\t\"loS\": 1,\r\n    \t\t\"constraints\": []\r\n    \t}\r\n\t],\r\n\t\"charges\": [],\r\n\t\"isCumulative\": true,\r\n\t\"isCombinable\": true,\r\n\t\"compulsion\": 1,\r\n\t\"paymentTerms\": [\r\n        {\r\n    \t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n    \t\t\"dueOffset\": null,\r\n    \t\t\"amount\": null,\r\n    \t\t\"percent\": 75\r\n    \t}\r\n\t],\r\n\t\"order\": 0\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variables/{{id}}","description":"* Updates a hotel variable.\r\n* Scopes required: `update:contracts--hotelVariable`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel variable.\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"type\": 1,\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n\t\"rooms\": [\r\n\t\t\"100000000000000000000002\"\r\n\t\t],\r\n\t\"chargePlans\": [\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"discount\": \"100000000000000000000004\",\r\n\t\"service\": null,\r\n\t\"restrictions\": [\r\n    \t{\r\n    \t\t\"type\": 1,\r\n    \t\t\"isNegation\": false,\r\n    \t\t\"isCondition\": true,\r\n    \t\t\"operator\": 1,\r\n    \t\t\"cutOff\": null,\r\n    \t\t\"inventoryStatus\": null,\r\n    \t\t\"elements\": [\r\n        \t\t{\r\n        \t\t\t\"dayStrategy\": 8,\r\n        \t\t\t\"sourceStrategy\": 1,\r\n        \t\t\t\"bookingStartAtUtc\": \"2017-06-13T00:00:00.000Z\",\r\n        \t\t\t\"bookingEndAtUtc\": \"2018-01-31T23:59:59.000Z\",\r\n        \t\t\t\"minBookingOffset\": null,\r\n        \t\t\t\"maxBookingOffset\": null,\r\n        \t\t\t\"startAtUtc\": \"2018-03-01T00:00:00.000Z\",\r\n        \t\t\t\"endAtUtc\": \"2018-04-31T23:59:59.000Z\",\r\n        \t\t\t\"occurrences\": 1\r\n        \t\t}\r\n    \t\t]\r\n    \t}\r\n\t],\r\n\t\"reductions\": [\r\n    \t{\r\n    \t\t\"chargePlan\": \"100000000000000000000003\",\r\n    \t\t\"amount\": null,\r\n    \t\t\"percent\": 20,\r\n    \t\t\"isPerPax\": true,\r\n    \t\t\"interval\": 1,\r\n    \t\t\"strategy\": 2,\r\n    \t\t\"requiredNights\": null,\r\n    \t\t\"freeNights\": null,\r\n    \t\t\"loS\": 1,\r\n    \t\t\"constraints\": []\r\n    \t}\r\n\t],\r\n\t\"charges\": [],\r\n\t\"isCumulative\": true,\r\n\t\"isCombinable\": true,\r\n\t\"compulsion\": 1,\r\n\t\"paymentTerms\": [\r\n        {\r\n    \t\t\"dueAtUtc\": \"2018-02-01T23:59:59.000Z\",\r\n    \t\t\"dueOffset\": null,\r\n    \t\t\"amount\": null,\r\n    \t\t\"percent\": 75\r\n    \t}\r\n\t],\r\n\t\"isActive\": true,\r\n\t\"order\": 0\r\n}\r\n```\r\n"},"response":[],"_postman_id":"e93e331f-d44d-4d09-b9e1-ea866712000a"},{"name":"Delete a hotel variable","id":"1b4a1001-154a-4dbd-9f0c-6a1b3353582e","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variables/{{id}}","description":"* Deletes (deactivates) a hotel variable.\r\n* Scopes required: `delete:contracts--hotelVariable`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"1b4a1001-154a-4dbd-9f0c-6a1b3353582e"}],"id":"cf080765-af39-4f21-9a92-da127d9c606a","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\ncontract | string (*ref `_id`*) | Required (*route param `contractId`*)\ntype | number (*enum `VariableType`*) | Required\nstartAtUtc | date | Required\nendAtUtc | date | Required\nrooms | array (*ref `_id`*) | 0..*\nchargePlans | array (*ref `_id`*) | 0..*\ndiscount | string (*ref `_id`*) | Optional\nservice | string (*ref `_id`*) | Optional\nrestrictions | array (*object*) | 0..*\nrestrictions/type | number (*enum `RestrictionType`*) | Required\nrestrictions/isNegation | boolean | Required (default: `false`)\nrestrictions/isCondition | boolean | Required (default: `true`)\nrestrictions/operator | number (*enum `Operator`*) | Required (default: `Operator.Or`)\nrestrictions/cutOff | number | Optional\nrestrictions/inventoryStatus | number | Optional\nrestrictions/elements | array (*object*) | 1..*\nrestrictions/elements/dayStrategy | number (*enum `DayStrategy`*) | Optional\nrestrictions/elements/sourceStrategy | number (*enum `SourceStrategy`*) | Optional\nrestrictions/elements/durationStrategy | number (*enum `DurationStrategy`*) | Optional\nrestrictions/elements/bookingStartAtUtc | date | Optional\nrestrictions/elements/bookingEndAtUtc | date | Optional\nrestrictions/elements/minBookingOffset | number | Optional\nrestrictions/elements/maxBookingOffset | number | Optional\nrestrictions/elements/startAtUtc | date | Optional\nrestrictions/elements/endAtUtc | date | Optional\nrestrictions/elements/occurrences | number | Optional\nrestrictions/elements/minLoS | number | Optional\nrestrictions/elements/maxLoS | number | Optional\nrestrictions/elements/sequentialLoS | number | Optional\nrestrictions/elements/occupancyType | string (*enum `OccupancyType`*) | Optional\nrestrictions/elements/minCount | number | Optional\nrestrictions/elements/maxCount | number | Optional\nrestrictions/elements/minAge | number | Optional\nrestrictions/elements/maxAge | number | Optional\nrestrictions/elements/onMonday | boolean | Optional\nrestrictions/elements/onTuesday | boolean | Optional\nrestrictions/elements/onWednesday | boolean | Optional\nrestrictions/elements/onThursday | boolean | Optional\nrestrictions/elements/onFriday | boolean | Optional\nrestrictions/elements/onSaturday | boolean | Optional\nrestrictions/elements/onSunday | boolean | Optional\nrestrictions/elements/board | string (*ref `_id`*) | Optional\nrestrictions/elements/period | string | Optional\nreductions | array (*object*) | 0..*\nreductions/chargePlan | string (*ref `_id`*) | Required\nreductions/amount | number | Optional\nreductions/percent | number | Optional\nreductions/isPerPax | boolean | Required\nreductions/interval | number (*enum `VariableInterval`*) | Required (default: `VariableInterval.Night`)\nreductions/strategy | number (*enum `ReductionStrategy`*) | Optional (default: `ReductionStrategy.Last`)\nreductions/requiredNights | number | Optional\nreductions/freeNights | number | Optional\nreductions/loS | number | Required (default: `1`)\nreductions/constraints | array (*object*) | 0..*\nreductions/constraints/isNegation | boolean | Required (default: `false`)\nreductions/constraints/type | number (*enum `VariableConstraintType`*) | Required (default: `VariableConstraintType.Charge`)\nreductions/constraints/code | string | Optional\nreductions/constraints/baseStrategy | number (*enum `BaseStrategy`*) | Required (default: reductions/constraints/`BaseStrategy.Occupancy`)\nreductions/constraints/boardStrategy | number (*enum `BoardStrategy`*) | Required (default: `BoardStrategy.Board`)\nreductions/constraints/occupancyRestrictions | array (*object*) | 0..*\nreductions/constraints/occupancyRestrictions/occupancyType | string (*enum `OccupancyType`*) | Optional\nreductions/constraints/occupancyRestrictions/minCount | number | Optional\nreductions/constraints/occupancyRestrictions/maxCount | number | Optional\nreductions/constraints/occupancyRestrictions/minAge | number | Optional\nreductions/constraints/occupancyRestrictions/maxAge | number | Optional\nreductions/constraints/weekdayRestriction | object | Optional\nreductions/constraints/weekdayRestriction/dayStrategy | number (*enum `DayStrategy`*) | Optional\nreductions/constraints/weekdayRestriction/onMonday | boolean | Optional\nreductions/constraints/weekdayRestriction/onTuesday | boolean | Optional\nreductions/constraints/weekdayRestriction/onWednesday | boolean | Optional\nreductions/constraints/weekdayRestriction/onThursday | boolean | Optional\nreductions/constraints/weekdayRestriction/onFriday | boolean | Optional\nreductions/constraints/weekdayRestriction/onSaturday | boolean | Optional\nreductions/constraints/weekdayRestriction/onSunday | boolean | Optional\ncharges | array (*object*) | 0..*\ncharges/chargePlan | string (*ref `_id`*) | Required\ncharges/amount | number | Optional\ncharges/percent | number | Optional\ncharges/isPerPax | boolean | Required\ncharges/loS | number | Required (default: `1`)\ncharges/constraints | array (*object*) | 0..*\ncharges/constraints/isNegation | boolean | Required (default: `false`)\ncharges/constraints/type | number (*enum `VariableConstraintType`*) | Required (default: `VariableConstraintType.Charge`)\ncharges/constraints/code | string | Optional\ncharges/constraints/baseStrategy | number (*enum `BaseStrategy`*) | Required (default: charges/constraints/`BaseStrategy.Occupancy`)\ncharges/constraints/boardStrategy | number (*enum `BoardStrategy`*) | Required (default: `BoardStrategy.Board`)\ncharges/constraints/occupancyRestrictions | array (*object*) | 0..*\ncharges/constraints/occupancyRestrictions/occupancyType | string (*enum `OccupancyType`*) | Optional\ncharges/constraints/occupancyRestrictions/minCount | number | Optional\ncharges/constraints/occupancyRestrictions/maxCount | number | Optional\ncharges/constraints/occupancyRestrictions/minAge | number | Optional\ncharges/constraints/occupancyRestrictions/maxAge | number | Optional\ncharges/constraints/weekdayRestriction | object | Optional\ncharges/constraints/weekdayRestriction/dayStrategy | number (*enum `DayStrategy`*) | Optional\ncharges/constraints/weekdayRestriction/onMonday | boolean | Optional\ncharges/constraints/weekdayRestriction/onTuesday | boolean | Optional\ncharges/constraints/weekdayRestriction/onWednesday | boolean | Optional\ncharges/constraints/weekdayRestriction/onThursday | boolean | Optional\ncharges/constraints/weekdayRestriction/onFriday | boolean | Optional\ncharges/constraints/weekdayRestriction/onSaturday | boolean | Optional\ncharges/constraints/weekdayRestriction/onSunday | boolean | Optional\nisCumulative | boolean | Required (default: `false`)\nisCombinable | boolean | Required (default: `true`)\ncompulsion | enum (*enum `VariableCompulsion`*) | Optional\npaymentTerms | array (*object*) | 0..*\npaymentTerms/dueAtUtc | date | Optional\npaymentTerms/dueOffset | number | Optional\npaymentTerms/amount | number | Optional\npaymentTerms/percent | number | Optional\nisActive | boolean | Optional (default: `true`)\norder | number | Optional (default: `0`)\n\n#### `VariableType` enum\n\nName | Value\n--- | ---\nDiscount | 1\nService | 2\n\n#### `RestrictionType` enum\n\nName| Value\n--- | ---\nDate | 1\nStay | 2\nOccupancy | 4\nWeekDay | 8\nBoard | 16\nPeriod | 32\n\n#### `Operator` enum\n\nName | Value\n--- | ---\nAnd | 1\nOr | 2\n\n#### `DayStrategy` enum\n\nName | Value\n--- | ---\nArrival | 1\nDeparture | 2\nStay | 4\nStrict | 8\n\n#### `SourceStrategy` enum\n\nName | Value\n--- | ---\nHotel | 1\nFlight | 2\n\n#### `DurationStrategy` enum\n\nName | Value\n--- | ---\nStay | 1\nStrict | 2\nPaid | 4\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n\n#### `VariableInterval` enum\n\nName | Value\n--- | ---\nNight | 1\nWeek | 2\nStay | 4\n\n#### `VariableConstraintType` enum\n\nName | Value\n--- | ---\nVariable | 1\nCharge | 2\nOccupancy | 4\nDuration | 8\nDate | 16\nOccupancyCharge | 32\n\n#### `BaseStrategy` enum\n\nName | Value\n--- | ---\nBase | 1\nOccupancy | 2\nTotal | 4\n\n#### `BoardStrategy` enum\n\nName | Value\n--- | ---\nBase | 1\nBoard | 2\n\n#### `OccupancyType` enum\n\nName | Value\n--- | ---\nAdult | `ADL`\nChild | `CHD`\nInfant | `INF`\nFullPayer | `F/P`\nNonBillable | `N/B`\n\n#### `VariableCompulsion` enum\n\nName | Value\n--- | ---\nTrue | 1\nFalse | 2\nInclude | 4\nExclude | 8\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"cf080765-af39-4f21-9a92-da127d9c606a"},{"name":"Hotel variable combinations","item":[{"name":"List or search hotel variable combinations","id":"e784bcac-b99e-4aa6-b151-3ef3e0dd867c","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variable-combinations?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","variable-combinations"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel variable combination.\r\n* Scopes required: `read:contracts--hotelVariableCombination`, `read:contracts--hotelVariableCombination-all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel variable combinations matching criterias.\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n\t\t{\r\n    \t\t\"_id\": \"000000000000000000000001\",\r\n    \t\t\"code\": \"A000001\",\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"isNegation\": false,\r\n    \t\t\"variables\": [\r\n    \t\t\t\"100000000000000000000002\",\r\n    \t\t\t\"100000000000000000000003\"\r\n    \t\t],\r\n    \t\t\"isActive\": true\r\n\t\t},\r\n\t\t{\r\n    \t\t\"_id\": \"000000000000000000000002\",\r\n    \t\t\"code\": \"A000002\",\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"isNegation\": false,\r\n    \t\t\"variables\": [\r\n    \t\t\t\"100000000000000000000002\",\r\n    \t\t\t\"100000000000000000000004\"\r\n    \t\t],\r\n    \t\t\"isActive\": true\r\n\t\t}\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 2\r\n}\r\n```\r\n"},"response":[],"_postman_id":"e784bcac-b99e-4aa6-b151-3ef3e0dd867c"},{"name":"Create hotel variable combinations","id":"5e594c39-5c40-4151-838b-67f8378fd188","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n\t\t\"code\": \"A000001\",\r\n\t\t\"isNegation\": false,\r\n\t\t\"variables\": [\r\n\t\t\t\"100000000000000000000002\",\r\n\t\t\t\"100000000000000000000003\"\r\n\t\t]\r\n\t}\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variable-combinations","description":"* Creates a hotel variable combination(s).\r\n* Scopes required: `create:contracts--hotelVariableCombination`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel variable combination(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n    \t\t\"_id\": \"000000000000000000000001\",\r\n    \t\t\"code\": \"A000001\",\r\n    \t\t\"contract\": \"100000000000000000000001\",\r\n    \t\t\"isNegation\": false,\r\n    \t\t\"variables\": [\r\n    \t\t\t\"100000000000000000000002\",\r\n    \t\t\t\"100000000000000000000003\"\r\n    \t\t],\r\n    \t\t\"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"5e594c39-5c40-4151-838b-67f8378fd188"},{"name":"Get a hotel variable combination","id":"e421b498-b4cd-499f-98ae-405a8fd94003","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variable-combinations/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","variable-combinations","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel variable combination.\r\n* Scopes required: `read:contracts--hotelVariableCombination`, `read:contracts--hotelVariableCombination--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel variable combination.\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"code\": \"A000001\",\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"isNegation\": false,\r\n\t\"variables\": [\r\n\t\t\"100000000000000000000002\",\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"e421b498-b4cd-499f-98ae-405a8fd94003"},{"name":"Update a hotel variable combination","id":"43ef198a-9d30-4ae9-9a5c-d49c39ce415f","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"code\": \"A000001\",\r\n\t\"isNegation\": false,\r\n\t\"variables\": [\r\n\t\t\"100000000000000000000002\",\r\n\t\t\"100000000000000000000003\"\r\n\t]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variable-combinations/{{id}}","description":"* Updates a hotel variable combination.\r\n* Scopes required: `update:contracts--hotelVariableCombination`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel variable combination.\r\n\r\n```json\r\n{\r\n\t\"_id\": \"000000000000000000000001\",\r\n\t\"code\": \"A000001\",\r\n\t\"contract\": \"100000000000000000000001\",\r\n\t\"isNegation\": false,\r\n\t\"variables\": [\r\n\t\t\"100000000000000000000002\",\r\n\t\t\"100000000000000000000003\"\r\n\t],\r\n\t\"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"43ef198a-9d30-4ae9-9a5c-d49c39ce415f"},{"name":"Delete a hotel variable combination","id":"70990312-c2d7-4dee-8068-ca4fe717a5fe","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/variable-combinations/{{id}}","description":"* Deletes (deactivates) a hotel variable combination.\r\n* Scopes required: `delete:contracts--hotelVariableCombination`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"70990312-c2d7-4dee-8068-ca4fe717a5fe"}],"id":"4799ea11-d320-4ff4-8977-e6edb9caef79","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\ncode | string | Required\ncontract | string (*ref `_id`*) | Required (*route param `contractId`*)\nisNegation | boolean | Required (default: `false`)\nvariables | array (*ref `_id`*) | 0..*\nisActive | boolean | Optional (default: `true`)\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"4799ea11-d320-4ff4-8977-e6edb9caef79"},{"name":"Hotel inventory","item":[{"name":"List or search hotel inventory","id":"ecd02c82-2bf3-4530-be77-82317e711d4b","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/inventory?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","inventory"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel inventory.\r\n* Scopes required: `read:inventory--hotelInventory`, `read:inventory--hotelInventory--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel inventory matching criterias.\r\n\r\n```json\r\n{\r\n\t\"data\": [\r\n\t\t{\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n            \"contract\": \"100000000000000000000001\",\r\n            \"baseCharges\": [\r\n                \"100000000000000000000002\",\r\n                \"100000000000000000000003\"\r\n            ],\r\n            \"initialItems\": [\r\n                {\r\n                    \"period\": \"A\",\r\n                    \"allotments\": [\r\n                        24\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"period\": \"B\",\r\n                    \"allotments\": [\r\n                        16\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"period\": \"C\",\r\n                    \"allotments\": [\r\n                        24\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                }\r\n            ],\r\n            \"isActive\": true\r\n        }\r\n\t],\r\n\t\"hasMore\": false,\r\n\t\"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"ecd02c82-2bf3-4530-be77-82317e711d4b"},{"name":"Create hotel inventory","id":"3be3ccd3-63c2-4ed4-a15f-9e7cdce15a18","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n        \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n        \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n        \"baseCharges\": [\r\n            \"100000000000000000000002\",\r\n            \"100000000000000000000003\"\r\n        ],\r\n        \"initialItems\": [\r\n            {\r\n                \"period\": \"A\",\r\n                \"allotments\": [\r\n                    24\r\n                ],\r\n                \"status\": 1\r\n            },\r\n            {\r\n                \"period\": \"B\",\r\n                \"allotments\": [\r\n                    16\r\n                ],\r\n                \"status\": 1\r\n            },\r\n            {\r\n                \"period\": \"C\",\r\n                \"allotments\": [\r\n                    24\r\n                ],\r\n                \"status\": 1\r\n            }\r\n        ]\r\n    }\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/inventory","description":"* Creates a hotel inventory(s).\r\n* Scopes required: `create:inventory--hotelInventory`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel inventory(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n            \"contract\": \"100000000000000000000001\",\r\n            \"baseCharges\": [\r\n                \"100000000000000000000002\",\r\n                \"100000000000000000000003\"\r\n            ],\r\n            \"initialItems\": [\r\n                {\r\n                    \"period\": \"A\",\r\n                    \"allotments\": [\r\n                        24\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"period\": \"B\",\r\n                    \"allotments\": [\r\n                        16\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"period\": \"C\",\r\n                    \"allotments\": [\r\n                        24\r\n                    ],\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                }\r\n            ],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"3be3ccd3-63c2-4ed4-a15f-9e7cdce15a18"},{"name":"Get a hotel inventory","id":"2b2f6500-7cbe-406d-ac4b-72734df2e68e","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/inventory/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","inventory","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel inventory.\r\n* Scopes required: `read:inventory--hotelInventory`, `read:inventory--hotelInventory--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel inventory.\r\n\r\n> When `contract.pricingStrategy` === `PricingStrategy.Fixed`\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"contract\": \"100000000000000000000001\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"initialItems\": [\r\n        {\r\n            \"period\": \"A\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"B\",\r\n            \"allotments\": [\r\n                16\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"C\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        }\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"2b2f6500-7cbe-406d-ac4b-72734df2e68e"},{"name":"Update a hotel inventory","id":"69acd8fa-5350-4fb7-b18b-10b371543fd6","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"initialItems\": [\r\n        {\r\n            \"period\": \"A\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"B\",\r\n            \"allotments\": [\r\n                16\r\n            ],\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"C\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"status\": 1\r\n        }\r\n    ]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/inventory/{{id}}","description":"* Updates a hotel inventory.\r\n* Scopes required: `update:inventory--hotelInventory`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel inventory.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"contract\": \"100000000000000000000001\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"initialItems\": [\r\n        {\r\n            \"period\": \"A\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"B\",\r\n            \"allotments\": [\r\n                16\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        },\r\n        {\r\n            \"period\": \"C\",\r\n            \"allotments\": [\r\n                24\r\n            ],\r\n            \"availability\": 0,\r\n            \"booking\": 0,\r\n            \"status\": 1\r\n        }\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"69acd8fa-5350-4fb7-b18b-10b371543fd6"},{"name":"Delete a hotel inventory","id":"339ff8b1-32e3-4f5f-a86f-b0a9c23a0758","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/inventory/{{id}}","description":"* Deletes (deactivates) a hotel inventory.\r\n* Scopes required: `delete:inventory--hotelInventory`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"339ff8b1-32e3-4f5f-a86f-b0a9c23a0758"}],"id":"d30233f0-0513-43cc-b027-0dfe143204b7","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nstartAtUtc | date | Required\nendAtUtc | date | Required\ncontract | string (*ref `_id`*) | Required (*route param `contractId`*)\nbaseCharges | array (*ref `_id`*) | 0..*\ninitialItems | array (*object*) | 1..*\ninitialItems/period | string | Required\ninitialItems/allotments | array (*number*) | Required\ninitialItems/availability | number | Required (default: `0`)\ninitialItems/booking | number | Required (default: `0`)\ninitialItems/status | number (*enum `InventoryStatus`*) | Required\nisActive | boolean | Optional (default: `true`)\n\n#### `InventoryStatus` enum\n\nName | Value\n--- | ---\nFree | 1\nBookable | 2\nOnRequest | 4\nStopped | 8\nClosed | 16\nSoldOut | 32\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"d30233f0-0513-43cc-b027-0dfe143204b7"},{"name":"Hotel override inventory","item":[{"name":"List or search hotel override inventory","id":"714f65bf-8b5e-4919-ae5d-f9aeba16ac60","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/override-inventory?q&fields&populate&page=0&per_page=20&sort&showInactive=false","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","override-inventory"],"query":[{"key":"q","value":null,"description":"Optional. The query parameter -consisting of comma-separated list of field/value pairs- to perform URI-based full-text search. Each pair is joined by colons (*`term:value`*) and multiple textual parts are joined by commas (*`term1:value1,term2:value2`*)."},{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."},{"key":"page","value":"0","description":"Optional. The cursor to use in the pagination. If nothing specified, then `0` is the default value."},{"key":"per_page","value":"20","description":"Optional. The number of resources to be returned (between `1` and `100`). If nothing is specified, then `20` is the default value."},{"key":"sort","value":null,"description":"Optional. The comma-separated field name(s) to retrieve the resources in the ascending sort order, each with an optional unary negative `-` prefix to imply descending sort order."},{"key":"showInactive","value":"false","description":"Optional. Specify `true` in order to include the inactive resources in the response. If nothing specified, then only the active resources are returned."}]},"description":"* Lists or searches the hotel override inventory.\r\n* Scopes required: `read:inventory--hotelOverrideInventory`, `read:inventory--hotelOverrideInventory--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns all the hotel override inventory matching criterias.\r\n\r\n```json\r\n{\r\n\t\"data\": [\r\n\t\t{\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"contract\": \"100000000000000000000001\",\r\n            \"baseCharges\": [\r\n                \"100000000000000000000002\",\r\n                \"100000000000000000000003\"\r\n            ],\r\n            \"items\": [\r\n                {\r\n                    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n                    \"allotment\": 24,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n                    \"allotment\": 16,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-03T23:59:59.000Z\",\r\n                    \"allotment\": 24,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                }\r\n            ],\r\n            \"isActive\": true\r\n        }\r\n\t],\r\n\t\"hasMore\": false,\r\n\t\"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"714f65bf-8b5e-4919-ae5d-f9aeba16ac60"},{"name":"Create hotel override inventory","id":"3fbf1c13-d15d-467b-9c85-4688414202bd","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\r\n\t{\r\n        \"baseCharges\": [\r\n            \"100000000000000000000002\",\r\n            \"100000000000000000000003\"\r\n        ],\r\n        \"items\": [\r\n            {\r\n                \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n                \"allotment\": 24,\r\n                \"status\": 1\r\n            },\r\n            {\r\n                \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n                \"allotment\": 16,\r\n                \"status\": 1\r\n            },\r\n            {\r\n                \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n                \"allotment\": 24,\r\n                \"status\": 1\r\n            }\r\n        ]\r\n    }\r\n]\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/override-inventory","description":"* Creates a hotel override inventory(s).\r\n* Scopes required: `create:inventory--hotelOverrideInventory`, `admin`.\r\n\r\n#### Response (status 201)\r\nReturns the created hotel override inventory(s).\r\n\r\n```json\r\n{\r\n    \"data\": [\r\n        {\r\n            \"_id\": \"000000000000000000000001\",\r\n            \"contract\": \"100000000000000000000001\",\r\n            \"baseCharges\": [\r\n                \"100000000000000000000002\",\r\n                \"100000000000000000000003\"\r\n            ],\r\n            \"items\": [\r\n                {\r\n                    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n                    \"allotment\": 24,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n                    \"allotment\": 16,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                },\r\n                {\r\n                    \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n            \t\t\"endAtUtc\": \"2018-01-03T23:59:59.000Z\",\r\n                    \"allotment\": 24,\r\n                    \"availability\": 0,\r\n                    \"booking\": 0,\r\n                    \"status\": 1\r\n                }\r\n            ],\r\n            \"isActive\": true\r\n        }\r\n    ],\r\n    \"hasMore\": false,\r\n    \"totalCount\": 1\r\n}\r\n```\r\n"},"response":[],"_postman_id":"3fbf1c13-d15d-467b-9c85-4688414202bd"},{"name":"Get a hotel override inventory","id":"3271c98d-c9d4-40b0-826f-65be9cea67e0","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"{{base_url}}/v1/hotel-contracts/{{contractId}}/override-inventory/{{id}}?fields&populate","host":["{{base_url}}"],"path":["v1","hotel-contracts","{{contractId}}","override-inventory","{{id}}"],"query":[{"key":"fields","value":null,"description":"Optional. The comma-separated list of field(s) to be included in the response. If nothing is specified, then all existing fields are included in the response."},{"key":"populate","value":null,"description":"Optional. The comma-separated list of field(s) to be replaced by the specified paths with document(s) from other collection(s)."}]},"description":"* Gets a hotel override inventory.\r\n* Scopes required: `read:inventory--hotelOverrideInventory`, `read:inventory--hotelOverrideInventory--all`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns an existing hotel override inventory.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"contract\": \"100000000000000000000001\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"items\": [\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t    \"allotment\": 16,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-03T23:59:59.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"3271c98d-c9d4-40b0-826f-65be9cea67e0"},{"name":"Update a hotel override inventory","id":"0baf7ca5-3013-4be8-ae6d-2109ae54ac0f","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n    \"endAtUtc\": \"2018-12-31T23:59:59.000Z\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"items\": [\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t    \"allotment\": 16,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"status\": 1\r\n\t\t}\r\n    ]\r\n}\r\n"},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/override-inventory/{{id}}","description":"* Updates a hotel override inventory.\r\n* Scopes required: `update:inventory--hotelOverrideInventory`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the updated hotel override inventory.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"contract\": \"100000000000000000000001\",\r\n    \"baseCharges\": [\r\n        \"100000000000000000000002\",\r\n        \"100000000000000000000003\"\r\n    ],\r\n    \"items\": [\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-01T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-01T23:59:59.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-02T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-02T23:59:59.000Z\",\r\n\t\t    \"allotment\": 16,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t},\r\n\t\t{\r\n\t\t    \"startAtUtc\": \"2018-01-03T00:00:00.000Z\",\r\n\t\t\t\"endAtUtc\": \"2018-01-03T23:59:59.000Z\",\r\n\t\t    \"allotment\": 24,\r\n\t\t    \"availability\": 0,\r\n\t\t    \"booking\": 0,\r\n\t\t    \"status\": 1\r\n\t\t}\r\n    ],\r\n    \"isActive\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"0baf7ca5-3013-4be8-ae6d-2109ae54ac0f"},{"name":"Delete a hotel override inventory","id":"f1f152c5-63f4-4d29-87bd-16cc2bd025a2","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/override-inventory/{{id}}","description":"* Deletes (deactivates) a hotel override inventory.\r\n* Scopes required: `delete:inventory--hotelOverrideInventory`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `deactivated` property set to `true`.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"deactivated\": true\r\n}\r\n```\r\n"},"response":[],"_postman_id":"f1f152c5-63f4-4d29-87bd-16cc2bd025a2"}],"id":"62bbf703-8061-4857-8adb-8dbb789bc7a2","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\ncontract | string (*ref `_id`*) | Required (*route param `contractId`*)\nbaseCharges | array (*ref `_id`*) | 0..*\nitems | array (*object*) | 1..*\nitems/startAtUtc | date | Required\nitems/endAtUtc | date | Required\nitems/allotment | number | Required\nitems/availability | number | Required (default: `0`)\nitems/booking | number | Required (default: `0`)\nitems/status | number (*enum `InventoryStatus`*) | Required\nisActive | boolean | Optional (default: `true`)\n\n#### `InventoryStatus` enum\n\nName | Value\n--- | ---\nFree | 1\nBookable | 2\nOnRequest | 4\nStopped | 8\nClosed | 16\nSoldOut | 32\n","event":[{"listen":"prerequest","script":{"id":"fbffe38c-e1bc-4516-bcfd-85f47e3e2922","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0d8d672f-7882-4dcc-9303-1666a7d1dd57","type":"text/javascript","exec":[""]}}],"_postman_id":"62bbf703-8061-4857-8adb-8dbb789bc7a2"},{"name":"Hotel contract version","item":[{"name":"Create a hotel contract version","id":"341f5050-9997-46f5-96cf-e3480a8335c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/v1/hotel-contracts/{{contractId}}/versions","description":"* Creates a hotel contract version.\r\n* Scopes required: `update:contracts--hotelContractVersion`, `admin`.\r\n\r\n#### Response (status 200)\r\nReturns the `_id` of the resource, with `version` property representing the current value.\r\n\r\n```json\r\n{\r\n    \"_id\": \"000000000000000000000001\",\r\n    \"version\": 1000000000001\r\n}\r\n```"},"response":[],"_postman_id":"341f5050-9997-46f5-96cf-e3480a8335c4"}],"id":"6e48e1fa-5330-47f1-a131-066e8613d795","description":"#### Object representation\n\nMember | Type | Cardinality\n--- | --- | ---\n_id | string | Required\nversion | number | Required\n","event":[{"listen":"prerequest","script":{"id":"80935389-8ec3-4c30-a356-d89365949cd5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a0824dec-4452-4620-82c4-132934f59cf9","type":"text/javascript","exec":[""]}}],"_postman_id":"6e48e1fa-5330-47f1-a131-066e8613d795"}],"id":"1f9a3555-5d5c-4f15-b8fe-96b061cb7f9a","description":"The *Contract/CM API* has been developed to retrive all details of the products available by the *Booking API* on the contract level, containing several methods that allows to obtain the **contracts and price rules** (*such as charge plans, base/board/occupancy rates, additional services and/or discounts, cancellation terms, etc.*) as well supplying them using **Fixed** and **Variable** pricing strategies.","event":[{"listen":"prerequest","script":{"id":"f32d7f21-2c44-4875-913b-3273d19c23c5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"61c5fc89-bbda-4c7a-8e0a-33c17d75abb9","type":"text/javascript","exec":[""]}}],"_postman_id":"1f9a3555-5d5c-4f15-b8fe-96b061cb7f9a"}],"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"}},"event":[{"listen":"prerequest","script":{"id":"53825289-5dc3-46cb-8afa-8761d35a74f0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96f611c9-f5de-4b71-b036-77242ddc03c1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"auth0_domain","value":"primetravel.eu.auth0.com"},{"key":"base_url","value":"https://api-dev.holidaylab.net"},{"key":"access_token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1rWTNNa0ZDUXpOQk16TTVOVGMwT1RkQk1ETTBOak5DUVRkR1JVRXlNa00wUVRNNE16bENNdyJ9.eyJpc3MiOiJodHRwczovL3ByaW1ldHJhdmVsLmV1LmF1dGgwLmNvbS8iLCJzdWIiOiJQVktwbVZiSXN1NEdFTEIwNElETzZUb05RanJqWlViR0BjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9hcGkuaG9saWRheWxhYi5uZXQiLCJpYXQiOjE1MzI1MTIxMDUsImV4cCI6MTUzMjU5ODUwNSwiYXpwIjoiUFZLcG1WYklzdTRHRUxCMDRJRE82VG9OUWpyalpVYkciLCJzY29wZSI6ImFkbWluIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.XY9kXIoZBe4G848TB7JyQMLfkzIXlPpxGk0LfnZh0EkL61kF4VefE30t7fHaKCtXK-A0QFsa-4KEX8WIf8dS3tCAMZBZnzH40j_ifJU2FS5FOPih8pLVzrrkmxTtEq_YB2xuv_1R0EfRQEHOV8Vy45j1oqtYL_zrEvwL4Ha51QnYvw6ImvzeYLjrVsz7B2HBLnE6GywUz1iozcenQP5_CYR-L90h-k9IEB5nK1WVWTXyiQVTe10hEXRSd_nz5KslUrHZzKKzGaxxOPiFCcf8GK7-dYDmhaLxYCNT5h5HBD4bhHhhGKvzi2KyeQY363RYYkwOJapBh6qIaGhGs7hdUg"}]}