Connectivity Partner
Mapping
Read Property
1 min
{ "name" "read property", "method" "post", "url" "https //wsb bakuun com/api/read property info", "description" "returns detailed information about the property associated with the given propertyid this action allows bakuun to retrieve the static room and rate plan configuration as defined in the connectivity partner’s system ", "tab" "examples", "examples" { "languages" \[ { "id" "rjxefdxztk ii0nh24633", "language" "json", "code" "{\n \\"authentication\\" {\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\"\n },\n \\"action\\" \\"readpropertyinfo\\"\n}", "customlabel" "" }, { "id" "ivbrku50ah0azadkazd7r", "language" "curl", "code" "curl location 'https //wsb bakuun com/api/read property info' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\n}'", "customlabel" "" }, { "id" "uvymdpdafj1soe7fxn8m6", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/api/read property info',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "uw39e9nnf1anpttczkpxn", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //wsb bakuun com/api/read property info\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "ogh2lrxtzg ayez sva3u", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/api/read property info\\"\n\npayload = json dumps({\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\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" "skzjeo yr3pzrvwm8dcbn", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/api/read property info\\")\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 \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "rjxefdxztk ii0nh24633" }, "results" { "languages" \[ { "id" "cuwuqnm2 tohwu bxfbdm", "language" "200", "code" "{\n \\"success\\" true,\n \\"status\\" \\"success\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"jhjkxxx\\",\n \\"roomtypes\\" \[\n {\n \\"roomid\\" \\"r1xxx x\\",\n \\"roomname\\" \\"r1xxx x\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateid\\" \\"r1xxx x x\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"1\\",\n \\"defaultmeal\\" \\"ro\\",\n \\"ratecategory\\" \\"xxx\\",\n \\"restrictedcountry\\" \\"xxx\\"\n },\n {\n \\"rateid\\" \\"r1xxx x x\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"3\\",\n \\"defaultmeal\\" \\"ro\\",\n \\"ratecategory\\" \\"xxx\\",\n \\"restrictedcountry\\" \\"xxx\\"\n }\n ]\n },\n {\n \\"roomid\\" \\"r14xx x\\",\n \\"roomname\\" \\"r1xxx x\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateid\\" \\"r1xxx x x\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"8\\",\n \\"defaultmeal\\" \\"bb\\",\n \\"ratecategory\\" \\"xxx\\",\n \\"restrictedcountry\\" \\"xxx\\"\n },\n {\n \\"rateid\\" \\"r1xxx x x\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"1\\",\n \\"defaultmeal\\" \\"ro\\",\n \\"ratecategory\\" \\"xxx\\",\n \\"restrictedcountry\\" \\"xxx\\"\n }\n ]\n }\n ]\n },\n \\"trackingid\\" \\"6891e1c8b419472c500967e5\\"\n}", "customlabel" "" }, { "id" "gclsfeg7tcl3xcgr1oozh", "language" "415", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"invalid authentication key \\"\n }\n ]\n}", "customlabel" "" }, { "id" "vvhipugmygg65zy yktqy", "language" "422", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"validation failed\\"\n }\n ]\n}", "customlabel" "" }, { "id" "wqk ise ml6p69i9hyujs", "language" "431", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"endpoint is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "em0 o6mufotrdsgflmks ", "language" "451", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"mapping is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "cpbdwnfoxucckpwemfola", "language" "428", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"no room mappings found for this property\\"\n }\n ]\n}", "customlabel" "" }, { "id" "x8oara7dktkyutxja77lg", "language" "500", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"internal server error\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "cuwuqnm2 tohwu bxfbdm" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "authentication", "kind" "required", "type" "object", "description" "", "" "", "children" \[ { "name" "username", "kind" "required", "type" "string", "description" "api username provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "password", "kind" "required", "type" "string", "description" "api password provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "propertyid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the connectivity partner) " }, { "name" "sourceid", "kind" "required", "type" "string", "description" "connectivity partner identifier assigned by bakuun (e g cpbxx)" } ], "schema" \[ { "name" "username", "kind" "required", "type" "string", "description" "api username provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "password", "kind" "required", "type" "string", "description" "api password provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "propertyid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the connectivity partner) " }, { "name" "sourceid", "kind" "required", "type" "string", "description" "connectivity partner identifier assigned by bakuun (e g cpbxx)" } ] }, { "name" "action", "kind" "required", "type" "string", "description" "", "" "required" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "" } ] }

