Hurdles Rates
1 min
Hurdles Rate
Allows Bakuun to receive and process hurdle rate updates for the given property and date range, ensuring all minimum-rate thresholds and revenue management constraints are aligned with the Connectivity Partner’s configuration.
POST
https://wsb.bakuun.com/v2/push-ari/CPB46/881826
Body Parameters
- sharePoststringrequiredDescription
- sourceIdstringrequiredDescription
- propertyIdstringrequiredDescription
- startDateYmdstringrequiredDescription
- endDateYmdstringrequiredDescription
- actionstringrequiredDescription
- dailyRatesobjectrequired
- roomIdstringrequiredDescription
- rateIdstringrequiredDescription
- amountBeforeTaxstringrequiredDescription
- amountAfterTaxstringrequiredDescription
- currencyCodestringrequiredDescription
Response
- successboolean
- trackingIdstring
json
{
"sharePost": "string",
"sourceId": "string",
"propertyId": "string",
"startDateYmd": "yyyy-mm-dd",
"endDateYmd": "yyyy-mm-dd",
"action": "hurdlesPriceUpdate",
"dailyRates": [
{
"roomId": "string",
"rateId": "string",
"amountBeforeTax": "string",
"amountAfterTax": "string",
"currencyCode": "string"
}
]
}curl
curl --location 'https://wsb.bakuun.com/v2/push-ari/CPB46/881826' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"sharePost": "String",
"sourceId": "String",
"propertyId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomId": "",
"rateId": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"currencyCode": ""
}
}'nodejs
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://wsb.bakuun.com/v2/push-ari/CPB46/881826',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"sharePost": "String",
"sourceId": "String",
"propertyId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomId": "",
"rateId": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"currencyCode": ""
}
})
};
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({
"sharePost": "String",
"sourceId": "String",
"propertyId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomId": "",
"rateId": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"currencyCode": ""
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://wsb.bakuun.com/v2/push-ari/CPB46/881826", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
import json
url = "https://wsb.bakuun.com/v2/push-ari/CPB46/881826"
payload = json.dumps({
"sharePost": "String",
"sourceId": "String",
"propertyId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomId": "",
"rateId": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"currencyCode": ""
}
})
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://wsb.bakuun.com/v2/push-ari/CPB46/881826")
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({
"sharePost": "String",
"sourceId": "String",
"propertyId": "String",
"startDateYmd": "String",
"endDateYmd": "String",
"action": "String",
"dailyRates": {
"roomId": "",
"rateId": "",
"amountBeforeTax": "",
"amountAfterTax": "",
"currencyCode": ""
}
})
response = https.request(request)
puts response.read_body
200
{
"success": true,
"trackingId": "68c168dd04829387650a476d"
}401
{
"success": false,
"errors": [
{
"code": 401,
"message": "Invalid amount"
}
],
"trackingId": "68c168dd04829387650a476d"
}402
{
"success": false,
"errors": [
{
"code": 425,
"message": "Invalid before taxes amount "
}
],
"trackingId": "68c168dd04829387650a476d"
}404
{
"success": false,
"errors": [
{
"code": 404,
"message": "Invalid start date"
}
]
}405
{
"success": false,
"errors": [
{
"code": 405,
"message": "Invalid end date"
}
],
"trackingId": "68c168dd04829387650a476d"
}408
{
"success": false,
"errors": [
{
"code": 408,
"message": "Processing error"
}
],
"trackingId": "68c168dd04829387650a476d"
}415
{
"success": false,
"errors": [
{
"code": 415,
"message": "Invalid authentication key"
}
],
"trackingId": "68c168dd04829387650a476d"
}416
{
"success": false,
"errors": [
{
"code": 416,
"message": "Overlapping data range"
}
],
"trackingId": "68c168dd04829387650a476d"
}417
{
"success": false,
"errors": [
{
"code": 440,
"message": "Invalid source ID"
}
],
"trackingId": "68c168dd04829387650a476d"
}418
{
"success": false,
"errors": [
{
"code": 442,
"message": "Endpoint is not active"
}
],
"trackingId": "68c168dd04829387650a476d"
}421
{
"success": false,
"errors": [
{
"code": 421,
"message": "Invalid decimal format"
}
],
"trackingId": "68c168dd04829387650a476d"
}422
{
"success": false,
"errors": [
{
"code": 451,
"message": "Invalid room mapping"
}
],
"trackingId": "68c168dd04829387650a476d"
}423
{
"success": false,
"errors": [
{
"code": 453,
"message": "Mapping is not active"
}
],
"trackingId": "68c168dd04829387650a476d"
}424
{
"success": false,
"errors": [
{
"code": 454,
"message": "Invalid endpoint"
}
],
"trackingId": "68c168dd04829387650a476d"
}426
{
"success": false,
"errors": [
{
"code": 453,
"message": "Mapping is not active"
}
],
"trackingId": "68c168dd04829387650a476d"
}428
{
"success": false,
"errors": [
{
"code": 454,
"message": "Invalid endpoint"
}
],
"trackingId": "68c168dd04829387650a476d"
}500
{
"success": false,
"errors": [
{
"code": 500,
"message": "Internal server error"
}
],
"trackingId": "68c168dd04829387650a476d"
}502
{
"success": false,
"errors": [
{
"code": 502,
"message": "Bad gateway"
}
],
"trackingId": "68c168dd04829387650a476d"
}503
{
"success": false,
"errors": [
{
"code": 503,
"message": "Service unavailable"
}
],
"trackingId": "68c168dd04829387650a476d"
}504
{
"success": false,
"errors": [
{
"code": 504,
"message": "Endpoint request timed-out"
}
],
"trackingId": "68c168dd04829387650a476d"
}