{"info":{"_postman_id":"8dafc211-1e62-4b01-aee7-25e2807d38d5","name":"REST - Point of Sale (POS)","description":"<html><head></head><body><p>This is API collection primarely for companies offering POS in restaurants and other establishments, which need to add some items to hotel account in Previo PMS.</p>\n<p><strong>URL address</strong>: <a href=\"https://api.previo.app\">https://api.previo.app</a></p>\n<h1 id=\"how-to-use\">How to use</h1>\n<h2 id=\"connection-with-pos-restaurant-systems\">Connection with POS (Restaurant systems)</h2>\n<ol>\n<li>Call <a href=\"https://pos.apidocs.previo.cz/#d41db3a1-6107-4c02-af50-729cc4844852\">reservations/current</a> to get all reservations, which are currently on-going, meaning that the guests are in the hotel right now. The output will be list of all ongoing reservations.</li>\n<li>In POS system display the list of reservations and allow to choose any reservation for transferring the consumed items. Room name can be obtained from <code>room</code> -&gt; <code>roomName</code>, guest name can be obtained from <code>guests</code> -&gt; <code>firstName</code> + <code>lastName</code>. Optionaly, but strongly recommended, there could be possibility to choose specific guest (directly from POS) who should pay the items.</li>\n<li>After choosing room or room + guest call <a href=\"https://pos.apidocs.previo.cz/#69d6ae36-7440-4d5d-832c-b08469d2ee70\">accounts/items</a>, with param <code>roomReservationId</code> obtained from previous call of <a href=\"https://pos.apidocs.previo.cz/#d41db3a1-6107-4c02-af50-729cc4844852\">reservations/current</a>. If guest was selected as well, you need to send <code>owner</code> as well. We strongly recommend to send item segment as well (using the <code>segmentId</code> parameter set - ID 3- gastro, ID 1 - bar, ID 12 - restaurant). Complete list of segments can be found here: <a href=\"https://pos.apidocs.previo.cz/#73fca644-cd67-4b3e-8080-0398b08b9447\">codebooks/segments</a></li>\n</ol>\n<p>Most of the connected POSes include settings how to send account items</p>\n<ul>\n<li>Merged items</li>\n</ul>\n<p><code>Restaurant consumption (25.6.2015 15:45) - 1pcs - 15% VAT - 200 EUR</code></p>\n<ul>\n<li>Merged items with reference number</li>\n</ul>\n<p><code>Restaurant consumption - 12345789 (25.6.2015 15:45) - 1pcs - 15% VAT - 200 EUR</code></p>\n<ul>\n<li>Splitted items</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Beer - 2pcs - 10% VAT - 70 CZK  \nGin &amp; Tonic - 1pc - 10% VAT - 150 CZK\n\n</code></pre><h1 id=\"api-priviliges\">API priviliges</h1>\n<p>API priviliges required to use all of the endpoints:</p>\n<p><strong>Point of sale</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"How to use","slug":"how-to-use"},{"content":"API priviliges","slug":"api-priviliges"}],"owner":"21342845","collectionId":"8dafc211-1e62-4b01-aee7-25e2807d38d5","publishedId":"2s8YYPFf41","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-27T10:22:07.000Z"},"item":[{"name":"hotels","event":[{"listen":"prerequest","script":{"id":"f016d379-e212-483f-970f-fc1b98635b35","exec":["//postman.setEnvironmentVariable(\"username\", \"vitalii.yeremeiev@previo.cz\");","//postman.setEnvironmentVariable(\"password\", \"EU4N8GvTcM\");","//postman.setEnvironmentVariable(\"previo_api_url\", \"https://api.release.previo.info\");","//postman.setEnvironmentVariable(\"previo_api_url\", \"http://api.previo.loc\");","//postman.setEnvironmentVariable(\"previo_api_url\", \"http://api.previo.cz\");"],"type":"text/javascript"}}],"id":"54802b25-05d2-477d-990e-693d40d41159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Previo-App-ID","value":"7","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{previo_api_url}}/pos/hotels","description":"<p>Get list of hotels and their IDs</p>\n<h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>hotId</code> [1] (int)</td>\n<td>Hotel ID</td>\n</tr>\n<tr>\n<td><code>name</code> [1] (string)</td>\n<td>Name of the hotel</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["pos","hotels"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"7429d2e8-ce44-4699-9943-49801f271956","name":"200","originalRequest":{"method":"GET","header":[],"url":"{{previo_api_url}}/pos/hotels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 07 Feb 2023 14:35:09 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"key":"vary","value":"Accept-Encoding"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"cache-control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"x-previo-server-instance","value":"web02"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"hotId\": 1,\n        \"name\": \"Test - nezadavat fakturacni udaje !!!\"\n    },\n    {\n        \"hotId\": 2,\n        \"name\": \"Previo\"\n    },\n    {\n        \"hotId\": 730099,\n        \"name\": \"Test hotel API\"\n    }\n]"}],"_postman_id":"54802b25-05d2-477d-990e-693d40d41159"},{"name":"codebooks/currencies","event":[{"listen":"prerequest","script":{"id":"708afca5-1803-4d6c-932a-511ba32b0c32","exec":[""],"type":"text/javascript"}}],"id":"92c79459-77c8-4105-a0c2-90265f4e2a05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Previo-App-ID","value":"7","type":"text"}],"url":"{{previo_api_url}}/pos/codebooks/currencies","description":"<p>Global list of codes for currencies.</p>\n<h2 id=\"response\">Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code> [1] (int)</td>\n<td>Currency ID</td>\n</tr>\n<tr>\n<td><code>name</code> [1] (string)</td>\n<td>Currency name</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["pos","codebooks","currencies"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"b9bcad77-90dc-487e-8491-4015c78abd9b","name":"200","originalRequest":{"method":"GET","header":[],"url":"{{previo_api_url}}/pos/codebooks/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 07 Feb 2023 14:36:08 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"key":"vary","value":"Accept-Encoding"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"cache-control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"x-previo-server-instance","value":"web02"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"CZK\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"EUR\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"USD\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"SKK\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"GBP\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"PLN\"\n    },\n    {\n        \"id\": 7,\n        \"name\": \"RUB\"\n    },\n    {\n        \"id\": 8,\n        \"name\": \"UAH\"\n    },\n    {\n        \"id\": 9,\n        \"name\": \"HUF\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"DKK\"\n    },\n    {\n        \"id\": 12,\n        \"name\": \"CRC\"\n    },\n    {\n        \"id\": 14,\n        \"name\": \"RSD\"\n    },\n    {\n        \"id\": 15,\n        \"name\": \"DOP\"\n    },\n    {\n        \"id\": 16,\n        \"name\": \"HNL\"\n    },\n    {\n        \"id\": 17,\n        \"name\": \"HRK\"\n    },\n    {\n        \"id\": 18,\n        \"name\": \"CHF\"\n    },\n    {\n        \"id\": 19,\n        \"name\": \"JPY\"\n    },\n    {\n        \"id\": 20,\n        \"name\": \"AED\"\n    },\n    {\n        \"id\": 21,\n        \"name\": \"CNY\"\n    },\n    {\n        \"id\": 22,\n        \"name\": \"RON\"\n    },\n    {\n        \"id\": 23,\n        \"name\": \"THB\"\n    }\n]"}],"_postman_id":"92c79459-77c8-4105-a0c2-90265f4e2a05"},{"name":"codebooks/segments","event":[{"listen":"prerequest","script":{"id":"a72ae5ce-ae75-448f-9cd3-bd3b5598e7dd","exec":[""],"type":"text/javascript"}}],"id":"73fca644-cd67-4b3e-8080-0398b08b9447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Previo-App-ID","value":"7","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{previo_api_url}}/pos/codebooks/segments","description":"<p>Get list of segments assignable to account item, stock item and serivce item. The list of segments is common for all properties.</p>\n<h2 id=\"response\"><strong>Response</strong></h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id [1] (int)</td>\n<td>Segment ID</td>\n</tr>\n<tr>\n<td>name [1] (string)</td>\n<td>Segment name</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["pos","codebooks","segments"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"6b3f4ca2-f61d-4a45-8cad-ed4349b3e8a9","name":"200","originalRequest":{"method":"GET","header":[],"url":"{{previo_api_url}}/pos/codebooks/segments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 07 Feb 2023 14:36:23 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"key":"vary","value":"Accept-Encoding"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"cache-control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"x-previo-server-instance","value":"web02"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 0,\n        \"name\": \"Ostatní\"\n    },\n    {\n        \"id\": 1,\n        \"name\": \"Bar\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Drobný prodej\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Gastro\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Internet\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Masáže\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Městské poplatky\"\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Minibar\"\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Parkování\"\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Ostatní poplatky\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Pronájem\"\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Pronájem prostor\"\n    },\n    {\n        \"id\": 12,\n        \"name\": \"Restaurace\"\n    },\n    {\n        \"id\": 13,\n        \"name\": \"Sauna\"\n    },\n    {\n        \"id\": 14,\n        \"name\": \"Sleva / příplatek\"\n    },\n    {\n        \"id\": 15,\n        \"name\": \"Služby\"\n    },\n    {\n        \"id\": 16,\n        \"name\": \"Sport\"\n    },\n    {\n        \"id\": 17,\n        \"name\": \"Sportoviště\"\n    },\n    {\n        \"id\": 18,\n        \"name\": \"Stravování\"\n    },\n    {\n        \"id\": 19,\n        \"name\": \"Telefon\"\n    },\n    {\n        \"id\": 20,\n        \"name\": \"Ubytování\"\n    },\n    {\n        \"id\": 21,\n        \"name\": \"Výrobky\"\n    },\n    {\n        \"id\": 22,\n        \"name\": \"Wellness\"\n    },\n    {\n        \"id\": 23,\n        \"name\": \"Nápoje\"\n    },\n    {\n        \"id\": 24,\n        \"name\": \"Transfer\"\n    },\n    {\n        \"id\": 25,\n        \"name\": \"Úklid\"\n    },\n    {\n        \"id\": 26,\n        \"name\": \"Kosmetika\"\n    },\n    {\n        \"id\": 27,\n        \"name\": \"Škody\"\n    },\n    {\n        \"id\": 28,\n        \"name\": \"Akce\"\n    },\n    {\n        \"id\": 29,\n        \"name\": \"Storno poplatky\"\n    },\n    {\n        \"id\": 30,\n        \"name\": \"Minibarové jídlo\"\n    },\n    {\n        \"id\": 31,\n        \"name\": \"Minibarový nápoj\"\n    },\n    {\n        \"id\": 32,\n        \"name\": \"Konference\"\n    },\n    {\n        \"id\": 33,\n        \"name\": \"Balíček\"\n    },\n    {\n        \"id\": 34,\n        \"name\": \"Inventář\"\n    },\n    {\n        \"id\": 35,\n        \"name\": \"Zaměstnanci\"\n    },\n    {\n        \"id\": 36,\n        \"name\": \"Herna\"\n    },\n    {\n        \"id\": 37,\n        \"name\": \"Opravy\"\n    },\n    {\n        \"id\": 38,\n        \"name\": \"Snídaně\"\n    },\n    {\n        \"id\": 39,\n        \"name\": \"Polopenze\"\n    },\n    {\n        \"id\": 40,\n        \"name\": \"Plná penze\"\n    },\n    {\n        \"id\": 41,\n        \"name\": \"Léčení\"\n    },\n    {\n        \"id\": 42,\n        \"name\": \"Balneo\"\n    }\n]"}],"_postman_id":"73fca644-cd67-4b3e-8080-0398b08b9447"},{"name":"reservations/current","event":[{"listen":"prerequest","script":{"id":"e20abd83-8b0c-42a5-8b6c-deee2c099d5d","exec":[""],"type":"text/javascript"}}],"id":"d41db3a1-6107-4c02-af50-729cc4844852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"759281","type":"text"},{"key":"X-Previo-App-ID","value":"7","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{previo_api_url}}/pos/reservations/current","description":"<p>Get all reservations, which are currently on-going, meaning that the guests are in the hotel right now. The output will be list of all ongoing reservations.</p>\n<h1 id=\"response\"><strong>Response</strong></h1>\n<h2 id=\"reservation\">Reservation</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>reservationId</code> [1] (int)</td>\n<td>The unique identifier for reservation</td>\n</tr>\n<tr>\n<td><code>roomReservationId</code> [1] (int)</td>\n<td>The unique identifier for commission</td>\n</tr>\n<tr>\n<td><code>from</code> [1] (string)</td>\n<td>Date of arrival (YYYY-MM-DD HH:II:SS)</td>\n</tr>\n<tr>\n<td><code>to</code> [1] (string)</td>\n<td>Date of departure (YYYY-MM-DD HH:II:SS)</td>\n</tr>\n<tr>\n<td><code>voucher</code> [1] (string)</td>\n<td>Identification of the reservation for the client</td>\n</tr>\n<tr>\n<td><code>cosId</code> [1] (int)</td>\n<td>The unique identifier for <a href=\"https://xml.apidocs.previo.cz/#5b07f48d-4917-498f-9921-dade081ae596\">commission status</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"account-items\">Account Items</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>roomReservationId</code> [1] (int)</td>\n<td>Room reservation ID</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name</code> [1] (string)</td>\n<td>Item name</td>\n<td></td>\n</tr>\n<tr>\n<td><code>count</code> [1] (int)</td>\n<td>Number of pieces</td>\n<td></td>\n</tr>\n<tr>\n<td><code>price</code> [1] (float)</td>\n<td>Item price</td>\n<td></td>\n</tr>\n<tr>\n<td>segmentId [0..1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#21061e34-d38f-409d-a3ea-bc2be5bcad8c\">Segment</a></td>\n<td></td>\n</tr>\n<tr>\n<td>currencyId [1] (int)</td>\n<td><a href=\"#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">Currency</a> of the account</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vatRate</code> [1] (int)</td>\n<td>Vat rate</td>\n<td></td>\n</tr>\n<tr>\n<td><code>isGroupedByVat</code> [1] (boolean)</td>\n<td>True if items are grouped by VAT</td>\n<td></td>\n</tr>\n<tr>\n<td><code>accountingCode</code> [0..1] (string)</td>\n<td>Accounting code</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vatClassificationCode</code> [0..1] (string)</td>\n<td>Vat classification code</td>\n<td></td>\n</tr>\n<tr>\n<td><code>raoId</code> [0..1] (int)</td>\n<td>Reservation account owner id</td>\n<td></td>\n</tr>\n<tr>\n<td>Owner of account item</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>id</code> [1] (int)</td>\n<td>The unique identifier for item owner (for example guest ID)</td>\n</tr>\n<tr>\n<td></td>\n<td><code>type</code> [1] (string)</td>\n<td>Types of owner:  <br />- company  <br />- ota  <br />- guest</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"room\">Room</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>roomId</code> [1] (int)</td>\n<td>Room identification</td>\n</tr>\n<tr>\n<td><code>roomTypeId</code> [1] (int)</td>\n<td>Room type identification</td>\n</tr>\n<tr>\n<td><code>roomName</code> [1] (string)</td>\n<td>Name of the room</td>\n</tr>\n<tr>\n<td><code>roomTypeName</code> [1] (string)</td>\n<td>Name of the room type</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"guest\">Guest</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>guestCount</code></td>\n<td>Number of guests in roomReservation</td>\n<td></td>\n</tr>\n<tr>\n<td><code>guests</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>id</code> [1] (int)</td>\n<td>Guest identification</td>\n</tr>\n<tr>\n<td></td>\n<td><code>name</code> [0..1] (string)</td>\n<td>Full name of the guest</td>\n</tr>\n<tr>\n<td></td>\n<td><code>firstName</code> [0..1] (string)</td>\n<td>First name</td>\n</tr>\n<tr>\n<td></td>\n<td><code>lastName</code> [0..1] (string)</td>\n<td>Last Name</td>\n</tr>\n<tr>\n<td></td>\n<td><code>sex</code> [0..1] (string)</td>\n<td>Gender</td>\n</tr>\n<tr>\n<td></td>\n<td><code>guestCatType</code> [1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#451b3835-28d2-4250-9f35-9c1d0a5d4101\">Guest Category</a> or guaId</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["pos","reservations","current"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"fea7e053-5013-4cb4-924a-d1c5d4cbfac9","name":"reservations/current","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"}],"url":"{{previo_api_url}}/pos/reservations/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 27 Feb 2023 09:37:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Powered-By","value":"PHP/8.1.13"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"reservationId\": 12482675,\n        \"commissionId\": 13335355,\n        \"from\": \"2023-02-17 14:00:00\",\n        \"to\": \"2023-03-16 10:00:00\",\n        \"voucher\": \"20220054\",\n        \"accountItems\": [\n            {\n                \"roomReservationId\": 13335355,\n                \"name\": \"Ubytovací služby (pokoj: F004, termín: 17. 2. 2023 - 16. 3. 2023, hostů: 4)\",\n                \"count\": 27,\n                \"price\": 0,\n                \"segmentId\": 20,\n                \"currencyId\": 2,\n                \"vatRate\": 10,\n                \"isGroupedByVat\": false,\n                \"accountingCode\": null,\n                \"vatClassificationCode\": null,\n                \"raoId\": null,\n                \"owner\": null\n            },\n            {\n                \"roomReservationId\": 13335355,\n                \"name\": \"Strava (4x oběd, hostů: 4)\",\n                \"count\": 27,\n                \"price\": 35.4207,\n                \"segmentId\": 18,\n                \"currencyId\": 2,\n                \"vatRate\": 10,\n                \"isGroupedByVat\": false,\n                \"accountingCode\": null,\n                \"vatClassificationCode\": null,\n                \"raoId\": null,\n                \"owner\": null\n            }\n        ],\n        \"room\": {\n            \"roomId\": 629323,\n            \"roomTypeId\": 472002,\n            \"roomName\": \"F004\",\n            \"roomTypeName\": \"Rodina\"\n        },\n        \"guestCount\": 4,\n        \"guests\": [\n            {\n                \"id\": 37880011,\n                \"name\": \"Bill Smith\",\n                \"firstName\": \"Bill\",\n                \"lastName\": \"Smith\",\n                \"sex\": \"m\",\n                \"guestCatType\": 3\n            },\n            {\n                \"id\": 37880012,\n                \"name\": \"Lean Jonhson\",\n                \"firstName\": \"Lean\",\n                \"lastName\": \"Jonhson\",\n                \"sex\": \"f\",\n                \"guestCatType\": 1\n            },\n            {\n                \"id\": 37880013,\n                \"name\": \"Nick Somer\",\n                \"firstName\": \"Nick\",\n                \"lastName\": \"Somer\",\n                \"sex\": \"m\",\n                \"guestCatType\": 1\n            },\n            {\n                \"id\": 37880014,\n                \"name\": \"Jack Gelovan\",\n                \"firstName\": \"Jack\",\n                \"lastName\": \"Gelovan\",\n                \"sex\": \"m\",\n                \"guestCatType\": 3\n            }\n        ],\n        \"cosId\": 1\n    }\n]"}],"_postman_id":"d41db3a1-6107-4c02-af50-729cc4844852"},{"name":"reservations?cardNumber","event":[{"listen":"prerequest","script":{"id":"dded871c-ccd7-4b61-83d7-1f6646aa8140","exec":["postman.setEnvironmentVariable(\"hotId\", 730820);","postman.setEnvironmentVariable(\"cardNumber\", 6360);"],"type":"text/javascript"}}],"id":"86835b44-1bd4-4305-90cd-dbdf74750b00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"X-Previo-App-ID","value":"7","type":"text"}],"url":"{{previo_api_url}}/pos/reservations?cardNumber={{cardNumber}}","description":"<p>This endpoint can be used, if hotel is using access cards integrated with Previo. In response you can get reservation which are connected to particular card number.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"8dafc211-1e62-4b01-aee7-25e2807d38d5","id":"8dafc211-1e62-4b01-aee7-25e2807d38d5","name":"REST - Point of Sale (POS)","type":"collection"}},"urlObject":{"path":["pos","reservations"],"host":["{{previo_api_url}}"],"query":[{"key":"cardNumber","value":"{{cardNumber}}"}],"variable":[]}},"response":[{"id":"0dba85fb-196e-4886-a60a-a1c90f762076","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Card","value":"","type":"text","disabled":true}],"url":{"raw":"{{previo_api_url}}/pos/reservations?cardNumber=C32E77B5000000","host":["{{previo_api_url}}"],"path":["pos","reservations"],"query":[{"key":"cardNumber","value":"C32E77B5000000"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 21 Mar 2023 10:15:23 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"key":"vary","value":"Accept-Encoding"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"cache-control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"x-previo-server-instance","value":"web03"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"reservationId\": 67483173,\n    \"commissionId\": 89908527,\n    \"from\": \"2023-03-21 09:00:00\",\n    \"to\": \"2023-03-22 08:00:00\",\n    \"voucher\": \"20181258\",\n    \"accountItems\": [\n        {\n            \"roomReservationId\": 89908527,\n            \"name\": \"Masáž\",\n            \"count\": 1,\n            \"price\": 500,\n            \"segmentId\": 0,\n            \"currencyId\": 1,\n            \"vatRate\": 21,\n            \"isGroupedByVat\": false,\n            \"accountingCode\": null,\n            \"vatClassificationCode\": null,\n            \"raoId\": null,\n            \"owner\": null\n        },\n        {\n            \"roomReservationId\": 89908527,\n            \"name\": \"Ubytovací služby (pokoj: 103, termín: 21. 3. 2023 - 22. 3. 2023, hostů: 1)\",\n            \"count\": 1,\n            \"price\": 100,\n            \"segmentId\": 20,\n            \"currencyId\": 1,\n            \"vatRate\": 10,\n            \"isGroupedByVat\": false,\n            \"accountingCode\": null,\n            \"vatClassificationCode\": null,\n            \"raoId\": null,\n            \"owner\": null\n        },\n        {\n            \"roomReservationId\": 89908527,\n            \"name\": \"Poplatek z pobytu (hostů: 1)\",\n            \"count\": 1,\n            \"price\": 25,\n            \"segmentId\": 6,\n            \"currencyId\": 1,\n            \"vatRate\": 0,\n            \"isGroupedByVat\": false,\n            \"accountingCode\": null,\n            \"vatClassificationCode\": null,\n            \"raoId\": null,\n            \"owner\": null\n        }\n    ],\n    \"room\": {\n        \"roomId\": 1131924,\n        \"roomTypeId\": 605648,\n        \"roomName\": \"103\",\n        \"roomTypeName\": \"Barbora\"\n    },\n    \"guestCount\": 1,\n    \"guests\": [\n        {\n            \"id\": 224068446,\n            \"name\": \"Lukáš Navrátil\",\n            \"firstName\": \"Lukáš\",\n            \"lastName\": \"Navrátil\",\n            \"sex\": null,\n            \"guestCatType\": 3\n        }\n    ],\n    \"cosId\": null\n}"}],"_postman_id":"86835b44-1bd4-4305-90cd-dbdf74750b00"},{"name":"accounts/items","event":[{"listen":"prerequest","script":{"id":"acdf804d-f791-451c-86e7-3d524e6bd0df","exec":[""],"type":"text/javascript"}}],"id":"69d6ae36-7440-4d5d-832c-b08469d2ee70","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"759281","type":"text"},{"key":"X-Previo-App-ID","value":"7","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"roomReservationId\": 103868487,\n    \"currencyId\": 1,\n    \"isGroupedByVat\": false,\n    \"items\": [\n        {\n            \"name\": \"Bile vino - Savinion 0,75l\",\n            \"segmentId\": 1,\n            \"count\": 1,\n            \"price\": 199.99,\n            \"vatRate\": 21,\n            \"owner\": null\n        },\n        {\n            \"name\": \"Voda Alpska 0,5l\",\n            \"segmentId\": 1,\n            \"count\": 2,\n            \"price\": 80,\n            \"vatRate\": 21,\n            \"owner\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}/pos/accounts/items","description":"<p>Add new items to hotel account.</p>\n<h1 id=\"request\"><strong>Request</strong></h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>roomReservationId</code> [1] (int)</td>\n<td>The unique identifier for commission</td>\n</tr>\n<tr>\n<td><code>currencyId</code> [1] (int)</td>\n<td>Currency of items</td>\n</tr>\n<tr>\n<td><code>isGroupedByVat</code> [1] (boolean)</td>\n<td>True if items are grouped by VAT</td>\n</tr>\n<tr>\n<td><code>items</code> [1] (object)</td>\n<td>list of items</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"items\">Items</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Definition</strong></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code> [1] (string)</td>\n<td>Item name</td>\n<td></td>\n</tr>\n<tr>\n<td><code>segmentId</code> [0..1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#21061e34-d38f-409d-a3ea-bc2be5bcad8c\">Segment</a></td>\n<td></td>\n</tr>\n<tr>\n<td><code>count</code> [1] (int)</td>\n<td>Number of pieces</td>\n<td></td>\n</tr>\n<tr>\n<td><code>price</code> [1] (float)</td>\n<td>Item price</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vatRate</code> [1] (int)</td>\n<td>Vat rate</td>\n<td></td>\n</tr>\n<tr>\n<td>Owner of account item</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>id</code> [1] (int)</td>\n<td>The unique identifier for item owner (for example guest ID)</td>\n</tr>\n<tr>\n<td></td>\n<td><code>type</code> [1] (string)</td>\n<td>Types of owner:  <br />- Company  <br />- Ota  <br />- Guest</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["pos","accounts","items"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"901f4a3b-403b-4070-a020-045815f5c934","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"roomReservationId\": 87715855,\n    \"currencyId\": 1,\n    \"isGroupedByVat\": true,\n    \"items\": [\n        {\n            \"name\": \"Bile vino - Savinion 0,75l\",\n            \"segmentId\": 1,\n            \"count\": 1,\n            \"price\": 199.99,\n            \"vatRate\": 21,\n            \"owner\": {\n                \"id\": 2886037,\n                \"type\": null\n            }\n        },\n        {\n            \"name\": \"Voda Alpska 0,5l\",\n            \"segmentId\": 1,\n            \"count\": 2,\n            \"price\": 80,\n            \"vatRate\": 21,\n            \"owner\": {\n                \"id\": 2886037,\n                \"type\": null\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}/pos/accounts/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 07 Feb 2023 14:59:16 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"key":"vary","value":"Accept-Encoding"},{"key":"expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"cache-control","value":"no-store, no-cache, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"X-Requested-With, Content-Type, Authorization, X-Previo-App-ID, X-Previo-Hotel-ID, X-Previo-Language-ID"},{"key":"x-previo-server-instance","value":"web02"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"true"}],"_postman_id":"69d6ae36-7440-4d5d-832c-b08469d2ee70"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]}},"event":[{"listen":"prerequest","script":{"id":"1c88abbe-e509-46ac-8f3a-7de63b0f4227","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ab68fe5e-c77c-4461-9b2b-4a8560d91209","type":"text/javascript","exec":[""]}}]}