{"info":{"_postman_id":"488b7ae6-3cc5-4f2d-bd97-a848cd0fc73d","name":"Previo Channel manager Standard","description":"<html><head></head><body><p>This document provides detailed information about the available endpoints of Previo Channel manager API standard.</p>\n<h2 id=\"who-is-this-document-for\"><strong>Who is this document for?</strong></h2>\n<p>This CHM Standard is designed for partners who want to connect their properties into Previo PMS via Previo CHM. Receive availability and pricing for their accomodations and send reservations and modifications to Previo PMS.</p>\n<h2 id=\"how-implementation-will-look-like\"><strong>How implementation will look like?</strong></h2>\n<ol>\n<li><p>Contact Previo CHM support team on <a href=\"https://mailto:chm@previo.cz\">chm@previo.cz</a> and express your interest in connecting to Previo PMS</p>\n</li>\n<li><p>Provide your company informations. (Additional data can be requested)</p>\n</li>\n<li><p>Intro call is initialized with our support team (Strongly recommended)</p>\n</li>\n<li><p>You will receive onboarding document, which will include your own URL for gitlab library. This library is designed to help you with implementation of Reservation sending to Previo. Its PHP library for version 8.1. You will also receive public key and prpID which is necessary for requesting and sending data.</p>\n</li>\n<li><p>You will be requested to send us URL for your 3 endpoints developed in Previo CHM standard.</p>\n</li>\n<li><p>After implementation of all 4 topics (POST reservations, Get Rooms, Get Rate Plans, POST Data) certification call with CHM support will be initialized.</p>\n</li>\n</ol>\n<h2 id=\"certification-topics\"><strong>Certification topics</strong></h2>\n<ul>\n<li><p><strong>Mapping</strong></p>\n<ul>\n<li><p>Get room types - Send a post request using previo/rooms?hotelId=123</p>\n</li>\n<li><p>Get rate plans - Send a post request using previo/ratePlans?hotelId=123&amp;roomId=456</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Data updates</strong></p>\n<ul>\n<li><p>Inventory updates</p>\n<ul>\n<li><p>Send 0 availability for 1 day - 1 room</p>\n</li>\n<li><p>Update positive availability after received previous 0</p>\n</li>\n<li><p>Update positive availability 1 day - all room types</p>\n</li>\n<li><p>Update positive availability different dates - different rooms</p>\n</li>\n</ul>\n</li>\n<li><p>Price and restrictions updates</p>\n<ul>\n<li><p>Update a room/rate price for 1 day</p>\n</li>\n<li><p>Update several room/rate prices - multiple dates</p>\n</li>\n<li><p>Update a room/rate/ per occupancy price</p>\n</li>\n<li><p>Close a room/rate for 1 day (Stop Sell)</p>\n</li>\n<li><p>Send CTA/CTD, min.stay, min.advance</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Reservations</strong></p>\n<ul>\n<li><p>Send new reservation for 2 guests</p>\n</li>\n<li><p>Send term modification</p>\n</li>\n<li><p>Send room type modification</p>\n</li>\n<li><p>Send cancellation</p>\n</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21342845","collectionId":"488b7ae6-3cc5-4f2d-bd97-a848cd0fc73d","publishedId":"2sAYdbNCsm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-03T11:40:26.000Z"},"item":[{"name":"Push reservation","id":"44777b67-50a4-4293-bdeb-de2c6b9c7854","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reservationId\": \"123\",\r\n    \"hotelId\": 456,\r\n    \"status\": \"modified\",\r\n    \"currency\": \"CZK\",\r\n    \"created\": \"2024-12-01T00:00:00+00:00\",\r\n    \"lastChange\": \"2024-12-01T15:13:00+00:00\",\r\n    \"language\": \"cs\",\r\n    \"totalPrice\": 1000,\r\n    \"commissionAmount\": 100,\r\n    \"customer\": {\r\n        \"firstName\": \"John\",\r\n        \"lastName\": \"Doe\",\r\n        \"email\": \"t@t.cz\",\r\n        \"phone\": \"111111111\",\r\n        \"country\": \"HU\",\r\n        \"city\": \"Budapest\",\r\n        \"zip\": \"12345\",\r\n        \"street\": \"Street 1\",\r\n        \"company\": \"Company\",\r\n        \"companyVatNumber\": \"123456789\",\r\n        \"note\": \"note\",\r\n        \"streetNumber\": \"1\"\r\n    },\r\n    \"creditCard\": {\r\n        \"cardNumber\": \"1234567890123456\",\r\n        \"cardHolder\": \"John Doe\",\r\n        \"cvv\": \"123\",\r\n        \"expiration\": \"12\\/2023\",\r\n        \"issuer\": \"Visa\",\r\n        \"owner\": 1,\r\n        \"amount\": 100,\r\n        \"chargeDate\": \"2024-12-31\",\r\n        \"currency\": \"CZK\"\r\n    },\r\n    \"payment\": {\r\n        \"type\": \"cash\",\r\n        \"amount\": 100,\r\n        \"currency\": \"CZK\",\r\n        \"note\": \"note\"\r\n    },\r\n    \"generalNote\": \"General note\",\r\n    \"extraInfo\": \"Extra info\",\r\n    \"cancellationPolicy\": \"Cancellation policy\",\r\n    \"customerComments\": \"Customer comments\",\r\n    \"threadId\": \"threadId\",\r\n    \"rooms\": [\r\n        {\r\n            \"from\": \"2024-12-10\",\r\n            \"to\": \"2024-12-20\",\r\n            \"roomReservationId\": \"123\",\r\n            \"roomTypeId\": \"Room 1\",\r\n            \"guests\": [\r\n                {\r\n                    \"firstName\": \"John\",\r\n                    \"lastName\": \"Doe\",\r\n                    \"type\": null,\r\n                    \"age\": null\r\n                },\r\n                {\r\n                    \"firstName\": \"\",\r\n                    \"lastName\": \"\",\r\n                    \"type\": \"child\",\r\n                    \"age\": 12\r\n                }\r\n            ],\r\n            \"currency\": \"CZK\",\r\n            \"totalPrice\": 1000,\r\n            \"dailyPrices\": [\r\n                {\r\n                    \"date\": \"2024-12-10\",\r\n                    \"price\": 1000,\r\n                    \"ratePlanId\": \"123\",\r\n                    \"ratePlanName\": \"rate 123\",\r\n                    \"note\": \"note\"\r\n                }\r\n            ],\r\n            \"ratePlanId\": \"123\",\r\n            \"paid\": true,\r\n            \"meal\": \"all-inclusive\",\r\n            \"taxPrice\": 40,\r\n            \"taxPaid\": true,\r\n            \"commissionAmount\": 10,\r\n            \"addons\": [\r\n                {\r\n                    \"name\": \"Addon 1\",\r\n                    \"pricePerUnit\": 100,\r\n                    \"paid\": true,\r\n                    \"count\": 2\r\n                }\r\n            ],\r\n            \"info\": \"info\",\r\n            \"extraInfo\": \"extrainfo\",\r\n            \"remarks\": \"remarks\",\r\n            \"roomTypeName\": \"roomTypeName\",\r\n            \"ratePlanName\": \"ratePlanName\"\r\n        }\r\n    ],\r\n    \"styId\": 789,\r\n    \"optionExpiration\": \"2024-12-31T00:00:00+00:00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://chmproxy.previo.app/api/reservation","description":"<h1 id=\"detailed-explanation\">Detailed explanation</h1>\n<p>Endpoint created by Previo which will be used by partner (you) in order to send reservations (New or modified) into Previo.</p>\n<p>Below you can find more detailed explanation of each element and its usage, but also general informations. The table shows which elements are mandatory, their data type, and occurrence.</p>\n<h2 id=\"prepaid-or-partly-paid-reservations\">Prepaid or partly paid reservations</h2>\n<p>You can mark each service within the reservation as prepaid, which is shown in Previo, so receptionist or Alfred (Previo app) will not demand additional payment for marked services.</p>\n<p>When reservation is fully prepaid, you can set paid (room and addon) and taxPaid to true. In case of part payment, you can set paid to true only for some services, but only in case when specific service is fully prepaid.</p>\n<h3 id=\"guest-paid-deposit\">Guest paid deposit</h3>\n<p>For example guest paid 50% of total price. In this case do not mark any service as prepaid, because currently there is no way how to transform this kind part payment.</p>\n<p>For these cases we recommend to use array payment, where you can send amount which was prepaid and it will be showed as reservation note in Previo.</p>\n<h2 id=\"rounding\">Rounding</h2>\n<p>Since totalPrice on reservation level is mandatory, it has to always contain sum of all items within the reservation (dailyPrices, addons and taxPrice). Discrepency might be caused by recurring decimals (0,333333) in dailyPrices, which result in incorrect totalPrice. We recommend to apply rounding to 2 decimal places, which is the same way how Previo works.</p>\n<hr />\n<h2 id=\"reservationid\">reservationId</h2>\n<p>Reservation ID (voucher) on partners side. Number has to be unique across all hotels. If reservations number are not unique, you can send reservationId as combination of hotel ID and reservation ID (4545455_123).</p>\n<p><strong>The reservation Id value must contain a maximum of 25 characters otherwise reservation is not processed.</strong></p>\n<h2 id=\"hotelid\">hotelId</h2>\n<p>Hotel ID on partner side.</p>\n<h2 id=\"status\">status</h2>\n<p>Status of reservation</p>\n<p>Possible values:</p>\n<ul>\n<li><p>new</p>\n</li>\n<li><p>modified</p>\n</li>\n<li><p>cancelled</p>\n</li>\n</ul>\n<h2 id=\"currency\">currency</h2>\n<p>Reservation currency. Located on reservation and room level, both values has to be the same.</p>\n<h2 id=\"created\">created</h2>\n<p>Time and date when new reservation was created. This value always determines the time of creation of a new reservation, if a modification or cancellation is sent, the value has to be the same as for a new reservation.</p>\n<h2 id=\"lastchange\">lastChange</h2>\n<p>Time and date when reservation was modified/cancelled. When modification or cancellation is sent, the date and time must be different (in the future) than the time the new reservation was created.</p>\n<p>If not send, Channel manager will automatically set up the date and time based on when the message was recieved.</p>\n<h2 id=\"totalprice\">totalPrice</h2>\n<p>Total price of the reservation/room.</p>\n<h3 id=\"room-level---not-mandatory\">Room level - not mandatory</h3>\n<p>The value must contain the sum of all items sent at room level, such as <strong>dailyPrices, addons and taxPrice</strong>.</p>\n<p>If not sent, Channel manager will automatically calculate the value based on the items you sent in the message.</p>\n<h3 id=\"reservation-level---mandatory\">Reservation level - mandatory</h3>\n<p>The value must contain the sum of all items sent within the whole reservation, such as <strong>dailyPrices, addons and taxPrice.</strong></p>\n<h2 id=\"commissionamount\">commissionAmount</h2>\n<p>Commission amount calculated by the partner.</p>\n<h3 id=\"room-level\">Room level</h3>\n<p>Commission amount for a single room within the reservation</p>\n<h3 id=\"reservation-level\">Reservation level</h3>\n<p>Commission amount for the whole reservation.</p>\n<h2 id=\"optionexpiration\">optionExpiration</h2>\n<p>If the reservation is not yet confirmed (e.g. due to non-payment or inquiry), it is sent as an option, where the option expires based on the \"optionExpiration\" element, which has a time and date value. When reservation is not confirmed (option expired), partner has to send reservation cancelation. In case of confirmation, send reservation modification without element \"optionExpiration\" and Previo will switch the reservation to state confirmed.</p>\n<h2 id=\"styid\">styId</h2>\n<p>Used for sending stay packages. Value determines specific package in Previo, value has to match package ID in Previo. Do not use if Hotel.getStayPackages API is not implemented.</p>\n<h2 id=\"customer\">customer</h2>\n<p>Person who made a reservation (Contact person). Usually the first guest in the reservation. Customer firstName and lastName is mandatory, when guests does not contain firstName and lastName, Channel manager will put the customer as the first guest in the reservation.</p>\n<h2 id=\"guests\">guests</h2>\n<p>For the \"guests\" element, it is not necessary to know the names of all guests. The most important is to send the correct number of guest and their ages. You can send customer firstName and lastName as the first guest in the reservation or leave it empty and Channel manager will do it automatically (see customer).</p>\n<h2 id=\"guests---type-and-age\">guests - type and age</h2>\n<p>Guest type determinates the guest category to which the guest is saved when reservation is saved to Previo. There are several guest types you can send us, but the most important is to send correct age for each guests. Age has always the higher priroty when Previo determinates to which category guest should be saved to.</p>\n<h2 id=\"paid---room-level\">paid - room level</h2>\n<p>Determines whether accommodation service is prepaid</p>\n<h2 id=\"payment\">payment</h2>\n<p>Payment is used to specify payment type and additional information about how money should be charged. Mainly used when reservation is prepaid by online payment or bank transfer.</p>\n<h3 id=\"type\">type</h3>\n<p>Reservation can be paid by several methods, below is the list of each method and value which should by send as type.</p>\n<p>Possible values:</p>\n<ul>\n<li><p>Credit card - cc</p>\n</li>\n<li><p>Bank transfer - transfer</p>\n</li>\n<li><p>Cash - cash</p>\n</li>\n<li><p>Paid on partner side - ota</p>\n</li>\n<li><p>not avaiable - na</p>\n</li>\n</ul>\n<h3 id=\"amount\">amount</h3>\n<p>Amount which was prepaid</p>\n<h3 id=\"currency-1\">currency</h3>\n<p>Currency of the payment. Currency should be always the same as the currency of the reservation.</p>\n<h3 id=\"note\">note</h3>\n<p>Additional information about payment. For example Paid deposit 200 EUR.</p>\n<h2 id=\"rooms\">rooms</h2>\n<p>Each room within the reservation needs to be specified in this array</p>\n<h3 id=\"fromto\">from/to</h3>\n<p>Arrival and departure</p>\n<h3 id=\"roomtypeid\">roomTypeId</h3>\n<p>Room type ID on partner side.</p>\n<h3 id=\"roomtypename\">roomTypeName</h3>\n<p>Room type name on partner side</p>\n<h3 id=\"rateplanid\">ratePlanId</h3>\n<p>Rate plan ID on partner side</p>\n<h3 id=\"rateplanname\">ratePlanName</h3>\n<p>Rate plan name on partner side</p>\n<h3 id=\"roomreservationid\">roomReservationId</h3>\n<p>roomReservationId is used for to specify room within the room type, if your system is not saving such information, you do not need to send us real roomReservationId, but it is enought to differentiate roomReservationId for each room type, keep in mind that roomReservationId has to be different for each room withnih the group reservation.</p>\n<p>For example if group reservation contains of two room types, roomReservationId for the first room type would be 1 and second 2.</p>\n<p>When guest modifes the reservation, send us the same roomReservationId as you sent in new reservation. <strong>roomReservationId should be changed only when guest modifies the room type, for example change from Double to Triple room.</strong></p>\n<h3 id=\"meal\">meal</h3>\n<p>Ordered meal type</p>\n<p>Possible values:</p>\n<ul>\n<li><p>Without meal - none</p>\n</li>\n<li><p>Breakfast - breakfast</p>\n</li>\n<li><p>Lunch - lunch</p>\n</li>\n<li><p>Dinner - dinner</p>\n</li>\n<li><p>Half board - half-board</p>\n</li>\n<li><p>Full board - full-board</p>\n</li>\n<li><p>All inclusive - all-inclusive</p>\n</li>\n</ul>\n<h3 id=\"taxprice\">taxPrice</h3>\n<p>City tax amount. If not sent, Previo will calculate the tax price based on the client's settings.</p>\n<h3 id=\"taxpaid\">taxPaid</h3>\n<p>Determines whether city tax is prepaid. Set it to true only if city tax has been prepaid, otherwise do not specify it or send false, so Previo will determine the payment based on accomodation setting.</p>\n<h2 id=\"dailyprices\">dailyPrices</h2>\n<p>This array is used to send price for each night. Most importat is to send element <strong>date and price.</strong></p>\n<h2 id=\"addons\">addons</h2>\n<p>Extra service for specific room type (reservation), for example cleaing fee, bottle of wine, pet fee.</p>\n<h3 id=\"name\">name</h3>\n<p>Name of extra service</p>\n<h3 id=\"priceperunit\">pricePerUnit</h3>\n<p>Price of extra service</p>\n<h3 id=\"paid\">paid</h3>\n<p>Specifies if extra service is prepaid</p>\n<h3 id=\"count\">count</h3>\n<p>Specifies how many extra services guest ordered</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Element</strong></th>\n<th></th>\n<th></th>\n<th><strong>Data type</strong></th>\n<th><strong>Occurrence</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Default value</strong></th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reservationId</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Reservation ID (voucher) on partners side. Number has to be unique across all hotels. If reservations number are not unique, you can send reservationId as combination of hotel ID and reservation ID (4545455_123)</td>\n</tr>\n<tr>\n<td>hotelId</td>\n<td></td>\n<td></td>\n<td>int</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Hotel ID on partner side.</td>\n</tr>\n<tr>\n<td>status</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td></td>\n<td>Y</td>\n<td></td>\n<td>Status of reservation (new, modified, cancelled)</td>\n</tr>\n<tr>\n<td>currency</td>\n<td></td>\n<td></td>\n<td>currency</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Reservation currency</td>\n</tr>\n<tr>\n<td>created</td>\n<td></td>\n<td></td>\n<td>DateTime</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Time and date when new reservation was created. This value always determines the time of creation of a new reservation, if a modification or cancellation is sent, the value will always be the same as for a new reservation.</td>\n</tr>\n<tr>\n<td>lastChange</td>\n<td></td>\n<td></td>\n<td>DateTime</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Time and date when reservation was modified/cancelled. When modification or cancellation is sent, the date and time must be different (in the future) than the time the new reservation was created.</td>\n</tr>\n<tr>\n<td>language</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Guest language</td>\n</tr>\n<tr>\n<td>totalPrice</td>\n<td></td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Total price of reservation</td>\n</tr>\n<tr>\n<td>commissionAmount</td>\n<td></td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Commission amount for whole reservation</td>\n</tr>\n<tr>\n<td>optionExpiration</td>\n<td></td>\n<td></td>\n<td>DateTime</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Used only in case of inquiry. The date and time determines the validity of the inquiry</td>\n</tr>\n<tr>\n<td>styId</td>\n<td></td>\n<td></td>\n<td>int</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Used for sending stay packages. Value determines specific package in Previo, value has to match packahe ID in Previo. Do not use if Hotel.getStayPackages API is not implemented.</td>\n</tr>\n<tr>\n<td>customer</td>\n<td></td>\n<td></td>\n<td>array</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Person who made a reservation (Contact person). Usually the first guest in the reservation.</td>\n</tr>\n<tr>\n<td></td>\n<td>firstName</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Contact person name</td>\n</tr>\n<tr>\n<td></td>\n<td>lastName</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Contact person surname</td>\n</tr>\n<tr>\n<td></td>\n<td>email</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person email</td>\n</tr>\n<tr>\n<td></td>\n<td>phone</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person phone number</td>\n</tr>\n<tr>\n<td></td>\n<td>country</td>\n<td></td>\n<td>Country</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person country</td>\n</tr>\n<tr>\n<td></td>\n<td>city</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person city</td>\n</tr>\n<tr>\n<td></td>\n<td>zip</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person zip code</td>\n</tr>\n<tr>\n<td></td>\n<td>street</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Contact person street</td>\n</tr>\n<tr>\n<td></td>\n<td>company</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Name of the company</td>\n</tr>\n<tr>\n<td></td>\n<td>companyVatNumber</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Company VAT number</td>\n</tr>\n<tr>\n<td></td>\n<td>note</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Guest note. This note is shown in the first guest of the reservation (for example vegetarian)</td>\n</tr>\n<tr>\n<td></td>\n<td>streetNumber</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Street Number</td>\n</tr>\n<tr>\n<td>payment</td>\n<td></td>\n<td></td>\n<td>Array</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Payment is used to specify payment type and additional information about how money should be charged. Mainly used when reservation is prepaid by online payment or bank transfer.</td>\n</tr>\n<tr>\n<td></td>\n<td>type</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Payment type</td>\n</tr>\n<tr>\n<td></td>\n<td>amount</td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Amount which was prepaid</td>\n</tr>\n<tr>\n<td></td>\n<td>currency</td>\n<td></td>\n<td>Currency</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Currency of the payment. Currency should be always the same as the currency of the reservation</td>\n</tr>\n<tr>\n<td></td>\n<td>note</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Additional information about payment. For example Paid deposit 200 EUR</td>\n</tr>\n<tr>\n<td>generalNote</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note</td>\n</tr>\n<tr>\n<td>extraInfo</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Extra info for the reservation. For example if some discounts/promotions were applied.</td>\n</tr>\n<tr>\n<td>cancellationPolicy</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note about cancelation policy</td>\n</tr>\n<tr>\n<td>customerComments</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note about customer comment. For example I would like to arrive at 16:00, is it possible?</td>\n</tr>\n<tr>\n<td>threadId</td>\n<td></td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Used for communication between hotel and the guest via API (Channel manager). Do not send it, if communication is not implemented on both side.</td>\n</tr>\n<tr>\n<td>rooms</td>\n<td></td>\n<td></td>\n<td>array</td>\n<td>1...n</td>\n<td>Y</td>\n<td></td>\n<td>Each room within the reservation needs to be specified in this array</td>\n</tr>\n<tr>\n<td></td>\n<td>from</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Arrival</td>\n</tr>\n<tr>\n<td></td>\n<td>to</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Departure</td>\n</tr>\n<tr>\n<td></td>\n<td>roomTypeId</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Room type ID on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td>roomTypeName</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Room type name on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td>roomReservationId</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>ID of specific room within the room type</td>\n</tr>\n<tr>\n<td></td>\n<td>ratePlanId</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Rate plan ID on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td>ratePlanName</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Rate plan name on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td>totalPrice</td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Total price for specific room type</td>\n</tr>\n<tr>\n<td></td>\n<td>paid</td>\n<td></td>\n<td>bool</td>\n<td>1</td>\n<td>N</td>\n<td>FALSE</td>\n<td>Determines whether accommodation services are prepaid</td>\n</tr>\n<tr>\n<td></td>\n<td>meal</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Meal type</td>\n</tr>\n<tr>\n<td></td>\n<td>taxPrice</td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>N</td>\n<td>0</td>\n<td>City tax amount</td>\n</tr>\n<tr>\n<td></td>\n<td>taxPaid</td>\n<td></td>\n<td>bool</td>\n<td>1</td>\n<td>N</td>\n<td>FALSE</td>\n<td>Determines whether city tax is prepaid</td>\n</tr>\n<tr>\n<td></td>\n<td>commissionAmount</td>\n<td></td>\n<td>float</td>\n<td>1</td>\n<td>N</td>\n<td>0</td>\n<td>Commission amount for specific room type (reservation)</td>\n</tr>\n<tr>\n<td></td>\n<td>info</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note</td>\n</tr>\n<tr>\n<td></td>\n<td>extraInfo</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note</td>\n</tr>\n<tr>\n<td></td>\n<td>remarks</td>\n<td></td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Reservation note</td>\n</tr>\n<tr>\n<td></td>\n<td>dailyPrices</td>\n<td></td>\n<td>array</td>\n<td>1...n</td>\n<td></td>\n<td></td>\n<td>Price for each night</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>date</td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Date</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>price</td>\n<td>float</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Price for single night</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>ratePlanId</td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Rate plan ID on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>ratePlanName</td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Rate plan name on partner side</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>note</td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Price note</td>\n</tr>\n<tr>\n<td></td>\n<td>addons</td>\n<td></td>\n<td>array</td>\n<td>0...n</td>\n<td>N</td>\n<td></td>\n<td>Extra service for specific room type (reservation), for example cleaing fee, bottle of wine, pet fee...</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>name</td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Name of extra service</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>pricePerUnit</td>\n<td>float</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Price of extra service</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>paid</td>\n<td>bool</td>\n<td>1</td>\n<td>N</td>\n<td>FALSE</td>\n<td>Specifies if extra service is prepaid</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>count</td>\n<td>int</td>\n<td>1</td>\n<td>N</td>\n<td>1</td>\n<td>Specifies how many extra services guest ordered</td>\n</tr>\n<tr>\n<td></td>\n<td>guests</td>\n<td></td>\n<td>array</td>\n<td>0...n</td>\n<td>N</td>\n<td></td>\n<td>Specifies each guest in specific room type (reservation)</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>firstName</td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Guest name</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>lastName</td>\n<td>string</td>\n<td>1</td>\n<td>Y</td>\n<td></td>\n<td>Guest surname</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>type</td>\n<td>string</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Guest category (adult,child)</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td>age</td>\n<td>int</td>\n<td>1</td>\n<td>N</td>\n<td></td>\n<td>Guest age</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"PMAK-67b358f9c44b57000165b501-c975452fec5b884d381896d67ed1555d4f"}]},"isInherited":true,"source":{"_postman_id":"488b7ae6-3cc5-4f2d-bd97-a848cd0fc73d","id":"488b7ae6-3cc5-4f2d-bd97-a848cd0fc73d","name":"Previo Channel manager Standard","type":"collection"}},"urlObject":{"protocol":"https","path":["api","reservation"],"host":["chmproxy","previo","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"44777b67-50a4-4293-bdeb-de2c6b9c7854"},{"name":"Mapping - rooms","id":"9ab1b92a-6be7-4a96-a335-33342c49497c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rooms?hotelId=123","description":"<h1 id=\"detailed-explanation\">Detailed explanation</h1>\n<p>Endpoint which must be created by partner (you) in order to create mapping of room types from Previo with room types in your system.</p>\n","urlObject":{"path":["previo","rooms"],"host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"query":[{"key":"hotelId","value":"123"}],"variable":[]}},"response":[{"id":"e31af994-576c-49bb-a358-1e580c74a1ed","name":"Mapping - rooms","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rooms?hotelId=123","host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"path":["previo","rooms"],"query":[{"key":"hotelId","value":"123"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"hotelId\" : 123,\r\n    \"rooms\": [\r\n        {\r\n            \"id\": \"456\",\r\n            \"name\": \"name\",\r\n            \"active\": true,\r\n            \"defaultAllotment\": 2,\r\n            \"maxAllotment\": 3,\r\n            \"minNumAdults\": 1,\r\n            \"maxNumAdults\": 2,\r\n            \"numChildren\": 2,\r\n            \"numOfRooms\": 10\r\n        },\r\n        {\r\n            \"id\": \"789\"\r\n        }\r\n    ]\r\n}"}],"_postman_id":"9ab1b92a-6be7-4a96-a335-33342c49497c"},{"name":"Mapping - rate plans","id":"bdedf63c-21c7-487e-b365-ebc2dad51cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rate-plans?hotelId=123&roomId=456","description":"<h1 id=\"detailed-explanation\">Detailed explanation</h1>\n<p>Endpoint which must be created by partner (you) in order to create mapping of rateplans from Previo with rateplans in your system.</p>\n<p>Meal types:</p>\n<ul>\n<li><p>breakfast</p>\n</li>\n<li><p>halfboard</p>\n</li>\n<li><p>fullboard</p>\n</li>\n<li><p>allinclusive</p>\n</li>\n<li><p>none</p>\n</li>\n</ul>\n<p>Pricing models:</p>\n<ul>\n<li><p>1 - occupancy based</p>\n</li>\n<li><p>2 - per day</p>\n</li>\n</ul>\n","urlObject":{"path":["previo","rate-plans"],"host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"query":[{"key":"hotelId","value":"123"},{"key":"roomId","value":"456"}],"variable":[]}},"response":[{"id":"716df7b5-5c14-4ce6-a9b0-bd3171712fa1","name":"Mapping - rate plans - all","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rate-plans?hotelId=123","host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"path":["previo","rate-plans"],"query":[{"key":"hotelId","value":"123"},{"key":"roomId","value":"456","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"hotelId\": 123,\r\n    \"ratePlans\": [\r\n        {\r\n            \"id\": \"456\",\r\n            \"name\": \"name\",\r\n            \"active\": true,\r\n            \"minStay\": 3,\r\n            \"maxStay\": 10,\r\n            \"pricing_model\": 1,\r\n            \"mealPlan\": \"breakfast\"\r\n        }, {\r\n            \"id\": \"789\"\r\n        }\r\n    ]\r\n}"},{"id":"a599e415-038a-4def-bf8b-08ca18e74c04","name":"Mapping - rate plans - per room","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rate-plans?hotelId=123&roomId=456","host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"path":["previo","rate-plans"],"query":[{"key":"hotelId","value":"123"},{"key":"roomId","value":"456"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"hotelId\": 123,\n    \"roomId\": \"456\",\n    \"ratePlans\": [\n        {\n            \"id\": \"788\",\n            \"name\": \"name\",\n            \"active\": true,\n            \"minStay\": 3,\n            \"maxStay\": 10,\n            \"pricing_model\": 1,\n            \"mealPlan\": \"breakfast\"\n        },\n        {\n            \"id\": \"789\"\n        }\n    ]\n}"}],"_postman_id":"bdedf63c-21c7-487e-b365-ebc2dad51cfd"},{"name":"Availability, Rates and Restrictions","id":"fc5fb1e8-13b4-49f2-b08c-151207bcb9d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"hotelId\": 1,\r\n  \"requests\": [\r\n    {\r\n      \"requestId\": \"def\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"ghi\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": false,\r\n        \"allotment\": false,\r\n        \"restrictions\": true,\r\n        \"stopSale\": false\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"jkl\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"dataChanges\": {\r\n        \"rates\": false,\r\n        \"allotment\": false,\r\n        \"restrictions\": false,\r\n        \"stopSale\": true\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rates-allotment","description":"<h1 id=\"detailed-explanation\">Detailed explanation</h1>\n<p>Endpoint which must be created by partner (you) in order to receive rates, availability and restrictions from Previo CHM.</p>\n<h2 id=\"request\">Request</h2>\n<p>See the full structure of the request in the right column.</p>\n<p>Within a single HTTP request, multiple change requests may be included (see the <code>\"requests\"</code> key in the right column), each with a unique value in the <code>requestId</code> attribute. This requestId is important for the Response in the case of the error (see the section Respose below)</p>\n<h4 id=\"request-structure\">Request structure</h4>\n<ul>\n<li><p><strong>hotelId -</strong> Property ID on partner side</p>\n</li>\n<li><p><strong>requests</strong> - an array of requested changes</p>\n<ul>\n<li><p><strong>requestId</strong> - Automatically generated, unique ID for each change.</p>\n</li>\n<li><p><strong>roomTypeId -</strong> Room type ID on partner side</p>\n</li>\n<li><p><strong>ratePlanId -</strong> Rate plan ID on partner side</p>\n</li>\n<li><p><strong>created -</strong> Time and date when request was generated</p>\n</li>\n<li><p><strong>from/to -</strong> Period of the update (inclusive date in element to)</p>\n</li>\n<li><p><strong>stopSale</strong> - Closure of rate plan. Values: true/false</p>\n</li>\n<li><p><strong>prices -</strong> Informations about pricing type, currency and rates.</p>\n<ul>\n<li><p><strong>priceType -</strong> Specifies whether prices are sent per person or per room. Possible values are \"per-room\" or \"per-occupancy\"</p>\n</li>\n<li><p><strong>currency -</strong> Currency of rates and mealPrice. Example: CZK, EUR,...</p>\n</li>\n<li><p><strong>rates -</strong> Price for specific number of person or multiple persons</p>\n</li>\n</ul>\n</li>\n<li><p><strong>mealPrice -</strong> Meal price for single person<br />  _Price for 1 person is sent - the total price is calculated by multiplying the number of persons (e.g. price for breakfast is 10 EUR, the price for double room for 1 person is 100 EUR, for 2 persons 120 EUR - the price for accommodation with breakfast is 110 EUR for 1 person. and 140 EUR for 2 persons).__<strong>The mealPrice value can be negative.</strong>_<em>If mealPrice is null, the specific combination of room type and rate plan (within the request) must be closed (the same behavior as if a stop sale has been sent).</em></p>\n</li>\n<li><p><strong>availability</strong></p>\n<ul>\n<li><strong>availableRooms -</strong> Number of available rooms</li>\n</ul>\n</li>\n<li><p><strong>restrictions -</strong> Restriction types</p>\n<ul>\n<li><p><strong>minimumStay -</strong> Restricts minimum number of nights</p>\n</li>\n<li><p><strong>maximumStay -</strong> Restricts maximum number of nights</p>\n</li>\n<li><p><strong>closedToArrival -</strong> Determines whether arrival is available. Values: true/false</p>\n</li>\n<li><p><strong>closedToDeparture -</strong> Determines whether departure is available. Valules: true/false</p>\n</li>\n<li><p><strong>minAdvanceOfReservation -</strong> Minimal (time) advance for creating a reservation for particular day. Number in hours.<br />  <em>Relative to midnight of the day for which it is set - the resulting time of possible reservation is equal to midnight minus the set restriction value in hours (e.g. midnight minus 7H restriction = reservation only until 17:00 on a given day)</em></p>\n</li>\n</ul>\n</li>\n<li><p><strong>dataChanges -</strong> Data which needs to be processed (were changed)</p>\n<ul>\n<li><p><strong>rates -</strong> Price change (including mealPrice). Values: true/false</p>\n</li>\n<li><p><strong>allotment -</strong> Availability change. Values: true/false</p>\n</li>\n<li><p><strong>restrictions -</strong> Restrictions change. Values: true/false</p>\n</li>\n<li><p><strong>stopSale -</strong> Stop Sell change. Values: true/false</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>See the structures of different responses in the right column.</p>\n<p>The response contains a list of errors and warnings (under separate keys).<br />Individual <strong>errors</strong> are linked to a specific change request via the <code>requestId</code>. Each error must contain its <code>type</code> (see the list below).<br /><strong>Warnings</strong> are simply a list of strings.<br />If all change requests are processed successfully, the return value is therefore an empty JSON object <code>{}</code>.</p>\n<p><strong>The response structure is strict</strong></p>\n<h4 id=\"errors--type\">errors : type</h4>\n<ul>\n<li><p>AUTHORIZATION</p>\n</li>\n<li><p>INVALID_REQUEST - issue in format, for example missing roomTypeId element</p>\n</li>\n<li><p>INVALID_DATA - use in case when some values sent within the request does not match with values set up on our side. For example invalid ID of roomTypeId, ratePlanId or invalid currency.</p>\n</li>\n<li><p>PERMANENT</p>\n</li>\n<li><p>TEMPORARY</p>\n</li>\n</ul>\n","urlObject":{"path":["previo","rates-allotment"],"host":["https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io"],"query":[],"variable":[]}},"response":[{"id":"867db093-6902-41c9-a4ca-853666fbdd2b","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"hotelId\": 1,\r\n  \"requests\": [\r\n    {\r\n      \"requestId\": \"def\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"ghi\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"jkl\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rates-allotment"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"bffb27b6-28b3-463f-b429-ab70c41eef59","name":"Success with warnings","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"hotelId\": 1,\r\n  \"requests\": [\r\n    {\r\n      \"requestId\": \"def\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"ghi\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"jkl\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rates-allotment"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"warnings\": [\r\n        \"Warning1\",\r\n        \"Any text\"\r\n    ]\r\n}"},{"id":"9785a90c-dc14-4657-83dc-1f3e806b7c6f","name":"Success partial","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"hotelId\": 1,\r\n  \"requests\": [\r\n    {\r\n      \"requestId\": \"def\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"ghi\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"jkl\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rates-allotment"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"type\": \"AUTHORIZATION\",\n            \"requestId\": \"ghi\",\n            \"partnerErrorType\": \"anyString\",\n            \"description\": \"description\"\n        },\n        {\n            \"type\": \"INVALID_REQUEST\",\n            \"requestId\": \"jkl\"\n        }\n    ]\n}"},{"id":"99963bb4-4fea-4f59-a993-dc5de70d0d43","name":"Failed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"hotelId\": 1,\r\n  \"requests\": [\r\n    {\r\n      \"requestId\": \"def\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"ghi\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    },\r\n    {\r\n      \"requestId\": \"jkl\",\r\n      \"roomTypeId\": \"1\",\r\n      \"ratePlanId\": \"1\",\r\n      \"created\": \"2019-01-18T08:06:43.069981+0000\",\r\n      \"from\": \"2018-09-28\",\r\n      \"to\": \"2018-09-29\",\r\n      \"stopSale\": true,\r\n      \"prices\": {\r\n        \"priceType\": \"per-room\",\r\n        \"currency\": \"CZK\",\r\n        \"rates\": {\r\n          \"2\": 1000\r\n        }\r\n      },\r\n      \"mealPrice\": 0,\r\n      \"availability\": {\r\n        \"availableRooms\": 3\r\n      },\r\n      \"restrictions\": {\r\n        \"minimumStay\": 3,\r\n        \"maximumStay\": 9,\r\n        \"closedToArrival\": false,\r\n        \"closedToDeparture\": false,\r\n        \"minAdvanceOfReservation\": 12\r\n      },\r\n      \"dataChanges\": {\r\n        \"rates\": true,\r\n        \"allotment\": true,\r\n        \"restrictions\": true,\r\n        \"stopSale\": true\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io/previo/rates-allotment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"fc5fb1e8-13b4-49f2-b08c-151207bcb9d1"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"PMAK-67b358f9c44b57000165b501-c975452fec5b884d381896d67ed1555d4f"}]}},"event":[{"listen":"prerequest","script":{"id":"9952f9ef-3155-409b-b98d-c2d2def3c9e2","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"9f0d73c2-dc40-4b79-895a-cacd9c5ee477","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"MOCK_SERVER_URL","value":"https://4abf2754-c507-4934-a463-e7156ee3469f.mock.pstmn.io","type":"string"},{"key":"MOCK_SERVER_API_KEY","value":"PMAK-67b358f9c44b57000165b501-c975452fec5b884d381896d67ed1555d4f","type":"string"}]}