Buyer API (Push)
...
New
Pre-Booking
1 min
{ "name" "pre booking", "method" "post", "url" "https //wsb bakuun com/v1/booking/mpbxx/668451", "description" "during the pre booking process, the partner must send the booking data without a reservation id, as the booking is not yet confirmed \nin response, we will generate and return a unique token code for that pre booking each token is valid for 2 minutes \n\nto confirm the booking, you must resend the same token code together with your reservation id \nif the token is missing, invalid, or expired, the reservation request will be rejected \n\nonce we receive the reservation data together with a valid token code, we will create the booking in our system and return a success response \n\nall pre bookings are initially created with the status “new ”", "tab" "examples", "examples" { "languages" \[ { "id" "nwqsuc0yyaxzpbxc7hsc4", "language" "json", "code" "{\n \\"username\\" \\"xxxxxx\\",\n \\"password\\" \\"xxxxxx\\",\n \\"partnerid\\" \\"mpbxx\\",\n \\"partnername\\" \\"may test slough\\",\n \\"action\\" \\"getbooking\\",\n \\"hotelreservation\\" \[\n {\n \\"hotelcode\\" \\"htlxxx\\",\n \\"hotelname\\" \\"novotel barossa valley resort\\",\n \\"resstatus\\" \\"new\\",\n \\"checkin\\" \\"yyyy mm ddthh\ mm\\",\n \\"checkout\\" \\"yyyy mm ddthh\ mm\\",\n \\"paymentmethod\\" \\"bank\\",\n \\"ratetype\\" \\"bar\\",\n \\"currencycode\\" \\"hkd\\",\n \\"totaladult\\" \\"3\\",\n \\"totalchild\\" \\"2\\",\n \\"child ages\\" \[1,2],\n \\"totalbaby\\" \\"1\\",\n \\"baby ages\\" \[1],\n \\"roomstays\\" \[\n {\n \\"roomtypeid\\" \\"rxxx x\\",\n \\"roomname\\" \\"deluxe double room with sea view\\",\n \\"roomtype\\" \\"daily room\\",\n \\"rateplanid\\" \\"rxxx x x\\",\n \\"cancelpolicy\\" \\"non refundable\\",\n \\"numberofunits\\" \\"1\\",\n \\"adultcount\\" \\"2\\",\n \\"childcount\\" \\"1\\",\n \\"child ages\\" \[1],\n \\"babycount\\" \\"1\\",\n \\"baby ages\\" \[1],\n \\"commission\\" \\"5 00\\",\n \\"roomindex\\" \\"1\\",\n \\"resguestrph\\" \\"1\\",\n \\"bookingperdayprices\\" \[\n {\n \\"dateymd\\" \\"yyyy mm dd\\",\n \\"price\\" \\"xxx xx\\"\n }\n ],\n \\"total\\" {\n \\"amountaftertaxes\\" \\"xxx xx\\",\n \\"amountbeforetaxes\\" \\"xxx xx\\"\n },\n \\"roomincservices\\" \[\n {\n \\"serviceid\\" \\"123\\",\n \\"incservicename\\" \\"servicename\\",\n \\"inclusion\\" \\"0\\",\n \\"priceextra\\" \\"500 30\\"\n }\n ]\n },\n {\n \\"roomtypeid\\" \\"rxxx x\\",\n \\"roomname\\" \\"deluxe double room with sea view\\",\n \\"roomtype\\" \\"daily room\\",\n \\"rateplanid\\" \\"rxxx x x\\",\n \\"cancelpolicy\\" \\"non refundable\\",\n \\"numberofunits\\" \\"1\\",\n \\"adultcount\\" \\"2\\",\n \\"childcount\\" \\"1\\",\n \\"child ages\\" \[2],\n \\"babycount\\" \\"0\\",\n \\"baby ages\\" \[],\n \\"commission\\" \\"5 00\\",\n \\"roomindex\\" \\"2\\",\n \\"resguestrph\\" \\"2\\",\n \\"bookingperdayprices\\" \[\n {\n \\"dateymd\\" \\"yyyy mm dd\\",\n \\"price\\" \\"xxx xx\\"\n }\n ],\n \\"total\\" {\n \\"amountaftertaxes\\" \\"xxx xx\\",\n \\"amountbeforetaxes\\" \\"xxx xx\\"\n },\n \\"roomincservices\\" \[\n {\n \\"serviceid\\" \\"123\\",\n \\"incservicename\\" \\"servicename\\",\n \\"inclusion\\" \\"0\\",\n \\"priceextra\\" \\"500 30\\"\n }\n ]\n }\n ],\n \\"guestdetails\\" \[\n {\n \\"resguestrph\\" \\"1\\",\n \\"firstname\\" \\"test\\",\n \\"lastname\\" \\"user\\",\n \\"middlename\\" \\"test\\",\n \\"email\\" \\"testuser\@bakuun com\\",\n \\"phone\\" \\"111111111\\",\n \\"address\\" \\"pune\\",\n \\"country\\" \\"india\\"\n },\n {\n \\"resguestrph\\" \\"2\\",\n \\"firstname\\" \\"test\\",\n \\"lastname\\" \\"userg\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"testusegr\@bakuun com\\",\n \\"phone\\" \\"111111111\\",\n \\"address\\" \\"pune\\",\n \\"country\\" \\"india\\"\n }\n ],\n \\"comment\\" {\n \\"text\\" \\"one room\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"ivanov ivan\\",\n \\"cardtype\\" \\"visa\\",\n \\"cardcategory\\" \\"cc\\",\n \\"cardnumber\\" \\"123213213216549687\\",\n \\"expirymonth\\" \\"04\\",\n \\"expiryyear\\" \\"2025\\",\n \\"startdaymonth\\" \\"01\\",\n \\"startdayyear\\" \\"2024\\",\n \\"issuenum\\" \\"2\\",\n \\"seriescode\\" \\"123\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" \[\n {\n \\"taxdetails\\" {\n \\"typetax\\" \\"vat\\",\n \\"includes\\" \\"0/1\\",\n \\"taxprice\\" \\"10 00\\",\n \\"taxdetails\\" \\"tax 10% not included\\"\n },\n \\"pricedetails\\" \[\n {\n \\"ratetype\\" \\"bar\\",\n \\"amountaftertaxes\\" \\"xxx xx\\",\n \\"amountbeforetaxes\\" \\"xxx xx\\"\n }\n ]\n }\n ]\n }\n ]\n}", "customlabel" "" }, { "id" "b wu f3dwgevnbx18 3nu", "language" "curl", "code" "curl location 'https //wsb bakuun com/v1/booking/mpbxx/668451' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"checkin\\" \\"\\",\n \\"checkout\\" \\"\\",\n \\"paymentmethod\\" \\"\\",\n \\"ratetype\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"totaladult\\" \\"\\",\n \\"totalchild\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"totalbaby\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"roomstays\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"roomtype\\" \\"\\",\n \\"rateplanid\\" \\"\\",\n \\"cancelpolicy\\" \\"\\",\n \\"numberofunits\\" \\"\\",\n \\"adultcount\\" \\"\\",\n \\"childcount\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"babycount\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"commission\\" \\"\\",\n \\"roomindex\\" \\"\\",\n \\"resguestrph\\" \\"\\",\n \\"bookingperdayprices\\" {\n \\"dateymd\\" \\"\\",\n \\"price\\" \\"\\"\n },\n \\"total\\" {\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n },\n \\"roomincservices\\" {}\n },\n \\"guestdetails\\" {\n \\"resguestrph\\" \\"\\",\n \\"firstname\\" \\"\\",\n \\"lastname\\" \\"\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"\\",\n \\"phone\\" \\"\\",\n \\"address\\" \\"\\",\n \\"country\\" \\"\\"\n },\n \\"comment\\" {\n \\"text\\" \\"\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"\\",\n \\"cardtype\\" \\"\\",\n \\"cardcategory\\" \\"\\",\n \\"cardnumber\\" \\"\\",\n \\"expirymonth\\" \\"\\",\n \\"expiryyear\\" \\"\\",\n \\"startdaymonth\\" \\"\\",\n \\"startdayyear\\" \\"\\",\n \\"issuenum\\" \\"\\",\n \\"seriescode\\" \\"\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" {\n \\"taxdetails\\" {\n \\"typetax\\" \\"\\",\n \\"includes\\" \\"\\",\n \\"taxprice\\" \\"\\",\n \\"taxdetails\\" \\"\\"\n },\n \\"pricedetails\\" {\n \\"ratetype\\" \\"\\",\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n }\n }\n }\n}'", "customlabel" "" }, { "id" "jakd ncp4pnb4xgxuuwcy", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v1/booking/mpbxx/668451',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"checkin\\" \\"\\",\n \\"checkout\\" \\"\\",\n \\"paymentmethod\\" \\"\\",\n \\"ratetype\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"totaladult\\" \\"\\",\n \\"totalchild\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"totalbaby\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"roomstays\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"roomtype\\" \\"\\",\n \\"rateplanid\\" \\"\\",\n \\"cancelpolicy\\" \\"\\",\n \\"numberofunits\\" \\"\\",\n \\"adultcount\\" \\"\\",\n \\"childcount\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"babycount\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"commission\\" \\"\\",\n \\"roomindex\\" \\"\\",\n \\"resguestrph\\" \\"\\",\n \\"bookingperdayprices\\" {\n \\"dateymd\\" \\"\\",\n \\"price\\" \\"\\"\n },\n \\"total\\" {\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n },\n \\"roomincservices\\" {}\n },\n \\"guestdetails\\" {\n \\"resguestrph\\" \\"\\",\n \\"firstname\\" \\"\\",\n \\"lastname\\" \\"\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"\\",\n \\"phone\\" \\"\\",\n \\"address\\" \\"\\",\n \\"country\\" \\"\\"\n },\n \\"comment\\" {\n \\"text\\" \\"\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"\\",\n \\"cardtype\\" \\"\\",\n \\"cardcategory\\" \\"\\",\n \\"cardnumber\\" \\"\\",\n \\"expirymonth\\" \\"\\",\n \\"expiryyear\\" \\"\\",\n \\"startdaymonth\\" \\"\\",\n \\"startdayyear\\" \\"\\",\n \\"issuenum\\" \\"\\",\n \\"seriescode\\" \\"\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" {\n \\"taxdetails\\" {\n \\"typetax\\" \\"\\",\n \\"includes\\" \\"\\",\n \\"taxprice\\" \\"\\",\n \\"taxdetails\\" \\"\\"\n },\n \\"pricedetails\\" {\n \\"ratetype\\" \\"\\",\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n }\n }\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "sjfutfk7e2tyzlsq9yzgf", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"checkin\\" \\"\\",\n \\"checkout\\" \\"\\",\n \\"paymentmethod\\" \\"\\",\n \\"ratetype\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"totaladult\\" \\"\\",\n \\"totalchild\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"totalbaby\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"roomstays\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"roomtype\\" \\"\\",\n \\"rateplanid\\" \\"\\",\n \\"cancelpolicy\\" \\"\\",\n \\"numberofunits\\" \\"\\",\n \\"adultcount\\" \\"\\",\n \\"childcount\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"babycount\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"commission\\" \\"\\",\n \\"roomindex\\" \\"\\",\n \\"resguestrph\\" \\"\\",\n \\"bookingperdayprices\\" {\n \\"dateymd\\" \\"\\",\n \\"price\\" \\"\\"\n },\n \\"total\\" {\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n },\n \\"roomincservices\\" {}\n },\n \\"guestdetails\\" {\n \\"resguestrph\\" \\"\\",\n \\"firstname\\" \\"\\",\n \\"lastname\\" \\"\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"\\",\n \\"phone\\" \\"\\",\n \\"address\\" \\"\\",\n \\"country\\" \\"\\"\n },\n \\"comment\\" {\n \\"text\\" \\"\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"\\",\n \\"cardtype\\" \\"\\",\n \\"cardcategory\\" \\"\\",\n \\"cardnumber\\" \\"\\",\n \\"expirymonth\\" \\"\\",\n \\"expiryyear\\" \\"\\",\n \\"startdaymonth\\" \\"\\",\n \\"startdayyear\\" \\"\\",\n \\"issuenum\\" \\"\\",\n \\"seriescode\\" \\"\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" {\n \\"taxdetails\\" {\n \\"typetax\\" \\"\\",\n \\"includes\\" \\"\\",\n \\"taxprice\\" \\"\\",\n \\"taxdetails\\" \\"\\"\n },\n \\"pricedetails\\" {\n \\"ratetype\\" \\"\\",\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n }\n }\n }\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //wsb bakuun com/v1/booking/mpbxx/668451\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "m1buz rjyosksucrh6xqt", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v1/booking/mpbxx/668451\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"checkin\\" \\"\\",\n \\"checkout\\" \\"\\",\n \\"paymentmethod\\" \\"\\",\n \\"ratetype\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"totaladult\\" \\"\\",\n \\"totalchild\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"totalbaby\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"roomstays\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"roomtype\\" \\"\\",\n \\"rateplanid\\" \\"\\",\n \\"cancelpolicy\\" \\"\\",\n \\"numberofunits\\" \\"\\",\n \\"adultcount\\" \\"\\",\n \\"childcount\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"babycount\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"commission\\" \\"\\",\n \\"roomindex\\" \\"\\",\n \\"resguestrph\\" \\"\\",\n \\"bookingperdayprices\\" {\n \\"dateymd\\" \\"\\",\n \\"price\\" \\"\\"\n },\n \\"total\\" {\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n },\n \\"roomincservices\\" {}\n },\n \\"guestdetails\\" {\n \\"resguestrph\\" \\"\\",\n \\"firstname\\" \\"\\",\n \\"lastname\\" \\"\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"\\",\n \\"phone\\" \\"\\",\n \\"address\\" \\"\\",\n \\"country\\" \\"\\"\n },\n \\"comment\\" {\n \\"text\\" \\"\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"\\",\n \\"cardtype\\" \\"\\",\n \\"cardcategory\\" \\"\\",\n \\"cardnumber\\" \\"\\",\n \\"expirymonth\\" \\"\\",\n \\"expiryyear\\" \\"\\",\n \\"startdaymonth\\" \\"\\",\n \\"startdayyear\\" \\"\\",\n \\"issuenum\\" \\"\\",\n \\"seriescode\\" \\"\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" {\n \\"taxdetails\\" {\n \\"typetax\\" \\"\\",\n \\"includes\\" \\"\\",\n \\"taxprice\\" \\"\\",\n \\"taxdetails\\" \\"\\"\n },\n \\"pricedetails\\" {\n \\"ratetype\\" \\"\\",\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n }\n }\n }\n})\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json'\n}\n\nresponse = requests request(\\"post\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "tnqh6b8wimjp1ylmxjvbg", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v1/booking/mpbxx/668451\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http post new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest body = json dump({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"checkin\\" \\"\\",\n \\"checkout\\" \\"\\",\n \\"paymentmethod\\" \\"\\",\n \\"ratetype\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"totaladult\\" \\"\\",\n \\"totalchild\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"totalbaby\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"roomstays\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"roomtype\\" \\"\\",\n \\"rateplanid\\" \\"\\",\n \\"cancelpolicy\\" \\"\\",\n \\"numberofunits\\" \\"\\",\n \\"adultcount\\" \\"\\",\n \\"childcount\\" \\"\\",\n \\"child ages\\" \\"\\",\n \\"babycount\\" \\"\\",\n \\"baby ages\\" \\"\\",\n \\"commission\\" \\"\\",\n \\"roomindex\\" \\"\\",\n \\"resguestrph\\" \\"\\",\n \\"bookingperdayprices\\" {\n \\"dateymd\\" \\"\\",\n \\"price\\" \\"\\"\n },\n \\"total\\" {\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n },\n \\"roomincservices\\" {}\n },\n \\"guestdetails\\" {\n \\"resguestrph\\" \\"\\",\n \\"firstname\\" \\"\\",\n \\"lastname\\" \\"\\",\n \\"middlename\\" \\"\\",\n \\"email\\" \\"\\",\n \\"phone\\" \\"\\",\n \\"address\\" \\"\\",\n \\"country\\" \\"\\"\n },\n \\"comment\\" {\n \\"text\\" \\"\\"\n },\n \\"paymentcard\\" {\n \\"cardholdername\\" \\"\\",\n \\"cardtype\\" \\"\\",\n \\"cardcategory\\" \\"\\",\n \\"cardnumber\\" \\"\\",\n \\"expirymonth\\" \\"\\",\n \\"expiryyear\\" \\"\\",\n \\"startdaymonth\\" \\"\\",\n \\"startdayyear\\" \\"\\",\n \\"issuenum\\" \\"\\",\n \\"seriescode\\" \\"\\",\n \\"vccbalance\\" \\"\\",\n \\"vcccurrencycode\\" \\"\\",\n \\"vccdeactivationdate\\" \\"\\",\n \\"vccactivationdate\\" \\"\\"\n },\n \\"totalcharge\\" {\n \\"taxdetails\\" {\n \\"typetax\\" \\"\\",\n \\"includes\\" \\"\\",\n \\"taxprice\\" \\"\\",\n \\"taxdetails\\" \\"\\"\n },\n \\"pricedetails\\" {\n \\"ratetype\\" \\"\\",\n \\"amountaftertaxes\\" \\"\\",\n \\"amountbeforetaxes\\" \\"\\"\n }\n }\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "nwqsuc0yyaxzpbxc7hsc4" }, "results" { "languages" \[ { "id" "38fznvoie bnlypuvjywh", "language" "200", "code" "{\n \\"success\\" true,\n \\"data\\" \[\n {\n \\"hotelid\\" \\"htl2283\\",\n \\"bookingtokencode\\" \\"btc20251010ymcwrmih1760072147\\"\n }\n ],\n \\"warnings\\" \[],\n \\"errors\\" \[]\n}", "customlabel" "" }, { "id" "13et4ryah9wuvy10huiqk", "language" "451", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 449,\n \\"message\\" \\"check in date exceeded\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "38fznvoie bnlypuvjywh" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, api access secret key (unique per account) ", "" "system generated, api access secret key (unique per account) " }, { "name" "password", "kind" "required", "type" "string", "description" "system generated, api access secret key (unique per account) ", "" "system generated, api access secret key (unique per account) " }, { "name" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) ", "" "partner (buyer) identifier (e g rdkxx mpbxxx) " }, { "name" "partnername", "kind" "required", "type" "string", "description" "partner (buyer) name", "" "partner (buyer) name" }, { "name" "action", "kind" "required", "type" "string", "description" "always set as getbooking", "" "always set as getbooking" }, { "name" "hotelreservation", "kind" "required", "type" "object", "description" "", "" "required", "children" \[ { "name" "hotelcode", "kind" "required", "type" "string", "description" "unique bakuun or partner property id " }, { "name" "hotelname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "resstatus", "kind" "required", "type" "string", "description" "always set as new" }, { "name" "checkin", "kind" "required", "type" "string", "description" "iso check in datetime (e g , 2025 10 05t15 00) " }, { "name" "checkout", "kind" "required", "type" "string", "description" "iso check out datetime (e g , 2025 10 05t15 00) " }, { "name" "paymentmethod", "kind" "required", "type" "string", "description" "available payment method \nvcc, cc, bank, cash, credit" }, { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net" }, { "name" "currencycode", "kind" "required", "type" "string", "description" "booking currency (iso 4217) " }, { "name" "totaladult", "kind" "required", "type" "string", "description" "total adults across all rooms " }, { "name" "totalchild", "kind" "required", "type" "string", "description" "total children across all rooms " }, { "name" "child ages", "kind" "required", "type" "array", "description" "ages of all children " }, { "name" "totalbaby", "kind" "required", "type" "string", "description" "total infant across all rooms " }, { "name" "baby ages", "kind" "required", "type" "array", "description" "ages of all infant " }, { "name" "roomstays", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "roomtypeid", "kind" "required", "type" "string", "description" "bakuun / partner room id " }, { "name" "roomname", "kind" "required", "type" "string", "description" "room name" }, { "name" "roomtype", "kind" "required", "type" "string", "description" "dailyroom would be the used default category " }, { "name" "rateplanid", "kind" "required", "type" "string", "description" "bakuun / partner rate plan id " }, { "name" "cancelpolicy", "kind" "required", "type" "string", "description" "defines the cancellation policy associated with the selected rateplanid \nsupported options are \n\nrefundable\nnon refundable" }, { "name" "numberofunits", "kind" "required", "type" "string", "description" "number of units booked 1 would be the allowed min/maxvalue" }, { "name" "adultcount", "kind" "required", "type" "string", "description" "number of adults in this room " }, { "name" "childcount", "kind" "required", "type" "string", "description" "number of child in this room " }, { "name" "child ages", "kind" "required", "type" "array", "description" "ages of children " }, { "name" "babycount", "kind" "required", "type" "string", "description" "number of infant in this room " }, { "name" "baby ages", "kind" "required", "type" "array", "description" "ages of infant " }, { "name" "commission", "kind" "required", "type" "string", "description" "commission value accepted between 0 and 99, or left empty if not applicable " }, { "name" "roomindex", "kind" "required", "type" "string", "description" "room index reference " }, { "name" "resguestrph", "kind" "required", "type" "string", "description" "guest index reference " }, { "name" "bookingperdayprices", "kind" "required", "type" "object", "description" "date wise price list for the stay ", "children" \[ { "name" "dateymd", "kind" "required", "type" "string", "description" "iso date (e g , 2025 10 25) " }, { "name" "price", "kind" "required", "type" "string", "description" "date wise price " } ] }, { "name" "total", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "amountaftertaxes", "kind" "required", "type" "string", "description" "total amount for the room stay after taxes and fees " }, { "name" "amountbeforetaxes", "kind" "required", "type" "string", "description" "total amount for the room stay before taxes and fees " } ] }, { "name" "roomincservices", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "parameter name", "kind" "optional", "type" "string", "description" "" } ] } ] }, { "name" "guestdetails", "kind" "required", "type" "object", "description" "standard guest contact information ", "children" \[ { "name" "resguestrph", "kind" "required", "type" "string", "description" "guest index reference " }, { "name" "firstname", "kind" "required", "type" "string", "description" "guest first name " }, { "name" "lastname", "kind" "required", "type" "string", "description" "guest surname " }, { "name" "middlename", "kind" "required", "type" "string", "description" "optional" }, { "name" "email", "kind" "required", "type" "string", "description" "guest email " }, { "name" "phone", "kind" "required", "type" "string", "description" "guest phone number " }, { "name" "address", "kind" "required", "type" "string", "description" "guest address " }, { "name" "country", "kind" "required", "type" "string", "description" "guest country " } ] }, { "name" "comment", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "text", "kind" "required", "type" "string", "description" "" } ] }, { "name" "paymentcard", "kind" "required", "type" "object", "description" "required only when paymentmethod = cc or vcc ", "children" \[ { "name" "cardholdername", "kind" "required", "type" "string", "description" "name on card " }, { "name" "cardtype", "kind" "required", "type" "string", "description" "visa/mastercard/etc " }, { "name" "cardcategory", "kind" "required", "type" "string", "description" "cc or vcc " }, { "name" "cardnumber", "kind" "required", "type" "string", "description" "valid card number" }, { "name" "expirymonth", "kind" "required", "type" "string", "description" "expiry mm " }, { "name" "expiryyear", "kind" "required", "type" "string", "description" "expiry yyyy " }, { "name" "startdaymonth", "kind" "required", "type" "string", "description" "start day month mm \nthis is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "startdayyear", "kind" "required", "type" "string", "description" "start day year yyyy \nthis is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "issuenum", "kind" "required", "type" "string", "description" "this is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "seriescode", "kind" "required", "type" "string", "description" "this is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "vccbalance", "kind" "required", "type" "string", "description" "vcc current balance" }, { "name" "vcccurrencycode", "kind" "required", "type" "string", "description" "vcc currency (iso 4217) " }, { "name" "vccdeactivationdate", "kind" "required", "type" "string", "description" "deactivation date " }, { "name" "vccactivationdate", "kind" "required", "type" "string", "description" "activation date " } ] }, { "name" "totalcharge", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxdetails", "kind" "required", "type" "object", "description" "the type of tax applied to the booking (e g , vat, city tax, service tax) ", "children" \[ { "name" "typetax", "kind" "required", "type" "string", "description" "the type of tax applied to the booking (e g , vat, fees) " }, { "name" "includes", "kind" "required", "type" "string", "description" "indicates whether the tax amount is included in the room price \n\n1 = tax is included in the price\n0 = tax is not included (added on top)" }, { "name" "taxprice", "kind" "required", "type" "string", "description" "the value of the tax \ncan represent either a percentage or a fixed amount, depending on the property setup " }, { "name" "taxdetails", "kind" "required", "type" "string", "description" "description of the tax applied to the booking (e g , “tax 10% not included”) " } ] }, { "name" "pricedetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net", "children" \[] }, { "name" "amountaftertaxes", "kind" "required", "type" "string", "description" "" }, { "name" "amountbeforetaxes", "kind" "required", "type" "string", "description" "" } ] } ] } ], "schema" \[ { "name" "hotelcode", "kind" "required", "type" "string", "description" "unique bakuun or partner property id " }, { "name" "hotelname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "resstatus", "kind" "required", "type" "string", "description" "always set as new" }, { "name" "checkin", "kind" "required", "type" "string", "description" "iso check in datetime (e g , 2025 10 05t15 00) " }, { "name" "checkout", "kind" "required", "type" "string", "description" "iso check out datetime (e g , 2025 10 05t15 00) " }, { "name" "paymentmethod", "kind" "required", "type" "string", "description" "available payment method \nvcc, cc, bank, cash, credit" }, { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net" }, { "name" "currencycode", "kind" "required", "type" "string", "description" "booking currency (iso 4217) " }, { "name" "totaladult", "kind" "required", "type" "string", "description" "total adults across all rooms " }, { "name" "totalchild", "kind" "required", "type" "string", "description" "total children across all rooms " }, { "name" "child ages", "kind" "required", "type" "array", "description" "ages of all children " }, { "name" "totalbaby", "kind" "required", "type" "string", "description" "total infant across all rooms " }, { "name" "baby ages", "kind" "required", "type" "array", "description" "ages of all infant " }, { "name" "roomstays", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "roomtypeid", "kind" "required", "type" "string", "description" "bakuun / partner room id " }, { "name" "roomname", "kind" "required", "type" "string", "description" "room name" }, { "name" "roomtype", "kind" "required", "type" "string", "description" "dailyroom would be the used default category " }, { "name" "rateplanid", "kind" "required", "type" "string", "description" "bakuun / partner rate plan id " }, { "name" "cancelpolicy", "kind" "required", "type" "string", "description" "defines the cancellation policy associated with the selected rateplanid \nsupported options are \n\nrefundable\nnon refundable" }, { "name" "numberofunits", "kind" "required", "type" "string", "description" "number of units booked 1 would be the allowed min/maxvalue" }, { "name" "adultcount", "kind" "required", "type" "string", "description" "number of adults in this room " }, { "name" "childcount", "kind" "required", "type" "string", "description" "number of child in this room " }, { "name" "child ages", "kind" "required", "type" "array", "description" "ages of children " }, { "name" "babycount", "kind" "required", "type" "string", "description" "number of infant in this room " }, { "name" "baby ages", "kind" "required", "type" "array", "description" "ages of infant " }, { "name" "commission", "kind" "required", "type" "string", "description" "commission value accepted between 0 and 99, or left empty if not applicable " }, { "name" "roomindex", "kind" "required", "type" "string", "description" "room index reference " }, { "name" "resguestrph", "kind" "required", "type" "string", "description" "guest index reference " }, { "name" "bookingperdayprices", "kind" "required", "type" "object", "description" "date wise price list for the stay ", "children" \[ { "name" "dateymd", "kind" "required", "type" "string", "description" "iso date (e g , 2025 10 25) " }, { "name" "price", "kind" "required", "type" "string", "description" "date wise price " } ] }, { "name" "total", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "amountaftertaxes", "kind" "required", "type" "string", "description" "total amount for the room stay after taxes and fees " }, { "name" "amountbeforetaxes", "kind" "required", "type" "string", "description" "total amount for the room stay before taxes and fees " } ] }, { "name" "roomincservices", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "parameter name", "kind" "optional", "type" "string", "description" "" } ] } ] }, { "name" "guestdetails", "kind" "required", "type" "object", "description" "standard guest contact information ", "children" \[ { "name" "resguestrph", "kind" "required", "type" "string", "description" "guest index reference " }, { "name" "firstname", "kind" "required", "type" "string", "description" "guest first name " }, { "name" "lastname", "kind" "required", "type" "string", "description" "guest surname " }, { "name" "middlename", "kind" "required", "type" "string", "description" "optional" }, { "name" "email", "kind" "required", "type" "string", "description" "guest email " }, { "name" "phone", "kind" "required", "type" "string", "description" "guest phone number " }, { "name" "address", "kind" "required", "type" "string", "description" "guest address " }, { "name" "country", "kind" "required", "type" "string", "description" "guest country " } ] }, { "name" "comment", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "text", "kind" "required", "type" "string", "description" "" } ] }, { "name" "paymentcard", "kind" "required", "type" "object", "description" "required only when paymentmethod = cc or vcc ", "children" \[ { "name" "cardholdername", "kind" "required", "type" "string", "description" "name on card " }, { "name" "cardtype", "kind" "required", "type" "string", "description" "visa/mastercard/etc " }, { "name" "cardcategory", "kind" "required", "type" "string", "description" "cc or vcc " }, { "name" "cardnumber", "kind" "required", "type" "string", "description" "valid card number" }, { "name" "expirymonth", "kind" "required", "type" "string", "description" "expiry mm " }, { "name" "expiryyear", "kind" "required", "type" "string", "description" "expiry yyyy " }, { "name" "startdaymonth", "kind" "required", "type" "string", "description" "start day month mm \nthis is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "startdayyear", "kind" "required", "type" "string", "description" "start day year yyyy \nthis is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "issuenum", "kind" "required", "type" "string", "description" "this is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "seriescode", "kind" "required", "type" "string", "description" "this is only needed for card different from visa, mastercard, amex, unionpay, jcb" }, { "name" "vccbalance", "kind" "required", "type" "string", "description" "vcc current balance" }, { "name" "vcccurrencycode", "kind" "required", "type" "string", "description" "vcc currency (iso 4217) " }, { "name" "vccdeactivationdate", "kind" "required", "type" "string", "description" "deactivation date " }, { "name" "vccactivationdate", "kind" "required", "type" "string", "description" "activation date " } ] }, { "name" "totalcharge", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxdetails", "kind" "required", "type" "object", "description" "the type of tax applied to the booking (e g , vat, city tax, service tax) ", "children" \[ { "name" "typetax", "kind" "required", "type" "string", "description" "the type of tax applied to the booking (e g , vat, fees) " }, { "name" "includes", "kind" "required", "type" "string", "description" "indicates whether the tax amount is included in the room price \n\n1 = tax is included in the price\n0 = tax is not included (added on top)" }, { "name" "taxprice", "kind" "required", "type" "string", "description" "the value of the tax \ncan represent either a percentage or a fixed amount, depending on the property setup " }, { "name" "taxdetails", "kind" "required", "type" "string", "description" "description of the tax applied to the booking (e g , “tax 10% not included”) " } ] }, { "name" "pricedetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net", "children" \[] }, { "name" "amountaftertaxes", "kind" "required", "type" "string", "description" "" }, { "name" "amountbeforetaxes", "kind" "required", "type" "string", "description" "" } ] } ] } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "" }, { "name" "data", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "hotelid", "kind" "optional", "type" "string", "description" "" }, { "name" "bookingtokencode", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "warnings", "kind" "optional", "type" "array", "description" "", "children" \[] }, { "name" "errors", "kind" "optional", "type" "array", "description" "", "children" \[] } ] }

