{"info":{"_postman_id":"6bd2bbf8-1f41-4aa8-b942-2e0a3b2e1492","name":"CBS V1.0.0 ","description":"# Introduction \nLamasoo API for OTAs to connect to. The API gets called upon creating a reservation.\n\n# Overview\nthere are 2 endpoints named `Booking Submit` and `Booking Confirm` to make reservations and also another method to get any hotels static data.\n\n# Authentication \nA token would be given to you and you must send it in each requests's header.\n\n# Errors \n- **1xx**: Info\n- **2xx**: Successfull\n- **4xx**: Client error\n- **5xx**: Server error","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Static","item":[{"name":"Hotel Inventory","id":"06e24004-4473-4cbf-a2fa-51e858ed9ef8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/hotel_inventory"},"response":[],"_postman_id":"06e24004-4473-4cbf-a2fa-51e858ed9ef8"},{"name":"Hotels","id":"c880cf3e-9472-4a1f-b7c1-a3ddb31de830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/hotels","description":"you can call this method to get all hotels and rooms and detail about hotels."},"response":[{"id":"e22492ee-673b-4ee5-87a0-5fe613e63702","name":"Hotels","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"[your API key]"}],"url":"{{URL}}/booking/hotel_inventory"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c880cf3e-9472-4a1f-b7c1-a3ddb31de830"},{"name":"Api Configuration","id":"a09b4b6e-3894-40c3-a34c-281037c2712c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/config"},"response":[],"_postman_id":"a09b4b6e-3894-40c3-a34c-281037c2712c"},{"name":"Amenities","id":"2821cea9-fd13-4ef2-bdb9-637e182e326d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/amenities"},"response":[],"_postman_id":"2821cea9-fd13-4ef2-bdb9-637e182e326d"},{"name":"Cities","id":"5602d72d-2a50-47dd-bd0b-ec4b97a388ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/cities"},"response":[],"_postman_id":"5602d72d-2a50-47dd-bd0b-ec4b97a388ac"},{"name":"Payment Methods","id":"0cb668e3-f8a2-4c8a-9702-3ef66973974b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/payment_methods"},"response":[],"_postman_id":"0cb668e3-f8a2-4c8a-9702-3ef66973974b"},{"name":"Booking Cancel Policy","id":"0ec800e8-c3c8-478b-83f0-87de242fa0a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"url":"{{apiURL}}/booking/booking_cancel_policy"},"response":[],"_postman_id":"0ec800e8-c3c8-478b-83f0-87de242fa0a5"}],"id":"3ac47ff0-3c40-477b-820e-67856432eca1","event":[{"listen":"prerequest","script":{"id":"e5613324-e704-42f9-8ccf-cabd1a03781f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"79c4b045-f0a1-4315-b66a-68ee73b0ccb8","type":"text/javascript","exec":[""]}}],"_postman_id":"3ac47ff0-3c40-477b-820e-67856432eca1"},{"name":"Availablity","item":[{"name":"Hotel Availability","id":"8ce567f2-7974-4686-9e4f-713830fbe8e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n \"api_version\": 0,\n \"hotel_ids\": [\"588ba84dccf0439c6ec45076\"],\n \"start_date\": \"2018-03-27\",\n \"end_date\": \"2018-03-28\",\n \"lang\": \"fa_IR\",\n \"currency\": \"IRR\",\n \"user_country\": \"IR\"\n}"},"url":"{{apiURL}}/booking/hotel_availability"},"response":[],"_postman_id":"8ce567f2-7974-4686-9e4f-713830fbe8e6"},{"name":"Hotel Availability by City","id":"25be3b3a-a7c2-4ce8-8336-60a41b90de9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n \"api_version\": 0,\n \"hotel_ids\": [],\n \"city_id\": \"588ba84dccf0439c6ec45076\",\n \"start_date\": \"2018-03-27\",\n \"end_date\": \"2018-03-28\",\n \"lang\": \"fa_IR\",\n \"currency\": \"IRR\",\n \"user_country\": \"IR\"\n}"},"url":"{{apiURL}}/booking/hotel_availability"},"response":[],"_postman_id":"25be3b3a-a7c2-4ce8-8336-60a41b90de9e"},{"name":"Booking Availability","id":"08391631-1d24-4f85-816e-95487b78bc62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n \"api_version\": 0,\n \"hotel_id\": \"59522d6a40af1affcd33b329\",\n \"start_date\": \"2018-12-30\",\n \"end_date\": \"2018-12-31\",\n \"lang\": \"fa_IR\",\n \"currency\": \"IRR\",\n \"user_country\": \"IR\"\n}"},"url":"{{apiURL}}/booking/booking_availability"},"response":[],"_postman_id":"08391631-1d24-4f85-816e-95487b78bc62"},{"name":"Booking Availability by Party","id":"204d831e-d64e-4de3-b9df-dd7076d596ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n \"api_version\": 0,\n \"hotel_id\": \"588ba84dccf0439c6ec45076\",\n \"start_date\": \"2018-03-27\",\n \"end_date\": \"2018-03-28\",\n \"rooms\": [{\n    \"adults\": \"2\",\n    \"children\": \"1\"\n  }, {\n    \"adults\": \"3\",\n    \"children\": \"1\"\n  }],\n \"lang\": \"fa_IR\",\n \"currency\": \"IRR\",\n \"user_country\": \"IR\"\n}"},"url":"{{apiURL}}/booking/booking_availability"},"response":[],"_postman_id":"204d831e-d64e-4de3-b9df-dd7076d596ec"}],"id":"54668863-6987-437a-84f8-86c5fc50bcbe","event":[{"listen":"prerequest","script":{"id":"37682142-9a56-4be2-93b9-3ef164520390","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8599a46e-0d77-4cb5-8e30-598fc9706b2d","type":"text/javascript","exec":[""]}}],"_postman_id":"54668863-6987-437a-84f8-86c5fc50bcbe"},{"name":"Booking","item":[{"name":"Booking Submit","id":"6abd109b-4820-40e1-bb2d-c956790f77c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"checkin_date\" : \"2018-03-27\",\n  \"checkout_date\": \"2018-03-28\",\n  \"hotel_id\": \"588ba84dccf0439c6ec45076\",\n  \"reference_id\": \"3902133092\",\n  \"customer\" : {\n    \"first_name\": \"TestName\",\n    \"last_name\": \"TestFamily\",\n    \"national_code\": \"0123456789\",\n    \"phone_number\": \"09121234567\",\n    \"country\": \"IR\"\n  },\n  \"rooms\": [\n    {\n      \"type_id\": \"588baba0a748fda49cae0934\",\n      \"count\" : \"1\",\n      \"party\": {\n        \"adults\": \"2\",\n        \"children\": []\n      }\n    }\n  ],\n  \"rate_plan_id\": \"1721\"\n}"},"url":"{{apiURL}}/booking/booking_submit/","description":"you can call this method to lock one/more rooms of a hotel for 15 minutes\n\n|parameter|type|description|\n|-----------------|------|------------------------------|\n|**checkin_date** |date  |start date of reserve         |\n|**checkout_date**|date  |end date of reserve           |\n|**hotel_id**     |string|hotel id of selected hotel    |\n|**reference_id** |string|a uniq number that on each request should be greater than befor (you can leave it blank or fill it with your system  reservation number)  |\n|**customer**     |object| customer informations like name and familiy |\n|**rooms**        |array |array of rooms requested for resreve|\n|**type_id**      |string|roomtype id of your selected room |\n|**party**        |object|party in this room adults and clilds|\n|**adults**|number|number of adults person in room |\n|**children**|numberArray|array of childrens age  eg. [3,7]|\n|**rate_plan_id**|string|rateplan id wich you want to reserve|"},"response":[],"_postman_id":"6abd109b-4820-40e1-bb2d-c956790f77c4"},{"name":"Booking Confirm","id":"df59e8dc-85a6-44b9-b6e3-644d3eb902a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"hotel_id\": \"588ba84dccf0439c6ec45076\",\n  \"reference_id\": \"3902133092\"\n}"},"url":"{{apiURL}}/booking/booking_confirm","description":"you can confirm your reservation with this method \nyou should send referenceNumber to specify your reserve"},"response":[],"_postman_id":"df59e8dc-85a6-44b9-b6e3-644d3eb902a7"},{"name":"Booking Verify","id":"2d8b7177-aaf8-4709-9456-5aae090a0db1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"hotel_id\": \"5b951ed9deb78f79563d84ad\",\n  \"reference_id\": \"3902133092\"\n}"},"url":"{{apiURL}}/booking/booking_verify"},"response":[],"_postman_id":"2d8b7177-aaf8-4709-9456-5aae090a0db1"},{"name":"Booking Cancel","id":"5a9f5ad6-349d-4505-af96-f4be286ae5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{apiKey}}"}],"body":{"mode":"raw","raw":"{\n  \"hotel_id\": \"5b951ed9deb78f79563d84ad\",\n  \"reference_id\": \"3902133092\"\n}"},"url":"{{apiURL}}/booking/booking_cancel"},"response":[],"_postman_id":"5a9f5ad6-349d-4505-af96-f4be286ae5da"}],"id":"8177d6ac-9fa4-4364-891d-c3153c4407b2","_postman_id":"8177d6ac-9fa4-4364-891d-c3153c4407b2"}],"event":[{"listen":"prerequest","script":{"id":"fda8a14d-47f6-4b91-bc59-dae11df5cbb2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4b13ded7-edc6-4103-8b14-6b39f0bdcd40","type":"text/javascript","exec":[""]}}]}