Connectivity Partner
Mapping
Get Property
1 min
{ "name" "get property ", "method" "post", "url" "https //wsb bakuun com/v2/get property/test/{sourceid}/568411", "description" "returns detailed information about the property associated with the given propertyid \nthis action allows the connectivity partner to retrieve static content such as the property name, address, facilities, and room configuration as defined in bakuun ", "tab" "examples", "examples" { "languages" \[ { "id" "rjxefdxztk ii0nh24633", "language" "json", "code" "{\n \\"authentication\\" {\n \\"shareread\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"cpbxx\\"\n },\n \\"action\\" \\"getpropertyinfo\\"\n}", "customlabel" "" }, { "id" "6hat4tlzawvpolipouizu", "language" "curl", "code" "curl location globoff 'https //wsb bakuun com/v2/get property/test/{sourceid}/568411' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"authentication\\" {\n \\"shareread\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"sourceid\\" \\"\\"\n },\n \\"action\\" \\"string\\"\n}'", "customlabel" "" }, { "id" "kt8orucfgefmdjp9gywfr", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/get property/test/{sourceid}/568411',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"authentication\\" {\n \\"shareread\\" \\"\\",\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" "yx2wde0h3umgdrwawib9q", "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 \\"shareread\\" \\"\\",\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/v2/get property/test/{sourceid}/568411\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "f2u8iyba4x6py nmjbta0", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/get property/test/{sourceid}/568411\\"\n\npayload = json dumps({\n \\"authentication\\" {\n \\"shareread\\" \\"\\",\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" "xfj c9ty6 sw i 1tyknv", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/get property/test/{sourceid}/568411\\")\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 \\"shareread\\" \\"\\",\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" "shareread", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "propertyid", "kind" "required", "type" "string", "description" "property identifier assigned by bakuun" }, { "name" "sourceid", "kind" "required", "type" "string", "description" "connectivity partner identifier assigned by bakuun (e g cpbxx)" } ], "schema" \[ { "name" "shareread", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "propertyid", "kind" "required", "type" "string", "description" "property identifier assigned by bakuun" }, { "name" "sourceid", "kind" "required", "type" "string", "description" "connectivity partner identifier assigned by bakuun (e g cpbxx)" } ] }, { "name" "action", "kind" "required", "type" "string", "description" "always set as getpropertyinfo", "" "always set as getpropertyinfo" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "" } ] }

