Read Properties
1 min
Read Properties
Retrieve the status of all properties mapped under a partner account in Bakuun.
POST
https://wsb.bakuun.com/ratedockAPI/MPBKX/readproperties
Body Parameters
- usernamestringrequiredDescription
- passwordstringrequiredDescription
- partnerIdstringrequiredDescription
- actionstringrequiredDescription
Response
- statusboolean
- propertyDataobject
- propertyCodestringDescription
- propertyNamestringDescription
- mappingStatusstringDescription
json
{
"username": "testusername",
"password": "testpassword",
"partnerId": "MPBXXX",
"action": "readProperties"
}curl
curl --location 'https://wsb.bakuun.com/ratedockAPI/RDKX/readproperties' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"username": "String",
"password": "String",
"partnerId": "String",
"action": "String"
}'nodejs
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://wsb.bakuun.com/ratedockAPI/RDKX/readproperties',
'headers': {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"username": "String",
"password": "String",
"partnerId": "String",
"action": "String"
})
};
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",
"partnerId": "String",
"action": "String"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://wsb.bakuun.com/ratedockAPI/RDKX/readproperties", 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/ratedockAPI/RDKX/readproperties"
payload = json.dumps({
"username": "String",
"password": "String",
"partnerId": "String",
"action": "String"
})
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/ratedockAPI/RDKX/readproperties")
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",
"partnerId": "String",
"action": "String"
})
response = https.request(request)
puts response.read_body
200
{
"status": true,
"propertyData": [
{
"propertyCode": "HTLXX.X",
"propertyName": "Property Test",
"mappingStatus": "Completed"
},
{
"propertyCode": "HTLXX.X",
"propertyName": "Property Test 1",
"mappingStatus": "To start"
},
{
"propertyCode": "HTLXX.X",
"propertyName": "Property Test 2",
"mappingStatus": "Disconnected"
}
]
}401
{
"success": false,
"errors": [
{
"code": 410,
"message": "Unauthorised user"
}
]
}