{"info":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","description":"<html><head></head><body><p>Restful API for Previo PMS.</p>\n<p><strong>URL address</strong>: <a href=\"https://api.previo.app\">https://api.previo.app</a></p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>This API uses Basic Authentication for its authentication.</p>\n<p>username: login</p>\n<p>password: password</p>\n<p><code>Authorization: Basic {username:password}</code></p>\n<p>{username:password} represents the Base64-encoded (RFC2045-MIME) credentials</p>\n<h1 id=\"codebooks\">Codebooks</h1>\n<h1 id=\"language\">Language</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Language ID (lanId)</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Czech</td>\n</tr>\n<tr>\n<td>2</td>\n<td>English</td>\n</tr>\n<tr>\n<td>3</td>\n<td>German</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"commission-status\">Commission status</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Commission status ID (cosId)</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Option</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Confirmed</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Checked in</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Waiting list</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Cancelled</td>\n</tr>\n<tr>\n<td>8</td>\n<td>No-show</td>\n</tr>\n<tr>\n<td>9</td>\n<td>Checked out</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Other</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"reservation-vs-roomreservation\">Reservation vs RoomReservation</h3>\n<p>In our system, each <strong>Reservation</strong> can contain one or more <strong>RoomReservations</strong>.</p>\n<ul>\n<li><p><strong>Single Reservation</strong>: A reservation that occupies only one room will have a unique <code>reservationId</code> (e.g., <code>232424</code>) and a single corresponding <code>roomReservationId</code> (e.g., <code>9634342</code>).</p>\n</li>\n<li><p><strong>Group Reservation</strong>: In cases where multiple rooms are reserved under the same booking (e.g., a family reserving two rooms), there will still be only one <code>reservationId</code> (e.g.,</p>\n</li>\n</ul>\n<p>This means that for every room in a reservation, a separate <code>roomReservationId</code> is generated, even if all rooms are booked together under the same <code>reservationId</code>(e.g., <code>24792397</code> and <code>29070724</code>).</p>\n<h2 id=\"different-naming\">Different naming</h2>\n<p>In rest, we are using slightly different naming, so in some request or responses you might see some new names, as following:</p>\n<p>resId → reservationId<br>comId → roomReservationId<br>obkId → roomKindId</p>\n<p>objId → roomId<br>commission → roomReservation<br>objectKind → roomKind</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authorization","slug":"authorization"},{"content":"Codebooks","slug":"codebooks"},{"content":"Language","slug":"language"},{"content":"Commission status","slug":"commission-status"}],"owner":"3291362","collectionId":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","publishedId":"UVkgwe4G","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-28T12:17:39.000Z"},"item":[{"name":"Billing","item":[{"name":"invoice/addPayment","id":"2f873544-779e-45a2-b46e-b1e23fccdf89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"intId\":2,\n\t\"resId\":12221367,\n\t\"comId\":null,\n\t\"gueId\":null,\n\t\"payId\":2\n}"},"url":"{{previo_api_url}}rest/invoice/addPayment?pdf=true","description":"<p>Adds a payment to the account. All unpaid items are charged by calling this method.</p>\n<p>API Privilige needed: 'Hotel.addPayment'</p>\n<h1 id=\"request\">Request</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>intId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Type of invoice</td>\n</tr>\n<tr>\n<td><code>resId</code> (required)</td>\n<td><code>12170230</code> (int)</td>\n<td>The unique identifier for reservation</td>\n</tr>\n<tr>\n<td><code>comId</code> (optional)</td>\n<td><code>26568867</code> (int)</td>\n<td>The unique identifier for commission</td>\n</tr>\n<tr>\n<td><code>gueId</code> (optional)</td>\n<td><code>26568867</code> (int)</td>\n<td>The unique identifier for guest</td>\n</tr>\n<tr>\n<td><code>payId</code> (required)</td>\n<td><code>2</code> (int)</td>\n<td>The unique identifier for payment method</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"payment-methods\">Payment methods</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>payId</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>2</td>\n<td>Bank transfer</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Terminal</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Cash</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Voucher or meal voucher</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Online payment</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"type-of-invoices\">Type of invoices</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>intId</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>Invoice</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Receipt</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Proforma invoice</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Advance payment document</td>\n</tr>\n<tr>\n<td>5</td>\n<td>Coupon</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Credit not</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["invoice","addPayment"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Want PDF (true, false)</p>\n","type":"text/plain"},"key":"pdf","value":"true"}],"variable":[]}},"response":[{"id":"0deb62e5-7117-4c13-9192-e1d69f9068de","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"intId\":2,\n\t\"resId\":12221367,\n\t\"comId\":null,\n\t\"gueId\":null,\n\t\"payId\":2\n}"},"url":{"raw":"{{previo_api_url}}rest/invoice/addPayment?pdf=true","host":["{{previo_api_url}}rest"],"path":["invoice","addPayment"],"query":[{"key":"pdf","value":"true","description":"Want PDF (true, false)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Mar 2021 17:47:20 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16"},{"key":"X-Powered-By","value":"PHP/7.3.16"},{"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":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"invId\": 9216884,\n    \"pdf\": \"JVBERi0xLjcKJeLjz9MKNyAwIG...........QgKEQ6MjAyMTAzMTcxODQ3NDI\"\n}"},{"id":"6538c3d0-823b-49b9-a51f-1442db5128c2","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"intId\":2,\n\t\"resId\":1222136,\n\t\"comId\":null,\n\t\"gueId\":null,\n\t\"payId\":2\n}"},"url":{"raw":"{{previo_api_url}}rest/invoice/addPayment?pdf=true","host":["{{previo_api_url}}rest"],"path":["invoice","addPayment"],"query":[{"key":"pdf","value":"true","description":"Want PDF (true, false)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Mar 2021 18:10:40 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16"},{"key":"X-Powered-By","value":"PHP/7.3.16"},{"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-Length","value":"64"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Loading reservation failed\",\n    \"message\": null\n}"}],"_postman_id":"2f873544-779e-45a2-b46e-b1e23fccdf89"},{"name":"billing/documents/print","id":"3c2dc8f1-0581-4006-b15c-ab1d657b1e48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/billing/documents/print?invId=9200243&format=3&invNumber=PV20070001","description":"<p>Get invoice PDF in Base64 coding</p>\n<p>API privilege needed: 'Hotel.getDocuments'</p>\n<p>You must send one of two parameters invId or invNumber in request. </p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pdf</code> (required)</td>\n<td><code>JVBERi0xLjcKJeLjz9MKOCAwIG....</code> (string)</td>\n<td>PDF in Base64</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["billing","documents","print"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Invoice ID (optional), If you fill in this parameter, do not send the parameter invNumber</p>\n","type":"text/plain"},"key":"invId","value":"9200243"},{"description":{"content":"<p>Print format A4 = 1, Print format A5 = 2, Print format receipt = 3</p>\n","type":"text/plain"},"key":"format","value":"3"},{"description":{"content":"<p>Invoice number (optional), If you fill in this parameter, do not send the parameter invId</p>\n","type":"text/plain"},"key":"invNumber","value":"PV20070001"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"55324796-1309-4f06-8d5e-16bf0210660b","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/invoice/printInvoice?invId=9200243&format=3","host":["{{previo_api_url}}rest"],"path":["invoice","printInvoice"],"query":[{"key":"invId","value":"9200243","description":"Invoice ID (optional), If you fill in this parameter, do not send the parameter invNumber"},{"key":"format","value":"3","description":"Print format A4 = 1, Print format A5 = 2, Print format receipt = 3"},{"key":"invNumber","value":"PV20070001","description":"Invoice number (optional), If you fill in this parameter, do not send the parameter invId","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Mar 2021 18:59:06 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/7.3.27"},{"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    \"pdf\": \"JVBERi0xLjcKJeLjlwZSAvUGFnZSAvUGz9MKOCAlwZSAvUGFnZSAvUGwIG9i.........ago8PCAvVHlwZSAvUGFnZSAvUGFyZW50IDo=\"\n}"},{"id":"a8d0a36e-c85d-4700-acf5-79ab862bd2bb","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/invoice/printInvoice?format=3","host":["{{previo_api_url}}rest"],"path":["invoice","printInvoice"],"query":[{"key":"invId","value":"9200243","description":"Invoice ID (optional), If you fill in this parameter, do not send the parameter invNumber","disabled":true},{"key":"format","value":"3","description":"Print format A4 = 1, Print format A5 = 2, Print format receipt = 3"},{"key":"invNumber","value":"PV20070001","description":"Invoice number (optional), If you fill in this parameter, do not send the parameter invId","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Mar 2021 19:00:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"You must send one of two parameters invId or invNumber. \",\n    \"message\": null\n}"}],"_postman_id":"3c2dc8f1-0581-4006-b15c-ab1d657b1e48"},{"name":"billing/documents/export","id":"efdf3745-8277-42e6-8858-058b801ba233","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p> <a href=\"#language\">Language ID</a></p>\n","key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/billing/documents/export?filterFrom=2020-12-04T00:00:00&filterTo=2020-12-06T00:00:00&filterDateType=issueDate&exportFormat=pohoda&filterText&paid[]&invoiceType[]","description":"<p>Export accounting documents stored in Previo in desired format</p>\n<p>API privilege needed: 'Hotel.exportDocuments'</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code> (required)</td>\n<td><code>true</code>  (boolean)</td>\n<td>If the response was OK or NOT</td>\n</tr>\n<tr>\n<td><code>document</code> (optional)</td>\n<td><code>.....</code>  (string)</td>\n<td>UTF-8 encoded document in desired format</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["billing","documents","export"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>(string, required)</p>\n<p>Date in ISO 8601 format</p>\n","type":"text/plain"},"key":"filterFrom","value":"2020-12-04T00:00:00"},{"description":{"content":"<p>(string, optional)</p>\n<p>Date in ISO 8601 format</p>\n","type":"text/plain"},"key":"filterTo","value":"2020-12-06T00:00:00"},{"description":{"content":"<p>(string, required)</p>\n<p>Possible values:</p>\n<ul>\n<li><code>issueDate</code></li>\n<li><code>paidDate</code></li>\n<li><code>taxDate</code></li>\n</ul>\n","type":"text/plain"},"key":"filterDateType","value":"issueDate"},{"description":{"content":"<p>(string, required)</p>\n<p>Possible values:</p>\n<ul>\n<li><code>pohoda</code></li>\n<li><code>money</code></li>\n<li><code>isdoc</code></li>\n</ul>\n","type":"text/plain"},"key":"exportFormat","value":"pohoda"},{"description":{"content":"<p>(string, optional)</p>\n<p>Fulltext search</p>\n","type":"text/plain"},"key":"filterText","value":null},{"description":{"content":"<p>(array[string], optional)</p>\n<p>Possible values:</p>\n<ul>\n<li><code>paid</code></li>\n<li><code>not-paid</code></li>\n<li><code>partly</code></li>\n</ul>\n","type":"text/plain"},"key":"paid[]","value":null},{"description":{"content":"<p>(array[string], optional)</p>\n<p>Possible values:</p>\n<ul>\n<li><code>INV</code>- invoice</li>\n<li><code>COU</code>- coupon</li>\n<li><code>CRE</code>- credit note</li>\n<li><code>REC</code>- receipt</li>\n<li><code>PRI</code>- proforma invoice</li>\n<li><code>ADV</code>- advance payment document</li>\n</ul>\n","type":"text/plain"},"key":"invoiceType[]","value":null}],"variable":[]}},"response":[{"id":"9adee864-2382-4127-8093-716ef9cd69f9","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"description":" <a href=\"#language\">Language ID</a>","key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/document/export?filterFrom=2020-12-04T00:00:00&filterTo=2020-12-06T00:00:00&filterDateType=issueDate&exportFormat=pohoda&filterText","host":["{{previo_api_url}}rest"],"path":["document","export"],"query":[{"key":"filterFrom","value":"2020-12-04T00:00:00","description":"Date in ISO 8601 format (required)"},{"key":"filterTo","value":"2020-12-06T00:00:00","description":"Date in ISO 8601 format"},{"key":"filterDateType","value":"issueDate","description":"Possible values:\n* `issueDate`\n* `paidDate`\n* `taxDate`\n\n(required)"},{"key":"exportFormat","value":"pohoda","description":"Possible values:\n* `pohoda`\n* `money`\n* `isdoc`\n\n(required)"},{"key":"filterText","value":null,"description":"Fulltext search"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 14 Dec 2020 08:56:52 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/7.3.23"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"document\": \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n<dat:dataPack xmlns:dat=\\\"http://www.stormware.cz/schema/version_2/data.xsd\\\"\\n        xmlns:inv=\\\"http://www.stormware.cz/schema/version_2/invoice.xsd\\\"\\n        xmlns:typ=\\\"http://www.stormware.cz/schema/version_2/type.xsd\\\"\\n    id=\\\"20201214095651\\\"\\n    ico=\\\"1212121218\\\"\\n    application=\\\"Previo\\\"\\n    version=\\\"2.0\\\"\\n    note=\\\"Import dokladů\\\">\\n    \\n    <dat:dataPackItem id=\\\"24980387\\\" version=\\\"2.0\\\">\\n        <inv:invoice version=\\\"2.0\\\">\\n            <inv:invoiceHeader>\\n                <inv:invoiceType>issuedAdvanceInvoice</inv:invoiceType>\\n                <inv:number>\\n                    <typ:numberRequested>20200251</typ:numberRequested>\\n                </inv:number>\\n                <inv:symVar>20200251</inv:symVar>\\n                <inv:symConst>0308</inv:symConst>\\n                <inv:date>2020-12-06</inv:date>\\n\\n                \\n                <inv:dateDue>2020-12-09</inv:dateDue>\\n\\n                <inv:classificationVAT>\\n                                    <typ:classificationVATType>inland</typ:classificationVATType>\\n                                    </inv:classificationVAT>\\n\\n                <inv:text>Rezervace 1234/941 (7.12.2020 - 8.12.2020)</inv:text>\\n                <inv:partnerIdentity>\\n\\t\\t\\t\\t\\t<typ:address>\\n                        \\t\\t\\t\\t\\t\\t<typ:name>Dufek Ondřej</typ:name>\\n\\t\\t\\t\\t\\t\\t<typ:city></typ:city>\\n\\t\\t\\t\\t\\t\\t<typ:street> </typ:street>\\n\\t\\t\\t\\t\\t\\t<typ:zip></typ:zip>\\n\\t\\t\\t\\t\\t\\t<typ:ico></typ:ico>\\n\\n\\t\\t\\t\\t\\t\\t<typ:dic></typ:dic>\\n                        <typ:country>\\n                            <typ:ids>CZ</typ:ids>\\n                        </typ:country>\\n\\n                        \\t\\t\\t\\t\\t</typ:address>\\n\\t\\t\\t    </inv:partnerIdentity>\\n                <inv:paymentType>\\n                    <typ:paymentType>creditcard</typ:paymentType>\\n                </inv:paymentType>\\n                <inv:account>\\n                                            <typ:ids>test</typ:ids>\\n                                    </inv:account>\\n                <inv:note>Defaultní poznámka zálohového listu</inv:note>\\n                <inv:intNote>IMPORT Previo</inv:intNote>\\n            </inv:invoiceHeader>\\n\\n            <inv:invoiceDetail>\\n            \\t            <inv:invoiceItem>\\n                    <inv:text>Záloha za ubytovací služby</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>third</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>1434.6</typ:unitPrice>\\n                                <typ:price>1304.1818</typ:price>\\n                                <typ:priceVAT>130.4182</typ:priceVAT>\\n                                <typ:priceSum>1434.6</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t                                 \\n                                \\n            </inv:invoiceDetail>\\n\\n            <inv:invoiceSummary>\\n                <inv:roundingDocument>none</inv:roundingDocument>\\n\\n                \\n                                    <inv:homeCurrency>\\n                        <typ:priceNone>0</typ:priceNone>\\n                        <typ:priceLow>0</typ:priceLow>\\n                        <typ:priceLowVAT>0</typ:priceLowVAT>\\n                        <typ:priceLowSum>0</typ:priceLowSum>\\n                        <typ:price3>1304.18</typ:price3>\\n                        <typ:price3VAT>130.42</typ:price3VAT>\\n                        <typ:price3Sum>1434.6</typ:price3Sum>\\n                        <typ:priceHigh>0</typ:priceHigh>\\n                        <typ:priceHighVAT>0</typ:priceHighVAT>\\n                        <typ:priceHighSum>0</typ:priceHighSum>\\n                        <typ:round>\\n                            <typ:priceRound>0</typ:priceRound>\\n                        </typ:round>\\n                    </inv:homeCurrency>\\n                            </inv:invoiceSummary>\\n        </inv:invoice>\\n    </dat:dataPackItem>\\n    <dat:dataPackItem id=\\\"24980389\\\" version=\\\"2.0\\\">\\n        <inv:invoice version=\\\"2.0\\\">\\n            <inv:invoiceHeader>\\n                <inv:invoiceType>issuedInvoice</inv:invoiceType>\\n                <inv:number>\\n                    <typ:numberRequested>20200361</typ:numberRequested>\\n                </inv:number>\\n                <inv:symVar>1607235907</inv:symVar>\\n                <inv:symConst>0308</inv:symConst>\\n                <inv:date>2020-12-06</inv:date>\\n\\n                                    <inv:dateTax>2020-12-06</inv:dateTax>\\n                \\n                <inv:dateDue>2020-12-06</inv:dateDue>\\n\\n                <inv:classificationVAT>\\n                                    <typ:classificationVATType>inland</typ:classificationVATType>\\n                                    </inv:classificationVAT>\\n\\n                <inv:text>Rezervace 1234/941 (7.12.2020 - 8.12.2020)</inv:text>\\n                <inv:partnerIdentity>\\n\\t\\t\\t\\t\\t<typ:address>\\n                        \\t\\t\\t\\t\\t\\t<typ:name>Dufek Ondřej</typ:name>\\n\\t\\t\\t\\t\\t\\t<typ:city></typ:city>\\n\\t\\t\\t\\t\\t\\t<typ:street> </typ:street>\\n\\t\\t\\t\\t\\t\\t<typ:zip></typ:zip>\\n\\t\\t\\t\\t\\t\\t<typ:ico></typ:ico>\\n\\n\\t\\t\\t\\t\\t\\t<typ:dic></typ:dic>\\n                        <typ:country>\\n                            <typ:ids>CZ</typ:ids>\\n                        </typ:country>\\n\\n                        \\t\\t\\t\\t\\t</typ:address>\\n\\t\\t\\t    </inv:partnerIdentity>\\n                <inv:paymentType>\\n                    <typ:paymentType>creditcard</typ:paymentType>\\n                </inv:paymentType>\\n                <inv:account>\\n                                            <typ:accountNo>51540165165</typ:accountNo>\\n                        <typ:bankCode>0100</typ:bankCode>\\n                                    </inv:account>\\n                <inv:note>Defaultní poznámka DPZkáče</inv:note>\\n                <inv:intNote>IMPORT Previo</inv:intNote>\\n            </inv:invoiceHeader>\\n\\n            <inv:invoiceDetail>\\n            \\t            <inv:invoiceItem>\\n                    <inv:text>Ubytovací služby (termín: 7. 12. 2020 - 8. 12. 2020, hostů: 1)</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>third</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>579</typ:unitPrice>\\n                                <typ:price>526.3636</typ:price>\\n                                <typ:priceVAT>52.6364</typ:priceVAT>\\n                                <typ:priceSum>579</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Sleva - Last minute (termín: 7. 12. 2020 - 8. 12. 2020, hostů: 1)</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>third</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>-150</typ:unitPrice>\\n                                <typ:price>-136.3636</typ:price>\\n                                <typ:priceVAT>-13.6364</typ:priceVAT>\\n                                <typ:priceSum>-150</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Strava (1x snídaně, hostů: 1)</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>third</inv:rateVAT>\\n                                        <inv:accounting>\\n                        <typ:ids>We_03</typ:ids>\\n                    </inv:accounting>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>200</typ:unitPrice>\\n                                <typ:price>181.8182</typ:price>\\n                                <typ:priceVAT>18.1818</typ:priceVAT>\\n                                <typ:priceSum>200</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Poplatek z pobytu (hostů: 1)</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>none</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>21</typ:unitPrice>\\n                                <typ:price>21</typ:price>\\n                                <typ:priceVAT>0</typ:priceVAT>\\n                                <typ:priceSum>21</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Silvestr</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>high</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>500</typ:unitPrice>\\n                                <typ:price>413.2231</typ:price>\\n                                <typ:priceVAT>86.7769</typ:priceVAT>\\n                                <typ:priceSum>500</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Masáž šíje</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>high</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>200</typ:unitPrice>\\n                                <typ:price>165.2893</typ:price>\\n                                <typ:priceVAT>34.7107</typ:priceVAT>\\n                                <typ:priceSum>200</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>testovací služba</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>high</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>123</typ:unitPrice>\\n                                <typ:price>101.6529</typ:price>\\n                                <typ:priceVAT>21.3471</typ:priceVAT>\\n                                <typ:priceSum>123</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Večeře při svíčkách</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>high</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>21</typ:unitPrice>\\n                                <typ:price>17.3554</typ:price>\\n                                <typ:priceVAT>3.6446</typ:priceVAT>\\n                                <typ:priceSum>21</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Povinná</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>high</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>100</typ:unitPrice>\\n                                <typ:price>82.6446</typ:price>\\n                                <typ:priceVAT>17.3554</typ:priceVAT>\\n                                <typ:priceSum>100</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t            \\t            <inv:invoiceItem>\\n                    <inv:text>Sleva za online platbu - 10%</inv:text>\\n                    <inv:quantity>1</inv:quantity>\\n                    <inv:payVAT>true</inv:payVAT>\\n                    <inv:rateVAT>third</inv:rateVAT>\\n                                        \\t                    <inv:homeCurrency>\\n                                <typ:unitPrice>-159.4</typ:unitPrice>\\n                                <typ:price>-144.9091</typ:price>\\n                                <typ:priceVAT>-14.4909</typ:priceVAT>\\n                                <typ:priceSum>-159.4</typ:priceSum>\\n\\t                    </inv:homeCurrency>\\n                    \\t            </inv:invoiceItem>\\n\\t                                    <!-- Položka pro definice položky dokladu typu \\\"Odpočet zálohy\\\"/\\\"Ruční odpočet zálohy\\\". -->\\n                        <inv:invoiceAdvancePaymentItem>\\n                            <inv:sourceDocument><typ:number>20200251</typ:number>\\n                            </inv:sourceDocument>\\n                            <inv:quantity>1</inv:quantity>\\n                            <inv:payVAT>false</inv:payVAT>\\n                            <inv:rateVAT>none</inv:rateVAT>\\n                                                            <inv:homeCurrency>\\n                                                            <typ:unitPrice>-1434.6</typ:unitPrice>\\n                                <typ:price>-1434.6</typ:price>\\n                                <typ:priceVAT>0</typ:priceVAT>\\n                                <typ:priceSum>-1434.6</typ:priceSum>\\n                                                            </inv:homeCurrency>\\n                                                    </inv:invoiceAdvancePaymentItem>\\n                <!-- end invoiceAdvancePaymentItem -->\\n                                     \\n                                \\n            </inv:invoiceDetail>\\n\\n            <inv:invoiceSummary>\\n                <inv:roundingDocument>none</inv:roundingDocument>\\n\\n                                    <inv:roundingVAT>noneEveryRate</inv:roundingVAT>\\n                \\n                                    <inv:homeCurrency>\\n                        <typ:priceNone>21</typ:priceNone>\\n                        <typ:priceLow>0</typ:priceLow>\\n                        <typ:priceLowVAT>0</typ:priceLowVAT>\\n                        <typ:priceLowSum>0</typ:priceLowSum>\\n                        <typ:price3>426.91</typ:price3>\\n                        <typ:price3VAT>42.69</typ:price3VAT>\\n                        <typ:price3Sum>469.6</typ:price3Sum>\\n                        <typ:priceHigh>780.17</typ:priceHigh>\\n                        <typ:priceHighVAT>163.83</typ:priceHighVAT>\\n                        <typ:priceHighSum>944</typ:priceHighSum>\\n                        <typ:round>\\n                            <typ:priceRound>0</typ:priceRound>\\n                        </typ:round>\\n                    </inv:homeCurrency>\\n                            </inv:invoiceSummary>\\n        </inv:invoice>\\n    </dat:dataPackItem>\\n</dat:dataPack>\"\n}"},{"id":"fda56c8c-d658-4f84-b429-60715b083e6a","name":"406 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"Content-Type","type":"text","value":"application/json"},{"description":" <a href=\"#language\">Language ID</a>","key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/document/export?filterFrom=2020-12-04T00:00:00&filterTo=2020-12-06T00:00:00&filterDateType=issueDate&exportFormat=pohoda&filterText&paid[]&invoiceType[]","host":["{{previo_api_url}}rest"],"path":["document","export"],"query":[{"key":"filterFrom","value":"2020-12-04T00:00:00","description":"(string, required)\n\nDate in ISO 8601 format"},{"key":"filterTo","value":"2020-12-06T00:00:00","description":"(string, optional)\n\nDate in ISO 8601 format"},{"key":"filterDateType","value":"issueDate","description":"(string, required)\n\nPossible values:\n* `issueDate`\n* `paidDate`\n* `taxDate`"},{"key":"exportFormat","value":"pohoda","description":"(string, required)\n\nPossible values:\n* `pohoda`\n* `money`\n* `isdoc`"},{"key":"filterText","value":null,"description":"(string, optional)\n\nFulltext search"},{"key":"paid[]","value":null,"description":"(array[string], optional)\n\nPossible values:\n* `paid`\n* `not-paid`\n* `partly`"},{"key":"invoiceType[]","value":null,"description":"(array[string], optional)\n\nPossible values:\n* `INV`- invoice\n* `COU`- coupon\n* `CRE`- credit note\n* `REC`- receipt\n* `PRI`- proforma invoice\n* `ADV`- advance payment document"}]}},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 18 Mar 2021 01:04:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 406,\n    \"error\": \"Invalid parameter 'Array'\",\n    \"message\": null\n}"}],"_postman_id":"efdf3745-8277-42e6-8858-058b801ba233"},{"name":"billing/documents","id":"89daa8a5-9396-4d81-8ff1-a28a5bd9cc73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p> <a href=\"#language\">Language ID</a></p>\n","key":"X-Previo-Language-ID","type":"text","value":"2"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/billing/documents?filterFrom=2020-12-04T00:00:00&filterTo=2020-12-06T00:00:00&filterDateType=issueDate&filterText=FooBar&paid[]=paid&invoiceType[]=INV","description":"<p>Get list of accounting documents</p>\n<p>API privilege needed: 'Hotel.exportDocuments, hotel.getDocuments'</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Defnition</strong></th>\n<th></th>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code> [1] (int)</td>\n<td>Document ID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>roomReservationIds</code> [0..1] (array)</td>\n<td>List of roomReservation Ids that document belongs to</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoiceTypeId</code> [1] (int)</td>\n<td>Invoice type IDs  <br />1 - Invoice  <br />2 - Receipt  <br />3 - Proforma invoice  <br />4 - Advance payment document  <br />5 - Coupon  <br />6 - Credit note</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>invoiceType</code> [1] (string)</td>\n<td>Invoice type shortcut  <br />INV - Invoice  <br />REC - Receipt  <br />PRI - Proforma invoice  <br />ADV - Advance payment document  <br />COU - Coupon  <br />CRE - Credit note</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>number</code> [1] (string)</td>\n<td>Document number</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>variableSymbol</code> [1] (string)</td>\n<td>Variable symbol for payment</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>dateIssued</code> [1] (string)</td>\n<td>Issue date (ISO format YYYY-MM-DD)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>dateAccounting</code> [1] (string)</td>\n<td>Due date (ISO format YYYY-MM-DD)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>dateTax</code> [1] (string)</td>\n<td>Tax date (ISO format YYYY-MM-DD)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>currencyId</code> [1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">Currency Id</a> of the document</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>defaultCurId</code> [1] (int)</td>\n<td>Default <a href=\"https://xml.apidocs.previo.cz/#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">Currency Id</a> based on hotel's country. In this currency tax needs to be displayed.</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>exchangeRatio</code> [1] (float)</td>\n<td>Exchange ratio between <code>currencyId</code> and <code>defaultCurId</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>paymentMethodId</code> [1] (int)</td>\n<td>Payment method Id chosen while issuing the document.  <br />2 - Bank transfer  <br />3 - Credit / Debit card  <br />4 - Cash  <br />5 - Coupon</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>bankAccount</code> [1] (object)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>number</code> [1] (string)</td>\n<td>Bank account number (local)</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>iban</code> [1] (string)</td>\n<td>IBAN</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>swift</code> [1] (string)</td>\n<td>SWIFT</td>\n<td></td>\n</tr>\n<tr>\n<td><code>vatApplicable</code> [1] (bool)</td>\n<td>Is VAT applicable for this document</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>note</code> [1] (string)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>additionalNote</code> [1] (string)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>priceSum</code> [1] (float)</td>\n<td>Total sum after rounding</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>priceSumWithoutVat</code> [1] (float)</td>\n<td>Totam sum without VAT</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>roundingSum</code> [1] (float)</td>\n<td>Rounding amount</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>parentDocumentIds</code> [0..1] (array)</td>\n<td>Documents attached to this documents (e.g. if there is ADV attached to INV. In INV there would be set the Id of the ADV)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>supplier</code> [1] (object)</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>id</code> [1] (string)</td>\n<td>Id of the subject</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>company</code> [1] (string)</td>\n<td>Company name</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>name</code> [1] (string)</td>\n<td>Customer name</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>street</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>streetNumber</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>city</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>zip</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>address</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>country</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>phone</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>email</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>contactEmail</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>note</code> [1] (string)</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>vatPayer</code> [1] (string)</td>\n<td>IS VAT payer?</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>organizationNumber</code> [0..1] (string)</td>\n<td>Organization number (in Czech and Slovakia equal to IČ)</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>organizationVatNumber</code> [0..1] (string)</td>\n<td>Organization VAT number (in Czech and Slovakia equal to DIČ)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>customer</code> [1] (object)</td>\n<td>Customer (guest or company) - same structure as <code>supplier</code></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>items</code> [1] (array)</td>\n<td>List of items</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>name</code> [1] (string)</td>\n<td>Name of the item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>itemTypeId</code> [1] (int)</td>\n<td>Item type ID. It can be either positive or negative value. You should do abs(itemTypeId) before checking the type.  <br />  <br />0 - Services / manualy inserted items  <br />1 - Accommodation  <br />2 - Guest category discount  <br />3 - Meal  <br />4 - Recreation tax  <br />5 - Accommodation tax  <br />6 - Discount  <br />7 - Stock item  <br />8 - Stay package  <br />9 - Other discounts and surcharges  <br />10 - Accommodation  <br />11 - Last minute / First minute / Long term discount</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>count</code> [1] (int)</td>\n<td>Number of items</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>price</code> [1] (float)</td>\n<td>Price for 1 item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>priceWithoutVat</code> [1] (float)</td>\n<td>Price without VAT for 1 item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>vatRate</code> [1] (float)</td>\n<td>VAT rate as number</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>vatRateLabel</code> [1] (string)</td>\n<td>VAT rate label. In some countries some vatRate can have different meaning. Especial 0% vat rate can be either NO VAT or VAT NOT APPLICABLE</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>segmentId</code> [1] (string)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#21061e34-d38f-409d-a3ea-bc2be5bcad8c\">Segment ID</a></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>priceSum</code> [1] (string)</td>\n<td>Total price of the item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>priceSumNoVat</code> [1] (string)</td>\n<td>Total price of the item without VAT</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>position</code> [1] (int)</td>\n<td>Order of the item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>roomReservationItemId</code> [0..1] (int)</td>\n<td>ID of the item on hotel account, if there is connection between document item Id and roomReservation item Id.</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>roomReservationId</code> [0..1] (int)</td>\n<td>Id of the roomReservation if the document was issued from particular reservation</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>stockId</code> [0..1] (int)</td>\n<td>ID of the stock item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>dateOfService</code> [0..1] (string)</td>\n<td>Service drawdown date</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>accountingCode</code> [0..1] (string)</td>\n<td>Accounting code of item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>vatTypeCode</code> [0..1] (string)</td>\n<td>VAT type code of the item</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>serviceId</code> [0..1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#41d45590-333b-44dd-b5ce-7d522f701600\">Service ID</a></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>stayPackageId</code> [0..1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#7cbb3e23-e168-422d-aefc-c606861cb934\">Stay package ID</a></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["billing","documents"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>(string, required)\nDate in ISO 8601 format</p>\n","type":"text/plain"},"key":"filterFrom","value":"2020-12-04T00:00:00"},{"description":{"content":"<p>(string, optional)\nDate in ISO 8601 format</p>\n","type":"text/plain"},"key":"filterTo","value":"2020-12-06T00:00:00"},{"description":{"content":"<p>(string, required)\nPossible values:</p>\n<ul>\n<li><code>issueDate</code></li>\n<li><code>paidDate</code></li>\n<li><code>taxDate</code></li>\n</ul>\n","type":"text/plain"},"key":"filterDateType","value":"issueDate"},{"description":{"content":"<p>(string, optional)\nFulltext search</p>\n","type":"text/plain"},"key":"filterText","value":"FooBar"},{"description":{"content":"<p>(array[string], optional)\nPossible values:</p>\n<ul>\n<li><code>paid</code></li>\n<li><code>not-paid</code></li>\n<li><code>partly</code></li>\n</ul>\n","type":"text/plain"},"key":"paid[]","value":"paid"},{"description":{"content":"<p>(array[string], optional)\nPossible values:</p>\n<ul>\n<li><code>INV</code>- invoice</li>\n<li><code>COU</code>- coupon</li>\n<li><code>CRE</code>- credit note</li>\n<li><code>REC</code>- receipt</li>\n<li><code>PRI</code>- proforma invoice</li>\n<li><code>ADV</code>- advance payment document</li>\n</ul>\n","type":"text/plain"},"key":"invoiceType[]","value":"INV"}],"variable":[]}},"response":[{"id":"7702e2c8-9cc8-4467-a92c-43263e633249","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"Content-Type","type":"text","value":"application/json"},{"description":" <a href=\"#language\">Language ID</a>","key":"X-Previo-Language-ID","type":"text","value":"2"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/billing/documents?filterFrom=2022-02-10T00:00:00&filterTo=2022-02-28T00:00:00&filterDateType=issueDate","host":["{{previo_api_url}}rest"],"path":["billing","documents"],"query":[{"key":"filterFrom","value":"2022-02-10T00:00:00"},{"key":"filterTo","value":"2022-02-28T00:00:00"},{"key":"filterDateType","value":"issueDate","description":"(string, required)\nPossible values:\n* `issueDate`\n* `paidDate`\n* `taxDate`"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Mar 2022 12:33:44 GMT"},{"key":"Server","value":"Apache/2.4.51 (Win64) PHP/8.0.12"},{"key":"X-Powered-By","value":"PHP/8.0.12"},{"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":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 9221050,\n        \"roomReservationIds\": [\n            \"12929199\"\n        ],\n        \"invoiceTypeId\": 1,\n        \"invoiceType\": \"INV\",\n        \"number\": \"00430\",\n        \"variableSymbol\": \"00956\",\n        \"dateIssued\": \"2022-02-15\",\n        \"dateAccounting\": \"2022-03-01\",\n        \"dateTax\": \"2022-02-15\",\n        \"currencyId\": 2,\n        \"defaultCurId\": 1,\n        \"exchangeRatio\": 0.040950040950041,\n        \"paymentMethodId\": 4,\n        \"bankAccount\": {\n            \"number\": \"123456789/0100\",\n            \"iban\": \"CZ5808000000003393260359\",\n            \"swift\": \"GIBACZPX\"\n        },\n        \"vatApplicable\": true,\n        \"note\": \"FeeBar\",\n        \"additionalNote\": \"\",\n        \"priceSum\": 6,\n        \"priceSumWithoutVat\": 5.36,\n        \"roundingSum\": 0.26,\n        \"parentDocumentIds\": [],\n        \"supplier\": {\n            \"id\": \"7141780\",\n            \"company\": \"\",\n            \"name\": \"PREVIO SK s.r.o.\",\n            \"contactName\": \"\",\n            \"street\": \"Horní 999/1\",\n            \"streetNumber\": \"\",\n            \"city\": \"Bratislava\",\n            \"zip\": \"998741\",\n            \"address\": \"Horní 999/1\\nBratislava\\n998741\",\n            \"country\": \"CZ\",\n            \"phone\": \"+420 123 456 789\",\n            \"email\": \"previo@previo.cz\",\n            \"contactEmail\": \"\",\n            \"note\": \"\",\n            \"vatPayer\": false\n        },\n        \"customer\": {\n            \"id\": \"7141781\",\n            \"company\": \"\",\n            \"name\": \"Guest Name\",\n            \"contactName\": \"\",\n            \"street\": \"Lihovarska\",\n            \"streetNumber\": \"1060\",\n            \"city\": \"Praha 9\",\n            \"zip\": \"19000\",\n            \"address\": \"Lihovarska 1060\\nPraha 9\\n19000\",\n            \"country\": \"CZ\",\n            \"phone\": \"251613924\",\n            \"email\": \"test@previo.cz\",\n            \"contactEmail\": \"\",\n            \"note\": \"\",\n            \"vatPayer\": false\n        },\n        \"items\": [\n            {\n                \"id\": 17040226,\n                \"name\": \"Ubytovací služby (pokoj: 111, termín: 15. 2. 2022 - 16. 2. 2022, hostů: 2)\",\n                \"itemTypeId\": 1,\n                \"count\": 1,\n                \"price\": 0,\n                \"priceWithoutVat\": 0,\n                \"vatRate\": 10,\n                \"vatRateLabel\": \"10 %\",\n                \"segmentId\": 20,\n                \"priceSum\": 0,\n                \"priceSumNoVat\": 0,\n                \"position\": 0,\n                \"roomReservationItemId\": 47769009,\n                \"roomReservationId\": 12929199,\n                \"stockId\": null,\n                \"dateOfService\": \"2022-02-15T13:00:00\",\n                \"accountingCode\": null,\n                \"vatTypeCode\": \"ubytko\",\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            },\n            {\n                \"id\": 17040227,\n                \"name\": \"Strava (2x bez stravy, hostů: 2)\",\n                \"itemTypeId\": 3,\n                \"count\": 1,\n                \"price\": 4.095,\n                \"priceWithoutVat\": 3.7227,\n                \"vatRate\": 10,\n                \"vatRateLabel\": \"10 %\",\n                \"segmentId\": 18,\n                \"priceSum\": 4.095,\n                \"priceSumNoVat\": 3.7227,\n                \"position\": 1,\n                \"roomReservationItemId\": 47769010,\n                \"roomReservationId\": 12929199,\n                \"stockId\": null,\n                \"dateOfService\": \"2022-02-15T13:00:00\",\n                \"accountingCode\": null,\n                \"vatTypeCode\": null,\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            },\n            {\n                \"id\": 17040228,\n                \"name\": \"Poplatek z pobytu (hostů: 2)\",\n                \"itemTypeId\": 4,\n                \"count\": 1,\n                \"price\": 1.64,\n                \"priceWithoutVat\": 1.64,\n                \"vatRate\": 0,\n                \"vatRateLabel\": \"0 %\",\n                \"segmentId\": 6,\n                \"priceSum\": 1.64,\n                \"priceSumNoVat\": 1.64,\n                \"position\": 2,\n                \"roomReservationItemId\": 47769011,\n                \"roomReservationId\": 12929199,\n                \"stockId\": null,\n                \"dateOfService\": \"2022-02-15T13:00:00\",\n                \"accountingCode\": null,\n                \"vatTypeCode\": null,\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            }\n        ]\n    },\n    {\n        \"id\": 9221086,\n        \"roomReservationIds\": [\n            \"12929303\"\n        ],\n        \"invoiceTypeId\": 3,\n        \"invoiceType\": \"PRI\",\n        \"number\": \"ZLLLL813\",\n        \"variableSymbol\": \"813\",\n        \"dateIssued\": \"2022-02-17\",\n        \"dateAccounting\": \"2022-02-22\",\n        \"dateTax\": \"2022-02-17\",\n        \"currencyId\": 2,\n        \"defaultCurId\": 1,\n        \"exchangeRatio\": 0.04104247896573,\n        \"paymentMethodId\": 4,\n        \"bankAccount\": {\n            \"number\": \"123456789/0100\",\n            \"iban\": \"CZ5808000000003393260359\",\n            \"swift\": \"GIBACZPX\"\n        },\n        \"vatApplicable\": false,\n        \"note\": \"note proforma invoice\",\n        \"additionalNote\": \"\",\n        \"priceSum\": 8.62,\n        \"priceSumWithoutVat\": 7.9799999999999995,\n        \"roundingSum\": 0,\n        \"parentDocumentIds\": [],\n        \"supplier\": {\n            \"id\": \"7141780\",\n            \"company\": \"\",\n            \"name\": \"PREVIO SK s.r.o.\",\n            \"contactName\": \"\",\n            \"street\": \"Horní 999/1\",\n            \"streetNumber\": \"\",\n            \"city\": \"Bratislava\",\n            \"zip\": \"998741\",\n            \"address\": \"Horní 999/1\\nBratislava\\n998741\",\n            \"country\": \"CZ\",\n            \"phone\": \"+420 123 456 789\",\n            \"email\": \"previo@previo.cz\",\n            \"contactEmail\": \"\",\n            \"note\": \"\",\n            \"vatPayer\": false\n        },\n        \"customer\": {\n            \"id\": \"7141853\",\n            \"company\": \"PREVIO s.r.o.\",\n            \"name\": \"John Doe\",\n            \"contactName\": \"\",\n            \"street\": \"Kolbenova\",\n            \"streetNumber\": \"882/5a\",\n            \"city\": \"Praha\",\n            \"zip\": \"19000\",\n            \"address\": \"Kolbenova 882/5a\\nPraha\\n19000\",\n            \"country\": \"CZ\",\n            \"phone\": \"123456789\",\n            \"email\": \"petr.klas@previo.cz\",\n            \"contactEmail\": \"\",\n            \"note\": \"\",\n            \"vatPayer\": false\n        },\n        \"items\": [\n            {\n                \"id\": 17040330,\n                \"name\": \"Accommodation services (room: 111, date: 16. 2. 2022 - 17. 2. 2022, guests: 2)\",\n                \"itemTypeId\": 1,\n                \"count\": 1,\n                \"price\": 0,\n                \"priceWithoutVat\": 0,\n                \"vatRate\": 10,\n                \"vatRateLabel\": \"10 %\",\n                \"segmentId\": 20,\n                \"priceSum\": 0,\n                \"priceSumNoVat\": 0,\n                \"position\": 0,\n                \"roomReservationItemId\": 47769333,\n                \"roomReservationId\": 12929303,\n                \"stockId\": null,\n                \"dateOfService\": \"2022-02-16T13:00:00\",\n                \"accountingCode\": null,\n                \"vatTypeCode\": \"ubytko\",\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            },\n            {\n                \"id\": 17040331,\n                \"name\": \"Meal (2x no meal, hostů: 2)\",\n                \"itemTypeId\": 3,\n                \"count\": 1,\n                \"price\": 6.9772,\n                \"priceWithoutVat\": 6.3429,\n                \"vatRate\": 10,\n                \"vatRateLabel\": \"10 %\",\n                \"segmentId\": 18,\n                \"priceSum\": 6.9772,\n                \"priceSumNoVat\": 6.3429,\n                \"position\": 1,\n                \"roomReservationItemId\": 47769334,\n                \"roomReservationId\": 12929303,\n                \"stockId\": null,\n                \"dateOfService\": \"2022-02-16T13:00:00\",\n                \"accountingCode\": null,\n                \"vatTypeCode\": null,\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            },\n            {\n                \"id\": 17040332,\n                \"name\": \"Coca cola\",\n                \"itemTypeId\": 4,\n                \"count\": 1,\n                \"price\": 1.64,\n                \"priceWithoutVat\": 1.64,\n                \"vatRate\": 0,\n                \"vatRateLabel\": \"0 %\",\n                \"segmentId\": 6,\n                \"priceSum\": 1.64,\n                \"priceSumNoVat\": 1.64,\n                \"position\": 2,\n                \"roomReservationItemId\": 47769335,\n                \"roomReservationId\": 12929303,\n                \"stockId\": 123456,\n                \"dateOfService\": \"2022-02-16T13:00:00\",\n                \"accountingCode\": \"STO_ACC\",\n                \"vatTypeCode\": null,\n                \"serviceId\": null,\n                \"stayPackageId\": null\n            }\n        ]\n    }\n]"}],"_postman_id":"89daa8a5-9396-4d81-8ff1-a28a5bd9cc73"}],"id":"d3075dc9-ed7d-4bd5-88c5-cba8768191b7","_postman_id":"d3075dc9-ed7d-4bd5-88c5-cba8768191b7","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Calendar","item":[{"name":"calendar/availability","event":[{"listen":"prerequest","script":{"id":"094a46c0-eac2-40f9-8370-e7c3dae6a512","exec":["var dateFrom = new Date();\r","var dateTo = new Date();\r","dateTo.setDate(dateTo.getDate() + 5);\r","postman.setEnvironmentVariable(\"dateFrom\", dateFrom.toISOString().substring(0, 10));\r","postman.setEnvironmentVariable(\"dateTo\", dateTo.toISOString().substring(0, 10));"],"type":"text/javascript","packages":{}}}],"id":"eaf33eda-7730-44eb-9963-d5fd3a5bea0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/calendar/availability?filterFrom=2025-07-10&roomKindIds[]=470597&filterTo=2025-08-01&ratePlanId=28604&includeOfflineRooms=true","description":"<p><a href=\"#authorization\">Authorization</a></p>\n<p>API privilege needed: 'Booking.getFreeCapacity'</p>\n<h1 id=\"response\">Response</h1>\n<p>The response returns an array</p>\n<h1 id=\"rate-plan\">Rate plan</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ratePlanId</code> (required)</td>\n<td><code>28672</code> (int)</td>\n<td>Rate plan ID. For getting list of rate plans use API method <a href=\"#a2bf3989-d359-4db9-bef2-d8ac6b7e68dc\">/rate-plan</a></td>\n</tr>\n<tr>\n<td><a href=\"#availability\">availability</a> (required)</td>\n<td><code>availibity</code> (array objects)</td>\n<td>Availability object</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"availability\">Availability</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>date</code> (required)</td>\n<td><code>2020-11-10</code> (string)</td>\n<td>Date</td>\n</tr>\n<tr>\n<td><a href=\"#room-kinds\">roomKinds</a> (required)</td>\n<td><code>roomKinds</code> (array objects)</td>\n<td>Room kinds object</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"room-kinds\">Room kinds</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code> (required)</td>\n<td><code>55999</code> (int)</td>\n<td>ID of the room kind</td>\n</tr>\n<tr>\n<td><code>availability</code> (required)</td>\n<td><code>3</code> (int)</td>\n<td>Number of available rooms</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["calendar","availability"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Date from (in ISO 8601 format: YYYY-MM-DD, required)</p>\n","type":"text/plain"},"key":"filterFrom","value":"2025-07-10"},{"description":{"content":"<p>List of room kinds, which should be returned (optional)</p>\n","type":"text/plain"},"key":"roomKindIds[]","value":"470597"},{"disabled":true,"key":"roomKindIds[]","value":"464480"},{"description":{"content":"<p>Date to. Maximum date range is 365 days  (in ISO 8601 format: YYYY-MM-DD, required)</p>\n","type":"text/plain"},"key":"filterTo","value":"2025-08-01"},{"description":{"content":"<p>Rate plan ID (optional). If not filled default rate plan is returned.</p>\n","type":"text/plain"},"key":"ratePlanId","value":"28604"},{"description":{"content":"<p>Flag. If false only offer online rooms will be returned.</p>\n","type":"text/plain"},"key":"includeOfflineRooms","value":"true"}],"variable":[]}},"response":[{"id":"57d88b28-30d3-4a5b-b6b3-b39f4f098ef9","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/calendar/availability?filterFrom=&roomKindIds[]=470597&roomKindIds[]=464480&filterTo=2021-08-01&ratePlanId=28604","host":["{{previo_api_url}}rest"],"path":["calendar","availability"],"query":[{"key":"filterFrom","value":""},{"key":"roomKindIds[]","value":"470597"},{"key":"roomKindIds[]","value":"464480"},{"key":"filterTo","value":"2021-08-01"},{"key":"ratePlanId","value":"28604"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ratePlanId\": 28604,\n        \"availability\": [\n            {\n                \"date\": \"2021-07-30\",\n                \"roomKinds\": [\n                    {\n                        \"id\": 470597,\n                        \"availability\": 2\n                    },\n                    {\n                        \"id\": 464480,\n                        \"availability\": 1\n                    }\n                ]\n            },\n            {\n                \"date\": \"2021-08-01\",\n                \"roomKinds\": [\n                    {\n                        \"id\": 470597,\n                        \"availability\": 3\n                    },\n                    {\n                        \"id\": 464480,\n                        \"availability\": 4\n                    }\n                ]\n            }\n        ]\n    }\n]"},{"id":"69d5b749-c739-43fd-a936-b57dd89e6e57","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/calendar/availability?filterFrom=2020-11-10&roomKindIds[]=25666&roomKindIds[]=464480&filterTo=2022-08-01&ratePlanId=28604","host":["{{previo_api_url}}rest"],"path":["calendar","availability"],"query":[{"key":"filterFrom","value":"2020-11-10","description":"Date from (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"roomKindIds[]","value":"25666","description":"List of room kinds, which should be returned (optional)"},{"key":"roomKindIds[]","value":"464480"},{"key":"filterTo","value":"2022-08-01","description":"Date to. Maximum date range is 365 days  (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"ratePlanId","value":"28604","description":"Rate plan ID (optional)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 23 Nov 2020 07:54:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.23"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Date range limit reached (365 days).\",\n    \"message\": null\n}"}],"_postman_id":"eaf33eda-7730-44eb-9963-d5fd3a5bea0b"},{"name":"calendar/meals","event":[{"listen":"prerequest","script":{"id":"58dddf15-b1c6-4637-a21d-d1600394e6f8","exec":["var dateFrom = new Date();\r","var dateTo = new Date();\r","dateTo.setMinutes(dateTo.getMinutes() + 120);\r","postman.setEnvironmentVariable(\"dateFrom\", dateFrom.toISOString());\r","postman.setEnvironmentVariable(\"dateTo\", dateTo.toISOString());"],"type":"text/javascript"}}],"id":"186d89cc-cf56-4585-a7f0-dfaafd931be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":"{{previo_api_url}}rest/calendar/meals?filterFrom={{dateFrom}}&filterTo={{dateTo}}&mealPlanIds[]=20082&currencyIds[]=1","description":"<p><a href=\"#authorization\">Authorization</a></p>\n<p>API privilege needed: 'Hotel.getMeals'</p>\n<h1 id=\"response\">Response</h1>\n<p>Meals can be set differently in Meal Plans - each Meal Plan is connected to <a href=\"https://rest.apidocs.previo.cz/#30a8d473-e262-462c-82ef-37f263375991\">Rate Plan</a>.</p>\n<p>In each Meal Plan are different seasons (in different parts of year can be different prices) and also different Room Kinds (different Room Kinds can have different prices of meals)</p>\n<h1 id=\"meal-plan\">Meal Plan</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mealPlanName</code></td>\n<td><code>Základní</code> (string)</td>\n<td>Name of the Meal Plan</td>\n</tr>\n<tr>\n<td><code>mealPlanId</code></td>\n<td><code>4</code> (int)</td>\n<td>Id of the Meal Plan</td>\n</tr>\n<tr>\n<td>seasons</td>\n<td><code>seasons</code> (object)</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"seasons\">Seasons</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mesId</code></td>\n<td><code>61569</code> (int)</td>\n<td>Meal season ID</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td><code>2022-11-07</code> (string)</td>\n<td>Date of season beginning</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td><code>2022-11-08</code></td>\n<td>Date of season end</td>\n</tr>\n<tr>\n<td><code>meals</code></td>\n<td><code>meals</code> (object)</td>\n<td>List of meals</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"meals\">Meals</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>meaId</code></td>\n<td><code>2</code> (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#9823b28d-1b56-4738-9123-1a5c700be1d7\">Meal type</a></td>\n</tr>\n<tr>\n<td><code>roomKinds</code></td>\n<td><code>roomKinds</code> (object)</td>\n<td>List of Room Kinds</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"room-kinds\">Room kinds</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>roomKindId</code></td>\n<td><code>470625</code> (int)</td>\n<td>ID of room kind</td>\n</tr>\n<tr>\n<td><code>mealPrices</code></td>\n<td><code>mealPrice</code> (object)</td>\n<td>Prices in particular room kind</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"meal-prices\">Meal prices</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>guaId</code></td>\n<td><code>83014</code> (int)</td>\n<td>Guest Category ID</td>\n</tr>\n<tr>\n<td><code>rate</code></td>\n<td><code>rate</code> (object)</td>\n<td>Price and currency</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"rate\">Rate</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>price</code></td>\n<td><code>200</code> (int)</td>\n<td>Price of meal</td>\n</tr>\n<tr>\n<td><code>curId</code></td>\n<td><code>1</code> (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">Currency</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["calendar","meals"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Date from (in ISO 8601 format: YYYY-MM-DD, required)</p>\n","type":"text/plain"},"key":"filterFrom","value":"{{dateFrom}}"},{"description":{"content":"<p>Date to. Maximum date range is 365 days  (in ISO 8601 format: YYYY-MM-DD, required)</p>\n","type":"text/plain"},"key":"filterTo","value":"{{dateTo}}"},{"description":{"content":"<p>(array, requested) Id of meal plan. Can be obtained through RatePlan</p>\n","type":"text/plain"},"key":"mealPlanIds[]","value":"20082"},{"disabled":true,"key":"mealPlanIds[]","value":"20081"},{"description":{"content":"<p>(array, optional) Currency ID</p>\n","type":"text/plain"},"key":"currencyIds[]","value":"1"}],"variable":[]}},"response":[{"id":"7ebba0ac-8bc7-4b6b-a54c-2fe2c59e8169","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{previo_api_url}}rest/calendar/meals?filterFrom={{dateFrom}}&filterTo={{dateTo}}&mealPlanIds[]=4&currencyIds[]=1","host":["{{previo_api_url}}rest"],"path":["calendar","meals"],"query":[{"key":"filterFrom","value":"{{dateFrom}}","description":"Date from (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"filterTo","value":"{{dateTo}}","description":"Date to. Maximum date range is 365 days  (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"mealPlanIds[]","value":"4","description":"(array, requested) Id of meal plan. Can be obtained through RatePlan"},{"key":"currencyIds[]","value":"1","description":"(array, optional) Currency ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 07 Nov 2022 09:56:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"mealPlanName\": \"Základní 2\",\n        \"mealPlanId\": 4,\n        \"seasons\": [\n            {\n                \"mesId\": 61569,\n                \"from\": \"2022-11-07\",\n                \"to\": \"2022-11-08\",\n                \"meals\": [\n                    {\n                        \"meaId\": \"2\",\n                        \"roomKinds\": [\n                            {\n                                \"roomKindId\": 470625,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470634,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470635,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 471821,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464480,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464583,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464668,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470598,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 472647,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 472648,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 471184,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 471835,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470597,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470596,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470592,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464646,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470606,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462885,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462046,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470405,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462269,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464463,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462045,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 464458,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462921,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462480,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 462952,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83197,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 83198,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    },\n                                    {\n                                        \"guaId\": 92804,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            }\n                        ]\n                    },\n                    {\n                        \"meaId\": \"3\",\n                        \"roomKinds\": [\n                            {\n                                \"roomKindId\": 470625,\n                                \"mealPrices\": [\n                                    {\n                                        \"guaId\": 83014,\n                                        \"rate\": [\n                                            {\n                                                \"price\": 0,\n                                                \"curId\": 1\n                                            }\n                                        ]\n                                    }\n                                ]\n                            },\n                            {\n                                \"roomKindId\": 470634,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470635,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 471821,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464480,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464583,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464668,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470598,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 472647,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 472648,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 471184,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 471835,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470597,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470596,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470592,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464646,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470606,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462885,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462046,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 470405,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462269,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464463,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462045,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 464458,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462921,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462480,\n                                \"mealPrices\": []\n                            },\n                            {\n                                \"roomKindId\": 462952,\n                                \"mealPrices\": []\n                            }\n                        ]\n                    }\n                ]\n            }\n        ]\n    }\n]"},{"id":"26acf1b0-ee80-4128-baf7-8d9b27fcdf7f","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"{{previo_api_url}}rest/calendar/meals?filterFrom={{dateFrom}}&filterTo={{dateTo}}&mealPlanIds[]=20&currencyIds[]=1","host":["{{previo_api_url}}rest"],"path":["calendar","meals"],"query":[{"key":"filterFrom","value":"{{dateFrom}}","description":"Date from (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"filterTo","value":"{{dateTo}}","description":"Date to. Maximum date range is 365 days  (in ISO 8601 format: YYYY-MM-DD, required)"},{"key":"mealPlanIds[]","value":"20","description":"(array, requested) Id of meal plan. Can be obtained through RatePlan"},{"key":"currencyIds[]","value":"1","description":"(array, optional) Currency ID"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 07 Nov 2022 11:23:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"MealRatePlan #20 not found\",\n    \"message\": null\n}"}],"_postman_id":"186d89cc-cf56-4585-a7f0-dfaafd931be9"},{"name":"calendar/hourly-availability","event":[{"listen":"prerequest","script":{"id":"4e15ce0f-e076-40f4-8183-22bc3680c0fa","exec":["var dateFrom = new Date();\r","var dateTo = new Date();\r","dateTo.setDate(dateTo.getDate() + 5);\r","postman.setEnvironmentVariable(\"dateFrom\", dateFrom.toISOString().substring(0, 10));\r","postman.setEnvironmentVariable(\"dateTo\", dateTo.toISOString().substring(0, 10));"],"type":"text/javascript"}}],"id":"b2397809-1515-4217-8901-cf5b90bf1d64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Basic {login:password}"}],"url":"{{previo_api_url}}rest/calendar/hourly-availability?filterFrom=2021-02-18&roomKindIds[]=470597&roomKindIds[]=464480&filterTo=2021-02-19","description":"<p><a href=\"#authorization\">Authorization</a></p>\n<p>API privilege needed: 'Booking.getFreeCapacity'</p>\n<p>Get list of available room kinds divided by hours. Maximum range is 72 hours.</p>\n<h1 id=\"response\">Response</h1>\n<p>The response returns an object with list of available terms.</p>\n<h1 id=\"rate-plan\">Rate plan</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ratePlanId</code> (required)</td>\n<td><code>28672</code> (int)</td>\n<td>Rate plan ID. For getting list of rate plans use API method <a href=\"#a2bf3989-d359-4db9-bef2-d8ac6b7e68dc\">/rate-plan</a></td>\n</tr>\n<tr>\n<td><a href=\"#availability-by-hours\">availability</a> (required)</td>\n<td><code>availibity</code> (array objects)</td>\n<td>Availability object</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"availability-by-hours\">Availability by hours</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>roomKindId (required)</td>\n<td><code>462931</code> (int)</td>\n<td>Room kinds ID</td>\n</tr>\n<tr>\n<td><a href=\"#room-kind-availability\">availability</a> (required)</td>\n<td><code>availibity</code> (array objects)</td>\n<td>Availability object</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"room-kind-availability\">Room kind availability</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>from</code> (required)</td>\n<td><code>2020-01-01T10:00:00</code> (string)</td>\n<td>From date</td>\n</tr>\n<tr>\n<td><code>to</code> (required)</td>\n<td><code>2020-01-01T14:00:00</code> (string)</td>\n<td>To date</td>\n</tr>\n<tr>\n<td><code>availability</code> (required)</td>\n<td><code>3</code> (int)</td>\n<td>Number of available rooms</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["calendar","hourly-availability"],"host":["{{previo_api_url}}rest"],"query":[{"key":"filterFrom","value":"2021-02-18"},{"key":"roomKindIds[]","value":"470597"},{"key":"roomKindIds[]","value":"464480"},{"key":"filterTo","value":"2021-02-19"}],"variable":[]}},"response":[{"id":"400babc0-be54-430d-90d4-34519db13a36","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Basic {login:password}"}],"url":{"raw":"{{previo_api_url}}/rest/calendar/hourly-availability?filterFrom=2021-02-18&roomKindIds[]=470597&roomKindIds[]=464480&filterTo=2021-02-19","host":["{{previo_api_url}}"],"path":["rest","calendar","hourly-availability"],"query":[{"key":"filterFrom","value":"2021-02-18"},{"key":"roomKindIds[]","value":"470597"},{"key":"roomKindIds[]","value":"464480"},{"key":"filterTo","value":"2021-02-19"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Feb 2021 11:55:10 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/7.3.23"},{"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":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"ratePlanId\": 28672,\n    \"availability\": [\n        {\n            \"roomKindId\": 462931,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 2\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463062,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463063,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463071,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463074,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463076,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463078,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463088,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463064,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463059,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463061,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463070,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463073,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463075,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463077,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 463087,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 462893,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 470255,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 2\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 470397,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 1\n                }\n            ]\n        },\n        {\n            \"roomKindId\": 464475,\n            \"availability\": [\n                {\n                    \"from\": \"2021-02-18T00:00:00\",\n                    \"to\": \"2021-02-19T00:00:00\",\n                    \"availability\": 2\n                }\n            ]\n        }\n    ]\n}"},{"id":"42476d4a-08b3-4e93-936c-872cdb2fe8eb","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Basic {login:password}"}],"url":{"raw":"{{previo_api_url}}/rest/calendar/hourly-availability?filterFrom=2021-02-18&roomKindIds[]=470597&roomKindIds[]=464480&filterTo=2021-02-25","host":["{{previo_api_url}}"],"path":["rest","calendar","hourly-availability"],"query":[{"key":"filterFrom","value":"2021-02-18"},{"key":"roomKindIds[]","value":"470597"},{"key":"roomKindIds[]","value":"464480"},{"key":"filterTo","value":"2021-02-25"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Feb 2021 11:56:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.23"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Date range limit reached (72 hours).\",\n    \"message\": null\n}"}],"_postman_id":"b2397809-1515-4217-8901-cf5b90bf1d64"}],"id":"a60c175a-891f-46e4-b389-c981a91af809","_postman_id":"a60c175a-891f-46e4-b389-c981a91af809","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"CRM","item":[{"name":"crm/events","id":"8462b50f-b85c-403a-a955-f42660578fd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/events/search","description":"<p>Get list of events from CRM</p>\n<p>CRM privilege needed: 'events'</p>\n<h1 id=\"response\">Response</h1>\n<h2 id=\"event\">Event</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>eve_id</code> (required)</td>\n<td><code>28672</code>  (int)</td>\n<td>CRM event ID</td>\n</tr>\n<tr>\n<td><code>eve_datetime</code> (required)</td>\n<td><code>2021-02-26 09:09:56</code>  (string)</td>\n<td>Date and time of event</td>\n</tr>\n<tr>\n<td><code>use_login</code> (optional)</td>\n<td><code>user@previo.cz</code> (string)</td>\n<td>User login</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["events","search"],"host":["{{previo_api_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"bf3a2f76-25be-48ad-b2d7-4366b0dc124b","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/events/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Mar 2021 12:15:12 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/7.3.27"},{"key":"Set-Cookie","value":"PHPSESSID=ndoaqtvfpg5r6e6di6npvd7vlo; expires=Tue, 16-Mar-2021 12:15:12 GMT; Max-Age=86400; path=/"},{"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":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"services\": [\n        {\n            \"eve_id\": \"488881\",\n            \"eve_datetime\": \"2021-02-26 09:09:56\",\n            \"use_login\": null,\n            \"eveUseLogin\": \"fakturace@previo.cz\",\n            \"use_id\": null,\n            \"dayDifference\": \"-17\",\n            \"eve_description\": \"2021109476 vystavena za provoz ve výši 235 Kč.\\nFaktura byla vystavena za období: 1. 2. 2021 - 31. 3. 2021\\nFaktura je uložena v dokumentu s ID: 162959.\\n\",\n            \"eve_subject\": \"2021109476 za provoz (automatika)\",\n            \"eve_client\": \"\",\n            \"eve_clientPosition\": \"\",\n            \"hot_name\": \"Los Hotelos #2 - Test2\",\n            \"hot_id\": \"2\",\n            \"tow_name\": \"Praha\",\n            \"cot_name\": \"Praha\",\n            \"slm_name\": null,\n            \"evt_id\": \"11\",\n            \"evt_name\": \"vystavena faktura\",\n            \"evt_shortcut\": \"FAK\",\n            \"saleCount\": \"0\",\n            \"slm_id\": null,\n            \"salesIds\": null,\n            \"slm_initials\": \"\"\n        },\n        {\n            \"eve_id\": \"488871\",\n            \"eve_datetime\": \"2021-02-25 10:05:28\",\n            \"use_login\": null,\n            \"eveUseLogin\": \"fakturace@previo.cz\",\n            \"use_id\": null,\n            \"dayDifference\": \"-18\",\n            \"eve_description\": \"2021109477 vystavena za provoz ve výši € 235.\\nFaktura byla vystavena za období: 1. 2. 2021 - 31. 3. 2021\\nFaktura je uložena v dokumentu s ID: 162958.\\nOdeslána na emaily: ales.svoboda@previo.cz, fakturace@previo.cz\",\n            \"eve_subject\": \"2021109477 za provoz (automatika)\",\n            \"eve_client\": \"ales.svoboda@previo.cz, fakturace@previo.cz\",\n            \"eve_clientPosition\": \"\",\n            \"hot_name\": \"Los Hotelos #2 - Test2\",\n            \"hot_id\": \"2\",\n            \"tow_name\": \"Praha\",\n            \"cot_name\": \"Praha\",\n            \"slm_name\": null,\n            \"evt_id\": \"11\",\n            \"evt_name\": \"vystavena faktura\",\n            \"evt_shortcut\": \"FAK\",\n            \"saleCount\": \"0\",\n            \"slm_id\": null,\n            \"salesIds\": null,\n            \"slm_initials\": \"\"\n        }\n    ],\n    \"total\": \"201\"\n}"}],"_postman_id":"8462b50f-b85c-403a-a955-f42660578fd0"}],"id":"8ee4dc56-eab3-4c85-90e9-035d4f67acb7","_postman_id":"8ee4dc56-eab3-4c85-90e9-035d4f67acb7","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Guest","item":[{"name":"Tags","item":[{"name":"Get guest tags","id":"b1ae1990-cf6c-4c15-ac0b-1bd1d9e985e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"url":"{{previo_api_url}}/rest/guests/tags","description":"<p>Get list of tags in particular hotel. Each guest can have list of these tags.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests","tags"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"ec99b0bb-c331-48a2-8c19-ee0c265974fc","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"url":"{{previo_api_url}}/rest/guests/tags"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Fri, 11 Aug 2023 12:53:34 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":"set-cookie","value":"previo-user=MUIEAOvBBEsr5vpVrAhKnhWiVJMwwocBKQNrwJ8Ycrd-xIbIhQS2t0ok8BNJhsQxkiOmiI9A6s_vC3DAPQED73xCmDOwDAf-AhH7VrxQ_0uQaAOB3Q4yMRceKfLY0J9GAl9tp9II7QMFD39xiV4-Z1DcYN3Kk_z-Oq2Lb1aaTfgd-rqTksEKLZ7tRIJ_RJYxoarSPn41Di7Qk5m0E9UD3gcudQ%3D%3D; expires=Sat, 12-Aug-2023 12:53:34 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"guestTags\": [\n        {\n            \"tagId\": 1473418,\n            \"tagText\": \"123\"\n        },\n        {\n            \"tagId\": 1475092,\n            \"tagText\": \"President\"\n        },\n        {\n            \"tagId\": 1179654,\n            \"tagText\": \"Problémový host\"\n        }\n    ]\n}"}],"_postman_id":"b1ae1990-cf6c-4c15-ac0b-1bd1d9e985e6"}],"id":"f1f8f1a2-5398-40dd-8738-6398523a60d2","_postman_id":"f1f8f1a2-5398-40dd-8738-6398523a60d2","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Guest search","id":"58fdd947-1486-479a-9aec-a9ab812dea33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"url":"api.previo.app/rest/guests?name=Petr&surname=Pavel&email=petr.pavel@previo.cz&phone=%2B42077757298","description":"<p>You can search guest by fulltext, which can be name, surname, email or phone number.</p>\n<h1 id=\"request\">Request</h1>\n<p>api.previo.app/rest/guests?name=Petr&amp;surname=Pavel&amp;email=<a href=\"mailto:petr.pavel@previo.cz\">petr.pavel@previo.cz</a>&amp;phone=+42077757298&amp;limit=10&amp;offset=10</p>\n<p>If the parameter \"limit\" is not set, the function will return 100 results. If you set a limit greater than 100, the function will return 100 results.<br />You can use offset for pagination. If offset is not set, the offset will be set to 0.</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code></td>\n<td><code>true</code> (boolean)</td>\n<td>success of operation</td>\n</tr>\n<tr>\n<td><code>foundRows</code></td>\n<td><code>10</code> (integer)</td>\n<td>total found records</td>\n</tr>\n<tr>\n<td><code>guests</code></td>\n<td>array of guest objects</td>\n<td>guests (max. 100 guests returned in one response)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"guest\">Guest</h2>\n<p>Same as response object \"Guest\" in \"Get guest by ID\" endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests"],"host":["api","previo","app"],"query":[{"key":"name","value":"Petr"},{"key":"surname","value":"Pavel"},{"key":"email","value":"petr.pavel@previo.cz"},{"key":"phone","value":"%2B42077757298"}],"variable":[]}},"response":[{"id":"4af0af59-5926-4f09-8913-ee1429a255ff","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"2","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"url":{"raw":"api.previo.app/rest/guests?name=Petr&surname=Pavel","host":["api","previo","app"],"path":["","rest","guests"],"query":[{"key":"name","value":"Petr"},{"key":"surname","value":"Pavel"},{"key":"email","value":"vaclav.kozelka@previo.cz","disabled":true},{"key":"phone","value":"%2B420777575316","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Wed, 09 Aug 2023 14:06:35 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":"set-cookie","value":"previo-user=MUIEABsnNT0E1LjPlrap1GixCS5XeyW6uhQhOrSl7FOBrzoOUhux5O7_VWTTxJrKUXoiegvjAoPuqXqvJEXtJE6Ql4DpLZT-g1G4DMKDGB5_FzC596925VcSx5OjdwI4293sV7ai2dd46AE80kJosMgu8A79Q_XaWJl0OUYR8O9Uslq4hLNLuKtBQlGXs7ioaAoR3j6gOaiCdnB4CTVUTpPlEA%3D%3D; expires=Thu, 10-Aug-2023 14:06:35 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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    \"success\": true,\n    \"guests\": [\n        {\n            \"gueId\": 237384154,\n            \"guaId\": 150558,\n            \"name\": \"Ing. Pavel Petr\",\n            \"firstName\": \"Petr\",\n            \"lastName\": \"Pavel\",\n            \"namePrefix\": \"Ing.\",\n            \"nameSuffix\": \"\",\n            \"email\": \"petr.pavel@president.cz\",\n            \"phone\": \"+420123456789\",\n            \"address\": \"Kolbenova 130, Praha 19000\",\n            \"street\": \"Kolbenova\",\n            \"streetNumber\": \"130\",\n            \"zip\": \"19000\",\n            \"city\": \"Praha\",\n            \"couId\": 1,\n            \"streetType\": \"utca\",\n            \"identity\": \"565151\",\n            \"guiId\": 1,\n            \"newsletter\": 0,\n            \"numberPlate\": \"123ABC\",\n            \"sex\": \"m\",\n            \"visa\": \"21313KDMFS32\",\n            \"visaIssuePlace\": \"Prague\",\n            \"note\": \"Be really welcoming\",\n            \"birthDate\": \"1979-09-19T00:00:00\",\n            \"birthPlace\": \"Praha\",\n            \"stateOfBirth\": 1,\n            \"mothersFirstName\": \"Jana\",\n            \"mothersLastName\": \"Nováková\",\n            \"nationalities\": [\n                1\n            ],\n            \"tags\": [1,2],\n            \"hasCompleteCheckIn\": true\n        }\n    ]\n}"}],"_postman_id":"58fdd947-1486-479a-9aec-a9ab812dea33"},{"name":"Get guest by ID","id":"012f77c6-e1d9-443d-abcb-d23888504833","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"url":"{{previo_api_url}}/rest/guests/37875960","description":"<p>If you know Guest ID, you can get all the infromation about particular guest</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code></td>\n<td><code>true</code> (boolean)</td>\n<td>success of operation</td>\n</tr>\n<tr>\n<td><code>guest</code></td>\n<td>guest (object)</td>\n<td>founded guest</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>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gueId</code></td>\n<td><code>288731855</code> (int)</td>\n<td>Guest ID</td>\n</tr>\n<tr>\n<td><code>guaId</code></td>\n<td><code>167238</code> (int)</td>\n<td>The unique identifier for guest category</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td><code>Ing. Příjmení Jméno PhD.</code> (string)</td>\n<td>Full name of guest</td>\n</tr>\n<tr>\n<td><code>firstName</code></td>\n<td><code>Radim</code> (string)</td>\n<td>First name of the guest</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td><code>Vaculík</code> (string)</td>\n<td>Last name of the guest</td>\n</tr>\n<tr>\n<td><code>namePrefix</code></td>\n<td><code>Ing.</code> (string)</td>\n<td>Title before name</td>\n</tr>\n<tr>\n<td><code>nameSuffix</code></td>\n<td><code>Phd.</code> (string)</td>\n<td>Title after name</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td><code>+420123456789</code> (string)</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>Lihovarská 1060 / 12, Prague 938711</code> (string)</td>\n<td>Address of the guest</td>\n</tr>\n<tr>\n<td><code>street</code></td>\n<td><code>Panska</code> (string)</td>\n<td>Name of street</td>\n</tr>\n<tr>\n<td><code>streetNumber</code></td>\n<td><code>256</code> (string)</td>\n<td>Street number</td>\n</tr>\n<tr>\n<td><code>zip</code></td>\n<td><code>60200</code> (string)</td>\n<td>Zip code</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Brno</code> (string)</td>\n<td>Name of the city</td>\n</tr>\n<tr>\n<td><code>couId</code></td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for country</td>\n</tr>\n<tr>\n<td><code>streetType</code></td>\n<td><code>utca</code> (string)</td>\n<td>Type of street for Hungary hotel</td>\n</tr>\n<tr>\n<td><code>identity</code></td>\n<td><code>N5646645</code> (string)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>guiId</code></td>\n<td><code>1</code> (int)</td>\n<td>1 ID card, 2 passport, 3 driving license, 4 permanent residence</td>\n</tr>\n<tr>\n<td><code>newsletter</code></td>\n<td><code>0</code> (integer 0/1)</td>\n<td>Guest agreement with receiving newsletter</td>\n</tr>\n<tr>\n<td><code>numberPlate</code></td>\n<td><code>5AN6312</code> (string)</td>\n<td>Number plate of guest`s car</td>\n</tr>\n<tr>\n<td><code>sex</code></td>\n<td><code>m</code> (string)</td>\n<td>Male or Female</td>\n</tr>\n<tr>\n<td><code>visa</code></td>\n<td><code>21313KDMFS32</code> (string)</td>\n<td>Visa number</td>\n</tr>\n<tr>\n<td><code>visaIssuePlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>Place where visa had been issued</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td><code>This guest is awesome</code> (string)</td>\n<td>Note about guest</td>\n</tr>\n<tr>\n<td><code>birthDate</code></td>\n<td><code>2017-01-01T00:00:00</code> (string)</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td><code>birthPlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>City where the guest had been born</td>\n</tr>\n<tr>\n<td><code>stateOfBirth</code></td>\n<td><code>1</code> (int)</td>\n<td>Country where the guest had been born</td>\n</tr>\n<tr>\n<td><code>mothersFirstName</code></td>\n<td><code>Jana</code> (string)</td>\n<td>First name of mother</td>\n</tr>\n<tr>\n<td><code>mothersLastName</code></td>\n<td><code>Nováková</code> (string)</td>\n<td>Last name of mother</td>\n</tr>\n<tr>\n<td><code>nationalities</code></td>\n<td><code>[1, 2]</code> (array of integers)</td>\n<td>Nationalities of the guest</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td><code>[1, 2]</code> (array of integers)</td>\n<td>IDs of tags</td>\n</tr>\n<tr>\n<td><code>hasCompleteCheckIn</code></td>\n<td><code>true</code> (boolean)</td>\n<td>Has complete check-in</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests","37875960"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"b21c9fba-4091-4eeb-add4-8a27d986c19a","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"2","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"url":"api.previo.app//rest/guests/237384154"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Fri, 11 Aug 2023 12:45:00 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":"set-cookie","value":"previo-user=MUIEAHCMxljAI7JXLhhST6TBiJaK413xAMF38cgdielvPMkQeBNvgP4QqMm6-9DtNPHFVxQmk3IJ5tzD6ibcddQnrkoXaFbsODfIhmcgpsOCQ3qNILohpzhBTLxv4LvwRRU0H9bqN8eiIouaQ98Khs3_3GqkMhnblq9qL348Qdq8WGV7y0RI_kN7kEoLutR94TOiOes2I0iMZ_Ysd34eKPzP9Q%3D%3D; expires=Sat, 12-Aug-2023 12:45:00 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"guest\": {\n        \"gueId\": 237384154,\n        \"guaId\": 150558,\n        \"name\": \"Ing. Pavel Petr\",\n        \"firstName\": \"Petr\",\n        \"lastName\": \"Pavel\",\n        \"namePrefix\": \"Ing.\",\n        \"nameSuffix\": \"\",\n        \"email\": \"petr.pavel@president.cz\",\n        \"phone\": \"+420123456789\",\n        \"address\": \"Kolbenova 130, Praha 19000\",\n        \"street\": \"Kolbenova\",\n        \"streetNumber\": \"130\",\n        \"zip\": \"19000\",\n        \"city\": \"Praha\",\n        \"couId\": 1,\n        \"streetType\": \"utca\",\n        \"identity\": \"565151\",\n        \"guiId\": 1,\n        \"newsletter\": 0,\n        \"numberPlate\": \"123ABC\",\n        \"sex\": \"m\",\n        \"visa\": \"21313KDMFS32\",\n        \"visaIssuePlace\": \"Prague\",\n        \"note\": \"Be really welcoming\",\n        \"birthDate\": \"1979-09-19T00:00:00\",\n        \"birthPlace\": \"Praha\",\n        \"stateOfBirth\": 1,\n        \"mothersFirstName\": \"Jana\",\n        \"mothersLastName\": \"Nováková\",\n        \"nationalities\": [\n            1\n        ],\n        \"tags\": [1,2],\n        \"hasCompleteCheckIn\": true\n    }\n}"}],"_postman_id":"012f77c6-e1d9-443d-abcb-d23888504833"},{"name":"Create guest","id":"2f9a329e-cca2-450e-950a-7a36485fbe29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jméno\",\n    \"lastName\": \"Příjmení\",\n    \"email\": \"jmeno.prijmeni@email.cz\",\n    \"phone\": \"+420123456789\",\n    \"gender\": \"m\",\n    \"birthDate\": \"1987-09-01\",\n    \"address\": {\n        \"street\": \"Lihovarská\",\n        \"streetNumber\": \"1060 / 12\",\n        \"city\": \"Prague\",\n        \"zip\": 938711,\n        \"couId\": \"n/a\"\n    },\n    \"visa\": 95555,\n    \"numberPlate\": \"AB - 26 - 66\",\n    \"identity\": {\n        \"idNumber\": 933333,\n        \"guiId\": 1\n    }\n}"},"url":"{{previo_api_url}}/rest/guests","description":"<p>Use this API for creating new guest. In the response you will get all info about saved guest like in the Get guest by ID endpoint.</p>\n<h1 id=\"request\">Request</h1>\n<h2 id=\"guest\">Guest</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>firstName</code></td>\n<td><code>Radim</code> (string)</td>\n<td>First name of the guest</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td><code>Vaculík</code> (string)</td>\n<td>Last name of the guest</td>\n</tr>\n<tr>\n<td><code>namePrefix</code></td>\n<td><code>Ing.</code> (string)</td>\n<td>Title before name</td>\n</tr>\n<tr>\n<td><code>nameSuffix</code></td>\n<td><code>Phd.</code> (string)</td>\n<td>Title after name</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td><code>+420123456789</code> (string)</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>address (object)</td>\n<td>Address of the guest</td>\n</tr>\n<tr>\n<td><code>identity</code></td>\n<td>identity (object)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>newsletter</code></td>\n<td><code>0</code> (integer 0/1)</td>\n<td>Guest agreement with receiving newsletter</td>\n</tr>\n<tr>\n<td><code>numberPlate</code></td>\n<td><code>5AN6312</code> (string)</td>\n<td>Number plate of guest`s car</td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td><code>m</code> (string)</td>\n<td>Male (m) or Female (f)</td>\n</tr>\n<tr>\n<td><code>visa</code></td>\n<td><code>21313KDMFS32</code> (string)</td>\n<td>Visa number</td>\n</tr>\n<tr>\n<td><code>visaIssuePlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>Place where visa had been issued</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td><code>This guest is awesome</code> (string)</td>\n<td>Note about guest</td>\n</tr>\n<tr>\n<td><code>birthDate</code></td>\n<td><code>2017-01-01T00:00:00</code> (string)</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td><code>birthPlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>City where the guest had been born</td>\n</tr>\n<tr>\n<td><code>stateOfBirth</code></td>\n<td><code>1</code> (int)</td>\n<td>Country where the guest had been born</td>\n</tr>\n<tr>\n<td><code>mothersFirstName</code></td>\n<td><code>Jana</code> (string)</td>\n<td>First name of mother</td>\n</tr>\n<tr>\n<td><code>mothersLastName</code></td>\n<td><code>Nováková</code> (string)</td>\n<td>Last name of mother</td>\n</tr>\n<tr>\n<td><code>nationalities</code></td>\n<td><code>[1, 2]</code> (array of integers)</td>\n<td>Nationalitites of the guest</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td><code>[1565, 651651]</code> (array of integers) or <code>1565, 651651</code> (string of ids separated by comma)</td>\n<td>Guest labels (you can issue existing label by its ID)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"address\">Address</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>street</code></td>\n<td><code>Panska</code> (string)</td>\n<td>Name of street</td>\n</tr>\n<tr>\n<td><code>streetNumber</code></td>\n<td><code>256</code> (string)</td>\n<td>Street number</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Brno</code> (string)</td>\n<td>Name of the city</td>\n</tr>\n<tr>\n<td><code>zip</code></td>\n<td><code>60200</code> (string)</td>\n<td>Zip code</td>\n</tr>\n<tr>\n<td><code>couId</code></td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for country</td>\n</tr>\n<tr>\n<td><code>streetType</code></td>\n<td><code>utca</code> (string)</td>\n<td>Type of street for Hungary hotel</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"identity\">Identity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>idNumber</code></td>\n<td><code>N5646645</code> (string)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>guiId</code></td>\n<td><code>1</code> (int)</td>\n<td>1 ID card, 2 passport, 3 driving license, 4 permanent residence</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code></td>\n<td><code>true</code> (boolean)</td>\n<td>success of operation</td>\n</tr>\n<tr>\n<td><code>guest</code></td>\n<td>guest (object or null)</td>\n<td>created guest</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"guest-1\">Guest</h2>\n<p>Same as response object \"Guest\" in \"Get guest by ID\" endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"4db86c79-689a-425d-96d9-0015a6b36f1a","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"2","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jméno\",\n    \"lastName\": \"Příjmení\",\n    \"namePrefix\": \"Ing.\",\n    \"nameSuffix\": \"PhD.\",\n    \"email\": \"jmeno.prijmeni@email.cz\",\n    \"phone\": \"+420123456789\",\n    \"gender\": \"m\",\n    \"birthDate\": \"1987-09-01\",\n    \"birtPlace\": \"Prague\",\n    \"address\": {\n        \"street\": \"Lihovarská\",\n        \"streetNumber\": \"1060 / 12\",\n        \"city\": \"Prague\",\n        \"zip\": 938711,\n        \"couId\": 1\n    },\n    \"visa\": 95555,\n    \"numberPlate\": \"AB - 26 - 66\",\n    \"identity\": {\n        \"idNumber\": 933333,\n        \"guiId\": 1\n    }\n}"},"url":"api.previo.app//rest/guests"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Fri, 11 Aug 2023 12:47:04 GMT"},{"key":"content-type","value":"application/json"},{"key":"transfer-encoding","value":"chunked"},{"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":"set-cookie","value":"previo-user=MUIEAHJtGRtQGgRNf_LrDia6Zun72EPlas9zQ41dLjhdYXL4oDV3hmkU0HEQNWtoR9dnCRxQTHZOlLJ_wSJsDNGvXSz7NIirbS7x04F9zXb5xM2Q8ZTUWjEUT5Fm7eb7FSoSjLciyfR39INJOlEzh39oJzFG1uPNH0K5l0q_fVDadGiumVAxv-6534Q2ecFQGsln6jQEq4afv7LM1vYRfnm5Wg%3D%3D; expires=Sat, 12-Aug-2023 12:47:04 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"guest\": {\n        \"gueId\": 237384154,\n        \"guaId\": 150558,\n        \"name\": \"Ing. Pavel Petr\",\n        \"firstName\": \"Petr\",\n        \"lastName\": \"Pavel\",\n        \"namePrefix\": \"Ing.\",\n        \"nameSuffix\": \"\",\n        \"email\": \"petr.pavel@president.cz\",\n        \"phone\": \"+420123456789\",\n        \"address\": \"Kolbenova 130, Praha 19000\",\n        \"street\": \"Kolbenova\",\n        \"streetNumber\": \"130\",\n        \"zip\": \"19000\",\n        \"city\": \"Praha\",\n        \"couId\": 1,\n        \"streetType\": \"utca\",\n        \"identity\": \"565151\",\n        \"guiId\": 1,\n        \"newsletter\": 0,\n        \"numberPlate\": \"123ABC\",\n        \"sex\": \"m\",\n        \"visa\": \"21313KDMFS32\",\n        \"visaIssuePlace\": \"Prague\",\n        \"note\": \"Be really welcoming\",\n        \"birthDate\": \"1979-09-19T00:00:00\",\n        \"birthPlace\": \"Praha\",\n        \"stateOfBirth\": 1,\n        \"mothersFirstName\": \"Jana\",\n        \"mothersLastName\": \"Nováková\",\n        \"nationalities\": [\n            1\n        ],\n        \"tags\": [1,2],\n        \"hasCompleteCheckIn\": true\n    }\n}"}],"_postman_id":"2f9a329e-cca2-450e-950a-7a36485fbe29"},{"name":"Update guest","id":"e69df6fb-1831-4e40-bb52-868bb29c26e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Name\",\n    \"lastName\": \"Surname\",\n    \"email\": \"petr.pavel@previo.cz\",\n    \"phone\": \"+4207777533416\",\n    \"gender\": \"f\",\n    \"birthDate\": \"1990-09-01\",\n    \"address\": {\n        \"street\": \"Lihovarská\",\n        \"streetNumber\": \"1050 / 12\",\n        \"city\": \"Prague\",\n        \"zip\": 938711,\n        \"couId\": \"n/a\"\n    },\n    \"visa\": 95555,\n    \"numberPlate\": \"AB - 26 - 66\",\n    \"identity\": {\n        \"idNumber\": 933333,\n        \"guiId\": 1\n    },\n    \"tags\": \"17892,17894\"\n}"},"url":"{{previo_api_url}}/rest/guests/37875970","description":"<p>Update guest by Guest ID</p>\n<h1 id=\"request\">Request</h1>\n<p>api.previo.app/rest/guests/123456789</p>\n<h2 id=\"guest\">Guest</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>firstName</code></td>\n<td><code>Radim</code> (string)</td>\n<td>First name of the guest</td>\n</tr>\n<tr>\n<td><code>lastName</code></td>\n<td><code>Vaculík</code> (string)</td>\n<td>Last name of the guest</td>\n</tr>\n<tr>\n<td><code>namePrefix</code></td>\n<td><code>Ing.</code> (string)</td>\n<td>Title before name</td>\n</tr>\n<tr>\n<td><code>nameSuffix</code></td>\n<td><code>Phd.</code> (string)</td>\n<td>Title after name</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td><code>+420123456789</code> (string)</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td><code>birthDate</code></td>\n<td><code>2017-01-01T00:00:00</code> (string)</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td><code>birthPlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>City where the guest had been born</td>\n</tr>\n<tr>\n<td><code>stateOfBirth</code></td>\n<td><code>1</code> (int)</td>\n<td>Country where the guest had been born</td>\n</tr>\n<tr>\n<td><code>nationalities</code></td>\n<td><code>[1, 2]</code> (array of integers)</td>\n<td>Nationalitites of the guest</td>\n</tr>\n<tr>\n<td><code>gender</code></td>\n<td><code>m</code> (string)</td>\n<td>Male (m) or Female (f)</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>address (object)</td>\n<td>Address of the guest</td>\n</tr>\n<tr>\n<td><code>visa</code></td>\n<td><code>21313KDMFS32</code> (string)</td>\n<td>Visa number</td>\n</tr>\n<tr>\n<td><code>visaIssuePlace</code></td>\n<td><code>Prague</code> (string)</td>\n<td>Place where visa had been issued</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td><code>This guest is awesome</code> (string)</td>\n<td>Note about guest</td>\n</tr>\n<tr>\n<td><code>newsletter</code></td>\n<td><code>0</code> (integer 0/1)</td>\n<td>Guest agreement with receiving newsletter</td>\n</tr>\n<tr>\n<td><code>numberPlate</code></td>\n<td><code>5AN6312</code> (string)</td>\n<td>Number plate of guest`s car</td>\n</tr>\n<tr>\n<td><code>identity</code></td>\n<td>identity (object)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td><code>[1565, 651651]</code> (array of integers) or <code>1565, 651651</code> (string of ids separated by comma)</td>\n<td>Guest labels (you can issue existing label by its ID)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"address\">Address</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>street</code></td>\n<td><code>Panska</code> (string)</td>\n<td>Name of street</td>\n</tr>\n<tr>\n<td><code>streetNumber</code></td>\n<td><code>256</code> (string)</td>\n<td>Street number</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>Brno</code> (string)</td>\n<td>Name of the city</td>\n</tr>\n<tr>\n<td><code>zip</code></td>\n<td><code>60200</code> (string)</td>\n<td>Zip code</td>\n</tr>\n<tr>\n<td><code>couId</code></td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for country</td>\n</tr>\n<tr>\n<td><code>streetType</code></td>\n<td><code>utca</code> (string)</td>\n<td>Type of street for Hungary hotel</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"identity\">Identity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>idNumber</code></td>\n<td><code>N5646645</code> (string)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>guiId</code></td>\n<td><code>1</code> (int)</td>\n<td>1 ID card, 2 passport, 3 driving license, 4 permanent residence</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code></td>\n<td><code>true</code> (boolean)</td>\n<td>success of operation</td>\n</tr>\n<tr>\n<td><code>guest</code></td>\n<td>guest (object or null)</td>\n<td>created guest</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"guest-1\">Guest</h2>\n<p>Same as response object \"Guest\" in \"Get guest by ID\" endpoint.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests","37875970"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"505e03b0-dddb-4091-bf92-e400f1d4dc4d","name":"200","originalRequest":{"method":"PUT","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"2","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jméno\",\n    \"lastName\": \"Příjmení\",\n    \"namePrefix\": \"Ing.\",\n    \"nameSuffix\": \"PhD.\",\n    \"email\": \"jmeno.prijmeni@email.cz\",\n    \"phone\": \"+420123456789\",\n    \"gender\": \"m\",\n    \"birthDate\": \"1987-09-01\",\n    \"birtPlace\": \"Prague\",\n    \"address\": {\n        \"street\": \"Lihovarská\",\n        \"streetNumber\": \"1060 / 12\",\n        \"city\": \"Prague\",\n        \"zip\": 938711,\n        \"couId\": 1\n    },\n    \"visa\": 95555,\n    \"numberPlate\": \"AB - 26 - 66\",\n    \"identity\": {\n        \"idNumber\": 933333,\n        \"guiId\": 1\n    }\n}"},"url":"api.previo.app//rest/guests/97053394"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Fri, 11 Aug 2023 12:48:38 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":"set-cookie","value":"previo-user=MUIEAFhtr__CV_AZWxZeO_FSa8cnKXFyA4urewkyeJY7rmuG-Qgfwl0S3BpE7oRGgAsSL53O3u8BLWBFQ5Gb99pU0QKN83V2w9QON7SKzZMhY4W-mRazD8AqpVB8gv8tp-e6wZahVpHLCYfzi1EtoIcBtKihbxLYDANZ9BihXxhiRtTqIGA9SCGgiP_D0QvfiXaGlziPk-BLtElAjpv_4aF4pw%3D%3D; expires=Sat, 12-Aug-2023 12:48:38 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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    \"success\": true,\n    \"guest\": {\n        \"gueId\": 237384154,\n        \"guaId\": 150558,\n        \"name\": \"Ing. Pavel Petr\",\n        \"firstName\": \"Petr\",\n        \"lastName\": \"Pavel\",\n        \"namePrefix\": \"Ing.\",\n        \"nameSuffix\": \"\",\n        \"email\": \"petr.pavel@president.cz\",\n        \"phone\": \"+420123456789\",\n        \"address\": \"Kolbenova 130, Praha 19000\",\n        \"street\": \"Kolbenova\",\n        \"streetNumber\": \"130\",\n        \"zip\": \"19000\",\n        \"city\": \"Praha\",\n        \"couId\": 1,\n        \"streetType\": \"utca\",\n        \"identity\": \"565151\",\n        \"guiId\": 1,\n        \"newsletter\": 0,\n        \"numberPlate\": \"123ABC\",\n        \"sex\": \"m\",\n        \"visa\": \"21313KDMFS32\",\n        \"visaIssuePlace\": \"Prague\",\n        \"note\": \"Be really welcoming\",\n        \"birthDate\": \"1979-09-19T00:00:00\",\n        \"birthPlace\": \"Praha\",\n        \"stateOfBirth\": 1,\n        \"mothersFirstName\": \"Jana\",\n        \"mothersLastName\": \"Nováková\",\n        \"nationalities\": [\n            1\n        ],\n        \"tags\": [1,2],\n        \"hasCompleteCheckIn\": true\n    }\n}"}],"_postman_id":"e69df6fb-1831-4e40-bb52-868bb29c26e1"},{"name":"Delete guest by ID","id":"923c9363-545c-4c0a-aa6c-42878076b8ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"}],"url":"{{previo_api_url}}/rest/guests/37879046","description":"<p>Delete guest by guest ID</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guests","37879046"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"b9f1ff03-cdf6-4d0b-8392-6678ad2b79cf","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"}],"url":"{{previo_api_url}}/rest/guests/97052888"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Fri, 11 Aug 2023 12:49:11 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":"set-cookie","value":"previo-user=MUIEAOk7XUgSfwLAIcUx0HMLPhLa8MuuNheQlYS9KnSE_8-4mhCGkFWXVpEKl3eeAcNLJEyCKaOVm9lY0i_BK9Jxi2QQ9fY-HaYQsW3bF9VFXZdGEUCpOl2qutZXLVKLuhlGdx_9AR8WiFrSC2RjbmjOISXkDqJxS3qXKOL_OoR0To4ylyD-udi-_fcZD89-7OxLFRvRgOSn4URNBfuT_YTvpA%3D%3D; expires=Sat, 12-Aug-2023 12:49:11 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"923c9363-545c-4c0a-aa6c-42878076b8ab"},{"name":"Get all hotel's guest categories","id":"3cb212a6-be86-429e-97c2-fa4b21c8566b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text"}],"url":"{{previo_api_url}}/rest/guest-categories","description":"<p>Get all the guest categories at a certain hotel ID</p>\n<p><strong>guestCategoryId is a new name for the formerly used guaId (still used like this in XML)</strong></p>\n<h1 id=\"response\"><strong>Response</strong></h1>\n<h2 id=\"guest-categories\">Guest categories</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>discountModelId</code></td>\n<td>1 (int)</td>\n<td>Guest category discount/surcharge calculation ID  <br />1 - from ideal part  <br />2 - from last bed  <br />3 - from ideal part (with distinguishing main bed and extrabed)</td>\n</tr>\n<tr>\n<td><code>discountOnExtraBedsOnly</code></td>\n<td>false (boolean)</td>\n<td>Discount/surcharge available only on extra beds</td>\n</tr>\n<tr>\n<td><code>defaultCategoryId</code></td>\n<td>93298 (int)</td>\n<td>ID of the default guest category (the default category is usually \"adult\")</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"guest-category\">Guest category</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>guestCategoryId</code></td>\n<td>93298 (int)</td>\n<td>The unique identifier for guest category</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>dospely (string)</td>\n<td>Name of the guest category</td>\n</tr>\n<tr>\n<td><code>isWithoutBed</code></td>\n<td>false (boolean)</td>\n<td>The category does not have a bed (true/false)</td>\n</tr>\n<tr>\n<td><code>paysRecreationTax</code></td>\n<td>true (boolean)</td>\n<td>If the category pays recreation fee (false/true)</td>\n</tr>\n<tr>\n<td><code>ageFrom</code></td>\n<td>18 (int)</td>\n<td>Minimum age of the guest category</td>\n</tr>\n<tr>\n<td><code>ageTo</code></td>\n<td>65 (int)</td>\n<td>Maximum age of the guest category</td>\n</tr>\n<tr>\n<td><code>guestCategoryTypeId</code></td>\n<td>3 (int)</td>\n<td>Category type:  <br />1 - child  <br />2 - student  <br />3 - adult  <br />4 - senior  <br />5 - others</td>\n</tr>\n<tr>\n<td><code>priceAction</code></td>\n<td>[Price Actions] (array)</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"price-actions\">Price Actions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code></td>\n<td>absolute (string)</td>\n<td>Type of price action (percentage/absolute)</td>\n</tr>\n<tr>\n<td><code>percentageRate</code></td>\n<td>0 (float)</td>\n<td>In case price action type is percentage, the value will be saved in this attribute. <strong>Positive value means discount, negative value means surcharge.</strong></td>\n</tr>\n<tr>\n<td><code>absoluteRatesByCurrencyId</code></td>\n<td>\"1\": 100</td>\n<td>In case price action type is absolute, the value will be saved in this attribute. <strong>Positive value means discount, negative value means surcharge.</strong> The value can be different for various currencies (see the <a href=\"https://xml.apidocs.previo.app/#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">currency codebook</a>). In this example, this specific guest category will have a discount of 100 CZK.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rest","guest-categories"],"host":["{{previo_api_url}}"],"query":[],"variable":[]}},"response":[{"id":"232adef1-dd3d-460e-b55d-b076886ca622","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text"}],"url":"{{previo_api_url}}/rest/guest-categories"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"discountModelId\": 1,\r\n    \"discountOnExtraBedsOnly\": false,\r\n    \"defaultCategoryId\": 93298,\r\n    \"categories\": [\r\n        {\r\n            \"guestCategoryId\": 93298,\r\n            \"name\": \"dospely\",\r\n            \"isWithoutBed\": false,\r\n            \"paysRecreationTax\": true,\r\n            \"ageFrom\": 18,\r\n            \"ageTo\": 65,\r\n            \"guestCategoryTypeId\": 3,\r\n            \"priceAction\": {\r\n                \"type\": \"percentage\",\r\n                \"percentageRate\": 0,\r\n                \"absoluteRatesByCurrencyId\": []\r\n            }\r\n        },\r\n        {\r\n            \"guestCategoryId\": 93352,\r\n            \"name\": \"senior s priplatkem procentem\",\r\n            \"isWithoutBed\": false,\r\n            \"paysRecreationTax\": true,\r\n            \"ageFrom\": 66,\r\n            \"ageTo\": 150,\r\n            \"guestCategoryTypeId\": 4,\r\n            \"priceAction\": {\r\n                \"type\": \"percentage\",\r\n                \"percentageRate\": -20,\r\n                \"absoluteRatesByCurrencyId\": []\r\n            }\r\n        },\r\n        {\r\n            \"guestCategoryId\": 93354,\r\n            \"name\": \"dite se slevou procentem\",\r\n            \"isWithoutBed\": false,\r\n            \"paysRecreationTax\": false,\r\n            \"ageFrom\": 0,\r\n            \"ageTo\": 14,\r\n            \"guestCategoryTypeId\": 1,\r\n            \"priceAction\": {\r\n                \"type\": \"percentage\",\r\n                \"percentageRate\": 50,\r\n                \"absoluteRatesByCurrencyId\": []\r\n            }\r\n        },\r\n        {\r\n            \"guestCategoryId\": 93377,\r\n            \"name\": \"student se slevou castkou\",\r\n            \"isWithoutBed\": false,\r\n            \"paysRecreationTax\": true,\r\n            \"ageFrom\": 15,\r\n            \"ageTo\": 17,\r\n            \"guestCategoryTypeId\": 2,\r\n            \"priceAction\": {\r\n                \"type\": \"absolute\",\r\n                \"percentageRate\": 0,\r\n                \"absoluteRatesByCurrencyId\": {\r\n                    \"1\": 100\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"3cb212a6-be86-429e-97c2-fa4b21c8566b"}],"id":"bfa5876a-b610-4b70-9896-428ea14fdc95","description":"<p>This collection allows you to work with guests in Previo.</p>\n<p>You are able to get information of existing guests, create new ones, update and already existing ones.</p>\n<p>API privilege needed: ''Hotel.getGuests\"</p>\n","_postman_id":"bfa5876a-b610-4b70-9896-428ea14fdc95","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"RatePlan","item":[{"name":"rate-plan","id":"30a8d473-e262-462c-82ef-37f263375991","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"2","type":"text","description":"<p>Hotel ID</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/rate-plan","description":"<p>Get list of rateplans</p>\n<p>API privilege needed: 'Hotel.getRates'</p>\n<h1 id=\"response\">Response</h1>\n<h2 id=\"rate-plans\">Rate plans</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>ratePlanId</code> (required)</td>\n<td><code>28672</code> (float)</td>\n<td>Rate plan ID</td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Základní</code> (string)</td>\n<td>Rate plan name</td>\n</tr>\n<tr>\n<td><code>isBasePlan</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>Is the rateplan default one (can't be deleted) - only one rateplan can be the base one</td>\n</tr>\n<tr>\n<td><code>isNonRefundable</code> (required)</td>\n<td><code>false</code> (boolean)</td>\n<td>Has the rateplan non-refundable conditions</td>\n</tr>\n<tr>\n<td><code>parentRatePlanId</code> (optional)</td>\n<td><code>null</code> (int</td>\n<td>null)</td>\n</tr>\n<tr>\n<td><code>applicableDiscounts</code> (deprecated)</td>\n<td><code>[]</code> (array strings)</td>\n<td>Which  <br />  <br />  <br /><br /><a href=\"#discount-types\">discounts</a><br /><br />  <br />  <br />  <br />  <br />can be applied to prices in this rate plan</td>\n</tr>\n<tr>\n<td><code>mealPlanId</code></td>\n<td><code>4</code> (int)</td>\n<td>ID of Meal Plan</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"discount-types\">Discount types</h2>\n<ul>\n<li><code>actionPrice</code> - seasonal discount</li>\n<li><code>lastMinute</code> - last minute discount</li>\n<li><code>firstMinute</code> - early booker discount</li>\n<li><code>longTerm</code> - length of stay discount</li>\n<li><code>revenueManagement</code> - discount based on number of available rooms</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rate-plan"],"host":["{{previo_api_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"a6acb62f-2b4c-42b4-a697-cdc116719630","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"Hotel ID"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/rate-plan"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 19 Nov 2020 09:13:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.23"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ratePlanId\": 28672,\n        \"name\": \"Základní\",\n        \"isBasePlan\": true,\n        \"isNonRefundable\": false,\n        \"parentRatePlanId\": null,\n        \"applicableDiscounts\": []\n    },\n    {\n        \"ratePlanId\": 28494,\n        \"name\": \"Firemní cenový plán\",\n        \"isBasePlan\": false,\n        \"isNonRefundable\": false,\n        \"parentRatePlanId\": 28672,\n        \"applicableDiscounts\": [\n            \"actionPrice\",\n            \"lastMinute\",\n            \"firstMinute\",\n            \"longTerm\",\n            \"revenueManagement\"\n        ]\n    },\n    {\n        \"ratePlanId\": 28646,\n        \"name\": \"HOTELCZ\",\n        \"isBasePlan\": false,\n        \"isNonRefundable\": false,\n        \"parentRatePlanId\": 28672,\n        \"applicableDiscounts\": [\n            \"actionPrice\",\n            \"lastMinute\",\n            \"firstMinute\"\n        ]\n    },\n    {\n        \"ratePlanId\": 28673,\n        \"name\": \"Základní (NRR)\",\n        \"isBasePlan\": false,\n        \"isNonRefundable\": true,\n        \"parentRatePlanId\": 28672,\n        \"applicableDiscounts\": [\n            \"longTerm\",\n            \"revenueManagement\"\n        ]\n    },\n    {\n        \"ratePlanId\": 45541,\n        \"name\": \"Firemní cenový plán (NRR)\",\n        \"isBasePlan\": false,\n        \"isNonRefundable\": true,\n        \"parentRatePlanId\": 28494,\n        \"applicableDiscounts\": [\n            \"longTerm\",\n            \"revenueManagement\"\n        ]\n    }\n]"},{"id":"2c13b527-55dd-4449-b32c-bf0321725c58","name":"401 Error","originalRequest":{"method":"GET","header":[{"description":"Hotel ID","key":"X-Previo-Hotel-Id","type":"text","value":"{{hotId}}"},{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/rate-plan"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 19 Nov 2020 09:52:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.23"},{"key":"Www-Authenticate","value":"Basic realm=\"rest\""}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 401,\n    \"error\": \"Authentication required\",\n    \"message\": null\n}"}],"_postman_id":"30a8d473-e262-462c-82ef-37f263375991"}],"id":"73c8df05-b1ca-4ed0-a730-ef55ccf05dbd","_postman_id":"73c8df05-b1ca-4ed0-a730-ef55ccf05dbd","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Reports","item":[{"name":"reports/overview","id":"a61db690-efb5-48b6-88e0-0da9cac07758","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"<p>Hotel ID</p>\n","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<p><a href=\"#language\">Language ID</a></p>\n","type":"text"}],"url":"{{previo_api_url}}rest/reports/overview?filterFrom=2021-01-04&filterTo=2022-01-06&roomKindIds[]=471298&reservationStatusIds[]=1","description":"<p>Get overview report data</p>\n<p><a href=\"#authorization\">Authorization</a></p>\n<p>API privilege needed: 'Reports.overview'</p>\n<h1 id=\"response\">Response</h1>\n<h2 id=\"overview-report-data\">Overview report data</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<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>uniqueKey</code> [1] (string)</td>\n<td>Unique group key string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code> [1] (string)</td>\n<td>Group title</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>data</code> [0..*]</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>uniqueKey</code> [1] (string)</td>\n<td>Unique key string</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>title</code> [1] (string)</td>\n<td>Overview item title</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>description</code> [0..1] (string)</td>\n<td>Overview item description</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>type</code>[1] (string)</td>\n<td>Value type. Can be <code>float</code>, <code>int</code>, <code>percent</code> or <code>currency</code></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>currencyId</code> [0..1] (int)</td>\n<td><a href=\"https://xml.apidocs.previo.cz/#e5893dcf-3f9a-4c30-a4d8-19bf40a6effe\">Currency ID</a></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>summary</code> [1] (float)</td>\n<td>Total summary</td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td><code>values</code> [0..*]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td><code>date</code> [1] (string)</td>\n<td>Date (in ISO 8601 format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td><code>value</code> [1] (float)</td>\n<td>Value</td>\n</tr>\n<tr>\n<td></td>\n<td><code>reference</code> [0..*]</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td><code>type</code> [1] (string)</td>\n<td>Item reference type. Name of source to which belongs current item data</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td><code>column</code> [1] (string)</td>\n<td>Key field name</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td><code>value</code> [1] (int)</td>\n<td>Key field value</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["reports","overview"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Date from (in ISO 8601 format: YYYY-MM-DD). Max date range is 31 days. (required)</p>\n","type":"text/plain"},"key":"filterFrom","value":"2021-01-04"},{"description":{"content":"<p>Date to (in ISO 8601 format: YYYY-MM-DD). Max date range is 31 days (required)</p>\n","type":"text/plain"},"key":"filterTo","value":"2022-01-06"},{"description":{"content":"<p>List of room kinds, which should be filtered (optional)</p>\n","type":"text/plain"},"key":"roomKindIds[]","value":"471298"},{"description":{"content":"<p>List of reservation statuses, which should be filtered (optional)</p>\n","type":"text/plain"},"key":"reservationStatusIds[]","value":"1"}],"variable":[]}},"response":[{"id":"cbe3218a-bcd1-49c5-bfb2-819ae04f7c8f","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"Hotel ID","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<a href=\"#language\">Language ID</a>","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reports/overview?filterFrom=2022-01-04&filterTo=2022-01-06&roomKindIds[]=471298&reservationStatusIds[]=1","host":["{{previo_api_url}}rest"],"path":["reports","overview"],"query":[{"key":"filterFrom","value":"2022-01-04","description":"Date from (in ISO 8601 format: YYYY-MM-DD) [1]"},{"key":"filterTo","value":"2022-01-06","description":"Date to (in ISO 8601 format: YYYY-MM-DD) [1]"},{"key":"roomKindIds[]","value":"471298","description":"List of room kinds, which should be filtered [0..*]"},{"key":"reservationStatusIds[]","value":"1","description":"List of reservation statuses, which should be filtered [0..*]"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 12:13:26 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Set-Cookie","value":"PHPSESSID=1ine942afnntlr71j7u6fgeu7g; expires=Thu, 17-Feb-2022 12:13:26 GMT; Max-Age=86400; path=/; HttpOnly"},{"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":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"uniqueKey\": \"guestsCou\",\n        \"title\": \"Number of guests (due to nationality)\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"guestsCou-foreign\",\n                \"title\": \"foreigners\",\n                \"description\": \"Number of foreign guests\",\n                \"type\": \"float\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 1\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 1\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 1\n            },\n            {\n                \"uniqueKey\": \"guestsCou-domestic\",\n                \"title\": \"domestic guests\",\n                \"description\": \"Number of domestic guests\",\n                \"type\": \"float\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 6\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 4\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 2\n                    }\n                ],\n                \"summary\": 6\n            },\n            {\n                \"uniqueKey\": \"guestsCou-none\",\n                \"title\": \"without nationality\",\n                \"description\": \"Number of guests without selected nationality\",\n                \"type\": \"float\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"rooms\",\n        \"title\": \"Room statistics (room nights)\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"rooms-sum\",\n                \"title\": \"total room nights\",\n                \"description\": \"Quantity of room nights during selected date/period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 4\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 4\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 4\n                    }\n                ],\n                \"summary\": 12\n            },\n            {\n                \"uniqueKey\": \"rooms-occupied\",\n                \"title\": \"occupied room nights\",\n                \"description\": \"Quantity of occupied room nights during selected date/period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 6\n            },\n            {\n                \"uniqueKey\": \"rooms-free\",\n                \"title\": \"available room nights\",\n                \"description\": \"Quantity of available room nights during selected date/period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 1\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 3\n                    }\n                ],\n                \"summary\": 6\n            },\n            {\n                \"uniqueKey\": \"rooms-closed\",\n                \"title\": \"Total closed room-nights\",\n                \"description\": \"Room nights closed to sale\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"rooms-guestNights\",\n                \"title\": \"number of overnight stays\",\n                \"description\": \"Quantity of overnight stays of guests from reservations displayed in reservation calendar during selected date/period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 7\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 5\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 2\n                    }\n                ],\n                \"summary\": 14\n            },\n            {\n                \"uniqueKey\": \"rooms-percent\",\n                \"title\": \"% occupancy\",\n                \"description\": \"% ratio of occupied rooms and total room capacity in selected date/period\",\n                \"type\": \"percent\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 75\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 50\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 25\n                    }\n                ],\n                \"summary\": 50\n            },\n            {\n                \"uniqueKey\": \"rooms-percentageBeds\",\n                \"title\": \"% bed availability\",\n                \"description\": \"% ratio of occupied beds and total beds capacity in selected date/period\",\n                \"type\": \"percent\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 75\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 50\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 25\n                    }\n                ],\n                \"summary\": 50\n            },\n            {\n                \"uniqueKey\": \"rooms-percentageExtraBeds\",\n                \"title\": \"% bed and extra beds availability\",\n                \"description\": \"% ratio of occupied beds and extrabeds and total beds and extrabeds capacity in selected date/period\",\n                \"type\": \"percent\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 58.333333333333336\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 41.666666666666664\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 16.666666666666668\n                    }\n                ],\n                \"summary\": 38.888888888888886\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"objectKinds\",\n        \"title\": \"Occupancy by room types\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"objectKinds-obk-471298\",\n                \"title\": \"Double Standard\",\n                \"description\": null,\n                \"type\": \"percent\",\n                \"reference\": [\n                    {\n                        \"type\": \"RoomKind\",\n                        \"column\": \"obkId\",\n                        \"value\": \"471298\"\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 75\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 50\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 25\n                    }\n                ],\n                \"summary\": 50\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"arrDep\",\n        \"title\": \"Amount of arrivals/departures\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"arrDep-arrivals\",\n                \"title\": \"arrivals\",\n                \"description\": \"Number of board reservations beginning on that day\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"arrDep-departures\",\n                \"title\": \"departures\",\n                \"description\": \"Number of board reservations ending on that day\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 1\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 2\n            },\n            {\n                \"uniqueKey\": \"arrDep-arrivalsGue\",\n                \"title\": \"guest arrivals\",\n                \"description\": \"Number of guests whose reservations starts during the selected date/period (including guests with not filled guest card)\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"arrDep-departuresGue\",\n                \"title\": \"guest departures\",\n                \"description\": \"Number of guests whose reservation ends during the selected date/period (including guests with not filled guest card)\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 3\n                    }\n                ],\n                \"summary\": 5\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"reservations-states\",\n        \"title\": \"Reservations by status\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"reservations-states-1\",\n                \"title\": \"Expiring options\",\n                \"description\": \"Quantity of reservations in option status during selected date/period\",\n                \"type\": \"int\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 1\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 3\n            },\n            {\n                \"uniqueKey\": \"reservations-states-2\",\n                \"title\": \"Confirmed\",\n                \"description\": \"Quantity of reservations in confirmed status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 2\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-3\",\n                \"title\": \"Checked in\",\n                \"description\": \"Quantity of reservations in checked-in status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 3\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-9\",\n                \"title\": \"Checked out\",\n                \"description\": \"Quantity of reservations in checked-out status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 9\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-10\",\n                \"title\": \"Other\",\n                \"description\": \"Quantity of reservations in other status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 10\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-6\",\n                \"title\": \"Waiting list\",\n                \"description\": \"Quantity of reservations in waiting list status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 6\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-7\",\n                \"title\": \"Cancel\",\n                \"description\": \"Quantity of reservations in cancelled status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 7\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            },\n            {\n                \"uniqueKey\": \"reservations-states-8\",\n                \"title\": \"No show\",\n                \"description\": \"Quantity of reservations in no show status during selected date/period\",\n                \"type\": \"float\",\n                \"reference\": [\n                    {\n                        \"type\": \"ReservationStatus\",\n                        \"column\": \"cosId\",\n                        \"value\": 8\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"reservations\",\n        \"title\": \"Reservation changes\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"reservations-created\",\n                \"title\": \"Quantity of created reservations\",\n                \"description\": \"The number of bookings made for the given time period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 1\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 3\n            },\n            {\n                \"uniqueKey\": \"reservations-cancell\",\n                \"title\": \"Quantity of cancelled reservations\",\n                \"description\": \"Quantinty of reservations which were changed to cancelled or no show status or were deleted during selected date/period\",\n                \"type\": \"int\",\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 0\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 0\n                    }\n                ],\n                \"summary\": 0\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"statistics\",\n        \"title\": \"Revenue statistics\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"statistics-adult\",\n                \"title\": \"TrevPP\",\n                \"description\": \"Total sum of all items from room accounts (VAT excl) / number of accommodated guests\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 574.2857140246754\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 438.5454545454546\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 548.1818181818181\n                    }\n                ],\n                \"summary\": 1044.1558438948052\n            },\n            {\n                \"uniqueKey\": \"statistics-room\",\n                \"title\": \"TrevPAR\",\n                \"description\": \"Total sum of all items from room accounts (VAT excl) / total room nights\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 1004.9999995431818\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 548.1818181818182\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 274.09090909090907\n                    }\n                ],\n                \"summary\": 609.0909089386364\n            },\n            {\n                \"uniqueKey\": \"statistics-revpar\",\n                \"title\": \"RevPAR\",\n                \"description\": \"<a target=\\\"_blank\\\" href=\\\"http://manual.previo.cz/cs/node/938\\\">See detail of RevPar calculation in manual (VAT excl.)</a>\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 1004.9999995431818\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 548.1818181818182\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 274.09090909090907\n                    }\n                ],\n                \"summary\": 609.0909089386364\n            },\n            {\n                \"uniqueKey\": \"statistics-adr\",\n                \"title\": \"ADR\",\n                \"description\": \"<a target=\\\"_blank\\\" href=\\\"http://manual.previo.cz/cs/node/938\\\">See details of ADR calculation in manual (VAT excl.)</a>\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 1339.9999993909091\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 1096.3636363636365\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1096.3636363636363\n                    }\n                ],\n                \"summary\": 1218.1818178772728\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"accountType\",\n        \"title\": \"Hotel accounts by segments\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"accountType-item-1\",\n                \"title\": \"Accommodation\",\n                \"description\": \"Proportionally distributed sum of items \\\"Accommodation\\\" from reservations in selected period\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 20\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 513.3333331\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 280\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 140\n                    }\n                ],\n                \"summary\": 933.3333331\n            },\n            {\n                \"uniqueKey\": \"accountType-item-2\",\n                \"title\": \"Meals\",\n                \"description\": \"Proportionally distributed sum of items \\\"Meals\\\" from reservations in selected period\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 18\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3666.6666649999997\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2000\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1000\n                    }\n                ],\n                \"summary\": 6666.666665\n            },\n            {\n                \"uniqueKey\": \"accountType-item-3\",\n                \"title\": \"City fees\",\n                \"description\": \"Proportionally distributed sum of items \\\"City fees\\\" from reservations in selected period\",\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 6\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 219.9999999\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 120\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 60\n                    }\n                ],\n                \"summary\": 399.99999990000003\n            },\n            {\n                \"uniqueKey\": \"accountType-sum\",\n                \"title\": \"Sum\",\n                \"description\": null,\n                \"type\": \"currency\",\n                \"currencyId\": 1,\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 4399.999998\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2400\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1200\n                    }\n                ],\n                \"summary\": 7999.999998\n            }\n        ]\n    },\n    {\n        \"uniqueKey\": \"accountTypeCount\",\n        \"title\": \"Room account by segments (pcs)\",\n        \"data\": [\n            {\n                \"uniqueKey\": \"accountTypeCount-item-co-1\",\n                \"title\": \"Accommodation\",\n                \"description\": \"Number of sold items from segment \\\"Accommodation\\\" from reservations in selected period\",\n                \"type\": \"int\",\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 20\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3.6667\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 6.6667000000000005\n            },\n            {\n                \"uniqueKey\": \"accountTypeCount-item-co-2\",\n                \"title\": \"Meals\",\n                \"description\": \"Number of sold items from segment \\\"Meals\\\" from reservations in selected period\",\n                \"type\": \"int\",\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 18\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3.6667\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 6.6667000000000005\n            },\n            {\n                \"uniqueKey\": \"accountTypeCount-item-co-3\",\n                \"title\": \"City fees\",\n                \"description\": \"Number of sold items from segment \\\"City fees\\\" from reservations in selected period\",\n                \"type\": \"int\",\n                \"reference\": [\n                    {\n                        \"type\": \"Segment\",\n                        \"column\": \"segId\",\n                        \"value\": 6\n                    }\n                ],\n                \"values\": [\n                    {\n                        \"date\": \"2022-01-04\",\n                        \"value\": 3.6667\n                    },\n                    {\n                        \"date\": \"2022-01-05\",\n                        \"value\": 2\n                    },\n                    {\n                        \"date\": \"2022-01-06\",\n                        \"value\": 1\n                    }\n                ],\n                \"summary\": 6.6667000000000005\n            }\n        ]\n    }\n]"},{"id":"4e09d846-e8c5-4986-8fc7-676027ba3026","name":"400","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"Hotel ID","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<a href=\"#language\">Language ID</a>","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reports/overview?filterFrom=2021-01-04&filterTo=2022-01-06&roomKindIds[]=471298&reservationStatusIds[]=1","host":["{{previo_api_url}}rest"],"path":["reports","overview"],"query":[{"key":"filterFrom","value":"2021-01-04","description":"Date from (in ISO 8601 format: YYYY-MM-DD) [1]"},{"key":"filterTo","value":"2022-01-06","description":"Date to (in ISO 8601 format: YYYY-MM-DD) [1]"},{"key":"roomKindIds[]","value":"471298","description":"List of room kinds, which should be filtered [0..*]"},{"key":"reservationStatusIds[]","value":"1","description":"List of reservation statuses, which should be filtered [0..*]"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Feb 2022 12:14:25 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"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":"Content-Length","value":"73"},{"key":"Connection","value":"close"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Date range limit reached (31 days).\",\n    \"message\": null\n}"}],"_postman_id":"a61db690-efb5-48b6-88e0-0da9cac07758"}],"id":"28c33ae6-10f6-4f7c-bdde-66e30e059cdb","_postman_id":"28c33ae6-10f6-4f7c-bdde-66e30e059cdb","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Reservation","item":[{"name":"reservations/rooms/check-in","id":"8429a1bf-aabc-4f86-8a1f-cf19ab90c2a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/reservations/rooms/check-in?reservationRoomId=65542463","description":"<p>Finish the check-in of the reservations. This will set the reservation status to checked-in and arrival time to NOW().</p>\n<p>To finish the check-in, reservation needs to meet this criteria:</p>\n<ul>\n<li>arrival date must be today</li>\n<li>at least 1 guest profiles in that reservation must be completed</li>\n<li>reservation isn't cancelled, no-show, already checked-in or deleted</li>\n<li>room has to be tidy</li>\n</ul>\n<p>API Privilige needed: 'Hotel.reservation'</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["reservations","rooms","check-in"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>The identifier of the reservationRoomId (comId)</p>\n","type":"text/plain"},"key":"reservationRoomId","value":"65542463"}],"variable":[]}},"response":[{"id":"4e6fbe76-d436-4eaa-bb02-970a4fe996dd","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reservations/rooms/check-in?reservationRoomId=65542463","host":["{{previo_api_url}}rest"],"path":["reservations","rooms","check-in"],"query":[{"key":"reservationRoomId","value":"65542463","description":"The identifier of the reservationRoomId (comId)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 17 Aug 2021 06:18:12 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/7.3.26"},{"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":""},{"id":"a49f41ca-48e4-4218-96fc-bac1ced63bf4","name":"400 Error","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reservations/rooms/check-in?reservationRoomId=65542463","host":["{{previo_api_url}}rest"],"path":["reservations","rooms","check-in"],"query":[{"key":"reservationRoomId","value":"65542463","description":"The identifier of the reservationRoomId (comId)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 17 Aug 2021 06:17:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.26"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Already checked in\",\n    \"message\": null\n}"}],"_postman_id":"8429a1bf-aabc-4f86-8a1f-cf19ab90c2a9"},{"name":"reservation/checkIn","id":"14f79244-c56d-4ff2-8e00-872888dfd91d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text","description":"<p>The unique identifier for hotel</p>\n"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"nationality\": 1,\n\t\"hasCompleteInfo\": false,\n\t\"gueId\": 36491910,\n\t\"guaId\": 83198,\n\t\"firstName\": \"Legolas\",\n\t\"lastName\": \"Thranduila\",\n\t\"email\": \"legolas.thranduila@previo.cz\",\n\t\"phone\": \"607158965\",\n\t\"birthDate\": \"13-05-1998\",\n\t\"genId\": null,\n\t\"address\": {\n\t\t\"street\": \"Doriath 253632\",\n\t\t\"streetNumber\": \"999\",\n\t\t\"city\": \"Temný hvozd\",\n\t\t\"zip\": \"19000\",\n\t\t\"couId\": 1,\n\t\t\"lat\": null,\n\t\t\"lon\": null,\n\t\t\"streetType\": null,\n\t\t\"cifId\": null\n\t},\n\t\"visa\": null,\n\t\"numberPlate\": null,\n\t\"identity\": {\n\t\t\"number\": \"6598746\",\n\t\t\"guiId\": 1\n\t},\n\t\"isRecreation\": true,\n\t\"birthPlace\": null\n}"},"url":"{{previo_api_url}}rest/reservation/checkIn?resId=12220703","description":"<p>Update information (all information needed for finishing the check-in) about the single guest in a reservation.</p>\n<p>API Privilige needed: 'Hotel.reservation'</p>\n<h1 id=\"request\">Request</h1>\n<h2 id=\"guest\">Guest</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gueId</code> (required)</td>\n<td><code>4585658</code> (int)</td>\n<td>The unique identifier for guest</td>\n</tr>\n<tr>\n<td><code>guaId</code> (optional)</td>\n<td><code>2242323</code> (int)</td>\n<td>The unique identifier for guest category</td>\n</tr>\n<tr>\n<td><code>hasCompleteInfo</code> (required)</td>\n<td><code>false</code> (boolean)</td>\n<td>If the host has filled in all the data required to check in</td>\n</tr>\n<tr>\n<td><code>firstName</code> (required)</td>\n<td><code>Radim</code> (string)</td>\n<td>First name of the guest</td>\n</tr>\n<tr>\n<td><code>lastName</code> (required)</td>\n<td><code>Vaculík</code> (string)</td>\n<td>Last name of the guest</td>\n</tr>\n<tr>\n<td><code>email</code> (optional)</td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td><code>phone</code> (optional)</td>\n<td><code>+420123456789</code> (string)</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td><code>isRecreation</code> (optional)</td>\n<td><code>true</code> (boolean)</td>\n<td>Purpose of travel recreation</td>\n</tr>\n<tr>\n<td><code>birthDate</code> (required)</td>\n<td><code>2017-01-01T00:00:00</code> (string)</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td><a href=\"#identity\">identity</a>  <br />  <br />(required)</td>\n<td><a href=\"#identity\">identity</a>  <br />  <br />(object)</td>\n<td>Documents of the guest</td>\n</tr>\n<tr>\n<td><code>visa</code> (optional)</td>\n<td><code>21313KDMFS32</code> (string)</td>\n<td>Visa number</td>\n</tr>\n<tr>\n<td><code>numberPlate</code> (optional)</td>\n<td><code>5AN6312</code> (string)</td>\n<td>Number plate of guest`s car</td>\n</tr>\n<tr>\n<td><code>nationality</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Country id of guest nationality</td>\n</tr>\n<tr>\n<td><a href=\"#address\">address</a>  <br />  <br />(required)</td>\n<td><a href=\"#address\">address</a>  <br />  <br />(object)</td>\n<td>Address of the guest</td>\n</tr>\n<tr>\n<td><code>birthPlace</code> (optional)</td>\n<td><code>Prague</code> (string)</td>\n<td>Place of birth of the guest</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"identity\">identity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>number</code> (required)</td>\n<td><code>N5646645</code> (string)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>guiId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>1 ID card, 2 passport, 3 driving license, 4 permanent residence, 5 residence permit,  <br />6 loss / theft of document,  <br />7 diplomacy worker,  <br />8 child without document</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"address\">Address</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>street</code> (required)</td>\n<td><code>Panska</code> (string)</td>\n<td>Name of street</td>\n</tr>\n<tr>\n<td><code>streetNumber</code> (required)</td>\n<td><code>256</code> (string)</td>\n<td>Street number</td>\n</tr>\n<tr>\n<td><code>city</code> (required)</td>\n<td><code>Brno</code> (string)</td>\n<td>Name of the city</td>\n</tr>\n<tr>\n<td><code>zip</code> (required)</td>\n<td><code>60200</code> (string)</td>\n<td>Zip code</td>\n</tr>\n<tr>\n<td><code>couId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for country</td>\n</tr>\n<tr>\n<td><code>streetType</code> (optional)</td>\n<td><code>utca</code> (string)</td>\n<td>Type of street for Hungary hotel</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["reservation","checkIn"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Reservation ID (required)</p>\n","type":"text/plain"},"key":"resId","value":"12220703"}],"variable":[]}},"response":[{"id":"fef80c17-86d0-423d-a493-0fd95851624e","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"nationality\": 1,\n\t\"hasCompleteInfo\": false,\n\t\"gueId\": 36491910,\n\t\"guaId\": 83198,\n\t\"firstName\": \"Legolas\",\n\t\"lastName\": \"Thranduila\",\n\t\"email\": \"legolas.thranduila@previo.cz\",\n\t\"phone\": \"607158965\",\n\t\"birthDate\": \"13-05-1998\",\n\t\"genId\": null,\n\t\"address\": {\n\t\t\"street\": \"Doriath 253632\",\n\t\t\"streetNumber\": \"999\",\n\t\t\"city\": \"Temný hvozd\",\n\t\t\"zip\": \"19000\",\n\t\t\"couId\": 1,\n\t\t\"lat\": null,\n\t\t\"lon\": null,\n\t\t\"streetType\": null,\n\t\t\"cifId\": null\n\t},\n\t\"visa\": null,\n\t\"numberPlate\": null,\n\t\"identity\": {\n\t\t\"number\": \"6598746\",\n\t\t\"guiId\": 1\n\t},\n\t\"isRecreation\": true,\n\t\"birthPlace\": null\n}"},"url":{"raw":"{{previo_api_url}}rest/reservation/checkIn?resId=12220703","host":["{{previo_api_url}}rest"],"path":["reservation","checkIn"],"query":[{"key":"resId","value":"12220703","description":"Reservation ID (required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 17 Mar 2021 12:19:18 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/7.3.27"},{"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":""},{"id":"06d9296b-d564-42e2-87e6-2a5e7c2f1c94","name":"406 Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"nationality\": 1,\n\t\"hasCompleteInfo\": false,\n\t\"gueId\": 36491910,\n\t\"guaId\": 83198,\n\t\"firstName\": \"Legolas\",\n\t\"lastName\": \"Thranduila\",\n\t\"email\": \"legolas.thranduila@previo.cz\",\n\t\"phone\": \"607158965\",\n\t\"birthDate\": \"13-05-1998\",\n\t\"genId\": null,\n\t\"address\": {\n\t\t\"street\": \"Doriath 253632\",\n\t\t\"streetNumber\": \"999\",\n\t\t\"city\": \"Temný hvozd\",\n\t\t\"zip\": \"19000\",\n\t\t\"couId\": 1,\n\t\t\"lat\": null,\n\t\t\"lon\": null,\n\t\t\"streetType\": null,\n\t\t\"cifId\": null\n\t},\n\t\"visa\": null,\n\t\"numberPlate\": null,\n\t\"identity\": {\n\t\t\"number\": \"6598746\",\n\t\t\"guiId\": 1\n\t},\n\t\"isRecreation\": true,\n\t\"birthPlace\": null\n}"},"url":{"raw":"{{previo_api_url}}rest/reservation/checkIn?resId=1222070","host":["{{previo_api_url}}rest"],"path":["reservation","checkIn"],"query":[{"key":"resId","value":"1222070","description":"Reservation ID (required)"}]}},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 17 Mar 2021 12:21:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 406,\n    \"error\": \"Couldn't save guest 36491910\",\n    \"message\": \"Váš požadavek se nepodařilo zpracovat. Zkuste to, prosím, později nebo kontaktujte ubytovací zařízení.\"\n}"}],"_postman_id":"14f79244-c56d-4ff2-8e00-872888dfd91d"},{"name":"reservation/checkInSignature","id":"8f94a07a-1e32-4f7b-b150-7c4acada6b68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\"gueId\":36493339,\"signature\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2oAAAEsCAYAAACytUBTAAAgAElEQVR4Xu3daaw8X14W8C+roAKOILKFEQdZZHBkkUXBETWAMIAaHIUYQUF9gRHZAoowgkbHIBnnhSxBg7hBgAQRBYTISIQAgiAqoCgg0SAEwoiCEGQxT6a//s/09L231+rT1Z9Obu5v6a469Tmnu+ups9SrlQcBAgQIECBAgAABAgQITCXwalOVRmEIECBAgAABAgQIECBAoAQ1jYAAAQIECBAgQIAAAQKTCQhqk1WI4hAgQIAAAQIECBAgQEBQ0wYORK5CYII=\"}"},"url":"{{previo_api_url}}rest/reservation/CheckInSignature?resId=12221364","description":"<p>Upload an image of guest's signature.</p>\n<p>API Privilige needed: 'Hotel.reservation'</p>\n<h1 id=\"request\">Request</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gueId</code> (required)</td>\n<td><code>4585658</code> (int)</td>\n<td>The unique identifier for guest</td>\n</tr>\n<tr>\n<td><code>signature</code> (required)</td>\n<td><code>data:image/png;base64,iVB2oA......BORw0K</code> (string)</td>\n<td>Base64 encoded signature image (can be in SVG or PNG format)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["reservation","CheckInSignature"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Reservation ID (required)</p>\n","type":"text/plain"},"key":"resId","value":"12221364"}],"variable":[]}},"response":[{"id":"60090505-8cc9-40bb-8fbf-c5841da5aef9","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\"gueId\":149988919,\"signature\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2oAAAEsCAYAAACytUBTAAAgAElEQVR4Xu3daaw8X14W8C+roAKOILKFEQdZZHBkkUXBETWAMIAaHIUYQUF9gRHZAoowgkbHIBnnhSxBg7hBgAQRBYTISIQAgiAqoCgg0SAEwoiCEGQxT6a//s/09L231+rT1Z9Obu5v6a469Tmnu+ups9SrlQcBAgQIECBAgAABAgQITCXwalOVRmEIECBAgAABAgQIECBAoAQ1jYAAAQIECBAgQIAAAQKTCQhqk1WI4hAgQIAAAQIECBAgQEBQ0wYORK5CYII=\"}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{previo_api_url}}rest/reservation/CheckInSignature?resId=43722037","host":["{{previo_api_url}}rest"],"path":["reservation","CheckInSignature"],"query":[{"key":"resId","value":"43722037"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 08 Sep 2020 08:18:01 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/7.3.17"},{"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":""},{"id":"a2d061fc-c149-4add-9b73-2c041086201f","name":"406 Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\"gueId\":149988919,\"signature\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2oAAAEsCAYAAACytUBTAAAgAElEQVR4Xu3daaw8X14W8C+roAKOILKFEQdZZHBkkUXBETWAMIAaHIUYQUF9gRHZAoowgkbHIBnnhSxBg7hBgAQRBYTISIQAgiAqoCgg0SAEwoiCEGQxT6a//s/09L231+rT1Z9Obu5v6a469Tmnu+ups9SrlQcBAgQIECBAgAABAgQITCXwalOVRmEIECBAgAABAgQIECBAoAQ1jYAAAQIECBAgQIAAAQKTCQhqk1WI4hAgQIAAAQIECBAgQEBQ0wYORK5CYII=\"}"},"url":{"raw":"{{previo_api_url}}rest/reservation/CheckInSignature?resId=43722037","host":["{{previo_api_url}}rest"],"path":["reservation","CheckInSignature"],"query":[{"key":"resId","value":"43722037","description":"Reservation ID (required)"}]}},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 17 Mar 2021 11:53:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 406,\n    \"error\": \"Couldn't save guest signature\",\n    \"message\": \"Váš požadavek se nepodařilo zpracovat. Zkuste to, prosím, později nebo kontaktujte ubytovací zařízení.\"\n}"}],"_postman_id":"8f94a07a-1e32-4f7b-b150-7c4acada6b68"},{"name":"reservation","id":"805767e0-8d3d-4f7f-b09a-2be299f69fa5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/reservation?resId=43722037","description":"<p>Get information about the reservation.</p>\n<p>API Privilige needed: 'Hotel.searchReservations'</p>\n<h1 id=\"response\">Response</h1>\n<h2 id=\"reservation\">Reservation</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>resId</code> (required)</td>\n<td><code>12060507</code> (int)</td>\n<td>The unique identifier for reservation</td>\n</tr>\n<tr>\n<td><code>hotId</code> (required)</td>\n<td><code>3209</code> (int)</td>\n<td>The unique identifier for hotel</td>\n</tr>\n<tr>\n<td><code>hasReview</code> (required)</td>\n<td><code>false</code> (boolean)</td>\n<td>True if user already reviewed this reservation</td>\n</tr>\n<tr>\n<td><a href=\"#commission\">commissions</a>  <br />  <br />(required)</td>\n<td><code>commissions</code> (array objects)</td>\n<td>Unit of a reservation or of a room in group reservation</td>\n</tr>\n<tr>\n<td><a href=\"#contact-person\">contactPerson</a>  <br />  <br />(required)</td>\n<td><code>contactPerson</code> (objects)</td>\n<td>Identification of the contact person for the reservation</td>\n</tr>\n<tr>\n<td><code>paymentType</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Type of payment (0 - Payment in Previo, 1 - Invoice, 2 - OTA)</td>\n</tr>\n<tr>\n<td><code>voucher</code> (required)</td>\n<td><code>ABCDDEDS</code> (string)</td>\n<td>Number of reservation valid for the guest</td>\n</tr>\n<tr>\n<td><code>note</code> (optional)</td>\n<td><code>Family with 4 children</code> (string)</td>\n<td>Written note to reservation</td>\n</tr>\n<tr>\n<td><code>requirePayment</code> (required)</td>\n<td><code>false</code> (boolean)</td>\n<td></td>\n</tr>\n<tr>\n<td><code>marketCodes</code> (optional)</td>\n<td><code>Great guest, problematic</code> (array)</td>\n<td>List of Market Codes added to this reservation</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"commission\">Commission</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>comId</code> (required)</td>\n<td><code>12060507</code> (int)</td>\n<td>The unique identifier for commission</td>\n</tr>\n<tr>\n<td><a href=\"#commission-status\">cosId</a>  <br />  <br />(required)</td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for commission status (ReservationStatus)</td>\n</tr>\n<tr>\n<td><code>termFrom</code> (required)</td>\n<td><code>2017-07-02T06:55:00</code> (string)</td>\n<td>Date of arrival</td>\n</tr>\n<tr>\n<td><code>termTo</code> (required)</td>\n<td><code>2017-07-03T06:55:00</code> (string)</td>\n<td>Date of departure</td>\n</tr>\n<tr>\n<td><a href=\"#green-option\">greenOption</a>  <br />  <br />(optional)</td>\n<td><a href=\"#green-option\">greenOption</a>  <br />  <br />(object)</td>\n<td>Possibility to skip cleaning when approved by guest</td>\n</tr>\n<tr>\n<td><code>room</code> (required)</td>\n<td><code>Best room</code> (string)</td>\n<td>Name of room</td>\n</tr>\n<tr>\n<td><code>roomKind</code> (required)</td>\n<td><code>Double-bedded</code> (string)</td>\n<td>Name of room kind</td>\n</tr>\n<tr>\n<td><a href=\"#guest\">guests</a>  <br />  <br />(required)</td>\n<td><code>[guest]</code> (array guest)</td>\n<td>Guests</td>\n</tr>\n<tr>\n<td><code>completeCheckin</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>Commission complete checkin</td>\n</tr>\n<tr>\n<td><code>isPreauthorizationPaymentConfirm</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>Preauthorization payment allowed</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"green-option\">Green option</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>skipCleaningTomorrow</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>Cleaning will be skipped tomorrow</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"contact-person\">Contact person</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code> (optional)</td>\n<td><code>Radim Vaculik</code> (string)</td>\n</tr>\n<tr>\n<td><code>email</code> (optional)</td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n</tr>\n<tr>\n<td><code>phone</code> (optional)</td>\n<td><code>+420321439439</code> (string)</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>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>gueId</code> (required)</td>\n<td><code>4585658</code> (int)</td>\n<td>The unique identifier for guest</td>\n</tr>\n<tr>\n<td><code>hasCompleteInfo</code> (required)</td>\n<td><code>false</code> (boolean)</td>\n<td>If the host has filled in all the data required to check in</td>\n</tr>\n<tr>\n<td><code>nationality</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Country id of guest nationality</td>\n</tr>\n<tr>\n<td><code>guaId</code> (required)</td>\n<td><code>167238</code> (int)</td>\n<td>The unique identifier for guest category</td>\n</tr>\n<tr>\n<td><code>firstName</code> (required)</td>\n<td><code>Radim</code> (string)</td>\n<td>First name of the guest</td>\n</tr>\n<tr>\n<td><code>lastName</code> (required)</td>\n<td><code>Vaculík</code> (string)</td>\n<td>Last name of the guest</td>\n</tr>\n<tr>\n<td><code>email</code> (optional)</td>\n<td><code>radim.vaculik@previo.cz</code> (string)</td>\n<td>E-mail address</td>\n</tr>\n<tr>\n<td><code>phone</code> (optional)</td>\n<td><code>+420123456789</code> (string)</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td><code>birthDate</code> (required)</td>\n<td><code>2017-01-01T00:00:00</code> (string)</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td>address (required)</td>\n<td>address (object)</td>\n<td>Address of the guest</td>\n</tr>\n<tr>\n<td><code>visa</code> (optional)</td>\n<td><code>21313KDMFS32</code> (string)</td>\n<td>Visa number</td>\n</tr>\n<tr>\n<td><code>numberPlate</code> (optional)</td>\n<td><code>5AN6312</code> (string)</td>\n<td>Number plate of guest`s car</td>\n</tr>\n<tr>\n<td>identity (required)</td>\n<td>identity (object)</td>\n<td>Documents of the guest</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"identity\">Identity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>number</code> (required)</td>\n<td><code>N5646645</code> (string)</td>\n<td>number of ID document</td>\n</tr>\n<tr>\n<td><code>guiId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>1 ID card, 2 passport, 3 driving license, 4 permanent residence, 5 residence permit,  <br />6 loss / theft of document,  <br />7 diplomacy worker,  <br />8 child without document</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"address\">Address</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>street</code> (required)</td>\n<td><code>Panska</code> (string)</td>\n<td>Name of street</td>\n</tr>\n<tr>\n<td><code>streetNumber</code> (required)</td>\n<td><code>256</code> (string)</td>\n<td>Street number</td>\n</tr>\n<tr>\n<td><code>city</code> (required)</td>\n<td><code>Brno</code> (string)</td>\n<td>Name of the city</td>\n</tr>\n<tr>\n<td><code>zip</code> (required)</td>\n<td><code>60200</code> (string)</td>\n<td>Zip code</td>\n</tr>\n<tr>\n<td><code>couId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for country</td>\n</tr>\n<tr>\n<td><code>lat</code> (optional)</td>\n<td><code>13.239945</code> (float)</td>\n<td>Latitude</td>\n</tr>\n<tr>\n<td><code>lot</code> (optional)</td>\n<td><code>19.2825445</code> (float)</td>\n<td>Longitude</td>\n</tr>\n<tr>\n<td><code>streetType</code> (optional)</td>\n<td><code>utca</code> (string)</td>\n<td>Type of street for Hungary hotel</td>\n</tr>\n<tr>\n<td><code>cifId</code> (optional)</td>\n<td><code>1</code> (int)</td>\n<td>ID of street for Hungary</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["reservation"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Reservation ID (required)</p>\n","type":"text/plain"},"key":"resId","value":"43722037"}],"variable":[]}},"response":[{"id":"19207964-cc69-4bbd-a346-4ff0d8f22967","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reservation?resId=43722037","host":["{{previo_api_url}}rest"],"path":["reservation"],"query":[{"key":"resId","value":"43722037"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 08 Sep 2020 08:28:56 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/7.3.17"},{"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    \"commissions\": [\n        {\n            \"guests\": [\n                {\n                    \"nationality\": 1,\n                    \"hasCompleteInfo\": true,\n                    \"gueId\": 149988919,\n                    \"guaId\": 167238,\n                    \"firstName\": \"Legolas\",\n                    \"lastName\": \"Thranduila\",\n                    \"email\": \"legolas.thranduila@previo.cz\",\n                    \"phone\": \"607158965\",\n                    \"birthDate\": \"1998-05-13T00:00:00\",\n                    \"genId\": null,\n                    \"address\": {\n                        \"street\": \"Doriath 253632\",\n                        \"streetNumber\": \"999\",\n                        \"city\": \"Temný hvozd\",\n                        \"zip\": \"19000\",\n                        \"couId\": 1,\n                        \"lat\": null,\n                        \"lon\": null,\n                        \"streetType\": null,\n                        \"cifId\": null\n                    },\n                    \"visa\": null,\n                    \"numberPlate\": null,\n                    \"identity\": {\n                        \"number\": \"6598746\",\n                        \"guiId\": 1\n                    },\n                    \"isRecreation\": true,\n                    \"birthPlace\": null\n                },\n                {\n                    \"nationality\": 1,\n                    \"hasCompleteInfo\": false,\n                    \"gueId\": 149988921,\n                    \"guaId\": 167238,\n                    \"firstName\": null,\n                    \"lastName\": null,\n                    \"email\": null,\n                    \"phone\": null,\n                    \"birthDate\": null,\n                    \"genId\": null,\n                    \"address\": {\n                        \"street\": null,\n                        \"streetNumber\": null,\n                        \"city\": null,\n                        \"zip\": null,\n                        \"couId\": 1,\n                        \"lat\": null,\n                        \"lon\": null,\n                        \"streetType\": null,\n                        \"cifId\": null\n                    },\n                    \"visa\": null,\n                    \"numberPlate\": null,\n                    \"identity\": {\n                        \"number\": null,\n                        \"guiId\": null\n                    },\n                    \"isRecreation\": true,\n                    \"birthPlace\": null\n                }\n            ],\n            \"greenOption\": null,\n            \"completeCheckin\": false,\n            \"comId\": 57568261,\n            \"cosId\": 1,\n            \"termFrom\": \"2020-09-08T14:15:00\",\n            \"termTo\": \"2020-09-11T10:00:00\",\n            \"room\": \"210\",\n            \"roomKind\": \"Dvoulůžkový CHM\",\n            \"isPreauthorizationPaymentConfirm\": false\n        }\n    ],\n    \"requirePayment\": true,\n    \"paymentType\": 0,\n    \"resId\": 43722037,\n    \"hotId\": 2,\n    \"hasReview\": false,\n    \"contactPerson\": {\n        \"name\": \"\",\n        \"phone\": \"\",\n        \"email\": \"\"\n    },\n    \"voucher\": \"1234/888\",\n    \"note\": null\n}"},{"id":"da0dfa2c-fc0d-4de2-b5c2-30034cdb0c52","name":"404 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<a href=\"#language\">Language ID</a>"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/reservation?resId=43722037","host":["{{previo_api_url}}rest"],"path":["reservation"],"query":[{"key":"resId","value":"43722037","description":"Reservation ID (required)"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 16 Mar 2021 14:35:36 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/7.3.27"},{"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    \"code\": 404,\n    \"error\": \"Reservation #43722037 not found\",\n    \"message\": null\n}"}],"_postman_id":"805767e0-8d3d-4f7f-b09a-2be299f69fa5"},{"name":"account","id":"d8515557-c5eb-4e39-b781-f22bde5f0cf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/account?resId=43722037","description":"<p>Get list of the account items for particular reservation.</p>\n<p>API Privilige needed: 'Hotel.getAccountItems'</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>resId</code> (required)</td>\n<td><code>13435</code> (number)</td>\n<td>Identifier of room in the reservation</td>\n</tr>\n<tr>\n<td><code>groupAccount</code> (required)</td>\n<td><code>groupAccount</code> (object)</td>\n<td>Account</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"group-account\">Group account</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>total</code> (required)</td>\n<td><code>100</code> (float)</td>\n<td>The total amount of the account</td>\n</tr>\n<tr>\n<td><code>paid</code> (required)</td>\n<td><code>50</code> (float)</td>\n<td>The amount of account that is already paid</td>\n</tr>\n<tr>\n<td><code>curId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for currency</td>\n</tr>\n<tr>\n<td><a href=\"#account-item\">items</a>  <br />  <br />  <br />  <br />  <br />  <br />  <br />  <br />(required)</td>\n<td><code>items</code> (array objects)</td>\n<td>Hotel account items</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"account-item\">Account item</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n<th><strong>Note</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>coaId</code> (required)</td>\n<td><code>342</code> (int)</td>\n<td>The unique identifier for account item</td>\n<td></td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Fried Onion Burger</code> (string)</td>\n<td>Name of the account item</td>\n<td></td>\n</tr>\n<tr>\n<td><code>price</code> (required)</td>\n<td><code>100.5</code> (float)</td>\n<td>Price of the account item</td>\n<td></td>\n</tr>\n<tr>\n<td><code>count</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Count of items</td>\n<td></td>\n</tr>\n<tr>\n<td><code>segId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>The unique identifier for account item segment  <br /><a href=\"https://xml.apidocs.previo.app/#21061e34-d38f-409d-a3ea-bc2be5bcad8c\">System.getSegments</a></td>\n<td></td>\n</tr>\n<tr>\n<td><code>atiId</code> (required)</td>\n<td><code>32</code> (int)</td>\n<td>The unique identifier for account item type</td>\n<td>Codebook for item types  <br />  <br />-14 Other discounts and surcharges  <br />-13 Service  <br />-12 Rounding  <br />-11 Discount / surcharge - FM, LM, LT  <br />-10 Accommodation  <br />-9 Accommodation discount  <br />-8 Package  <br />-7 Inventory  <br />-6 Discount / surcharge - special price  <br />-5 Accommodation tax  <br />-4 Local visitor tax  <br />-3 Meals  <br />-2 Accommodation discount for guest category  <br />-1 Accommodation services  <br />0 Manually added item  <br />1 Accommodation services  <br />2 Accommodation discount for guest category  <br />3 Meals  <br />4 Local visitor tax  <br />5 Accommodation tax  <br />6 Discount / surcharge - special price  <br />7 Inventory  <br />8 Package  <br />9 Other discounts and surcharges  <br />10 Accommodation  <br />11 Discount / surcharge - FM, LM, LT  <br />12 Rounding  <br />13 Service  <br />14 Other discounts and surcharges</td>\n</tr>\n<tr>\n<td><code>comId</code> (required)</td>\n<td><code>124242</code> (int)</td>\n<td>The unique identifier for commission</td>\n<td></td>\n</tr>\n<tr>\n<td><code>paid</code> (required)</td>\n<td><code>180</code> (float)</td>\n<td>Paid price of one item</td>\n<td></td>\n</tr>\n<tr>\n<td><code>owner</code> (optional)</td>\n<td><code>owner</code> (object)</td>\n<td>Owner of account item</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"owner\"><strong>Owner</strong></h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>type</code> (required)</td>\n<td><code>company</code> (string)</td>\n<td>Types of owner:  <br />-<code>company</code>  <br />-<code>ota</code>  <br />-<code>guest</code></td>\n</tr>\n<tr>\n<td><code>id</code> (required)</td>\n<td><code>423</code> (number)</td>\n<td>The unique identifier for item owner</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["account"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Reservation ID (required)</p>\n","type":"text/plain"},"key":"resId","value":"43722037"}],"variable":[]}},"response":[{"id":"a2a02de5-2279-422c-9d40-5c85983629b0","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/account?resId=12481796","host":["{{previo_api_url}}rest"],"path":["account"],"query":[{"key":"resId","value":"12481796","description":"Reservation ID (required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 14 Sep 2022 12:00:15 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.0.18"},{"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    \"resId\": 12481796,\n    \"groupAccount\": {\n        \"total\": 0,\n        \"paid\": 0,\n        \"curId\": 1,\n        \"needPay\": false,\n        \"items\": [\n            {\n                \"coaId\": 48586896,\n                \"comId\": 13334140,\n                \"name\": \"Accommodation services (room: 101 P, dates: 15. 9. 2022 - 16. 9. 2022, guests: 2)\",\n                \"price\": -26,\n                \"count\": 1,\n                \"segId\": 20,\n                \"aitId\": 1\n                \"owner\": [\n                    {\n                        \"type\": company,\n                        \"id\": 423\n                    }\n                ]\n            },\n            {\n                \"coaId\": 48586897,\n                \"comId\": 13334140,\n                \"name\": \"Strava (2x breakfast, hostů: 2)\",\n                \"price\": 22,\n                \"count\": 1,\n                \"segId\": 18,\n                \"aitId\": 3\n                \"owner\": [\n                    {\n                        \"type\": company,\n                        \"id\": 424\n                    }\n                ]\n            },\n            {\n                \"coaId\": 48586898,\n                \"comId\": 13334140,\n                \"name\": \"Kurtax (hostů: 2)\",\n                \"price\": 38,\n                \"count\": 1,\n                \"segId\": 6,\n                \"aitId\": 4\n                \"owner\": [\n                    {\n                        \"type\": OTA,\n                        \"id\": 425\n                    }\n                ]\n            }\n        ]\n    },\n}"},{"id":"096ff665-ae86-4f01-857d-0cd23137f66c","name":"400 Error","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}"},{"key":"Content-Type","value":"application/json"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/account?resId=43722037","host":["{{previo_api_url}}rest"],"path":["account"],"query":[{"key":"resId","value":"43722037","description":"Reservation ID (required)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Mon, 15 Mar 2021 19:21:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.3.27"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Loading reservation failed\",\n    \"message\": null\n}"}],"_postman_id":"d8515557-c5eb-4e39-b781-f22bde5f0cf9"},{"name":"reservations/accounts/suggester","id":"76863a17-cd13-43db-b26c-46fe16f6cc83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"currencyId\": 1,\r\n    \"rooms\": [\r\n        {\r\n            \"from\": \"2022-08-25\",\r\n            \"to\": \"2022-08-30\",\r\n            \"roomKindId\": 61,\r\n            \"ratePlanId\": 84855,\r\n            \"guests\": [\r\n                {\r\n                    \"guestCategoryId\": 167238,\r\n                    \"mealTypeId\": 1\r\n                },\r\n                {\r\n                    \"guestCategoryId\": 266995,\r\n                    \"mealTypeId\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}restreservations/accounts/suggester","description":"<p>Get reservation(s) price and account items base on the input parameters as stay dates, number of persons, meal types, etc.</p>\n<p>API Privilige needed: 'Hotel.getRates'</p>\n<h1 id=\"request\">Request</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>currencyId</code> (optional)</td>\n<td><code>48</code> (int)</td>\n<td>Currency, in which should be the reservation price returned - if not set, the default currency of the hotel is used.</td>\n</tr>\n<tr>\n<td><code>rooms</code> (required)</td>\n<td>rooms array[object]</td>\n<td>List of rooms for price suggestion</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"rooms\">rooms</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>from</code> (required)</td>\n<td><code>2022-05-01</code> (date)</td>\n<td>Date from (in ISO 8601 format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td><code>to</code> (required)</td>\n<td><code>2022-05-02</code> (date)</td>\n<td>Date to(in ISO 8601 format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td><code>roomKindId</code>(required)</td>\n<td><code>2533</code> (int)</td>\n<td>Room type ID. See <a href=\"https://rest.apidocs.previo.cz/#aee1e0b8-da85-4e43-86c2-ceca90add8f7\">/premise/kind</a></td>\n</tr>\n<tr>\n<td><code>ratePlanId</code> (optional)</td>\n<td><code>2533</code> (int)</td>\n<td>Rate plan ID. See <a href=\"https://rest.apidocs.previo.cz/#30a8d473-e262-462c-82ef-37f263375991\">/rate-plan</a>. If not set default rateplan of the hotel is used.</td>\n</tr>\n<tr>\n<td><code>guests</code> (required)</td>\n<td><code>guests</code>array[object]</td>\n<td>List of guests in the room</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"roomsguests\">rooms/guests</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>guestCategoryId</code> (optional)</td>\n<td><code>123</code> (int)</td>\n<td>ID of the guest category (adult, child, infant, etc.). See <a href=\"https://xml.apidocs.previo.cz/#451b3835-28d2-4250-9f35-9c1d0a5d4101\">Hotel.getGuestCategories</a>. If not set, default guest category is chosen.</td>\n</tr>\n<tr>\n<td><code>mealTypeId</code>(optional)</td>\n<td><code>123</code> (int)</td>\n<td>ID of the meal type (breakfast, half-board, etc.). See <a href=\"https://xml.apidocs.previo.cz/#9823b28d-1b56-4738-9123-1a5c700be1d7\">System.getMeals</a>. If not set, default meal type is chosen.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>currency</code> (required)</td>\n<td><code>currency</code> (object)</td>\n<td>Currency object</td>\n</tr>\n<tr>\n<td><code>totalPrice</code> (required)</td>\n<td><code>900.56</code>(float)</td>\n<td>Total price of the reservation</td>\n</tr>\n<tr>\n<td><code>rooms</code> (required)</td>\n<td><code>rooms</code> array[object]</td>\n<td>List of reservation prices</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"currency\">currency</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>currencyId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Currency ID</td>\n</tr>\n<tr>\n<td><code>currencyCode</code> (required)</td>\n<td><code>CZK</code> (string)</td>\n<td>ISO 3-letter code of currency</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"rooms-1\">rooms</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>from</code> (required)</td>\n<td><code>2022-05-01</code> (date)</td>\n<td>Date from (in ISO 8601 format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td><code>to</code> (required)</td>\n<td><code>2022-05-02</code> (date)</td>\n<td>Date to(in ISO 8601 format: YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td><code>roomKindId</code>(required)</td>\n<td><code>2533</code> (int)</td>\n<td>Room type ID. See <a href=\"https://rest.apidocs.previo.cz/#aee1e0b8-da85-4e43-86c2-ceca90add8f7\">/premise/kind</a></td>\n</tr>\n<tr>\n<td><code>ratePlanId</code> (optional)</td>\n<td><code>2533</code> (int)</td>\n<td>Rate plan ID. See <a href=\"https://rest.apidocs.previo.cz/#30a8d473-e262-462c-82ef-37f263375991\">/rate-plan</a>. If not set default rateplan of the hotel is used.</td>\n</tr>\n<tr>\n<td><code>accountItems</code> (required)</td>\n<td>accountItems array[object]</td>\n<td>List of guests in the room</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"roomsaccountitems\">rooms/accountItems</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>segmentId</code> (required)</td>\n<td><code>2</code> (int)</td>\n<td>Account item segment. See <a href=\"https://xml.apidocs.previo.cz/#21061e34-d38f-409d-a3ea-bc2be5bcad8c\">System.getSegments</a></td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Accommodation service</code> (string)</td>\n<td>Account item name</td>\n</tr>\n<tr>\n<td><code>count</code>(required)</td>\n<td><code>2</code> (int)</td>\n<td>Account item count</td>\n</tr>\n<tr>\n<td><code>unitPrice</code>(required)</td>\n<td><code>900.56</code>(float)</td>\n<td>Account item unit price</td>\n</tr>\n<tr>\n<td><code>totalPrice</code>(required)</td>\n<td><code>900.56</code>(float)</td>\n<td>Account item total price</td>\n</tr>\n<tr>\n<td><code>vatRate</code>(required)</td>\n<td><code>21</code> (float)</td>\n<td>Account item VAT rate in percent</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["accounts","suggester"],"host":["{{previo_api_url}}restreservations"],"query":[],"variable":[]}},"response":[{"id":"55001d6b-5783-40fa-a603-4e2a488ebddc","name":"200","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"currencyId\": 1,\r\n    \"rooms\": [\r\n        {\r\n            \"from\": \"2022-08-25\",\r\n            \"to\": \"2022-08-30\",\r\n            \"roomKindId\": 61,\r\n            \"ratePlanId\": 84855,\r\n            \"guests\": [\r\n                {\r\n                    \"guestCategoryId\": 167238,\r\n                    \"mealTypeId\": 1\r\n                },\r\n                {\r\n                    \"guestCategoryId\": 266995,\r\n                    \"mealTypeId\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}restreservations/accounts/suggester"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 25 Aug 2022 07:34:03 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.0.15"},{"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    \"currency\": {\n        \"currencyId\": 1,\n        \"currencyCode\": \"CZK\"\n    },\n    \"totalPrice\": 1000,\n    \"rooms\": [\n        {\n            \"roomKindId\": 61,\n            \"ratePlanId\": 84855,\n            \"from\": \"2022-08-25\",\n            \"to\": \"2022-08-30\",\n            \"accountItems\": [\n                {\n                    \"itemTypeId\": 1,\n                    \"name\": \"Ubytovací služby (termín: 25. 8. 2022 - 30. 8. 2022, hostů: 1)\",\n                    \"count\": 5,\n                    \"unitPrice\": 174,\n                    \"totalPrice\": 870,\n                    \"vatRate\": 10\n                },\n                {\n                    \"itemTypeId\": 4,\n                    \"name\": \"Poplatek z pobytu (hostů: 1)\",\n                    \"count\": 5,\n                    \"unitPrice\": 26,\n                    \"totalPrice\": 130,\n                    \"vatRate\": 0\n                }\n            ]\n        }\n    ]\n}\n"},{"id":"db12877f-1156-413e-8b8a-40f91aceaffb","name":"400","originalRequest":{"method":"POST","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"currencyId\": 25,\r\n    \"rooms\": [\r\n        {\r\n            \"from\": \"2022-08-25\",\r\n            \"to\": \"2022-08-30\",\r\n            \"roomKindId\": 61,\r\n            \"ratePlanId\": 84855,\r\n            \"guests\": [\r\n                {\r\n                    \"guestCategoryId\": 167238,\r\n                    \"mealTypeId\": 1\r\n                },\r\n                {\r\n                    \"guestCategoryId\": 266995,\r\n                    \"mealTypeId\": 1\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}restreservations/accounts/suggester"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 25 Aug 2022 11:25:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.0.15"},{"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"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad request: the currency is not acceptable by the hotel\",\n    \"message\": null\n}"}],"_postman_id":"76863a17-cd13-43db-b26c-46fe16f6cc83"},{"name":"Get PIN code","id":"710f0142-9811-4b9a-84b6-d8890f0736ac","protocolProfileBehavior":{"disableBodyPruning":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":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"}],"url":"{{previo_api_url}}/rest/reservations/rooms/card-locking-keys?reservationRoomId=92874530","description":"<p>Returns keys connected to a reservation.</p>\n<ul>\n<li><p><code>reservationRoomId</code> is new name for formerly used <code>comId</code> (still used like this in XML)</p>\n</li>\n<li><p><code>keys</code> in the response will be available since 2025-01-14 (<code>key</code> becomes deprecated)</p>\n</li>\n<li><p><code>validity.from</code> and <code>validity.to</code> can be <code>null</code></p>\n<ul>\n<li>currently it is only available for the following lock types: Keyguru, Salto KS PIN, Random PIN, Manual PIN, TTLock Online/Offline/HBGroup</li>\n</ul>\n</li>\n</ul>\n<p>API Privilige needed: 'Hotel.getCardLockKey'</p>\n","urlObject":{"path":["rest","reservations","rooms","card-locking-keys"],"host":["{{previo_api_url}}"],"query":[{"key":"reservationRoomId","value":"92874530"}],"variable":[]}},"response":[{"id":"d7c381bf-b63e-4339-891e-c15f57a00fa8","name":"200","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"}],"url":{"raw":"{{previo_api_url}}/rest/reservations/rooms/card-locking-keys?reservationRoomId=92874530","host":["{{previo_api_url}}"],"path":["rest","reservations","rooms","card-locking-keys"],"query":[{"key":"reservationRoomId","value":"92874530"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"cardData\": {\n    \"key\" : [\n      \"1234\"\n    ],\n    \"keys\": [\n      {\n        \"code\"            : \"1234\",\n        \"lockGuestName\"   : \"101\",\n        \"lockExternalName\": null,\n        \"validity\"        : {\n          \"from\": \"2024-12-10T14:00:00+0100\",\n          \"to\"  : \"2024-12-11T10:00:00+0100\"\n        }\n      }\n    ]\n  }\n}"},{"id":"b29460b7-b65a-4cf4-9f41-d0123a6adf2f","name":"200 with lock name","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Hotel-ID","value":"{{hotId}}","type":"text"}],"url":{"raw":"{{previo_api_url}}/rest/reservations/rooms/card-locking-keys?reservationRoomId=92874530","host":["{{previo_api_url}}"],"path":["rest","reservations","rooms","card-locking-keys"],"query":[{"key":"reservationRoomId","value":"92874530"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"cardData\": {\n    \"key\" : [\n      \"lock name / 1234\"\n    ],\n    \"keys\": [\n      {\n        \"code\"            : \"1234\",\n        \"lockGuestName\"   : \"101\",\n        \"lockExternalName\": \"lock name\",\n        \"validity\"        : {\n          \"from\": \"2024-12-10T14:00:00+0100\",\n          \"to\"  : \"2024-12-11T10:00:00+0100\"\n        }\n      }\n    ]\n  }\n}"}],"_postman_id":"710f0142-9811-4b9a-84b6-d8890f0736ac"}],"id":"766cefaa-3fe1-4140-82c4-3b2ca790f6b5","_postman_id":"766cefaa-3fe1-4140-82c4-3b2ca790f6b5","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Rooms","item":[{"name":"Rooms","id":"d249259b-9ff8-4331-a825-5df6e0c4669e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This HTTP GET request is used to retrieve a list of rooms from the specified hotel. The request should be made to the endpoint <code>{{previo_api_url}}rest/rooms</code>.</p>\n<p>The response of the last execution had a status code of 200, indicating a successful request. The response body contains an array of room objects, with each object having the following properties:</p>\n<ul>\n<li><code>roomId</code> (number): The unique identifier of the room.</li>\n<li><code>name</code> (string): The name of the room.</li>\n<li><code>roomKindId</code> (number): The identifier of the room kind.</li>\n<li><code>roomKindName</code> (string): The name of the room kind.</li>\n<li><code>roomTypeId</code> (number): The identifier of the room type.</li>\n<li><code>roomCleanStatusId</code> (number): The identifier of the room clean status.</li>\n<li><code>hasCapacity</code> (boolean): Indicates whether the room has a capacity.</li>\n<li><code>isHourlyBased</code> (boolean): Indicates whether the room is available for hourly bookings.</li>\n<li><code>capacity</code> (number): The capacity of the room.</li>\n<li><code>extraCapacity</code> (number): The extra capacity of the room.</li>\n<li><code>order</code> (number): The order of the room.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"93174462-fb4c-4343-84ad-64485b811e2e","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"}],"url":"{{previo_api_url}}rest/rooms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 28 Nov 2023 08:48:54 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":"set-cookie","value":"previo-user=MUIEAGw1iOF7OQPsq7uEbmVku49t87DDSKZ5hgHjbCuZWRgWg5U2GO2IPy0rTjWF5MusuUVpYX6zkYTh32yawx-nCqpte5Vi17_J6FK5HyneLo2bA-x1fvA2lukoJQzbzYQM7bVM-2q-zHbBHqIFO_wG57A0vhy2kA-O-HkXzc1tcunNeDUOqTQ3-EDdJEkBAfhOZ20Ox6LykhJHQg%3D%3D; expires=Wed, 29-Nov-2023 08:48:54 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"roomId\": 991802,\n        \"name\": \"Pivo 11\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 1134392,\n        \"name\": \"pokoj činnost 1\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1894741,\n        \"name\": \"Pivo 4\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 3\n    },\n    {\n        \"roomId\": 1985523,\n        \"name\": \"Pivo 5\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 4\n    },\n    {\n        \"roomId\": 2086657,\n        \"name\": \"Pivo 6\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 5\n    },\n    {\n        \"roomId\": 2086660,\n        \"name\": \"Pivo 7\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 6\n    },\n    {\n        \"roomId\": 2115506,\n        \"name\": \"ddd\",\n        \"roomKindId\": 580906,\n        \"roomKindName\": \"Pivní salónek\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 2,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 7\n    },\n    {\n        \"roomId\": 991804,\n        \"name\": \"Slivka\",\n        \"roomKindId\": 585774,\n        \"roomKindName\": \"cyxcyxcX\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 2,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 2,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 1007992,\n        \"name\": \"yxcyxcyxcxy\",\n        \"roomKindId\": 585774,\n        \"roomKindName\": \"cyxcyxcX\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 2,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1007994,\n        \"name\": \"yxcyxcxy\",\n        \"roomKindId\": 585774,\n        \"roomKindName\": \"cyxcyxcX\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 2,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 1007996,\n        \"name\": \"yxcyxcyxc\",\n        \"roomKindId\": 585774,\n        \"roomKindName\": \"cyxcyxcX\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 2,\n        \"order\": 3\n    },\n    {\n        \"roomId\": 840,\n        \"name\": \"Test 01\",\n        \"roomKindId\": 560900,\n        \"roomKindName\": \"Hezký testovací pokoj\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 1,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 1005246,\n        \"name\": \"asd\",\n        \"roomKindId\": 584950,\n        \"roomKindName\": \"1.3.2018\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 2084698,\n        \"name\": \"Asd\",\n        \"roomKindId\": 889597,\n        \"roomKindName\": \"HttpsAPPTestPokoj\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1690303,\n        \"name\": \"STUDIO CHM TEST 1\",\n        \"roomKindId\": 766401,\n        \"roomKindName\": \"Studio CHM TEST\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1690305,\n        \"name\": \"STUDIO CHM TEST 2\",\n        \"roomKindId\": 766401,\n        \"roomKindName\": \"Studio CHM TEST\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 1894739,\n        \"name\": \"Pivo 3\",\n        \"roomKindId\": 669780,\n        \"roomKindName\": \"test 2\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 634268,\n        \"name\": \"102\",\n        \"roomKindId\": 465342,\n        \"roomKindName\": \"Single\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 102\n    },\n    {\n        \"roomId\": 634274,\n        \"name\": \"103\",\n        \"roomKindId\": 465342,\n        \"roomKindName\": \"Single\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 103\n    },\n    {\n        \"roomId\": 634330,\n        \"name\": \"104\",\n        \"roomKindId\": 465342,\n        \"roomKindName\": \"Single\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 104\n    },\n    {\n        \"roomId\": 833760,\n        \"name\": \"106\",\n        \"roomKindId\": 465342,\n        \"roomKindName\": \"Single\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 106\n    },\n    {\n        \"roomId\": 721130,\n        \"name\": \"211\",\n        \"roomKindId\": 507204,\n        \"roomKindName\": \"Double deluxe\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 3,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 1,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 718262,\n        \"name\": \"Chalet\",\n        \"roomKindId\": 507204,\n        \"roomKindName\": \"Double deluxe\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 1,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 721126,\n        \"name\": \"209 DDulcccccc\",\n        \"roomKindId\": 507204,\n        \"roomKindName\": \"Double deluxe\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 1,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 763548,\n        \"name\": \"101 DD\",\n        \"roomKindId\": 507204,\n        \"roomKindName\": \"Double deluxe\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 1,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 923158,\n        \"name\": \"rewr\",\n        \"roomKindId\": 507204,\n        \"roomKindName\": \"Double deluxe\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 1,\n        \"order\": 4\n    },\n    {\n        \"roomId\": 923156,\n        \"name\": \"fds/ER zk2\",\n        \"roomKindId\": 493018,\n        \"roomKindName\": \"Apartmány nad schody\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 2,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 923516,\n        \"name\": \"kkkttt\",\n        \"roomKindId\": 493018,\n        \"roomKindName\": \"Apartmány nad schody\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 2,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 956394,\n        \"name\": \"Miruv apartman\",\n        \"roomKindId\": 493018,\n        \"roomKindName\": \"Apartmány nad schody\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 2,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 923518,\n        \"name\": \"x\",\n        \"roomKindId\": 493018,\n        \"roomKindName\": \"Apartmány nad schody\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 2,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 795176,\n        \"name\": \"A13/vfd/. zkouška\",\n        \"roomKindId\": 493018,\n        \"roomKindName\": \"Apartmány nad schody\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 3,\n        \"extraCapacity\": 2,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1167602,\n        \"name\": \"Karnetův VIP apartmán\",\n        \"roomKindId\": 628624,\n        \"roomKindName\": \"VIP apartmán\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 5,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 1334816,\n        \"name\": \"Karnetův SUPER VIP apartmán\",\n        \"roomKindId\": 628624,\n        \"roomKindName\": \"VIP apartmán\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 5,\n        \"extraCapacity\": 0,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 841,\n        \"name\": \"204\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 4\n    },\n    {\n        \"roomId\": 842,\n        \"name\": \"205\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 5\n    },\n    {\n        \"roomId\": 843,\n        \"name\": \"206\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 6\n    },\n    {\n        \"roomId\": 169808,\n        \"name\": \"207\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 7\n    },\n    {\n        \"roomId\": 721124,\n        \"name\": \"208xxx\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 8\n    },\n    {\n        \"roomId\": 921332,\n        \"name\": \"209\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 9\n    },\n    {\n        \"roomId\": 721128,\n        \"name\": \"210\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 10\n    },\n    {\n        \"roomId\": 924396,\n        \"name\": \"211\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 11\n    },\n    {\n        \"roomId\": 721132,\n        \"name\": \"212\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 12\n    },\n    {\n        \"roomId\": 721134,\n        \"name\": \"213\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 13\n    },\n    {\n        \"roomId\": 630,\n        \"name\": \"214\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 14\n    },\n    {\n        \"roomId\": 1860819,\n        \"name\": \"220\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 15\n    },\n    {\n        \"roomId\": 1860821,\n        \"name\": \"221\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 16\n    },\n    {\n        \"roomId\": 1860823,\n        \"name\": \"222\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 17\n    },\n    {\n        \"roomId\": 1860825,\n        \"name\": \"223\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 18\n    },\n    {\n        \"roomId\": 1860827,\n        \"name\": \"224\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 19\n    },\n    {\n        \"roomId\": 1860829,\n        \"name\": \"225\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 20\n    },\n    {\n        \"roomId\": 1860831,\n        \"name\": \"226\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 21\n    },\n    {\n        \"roomId\": 1860833,\n        \"name\": \"227\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 22\n    },\n    {\n        \"roomId\": 1860835,\n        \"name\": \"228\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 23\n    },\n    {\n        \"roomId\": 1860837,\n        \"name\": \"229\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 24\n    },\n    {\n        \"roomId\": 1860839,\n        \"name\": \"230\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 25\n    },\n    {\n        \"roomId\": 1860841,\n        \"name\": \"231\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 26\n    },\n    {\n        \"roomId\": 1860843,\n        \"name\": \"232\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 27\n    },\n    {\n        \"roomId\": 1860845,\n        \"name\": \"233\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 28\n    },\n    {\n        \"roomId\": 1860847,\n        \"name\": \"234\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 29\n    },\n    {\n        \"roomId\": 1860849,\n        \"name\": \"235\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 30\n    },\n    {\n        \"roomId\": 1860851,\n        \"name\": \"236\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 31\n    },\n    {\n        \"roomId\": 1860853,\n        \"name\": \"237\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 32\n    },\n    {\n        \"roomId\": 1860855,\n        \"name\": \"238\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 33\n    },\n    {\n        \"roomId\": 1860857,\n        \"name\": \"239\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 34\n    },\n    {\n        \"roomId\": 1860859,\n        \"name\": \"240\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 35\n    },\n    {\n        \"roomId\": 1860861,\n        \"name\": \"250\",\n        \"roomKindId\": 61,\n        \"roomKindName\": \"Dvoulůžkový CHM\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 2,\n        \"extraCapacity\": 0,\n        \"order\": 36\n    },\n    {\n        \"roomId\": 380473,\n        \"name\": \"401 - zmena\",\n        \"roomKindId\": 74088,\n        \"roomKindName\": \"Quadruple\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 4,\n        \"extraCapacity\": 2,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 380478,\n        \"name\": \"402\",\n        \"roomKindId\": 74088,\n        \"roomKindName\": \"Quadruple\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 4,\n        \"extraCapacity\": 2,\n        \"order\": 2\n    },\n    {\n        \"roomId\": 380483,\n        \"name\": \"403\",\n        \"roomKindId\": 74088,\n        \"roomKindName\": \"Quadruple\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 4,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 4,\n        \"extraCapacity\": 2,\n        \"order\": 403\n    },\n    {\n        \"roomId\": 503883,\n        \"name\": \"404\",\n        \"roomKindId\": 74088,\n        \"roomKindName\": \"Quadruple\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 4,\n        \"extraCapacity\": 2,\n        \"order\": 404\n    },\n    {\n        \"roomId\": 791998,\n        \"name\": \"405\",\n        \"roomKindId\": 74088,\n        \"roomKindName\": \"Quadruple\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 4,\n        \"extraCapacity\": 2,\n        \"order\": 405\n    },\n    {\n        \"roomId\": 836168,\n        \"name\": \"cela 001\",\n        \"roomKindId\": 531680,\n        \"roomKindName\": \"polstrovaná cela\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 0\n    },\n    {\n        \"roomId\": 1001966,\n        \"name\": \"5\",\n        \"roomKindId\": 531680,\n        \"roomKindName\": \"polstrovaná cela\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 1\n    },\n    {\n        \"roomId\": 839,\n        \"name\": \"202\",\n        \"roomKindId\": 531680,\n        \"roomKindName\": \"polstrovaná cela\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 202\n    },\n    {\n        \"roomId\": 1245878,\n        \"name\": \"317 Brick'Wood%´u (Kateřina Součková)\",\n        \"roomKindId\": 531680,\n        \"roomKindName\": \"polstrovaná cela\",\n        \"roomTypeId\": 1,\n        \"roomCleanStatusId\": 1,\n        \"hasCapacity\": true,\n        \"isHourlyBased\": false,\n        \"capacity\": 1,\n        \"extraCapacity\": 0,\n        \"order\": 203\n    }\n]"}],"_postman_id":"d249259b-9ff8-4331-a825-5df6e0c4669e"},{"name":"Rooms/{{roomId}}","id":"8982f95f-ba46-4c13-a6ad-536a9159ea36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>This HTTP GET request is used to retrieve information about a specific room in a hotel. The request should be made to the endpoint <code>{{previo_api_url}}rest/rooms/763548</code>, where <code>763548</code> is the ID of the room.</p>\n<p>The response to this request will have a status code of 200, indicating a successful request. The response body will contain information about the room in JSON format. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"roomId\": 763548,\n    \"name\": \"101 DD\",\n    \"roomKindId\": 507204,\n    \"roomKindName\": \"Double deluxe\",\n    \"roomTypeId\": 1,\n    \"roomCleanStatusId\": 1,\n    \"hasCapacity\": true,\n    \"isHourlyBased\": false,\n    \"capacity\": 3,\n    \"extraCapacity\": 1,\n    \"order\": 2\n}\n\n</code></pre>\n<p>The response includes the following properties:</p>\n<ul>\n<li><code>roomId</code> (number): The unique identifier of the room.</li>\n<li><code>name</code> (string): The name of the room.</li>\n<li><code>roomKindId</code> (number): The ID of the room kind.</li>\n<li><code>roomKindName</code> (string): The name of the room kind.</li>\n<li><code>roomTypeId</code> (number): The ID of the room type.</li>\n<li><code>roomCleanStatusId</code> (number): The ID of the room clean status.</li>\n<li><code>hasCapacity</code> (boolean): Indicates whether the room has capacity.</li>\n<li><code>isHourlyBased</code> (boolean): Indicates whether the room is hourly based.</li>\n<li><code>capacity</code> (integer): The capacity of the room.</li>\n<li><code>extraCapacity</code> (integer): The extra capacity of the room.</li>\n<li><code>order</code> (integer): The order of the room.</li>\n</ul>\n<p>Please note that the values in the example response are placeholders and may not reflect the actual data for the requested room.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"5ae333ec-cb61-4b2e-a6c0-2f9f91896185","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"X-Previo-Language-Id","value":"{{lanId}}","type":"text"}],"url":"{{previo_api_url}}rest/rooms/763548"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 28 Nov 2023 09:00:52 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":"set-cookie","value":"previo-user=MUIEAOrbFbj28chHdSHmlNpqQ3vKQyDDrykojv4oHnoUuLDMxfg-b35xJfkIj4gTRaHROGZkZuxwCrOtRvKJyflR-xknlDmM2VmbnV5deV71fZ_dUnQF1it4c0y6zYhmA0rKCdAHc1aMNV5XGE653Zy1nR0nm1wVZPZgJJUYQhcqyD_1vGAett7nE6Z8-a_iG0dF6tpiS4IwR0KZaA%3D%3D; expires=Wed, 29-Nov-2023 09:00:52 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"roomId\": 763548,\n    \"name\": \"101 DD\",\n    \"roomKindId\": 507204,\n    \"roomKindName\": \"Double deluxe\",\n    \"roomTypeId\": 1,\n    \"roomCleanStatusId\": 1,\n    \"hasCapacity\": true,\n    \"isHourlyBased\": false,\n    \"capacity\": 3,\n    \"extraCapacity\": 1,\n    \"order\": 2\n}"}],"_postman_id":"8982f95f-ba46-4c13-a6ad-536a9159ea36"},{"name":"Rooms/{{roomId}}/clean-statuses","id":"c3262571-899a-49ae-9053-a844e2ac69c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"roomCleanStatusId\": 3\n}"},"url":"{{previo_api_url}}rest/rooms/763548/clean-statuses","description":"<p>This HTTP PUT request is used to update the clean statuses of a specific room in a hotel. The request should be made to the endpoint <code>{{previo_api_url}}rest/rooms/763548/clean-statuses</code>.</p>\n<p>Request:</p>\n<ul>\n<li>roomCleanStatusId: The ID of the room status. Codebook of IDs: 1 - Untidy, 2 - TTidy, 3 - Inspection, 4 - Check-up cleaning</li>\n</ul>\n<p>The response returnes a status code of 200, indicating a successful operation. The response body included the following properties:</p>\n<ul>\n<li><code>roomId</code>: The ID of the room.</li>\n<li><code>name</code>: The name of the room.</li>\n<li><code>roomKindId</code>: The ID of the room kind.</li>\n<li><code>roomKindName</code>: The name of the room kind.</li>\n<li><code>roomTypeId</code>: The ID of the room type.</li>\n<li><code>roomCleanStatusId</code>: The ID of the room clean status.</li>\n<li><code>hasCapacity</code>: A boolean value indicating whether the room has capacity.</li>\n<li><code>isHourlyBased</code>: A boolean value indicating whether the room is hourly based.</li>\n<li><code>capacity</code>: The capacity of the room.</li>\n<li><code>extraCapacity</code>: The extra capacity of the room.</li>\n<li><code>order</code>: The order of the room.</li>\n</ul>\n<p>Here are some example responses for this request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"roomId\": 763548,\n    \"name\": \"101 DD\",\n    \"roomKindId\": 507204,\n    \"roomKindName\": \"Double deluxe\",\n    \"roomTypeId\": 1,\n    \"roomCleanStatusId\": 3,\n    \"hasCapacity\": true,\n    \"isHourlyBased\": false,\n    \"capacity\": 3,\n    \"extraCapacity\": 1,\n    \"order\": 2\n}\n\n</code></pre><p>Please note that the specific values in the response may vary depending on the room and project.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["rooms","763548","clean-statuses"],"host":["{{previo_api_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"3208b468-4438-4966-8b19-56bf777edd1d","name":"200","originalRequest":{"method":"PUT","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text"},{"key":"X-Previo-Language-Id","value":"{{lanId}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"roomCleanStatusId\": 3\n}","options":{"raw":{"language":"json"}}},"url":"{{previo_api_url}}rest/rooms/763548/clean-statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server","value":"nginx"},{"key":"date","value":"Tue, 28 Nov 2023 09:26:57 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":"set-cookie","value":"previo-user=MUIEAMFal8zpwUfedZ85TMPQPO5STWtDby_HhuPeV2Gbl0Tt_EjD8Wu9cg-Co9E12GybxdZUmGypjpzqGGBJkZfa3LD2qX0k7tPlcTHAeTGgtAjrSMs1kFDFgwzSogbzCg8M2zKv_rsfim25QQQDjHuDosuECP1sQR7L0VTI37SA6R9CpKQdtu4dJDZCoVen6ZzJh_7DwBQJz-wm_A%3D%3D; expires=Wed, 29-Nov-2023 09:26:56 GMT; Max-Age=86400; path=/; domain=previo.app; secure; HttpOnly"},{"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":"web01"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"roomId\": 763548,\n    \"name\": \"101 DD\",\n    \"roomKindId\": 507204,\n    \"roomKindName\": \"Double deluxe\",\n    \"roomTypeId\": 1,\n    \"roomCleanStatusId\": 3,\n    \"hasCapacity\": true,\n    \"isHourlyBased\": false,\n    \"capacity\": 3,\n    \"extraCapacity\": 1,\n    \"order\": 2\n}"}],"_postman_id":"c3262571-899a-49ae-9053-a844e2ac69c0"}],"id":"2adac5c2-6f52-469a-9cdf-65c0d4c23109","description":"<p>Here you can get information about rooms, their details and change clean status</p>\n<p>This collection will let you work with rooms in Previo.</p>\n<p>API privilege needed: ''Hotel.Rooms\"</p>\n","_postman_id":"2adac5c2-6f52-469a-9cdf-65c0d4c23109","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Room kind","item":[{"name":"premise/kind","id":"aee1e0b8-da85-4e43-86c2-ceca90add8f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"<p>The unique identifier for hotel</p>\n"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/premise/kind?obtId=1","description":"<p>Get general list of premise kinds</p>\n<p>API Privilige needed: 'Hotel.getObjectKinds'</p>\n<h1 id=\"request\">Request</h1>\n<p>In request you have to include obtId, which represents type of Rooms. The codebook for that is:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>obtId</strong></th>\n<th><strong>Name</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>accommodation</td>\n</tr>\n<tr>\n<td>2</td>\n<td>other (booked per days)</td>\n</tr>\n<tr>\n<td>3</td>\n<td>wellness</td>\n</tr>\n<tr>\n<td>4</td>\n<td>conference</td>\n</tr>\n<tr>\n<td>5</td>\n<td>gastro</td>\n</tr>\n<tr>\n<td>6</td>\n<td>other (booked per hours)</td>\n</tr>\n<tr>\n<td>7</td>\n<td>sports ground</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>obkId</code> (required)</td>\n<td><code>469005</code> (int)</td>\n<td>Room kind ID</td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Best room</code> (int)</td>\n<td>Room kind name</td>\n</tr>\n<tr>\n<td><code>description</code> (optional)</td>\n<td><code>Rom with swimming pool</code> (int)</td>\n<td>Room kind description</td>\n</tr>\n<tr>\n<td><code>galId</code> (optional)</td>\n<td><code>362611</code> (int)</td>\n<td>Gallery ID</td>\n</tr>\n<tr>\n<td><code>obtId</code> (required)</td>\n<td><code>1</code> (int)</td>\n<td>Room kind type</td>\n</tr>\n<tr>\n<td><code>numOfRooms</code> (required)</td>\n<td><code>10</code> (int)</td>\n<td>Number of rooms in room kind</td>\n</tr>\n<tr>\n<td><code>hasCapacity</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>If the room has accommodation capacity</td>\n</tr>\n<tr>\n<td><code>capacity</code> (required)</td>\n<td><code>2</code> (int)</td>\n<td>Capacity of room kind</td>\n</tr>\n<tr>\n<td><code>extraCapacity</code> (required)</td>\n<td><code>2</code> (int)</td>\n<td>Extra bed in room kind</td>\n</tr>\n<tr>\n<td><code>offerOnline</code> (required)</td>\n<td><code>true</code> (boolean)</td>\n<td>Offered online</td>\n</tr>\n<tr>\n<td><code>order</code> (required)</td>\n<td><code>2</code> (int)</td>\n<td>Order of room kind</td>\n</tr>\n<tr>\n<td><code>properties</code> (optional)</td>\n<td><code>[Properties]</code> (array objects)</td>\n<td>Properties of room kind</td>\n</tr>\n<tr>\n<td><code>pckId</code> (optional)</td>\n<td><code>5656</code> (int)</td>\n<td>Default package id in minutes service</td>\n</tr>\n<tr>\n<td><code>ntakRoomTypeId</code> (optional)</td>\n<td><code>1</code> (int)</td>\n<td>Hungary ntak of object kind</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"properties\">Properties</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>okpId</code> (required)</td>\n<td><code>99</code> (int)</td>\n<td>The unique identifier for object kind property codebook. List of okpIds available in XML function <a href=\"https://xml.apidocs.previo.cz/#ae2f0db1-dbf4-4612-a5c9-19d2926a65e5\">System.getObjectKindProperties</a></td>\n</tr>\n<tr>\n<td><code>value</code> (optional)</td>\n<td><code>Shower</code> (string)</td>\n<td>Name of the object kind property</td>\n</tr>\n<tr>\n<td><code>attributes</code> (optional)</td>\n<td><code>[]</code> (array)</td>\n<td>Additional attribures of property</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["premise","kind"],"host":["{{previo_api_url}}rest"],"query":[{"description":{"content":"<p>Object type</p>\n","type":"text/plain"},"key":"obtId","value":"1"}],"variable":[]}},"response":[{"id":"222799cf-d315-4c8b-9c9d-d983a9396871","name":"200","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/premise/kind?obtId=1","host":["{{previo_api_url}}rest"],"path":["premise","kind"],"query":[{"key":"obtId","value":"1","description":"Object type"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Mar 2021 18:26:53 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16"},{"key":"X-Powered-By","value":"PHP/7.3.16"},{"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-Length","value":"717"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"obkId\": 469005,\n        \"name\": \"Dvoulůžkový pokoj\",\n        \"description\": \"česky\",\n        \"galId\": 362611,\n        \"obtId\": 1,\n        \"numOfRooms\": 10,\n        \"unitId\": 2,\n        \"hasCapacity\": true,\n        \"capacity\": 1,\n        \"extraCapacity\": 1,\n        \"offerOnline\": true,\n        \"order\": 0,\n        \"properties\": [],\n        \"pckId\": null,\n        \"ntakRoomTypeId\": null\n    },\n    {\n        \"obkId\": 470819,\n        \"name\": \"Třilůžkový\",\n        \"description\": \"\",\n        \"galId\": null,\n        \"obtId\": 1,\n        \"numOfRooms\": 1,\n        \"unitId\": 2,\n        \"hasCapacity\": true,\n        \"capacity\": 3,\n        \"extraCapacity\": 0,\n        \"offerOnline\": true,\n        \"order\": 0,\n        \"properties\": [\n            {\n                \"okpId\": \"99\",\n                \"value\": \"\",\n                \"attributes\": [\n                    {\n                        \"praId\": 39,\n                        \"value\": \"Lihovarská 1060/12\"\n                    },\n                    {\n                        \"praId\": 40,\n                        \"value\": \"Praha\"\n                    },\n                    {\n                        \"praId\": 41,\n                        \"value\": \"19000\"\n                    },\n                    {\n                        \"praId\": 42,\n                        \"value\": \"Česká republika\"\n                    }\n                ]\n            }\n        ],\n        \"pckId\": null,\n        \"ntakRoomTypeId\": null\n    }\n]"},{"id":"ff852afa-077d-4e18-8e80-4d33a8908562","name":"406 Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-Previo-Hotel-ID","type":"text","value":"{{hotId}}","description":"The unique identifier for hotel"},{"key":"X-Previo-Language-ID","type":"text","value":"{{lanId}}","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":{"raw":"{{previo_api_url}}rest/premise/kind","host":["{{previo_api_url}}rest"],"path":["premise","kind"],"query":[{"key":"obtId","value":"1","description":"Object type","disabled":true}]}},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 17 Mar 2021 18:46:34 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16"},{"key":"X-Powered-By","value":"PHP/7.3.16"},{"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-Length","value":"75"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 406,\n    \"error\": \"Required parameter 'obtId' is missing\",\n    \"message\": null\n}"}],"_postman_id":"aee1e0b8-da85-4e43-86c2-ceca90add8f7"}],"id":"e24d5f19-7a07-478d-9978-46b5f34ad533","_postman_id":"e24d5f19-7a07-478d-9978-46b5f34ad533","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}},{"name":"Service","item":[{"name":"services/search","id":"b4d0f447-2c74-4601-b5ac-6fbc220e2e4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/services/search","description":"<p>Search for available services</p>\n<p>API Privilige needed: 'Hotel.getPackages'</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code> (required)</td>\n<td><code>true</code>  (boolean)</td>\n<td>Valid response</td>\n</tr>\n<tr>\n<td><code>services</code> (required)</td>\n<td><code>[objects]</code>  (array objects)</td>\n<td>Packages</td>\n</tr>\n<tr>\n<td><code>total</code> (required)</td>\n<td><code>2</code>  (int)</td>\n<td>Number of packages</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"package\">Package</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pckId</code> (required)</td>\n<td><code>29590</code>  (int)</td>\n<td>Package ID</td>\n</tr>\n<tr>\n<td><code>hogId</code> (required)</td>\n<td><code>159896</code>  (int)</td>\n<td>Hotel group ID</td>\n</tr>\n<tr>\n<td><code>pcuId</code> (required)</td>\n<td><code>true</code>  (boolean)</td>\n<td>Package unit</td>\n</tr>\n<tr>\n<td><code>vatType</code> (required)</td>\n<td><code>NO</code>  (string)</td>\n<td>VAT type</td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Parking</code>  (int)</td>\n<td>Name of package</td>\n</tr>\n<tr>\n<td><code>description</code> (optional)</td>\n<td><code>Large parking lot</code>  (string)</td>\n<td>Description of package</td>\n</tr>\n<tr>\n<td><code>nights</code> (optional)</td>\n<td><code>2</code>  (int)</td>\n<td>Number of nights</td>\n</tr>\n<tr>\n<td><code>order</code> (required)</td>\n<td><code>0</code>  (int)</td>\n<td>Order of package</td>\n</tr>\n<tr>\n<td><code>galId</code> (optional)</td>\n<td><code>256598</code>  (int)</td>\n<td>Gallery ID</td>\n</tr>\n<tr>\n<td><code>asCheckbox</code> (required)</td>\n<td><code>0</code>  (boolean)</td>\n<td>Package as checkbox</td>\n</tr>\n<tr>\n<td><code>segId</code> (optional)</td>\n<td><code>12</code>  (int)</td>\n<td>Segment ID</td>\n</tr>\n<tr>\n<td><code>pcgId</code> (optional)</td>\n<td><code>26</code>  (int)</td>\n<td>Reference ID to a group of packages</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["services","search"],"host":["{{previo_api_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"acf25cf5-d582-4d30-8926-e8cc323fe676","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/services/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 18 Mar 2021 13:23:05 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/7.3.27"},{"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":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"services\": [\n        {\n            \"pckId\": \"29590\",\n            \"hogId\": \"159896\",\n            \"pcuId\": \"1\",\n            \"vatType\": \"NO\",\n            \"name\": \"Praní a žehlení\",\n            \"description\": \"\",\n            \"nights\": null,\n            \"order\": \"0\",\n            \"galId\": null,\n            \"asCheckbox\": \"0\",\n            \"segId\": null,\n            \"pcgId\": null\n        },\n        {\n            \"pckId\": \"29347\",\n            \"hogId\": \"159896\",\n            \"pcuId\": \"3\",\n            \"vatType\": \"NO\",\n            \"name\": \"Hlídané parkoviště\",\n            \"description\": \"\",\n            \"nights\": null,\n            \"order\": \"0\",\n            \"galId\": null,\n            \"asCheckbox\": \"0\",\n            \"segId\": null,\n            \"pcgId\": null\n        }\n    ],\n    \"total\": 2\n}"}],"_postman_id":"b4d0f447-2c74-4601-b5ac-6fbc220e2e4a"},{"name":"packages/search","id":"71feb688-122f-4e21-886e-bcb90b71af39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"<p>The unique identifier for hotel</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":"<p> <a href=\"#language\">Language ID</a></p>\n"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/packages/search","description":"<p>Search for available stay packages.</p>\n<p>API Privilige needed: 'Hotel.getStayPackages'</p>\n<h1 id=\"response\">Response</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code> (required)</td>\n<td><code>true</code>  (boolean)</td>\n<td>Valid response</td>\n</tr>\n<tr>\n<td><code>packages</code> (required)</td>\n<td><code>[objects]</code>  (array objects)</td>\n<td>Stay packages</td>\n</tr>\n<tr>\n<td><code>total</code> (required)</td>\n<td><code>2</code>  (int)</td>\n<td>Number of stay packages</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"stay-package\">Stay package</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributes</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>styId</code> (required)</td>\n<td><code>7075</code>  (int)</td>\n<td>Stay package ID</td>\n</tr>\n<tr>\n<td><code>name</code> (required)</td>\n<td><code>Weekend party</code>  (string)</td>\n<td>Stay package name</td>\n</tr>\n<tr>\n<td><code>active</code> (required)</td>\n<td><code>true</code>  (boolean)</td>\n<td>If the package is active</td>\n</tr>\n<tr>\n<td><code>order</code> (required)</td>\n<td><code>1</code>  (int)</td>\n<td>Order of stay package</td>\n</tr>\n<tr>\n<td><code>description</code> (optional)</td>\n<td><code>party</code>  (string)</td>\n<td>Description of stay package</td>\n</tr>\n<tr>\n<td><code>lastEdited</code> (required)</td>\n<td><code>2020-12-08 12:28:10</code>  (string)</td>\n<td>Date of last edit</td>\n</tr>\n<tr>\n<td><code>lastEditedBy</code> (required)</td>\n<td><code>reception@previo.cz</code>  (string)</td>\n<td>Last edited by</td>\n</tr>\n<tr>\n<td><code>hasTerms</code> (required)</td>\n<td><code>0</code>  (boolean)</td>\n<td>Has term conditions</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}},"urlObject":{"path":["packages","search"],"host":["{{previo_api_url}}rest"],"query":[],"variable":[]}},"response":[{"id":"b198ee96-3235-4911-ad6a-2b6245fa8ca7","name":"200","originalRequest":{"method":"GET","header":[{"key":"X-Previo-Hotel-Id","value":"{{hotId}}","type":"text","description":"The unique identifier for hotel"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-Previo-Language-ID","value":"{{lanId}}","type":"text","description":" <a href=\"#language\">Language ID</a>"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Basic {login:password}","type":"text"}],"url":"{{previo_api_url}}rest/packages/search"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Mar 2021 00:21:45 GMT"},{"key":"Server","value":"Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16"},{"key":"X-Powered-By","value":"PHP/7.3.16"},{"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":"Content-Length","value":"619"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"packages\": [\n        {\n            \"styId\": 7075,\n            \"name\": \"Silvestrovské menu\",\n            \"active\": 1,\n            \"nights\": 1,\n            \"order\": 0,\n            \"description\": \"Menu na Silvestra\",\n            \"lastEdited\": \"2020-12-08 12:28:10\",\n            \"lastEditedBy\": \"reception@previo.cz\",\n            \"hasTerms\": 0\n        },\n        {\n            \"styId\": 7074,\n            \"name\": \"Společenský večer\",\n            \"active\": 1,\n            \"nights\": 2,\n            \"order\": 0,\n            \"description\": \"\",\n            \"lastEdited\": \"2019-12-10 10:04:38\",\n            \"lastEditedBy\": \"reception@previo.cz\",\n            \"hasTerms\": 0\n        }\n    ],\n    \"total\": 2\n}"}],"_postman_id":"71feb688-122f-4e21-886e-bcb90b71af39"}],"id":"52146d7f-a65e-43a1-8652-32a6dd579cff","_postman_id":"52146d7f-a65e-43a1-8652-32a6dd579cff","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":true,"source":{"_postman_id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","id":"2e8d6246-78a3-4015-b85a-98c3ed00eb01","name":"REST","type":"collection"}}}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]}},"event":[{"listen":"prerequest","script":{"id":"f1029997-1eff-4cc3-881a-f764ee7a7d57","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8bddcac4-568d-4a11-989b-60d6ae983aab","type":"text/javascript","exec":[""]}}],"variable":[{"key":"project","value":"rest"},{"key":"pass","value":"password"},{"key":"login","value":"login"}]}