Buyer API (Push)
...
Rates Update
Occupancy Based Rates - Extra Adults
1 min
{ "name" "update rates", "method" "post", "url" "https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "f6dfmy8yp37hbzlk13k1v", "language" "json", "code" "{\n \\"password\\" \\"xxxxx\\",\n \\"username\\" \\"xxxxx\\",\n \\"hotelid\\" \\"htlx x\\",\n \\"startdateymd\\" \\"yyyy mm dd\\",\n \\"enddateymd\\" \\"yyyy mm dd\\",\n \\"action\\" \\"occpriceupdate\\",\n \\"dailyrates\\" \[\n {\n \\"roomcode\\" \\"rx x x\\",\n \\"condcode\\" \\"rx x x x\\",\n \\"ratediscount\\" \\"20 5\\",\n \\"ratemodel\\" \\"obp\\",\n \\"cancelpolicy\\" \\"24 days or charge 80% of 6 nights stay / day of arrival (18 00) or charge 90% of the first night\\",\n \\"currencycode\\" \\"eur\\",\n \\"pricedetails\\" \[\n {\n \\"ratetype\\" \\"bar\\",\n \\"amountbeforetax\\" \\"100 00\\",\n \\"amountaftertax\\" \\"100 00\\",\n \\"occupancy\\" {\n \\"adultcount\\" 3,\n \\"additionaladultcount\\" \[\n {\n \\"count\\" 1,\n \\"countoption\\" \\"or\\"\n }\n ],\n \\"childcount\\" \[\n {\n \\"count\\" 1,\n \\"countoption\\" \\"and\\",\n \\"minage\\" \\"3\\",\n \\"maxage\\" \\"8\\",\n \\"costdetails\\" {\n \\"unit\\" \\"currency\\",\n \\"amountbeforetax\\" \\"100 00\\",\n \\"amountaftertax\\" \\"100 00\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"5\\",\n \\"included\\" \\"0\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"10\\",\n \\"included\\" \\"0\\"\n }\n }\n }\n }\n ],\n \\"infantcount\\" {\n \\"count\\" 1,\n \\"countoption\\" \\"and\\",\n \\"minage\\" \\"0\\",\n \\"maxage\\" \\"4\\",\n \\"costdetails\\" {\n \\"unit\\" \\"currency\\",\n \\"amountbeforetax\\" \\"100 00\\",\n \\"amountaftertax\\" \\"100 00\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"5\\",\n \\"included\\" \\"0\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"10\\",\n \\"included\\" \\"0\\"\n }\n }\n }\n }\n },\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"10\\",\n \\"included\\" \\"0\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"per night\\",\n \\"feevalue\\" 10,\n \\"included\\" 1\n },\n \\"offers\\" {\n \\"offertype\\" \\"sales\\",\n \\"offervalue\\" \\"10\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"vat\\",\n \\"taxvalue\\" \\"10\\",\n \\"included\\" \\"0\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"per night\\",\n \\"feevalue\\" \\"10\\",\n \\"included\\" \\"1\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"sales\\",\n \\"offervalue\\" \\"10\\"\n }\n }\n }\n }\n ]\n }\n ]\n}", "customlabel" "" }, { "id" "hkfvpchtcz khiwv2mukq", "language" "curl", "code" "curl location 'https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"hotelid\\" \\"string\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"dailyrates\\" {\n \\"roomcode\\" \\"\\",\n \\"condcode\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"pricedetails\\" {\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"occupancy\\" {\n \\"adultcount\\" \\"\\",\n \\"additionaladultcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"childcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"infantcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n }\n },\n \\"ratetype\\" \\"\\",\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n }\n }\n },\n \\"ratediscount\\" \\"\\",\n \\"ratemodel\\" \\"\\",\n \\"cancelpolicy\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "kcckxp6srat2beu3rdolk", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"hotelid\\" \\"string\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"dailyrates\\" {\n \\"roomcode\\" \\"\\",\n \\"condcode\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"pricedetails\\" {\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"occupancy\\" {\n \\"adultcount\\" \\"\\",\n \\"additionaladultcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"childcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"infantcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n }\n },\n \\"ratetype\\" \\"\\",\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n }\n }\n },\n \\"ratediscount\\" \\"\\",\n \\"ratemodel\\" \\"\\",\n \\"cancelpolicy\\" \\"\\"\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" "pp9ehv1y9k8ro9frmpjg ", "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 \\"hotelid\\" \\"string\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"dailyrates\\" {\n \\"roomcode\\" \\"\\",\n \\"condcode\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"pricedetails\\" {\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"occupancy\\" {\n \\"adultcount\\" \\"\\",\n \\"additionaladultcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"childcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"infantcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n }\n },\n \\"ratetype\\" \\"\\",\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n }\n }\n },\n \\"ratediscount\\" \\"\\",\n \\"ratemodel\\" \\"\\",\n \\"cancelpolicy\\" \\"\\"\n }\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "yxw58s5l76twmi2il kxh", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"hotelid\\" \\"string\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"dailyrates\\" {\n \\"roomcode\\" \\"\\",\n \\"condcode\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"pricedetails\\" {\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"occupancy\\" {\n \\"adultcount\\" \\"\\",\n \\"additionaladultcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"childcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"infantcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n }\n },\n \\"ratetype\\" \\"\\",\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n }\n }\n },\n \\"ratediscount\\" \\"\\",\n \\"ratemodel\\" \\"\\",\n \\"cancelpolicy\\" \\"\\"\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" "kn1leytciwi8tpbcp2jn3", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api bakuun com/ratedockapi/agent/updateoccuraterq (copy)\\")\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 \\"hotelid\\" \\"string\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"dailyrates\\" {\n \\"roomcode\\" \\"\\",\n \\"condcode\\" \\"\\",\n \\"currencycode\\" \\"\\",\n \\"pricedetails\\" {\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"occupancy\\" {\n \\"adultcount\\" \\"\\",\n \\"additionaladultcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"childcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n },\n \\"infantcount\\" {\n \\"count\\" \\"\\",\n \\"countoption\\" \\"\\",\n \\"minage\\" \\"\\",\n \\"maxage\\" \\"\\",\n \\"costdetails\\" {\n \\"unit\\" \\"\\",\n \\"amountbeforetax\\" \\"\\",\n \\"amountaftertax\\" \\"\\",\n \\"taxdetails\\" {\n \\"before\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"after\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n }\n }\n }\n }\n },\n \\"ratetype\\" \\"\\",\n \\"taxfeedetails\\" {\n \\"before\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n },\n \\"after\\" {\n \\"tax\\" {\n \\"taxtype\\" \\"\\",\n \\"taxvalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"fees\\" {\n \\"feetype\\" \\"\\",\n \\"feevalue\\" \\"\\",\n \\"included\\" \\"\\"\n },\n \\"offers\\" {\n \\"offertype\\" \\"\\",\n \\"offervalue\\" \\"\\"\n }\n }\n }\n },\n \\"ratediscount\\" \\"\\",\n \\"ratemodel\\" \\"\\",\n \\"cancelpolicy\\" \\"\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "f6dfmy8yp37hbzlk13k1v" }, "results" { "languages" \[ { "id" "nk06oapm sjchzgv2zyly", "language" "200", "code" "{ \n\\"success\\" true \n}", "customlabel" "" }, { "id" "xp3tweagik5ayk9jvhgru", "language" "402", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 402,\n \\"message\\" \\"invalid parameter\\"\n }\n ],\n \\"trackingid\\" \\"xxxx\\"\n }", "customlabel" "" }, { "id" "lav04x ysdgm3 ssnghc7", "language" "404", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 404,\n \\"message\\" \\"invalid start date\\"\n }\n ]\n }", "customlabel" "" }, { "id" "mxok8k nubsnplj22ktle", "language" "405", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 405,\n \\"message\\" \\"invalid end date\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n }", "customlabel" "" }, { "id" "wceyfpr rexmcv0yiags", "language" "408", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 408,\n \\"message\\" \\"processing error\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n }", "customlabel" "" }, { "id" "o47uhre8zesuhyi5rlvcl", "language" "415", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"invalid authentication key\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "by6marnhie6 kzgkelkbs", "language" "416", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 416,\n \\"message\\" \\"overlapping data range\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "hf6djkv kvqkoot ujkbj", "language" "417", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 440,\n \\"message\\" \\"invalid source id\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "4fpcqzpn0hx0rp1xgndmo", "language" "418", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 442,\n \\"message\\" \\"endpoint is not active\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "tmhcxf0m9aw57yulhuuaj", "language" "421", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 446,\n \\"message\\" \\"invalid property mapping\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "zw9yu5duevvqhh7n3gvgs", "language" "422", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 451,\n \\"message\\" \\"invalid room mapping\\"\n }\n ],\n \\"trackingid\\" \\"xxxx\\"\n}", "customlabel" "" }, { "id" "8dtaz7mwe3 eigkdxsvcu", "language" "423", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 453,\n \\"message\\" \\"mapping is not active\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "mb14rod0libv6sv9fwfzc", "language" "424", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"invalid endpoint\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "bf1hdhbf0yoxks1xjd6bv", "language" "425", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 471,\n \\"message\\" \\"channel id blocked\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "8vicnrikr8kwhnvfylnm ", "language" "426", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 453,\n \\"message\\" \\"mapping is not active\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "2p841kkn9bojgc9xdo1hj", "language" "428", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"invalid endpoint\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "rezbdorah7pxzff6o42z7", "language" "429", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 452,\n \\"message\\" \\"invalid rate plan mapping\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "zcwpkcoai2gcs lmjv5yy", "language" "500", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 500,\n \\"message\\" \\"internal server error\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "em kpv2ozfn8mco7 f1sv", "language" "502", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 502,\n \\"message\\" \\"bad gateway\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "zzze2j6y7yzdula qc4od", "language" "503", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 503,\n \\"message\\" \\"service unavailable\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" }, { "id" "b4wrfm8k9w0kuyctvgtou", "language" "504", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 504,\n \\"message\\" \\"endpoint request timed out\\"\n }\n ],\n \\"trackingid\\" \\"68c168dd04829387650a476d\\"\n}", "customlabel" "" } ], "selectedlanguageid" "nk06oapm sjchzgv2zyly" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "username", "kind" "required", "type" "string", "description" "api username provided by the partner to authenticate incoming pushes from bakuun ", "" "api username provided by the partner to authenticate incoming pushes from bakuun " }, { "name" "password", "kind" "required", "type" "string", "description" "api password provided by the partner to authenticate incoming requests from bakuun ", "" "api password provided by the partner to authenticate incoming requests from bakuun " }, { "name" "hotelid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the partner) ", "" "unique property identifier (shared mapping between bakuun and the partner) " }, { "name" "startdateymd", "kind" "required", "type" "string", "description" "start date of the update range, formatted as yyyy mm dd ", "" "start date of the update range, formatted as yyyy mm dd " }, { "name" "enddateymd", "kind" "required", "type" "string", "description" "end date of the update range, formatted as yyyy mm dd ", "" "end date of the update range, formatted as yyyy mm dd " }, { "name" "action", "kind" "required", "type" "string", "description" "always set as occpriceupdate", "" "always set as occpriceupdate" }, { "name" "dailyrates", "kind" "required", "type" "object", "description" "", "" "dailyrates", "children" \[ { "name" "roomcode", "kind" "required", "type" "string", "description" "code identifying the room code as per mapping " }, { "name" "condcode", "kind" "required", "type" "string", "description" "code identifying the rate plan code as per mapping " }, { "name" "currencycode", "kind" "required", "type" "string", "description" "3 letter iso currency code (e g eur, usd, sgd) " }, { "name" "pricedetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "room amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "room amount after taxes/fees (total sell price) decimal as string " }, { "name" "occupancy", "kind" "required", "type" "object", "description" "occupancy breakdown", "children" \[ { "name" "adultcount", "kind" "required", "type" "integer", "description" "number of adults" }, { "name" "additionaladultcount", "kind" "required", "type" "object", "description" "additional adult details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "number of additional adult" }, { "name" "countoption", "kind" "required", "type" "string", "description" "supports two values \\"and\\" and \\"or\\", and it defines how multiple counts should be evaluated \n\\"and\\" means we combine the counts (sum them) \n\\"or\\" means we treat each count independently, without summing " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "additional adult amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "additional adult amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] }, { "name" "childcount", "kind" "required", "type" "object", "description" "children details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "" }, { "name" "countoption", "kind" "required", "type" "string", "description" "number of children" }, { "name" "minage", "kind" "required", "type" "string", "description" "minage is conditionally required when count is greater than zero, minage must be provided and must be a value between 0 and 17 (inclusive) when count equals zero, minage must be empty " }, { "name" "maxage", "kind" "required", "type" "string", "description" "maxage is conditionally required when count is greater than zero, maxage must be provided, must be a value between 0 and 17 (inclusive), and must be greater than or equal to minage when count equals zero, maxage must be empty " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate\nfree → no cost applies (amount is always zero)" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "child amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "child amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] }, { "name" "infantcount", "kind" "required", "type" "object", "description" "infant details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "" }, { "name" "countoption", "kind" "required", "type" "string", "description" "number of infant" }, { "name" "minage", "kind" "required", "type" "string", "description" "minage is conditionally required when count is greater than zero, minage must be provided and must be a value between 0 and 17 (inclusive) when count equals zero, minage must be empty " }, { "name" "maxage", "kind" "required", "type" "string", "description" "maxage is conditionally required when count is greater than zero, maxage must be provided, must be a value between 0 and 17 (inclusive), and must be greater than or equal to minage when count equals zero, maxage must be empty " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "infant amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "infant amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] } ] }, { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net" }, { "name" "taxfeedetails", "kind" "required", "type" "object", "description" "detailed breakdown of taxes, fees, offers before/after recommended if you want transparency/calculation consistency ", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "tax", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "fees", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "feetype", "kind" "required", "type" "string", "description" "used to identify the fee type, the available options are \n percentage\n incalculable\n per night" }, { "name" "feevalue", "kind" "required", "type" "string", "description" "percentage use positive value between 0 01 to 99 99 \nper night use positive value between 0 01 to 99,999,999,999 99\nincalculable use 0 00" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "offers", "kind" "required", "type" "object", "description" "represents a promotional discount applied to the rate \nthe discount value is fixed and determined solely by offertype ", "children" \[ { "name" "offertype", "kind" "required", "type" "string", "description" "defines the type of promotion and its fixed discount \n sales \n last \n easy \n free percentage " }, { "name" "offervalue", "kind" "required", "type" "string", "description" "defines the offervalue based on offertype selected \nsales → 50% discount\nlast → 40% discount\neasy → 30% discount\nfree percentage 1%→ up to 99%discount " } ] } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "tax", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountaftertax \n1= not included (to be added on top) " } ] }, { "name" "fees", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "feetype", "kind" "required", "type" "string", "description" "used to identify the fee type, the available options are \n percentage\n incalculable\n per night" }, { "name" "feevalue", "kind" "required", "type" "string", "description" "percentage use positive value between 0 01 to 99 99 \nper night use positive value between 0 01 to 99,999,999,999 99\nincalculable use 0 00" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountaftertax \n1= not included (to be added on top) " } ] }, { "name" "offers", "kind" "required", "type" "object", "description" "represents a promotional discount applied to the rate \nthe discount value is fixed and determined solely by offertype ", "children" \[ { "name" "offertype", "kind" "required", "type" "string", "description" "defines the type of promotion and its fixed discount \n sales \n last \n easy \n free percentage " }, { "name" "offervalue", "kind" "required", "type" "string", "description" "defines the offervalue based on offertype selected \nsales → 50% discount\nlast → 40% discount\neasy → 30% discount\nfree percentage 1%→ up to 99%discount " } ] } ] } ] } ] }, { "name" "ratediscount", "kind" "required", "type" "string", "description" "discount applied vs base rate (percentage) " }, { "name" "ratemodel", "kind" "required", "type" "string", "description" "used to identify the rate model , the allowed value would be opb" }, { "name" "cancelpolicy", "kind" "required", "type" "string", "description" "cancellation policy automatically generated from the rate plan’s configured cancellation rules " } ], "schema" \[ { "name" "roomcode", "kind" "required", "type" "string", "description" "code identifying the room code as per mapping " }, { "name" "condcode", "kind" "required", "type" "string", "description" "code identifying the rate plan code as per mapping " }, { "name" "currencycode", "kind" "required", "type" "string", "description" "3 letter iso currency code (e g eur, usd, sgd) " }, { "name" "pricedetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "room amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "room amount after taxes/fees (total sell price) decimal as string " }, { "name" "occupancy", "kind" "required", "type" "object", "description" "occupancy breakdown", "children" \[ { "name" "adultcount", "kind" "required", "type" "integer", "description" "number of adults" }, { "name" "additionaladultcount", "kind" "required", "type" "object", "description" "additional adult details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "number of additional adult" }, { "name" "countoption", "kind" "required", "type" "string", "description" "supports two values \\"and\\" and \\"or\\", and it defines how multiple counts should be evaluated \n\\"and\\" means we combine the counts (sum them) \n\\"or\\" means we treat each count independently, without summing " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "additional adult amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "additional adult amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] }, { "name" "childcount", "kind" "required", "type" "object", "description" "children details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "" }, { "name" "countoption", "kind" "required", "type" "string", "description" "number of children" }, { "name" "minage", "kind" "required", "type" "string", "description" "minage is conditionally required when count is greater than zero, minage must be provided and must be a value between 0 and 17 (inclusive) when count equals zero, minage must be empty " }, { "name" "maxage", "kind" "required", "type" "string", "description" "maxage is conditionally required when count is greater than zero, maxage must be provided, must be a value between 0 and 17 (inclusive), and must be greater than or equal to minage when count equals zero, maxage must be empty " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate\nfree → no cost applies (amount is always zero)" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "child amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "child amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] }, { "name" "infantcount", "kind" "required", "type" "object", "description" "infant details", "children" \[ { "name" "count", "kind" "required", "type" "integer", "description" "" }, { "name" "countoption", "kind" "required", "type" "string", "description" "number of infant" }, { "name" "minage", "kind" "required", "type" "string", "description" "minage is conditionally required when count is greater than zero, minage must be provided and must be a value between 0 and 17 (inclusive) when count equals zero, minage must be empty " }, { "name" "maxage", "kind" "required", "type" "string", "description" "maxage is conditionally required when count is greater than zero, maxage must be provided, must be a value between 0 and 17 (inclusive), and must be greater than or equal to minage when count equals zero, maxage must be empty " }, { "name" "costdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "unit", "kind" "required", "type" "string", "description" "unit defines the cost calculation method supported values are \ncurrency → cost is a fixed monetary amount in the specified currency\npercentage → cost is calculated as a percentage of the base rate" }, { "name" "amountbeforetax", "kind" "required", "type" "string", "description" "infant amount before taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "amountaftertax", "kind" "required", "type" "string", "description" "infant amount after taxes/fees decimal as string, e g \\"100 00\\"" }, { "name" "taxdetails", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] } ] } ] } ] } ] }, { "name" "ratetype", "kind" "required", "type" "string", "description" "used to identify the rate type , the allowed value would be bar or net" }, { "name" "taxfeedetails", "kind" "required", "type" "object", "description" "detailed breakdown of taxes, fees, offers before/after recommended if you want transparency/calculation consistency ", "children" \[ { "name" "before", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "tax", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "fees", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "feetype", "kind" "required", "type" "string", "description" "used to identify the fee type, the available options are \n percentage\n incalculable\n per night" }, { "name" "feevalue", "kind" "required", "type" "string", "description" "percentage use positive value between 0 01 to 99 99 \nper night use positive value between 0 01 to 99,999,999,999 99\nincalculable use 0 00" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountbeforetax \n1= not included (to be added on top) " } ] }, { "name" "offers", "kind" "required", "type" "object", "description" "represents a promotional discount applied to the rate \nthe discount value is fixed and determined solely by offertype ", "children" \[ { "name" "offertype", "kind" "required", "type" "string", "description" "defines the type of promotion and its fixed discount \n sales \n last \n easy \n free percentage " }, { "name" "offervalue", "kind" "required", "type" "string", "description" "defines the offervalue based on offertype selected \nsales → 50% discount\nlast → 40% discount\neasy → 30% discount\nfree percentage 1%→ up to 99%discount " } ] } ] }, { "name" "after", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "tax", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "taxtype", "kind" "required", "type" "string", "description" "used to identify the tax label , the available options are vat and fees" }, { "name" "taxvalue", "kind" "required", "type" "string", "description" "tax value as a percentage " }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountaftertax \n1= not included (to be added on top) " } ] }, { "name" "fees", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "feetype", "kind" "required", "type" "string", "description" "used to identify the fee type, the available options are \n percentage\n incalculable\n per night" }, { "name" "feevalue", "kind" "required", "type" "string", "description" "percentage use positive value between 0 01 to 99 99 \nper night use positive value between 0 01 to 99,999,999,999 99\nincalculable use 0 00" }, { "name" "included", "kind" "required", "type" "string", "description" "0 = included in amountaftertax \n1= not included (to be added on top) " } ] }, { "name" "offers", "kind" "required", "type" "object", "description" "represents a promotional discount applied to the rate \nthe discount value is fixed and determined solely by offertype ", "children" \[ { "name" "offertype", "kind" "required", "type" "string", "description" "defines the type of promotion and its fixed discount \n sales \n last \n easy \n free percentage " }, { "name" "offervalue", "kind" "required", "type" "string", "description" "defines the offervalue based on offertype selected \nsales → 50% discount\nlast → 40% discount\neasy → 30% discount\nfree percentage 1%→ up to 99%discount " } ] } ] } ] } ] }, { "name" "ratediscount", "kind" "required", "type" "string", "description" "discount applied vs base rate (percentage) " }, { "name" "ratemodel", "kind" "required", "type" "string", "description" "used to identify the rate model , the allowed value would be opb" }, { "name" "cancelpolicy", "kind" "required", "type" "string", "description" "cancellation policy automatically generated from the rate plan’s configured cancellation rules " } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "" }, { "name" "trackingid", "kind" "optional", "type" "string", "description" "", "children" \[] } ] }

