Occupancy Based Rates - Extra Adults
1 min
Update Rates
POST
https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)
Body Parameters
- usernamestringrequiredDescription
- passwordstringrequiredDescription
- hotelIdstringrequiredDescription
- startDateYmdstringrequiredDescription
- endDateYmdstringrequiredDescription
- actionstringrequiredDescription
- dailyRatesobjectrequired
- roomCodestringrequiredDescription
- condCodestringrequiredDescription
- currencyCodestringrequiredDescription
- priceDetailsobjectrequired
- amountBeforeTaxstringrequiredDescription
- amountAfterTaxstringrequiredDescription
- occupancyobjectrequiredDescription
- adultCountintegerrequiredDescription
- additionalAdultCountobjectrequiredDescription
- countintegerrequiredDescription
- countOptionstringrequiredDescription
- costDetailsobjectrequired
- unitstringrequiredDescription
- amountBeforeTaxstringrequiredDescription
- amountAfterTaxstringrequiredDescription
- taxDetailsobjectrequired
- Beforeobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- Afterobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- childCountobjectrequiredDescription
- countintegerrequired
- countOptionstringrequiredDescription
- minAgestringrequiredDescription
- maxAgestringrequiredDescription
- costDetailsobjectrequired
- unitstringrequiredDescription
- amountBeforeTaxstringrequiredDescription
- amountAfterTaxstringrequiredDescription
- taxDetailsobjectrequired
- Beforeobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- Afterobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- infantCountobjectrequiredDescription
- countintegerrequired
- countOptionstringrequiredDescription
- minAgestringrequiredDescription
- maxAgestringrequiredDescription
- costDetailsobjectrequired
- unitstringrequiredDescription
- amountBeforeTaxstringrequiredDescription
- amountAfterTaxstringrequiredDescription
- taxDetailsobjectrequired
- Beforeobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- Afterobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- rateTypestringrequiredDescription
- taxFeeDetailsobjectrequiredDescription
- Beforeobjectrequired
- taxobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- feesobjectrequired
- feeTypestringrequiredDescription
- feeValuestringrequiredDescription
- includedstringrequiredDescription
- offersobjectrequiredDescription
- offerTypestringrequiredDescription
- offerValuestringrequiredDescription
- Afterobjectrequired
- taxobjectrequired
- taxTypestringrequiredDescription
- taxValuestringrequiredDescription
- includedstringrequiredDescription
- feesobjectrequired
- feeTypestringrequiredDescription
- feeValuestringrequiredDescription
- includedstringrequiredDescription
- offersobjectrequiredDescription
- offerTypestringrequiredDescription
- offerValuestringrequiredDescription
- rateDiscountstringrequiredDescription
- rateModelstringrequiredDescription
- cancelPolicystringrequiredDescription
Response
- successboolean
json
{
"password": "string",
"username": "string",
"hotelId": "string",
"startDateYmd": "YYYY-MM-DD",
"endDateYmd": "YYYY-MM-DD",
"action": "occPriceUpdate",
"dailyRates": [
{
"roomCode": "string",
"condCode": "string",
"rateDiscount": "20.5",
"rateModel": "OBP",
"cancelPolicy": "24 days or charge 80% of 6 nights stay / Day of arrival (18:00) or charge 90% of the first night",
"currencyCode": "EUR",
"priceDetails": [
{
"rateType": "BAR",
"amountBeforeTax": "100.00",
"amountAfterTax": "100.00",
"occupancy": {
"adultCount": 3,
"additionalAdultCount": [
{
"count": 1,
"costDetails": {
"unit": "currency",
"amountBeforeTax": "12.00",
"amountAfterTax": "12.00",
"taxDetails": {
"Before": {
"taxType": "VAT",
"taxValue": "20.00",
"included": "0"
},
"After": {
"taxType": "VAT",
"taxValue": "20.00",
"included": "0"
}
}
},
"countOption": "and"
}
],
"childCount": [
{
"count": 1,
"countOption": "and",
"minAge": "3",
"maxAge": "8",
"costDetails": {
"unit": "currency",
"amountBeforeTax": "100.00",
"amountAfterTax": "100.00",
"taxDetails": {
"Before": {
"taxType": "VAT",
"taxValue": "5.00",
"included": "0"
},
"After": {
"taxType": "VAT",
"taxValue": "5.00",
"included": "0"
}
}
}
}
],
"infantCount": [{
"count": 1,
"countOption": "and",
"minAge": "0",
"maxAge": "4",
"costDetails": {
"unit": "currency",
"amountBeforeTax": "100.00",
"amountAfterTax": "100.00",
"taxDetails": {
"Before": {
"taxType": "VAT",
"taxValue": "5.00",
"included": "0"
},
"After": {
"taxType": "VAT",
"taxValue": "5.00",
"included": "0"
}
}
}
}
]
},
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "VAT",
"taxValue": "10.00",
"included": "0"
},
"fees": {
"feeType": "percentage",
"feeValue": "10.00",
"included": "1"
},
"offers": {
"offerType": "sales",
"offerValue": "10.00"
}
},
"After": {
"tax": {
"taxType": "VAT",
"taxValue": "10.00",
"included": "0"
},
"fees": {
"feeType": "percentage",
"feeValue": "10.00",
"included": "1"
},
"offers": {
"offerType": "sales",
"offerValue": "10.00"
}
}
}
}
]
}
]
}curl
curl --location 'https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"username": "String",
"password": "String",
"hotelId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomCode": "",
"condCode": "",
"currencyCode": "",
"priceDetails": {
"amountBeforeTax": "",
"amountAfterTax": "",
"occupancy": {
"adultCount": "",
"additionalAdultCount": {
"count": "",
"countOption": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"childCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"infantCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
}
},
"rateType": "",
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
},
"After": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
}
}
},
"rateDiscount": "",
"rateModel": "",
"cancelPolicy": ""
}
}'nodejs
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"username": "String",
"password": "String",
"hotelId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomCode": "",
"condCode": "",
"currencyCode": "",
"priceDetails": {
"amountBeforeTax": "",
"amountAfterTax": "",
"occupancy": {
"adultCount": "",
"additionalAdultCount": {
"count": "",
"countOption": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"childCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"infantCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
}
},
"rateType": "",
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
},
"After": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
}
}
},
"rateDiscount": "",
"rateModel": "",
"cancelPolicy": ""
}
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"username": "String",
"password": "String",
"hotelId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomCode": "",
"condCode": "",
"currencyCode": "",
"priceDetails": {
"amountBeforeTax": "",
"amountAfterTax": "",
"occupancy": {
"adultCount": "",
"additionalAdultCount": {
"count": "",
"countOption": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"childCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"infantCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
}
},
"rateType": "",
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
},
"After": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
}
}
},
"rateDiscount": "",
"rateModel": "",
"cancelPolicy": ""
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
import json
url = "https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)"
payload = json.dumps({
"username": "String",
"password": "String",
"hotelId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomCode": "",
"condCode": "",
"currencyCode": "",
"priceDetails": {
"amountBeforeTax": "",
"amountAfterTax": "",
"occupancy": {
"adultCount": "",
"additionalAdultCount": {
"count": "",
"countOption": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"childCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"infantCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
}
},
"rateType": "",
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
},
"After": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
}
}
},
"rateDiscount": "",
"rateModel": "",
"cancelPolicy": ""
}
})
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.bakuun.com/ratedockAPI/agent/updateoccuraterq (COPY)")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"username": "String",
"password": "String",
"hotelId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomCode": "",
"condCode": "",
"currencyCode": "",
"priceDetails": {
"amountBeforeTax": "",
"amountAfterTax": "",
"occupancy": {
"adultCount": "",
"additionalAdultCount": {
"count": "",
"countOption": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"childCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
},
"infantCount": {
"count": "",
"countOption": "",
"minAge": "",
"maxAge": "",
"costDetails": {
"unit": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"taxDetails": {
"Before": {
"taxType": "",
"taxValue": "",
"included": ""
},
"After": {
"taxType": "",
"taxValue": "",
"included": ""
}
}
}
}
},
"rateType": "",
"taxFeeDetails": {
"Before": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
},
"After": {
"tax": {
"taxType": "",
"taxValue": "",
"included": ""
},
"fees": {
"feeType": "",
"feeValue": "",
"included": ""
},
"offers": {
"offerType": "",
"offerValue": ""
}
}
}
},
"rateDiscount": "",
"rateModel": "",
"cancelPolicy": ""
}
})
response = https.request(request)
puts response.read_body
200
{
"success": true
}500
{
"success": false,
"errors": [
{
"code": 500,
"message": "Internal server error"
}
]
}502
{
"success": false,
"errors": [
{
"code": 502,
"message": "Bad gateway"
}
]
}503
{
"success": false,
"errors": [
{
"code": 503,
"message": "Service unavailable"
}
]
}504
{
"success": false,
"errors": [
{
"code": 504,
"message": "Endpoint request timed-out"
}
]
}