Third Party Supplier (Push)
Mapping
Get Property
1 min
{ "name" "get property", "method" "post", "url" "https //wsb bakuun com/v2/get property/tpsxxx/xxxx", "description" "returns detailed information about the property associated with the given propertyid \nthis action allows the tps 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\\" \\"xxxxxxxxxxxx\\",\n \\"propertyid\\" \\"htlxx x\\",\n \\"sourceid\\" \\"tpsxxx\\"\n },\n \\"action\\" \\"getpropertyinfo\\"\n}", "customlabel" "" }, { "id" "dkg1dxyjriqrdxao99rr0", "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" "bxvt ipm6ayqhiue5phdn", "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" "oz45ekuexetsd0wbxuply", "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" "0ktslfb4qnmsiuzo4e2cy", "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" "" }, { "id" "af qfio19rzqn7aw kwnq", "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" "" } ], "selectedlanguageid" "rjxefdxztk ii0nh24633" }, "results" { "languages" \[ { "id" "cuwuqnm2 tohwu bxfbdm", "language" "200", "code" "{\n \\"status\\" \\"success\\",\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"my test property\\",\n \\"roomtypes\\" \[\n {\n \\"roomid\\" \\"rxx x\\",\n \\"roomname\\" \\"double room with shared toilet\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateid\\" \\"rxx x x\\",\n \\"authperson\\" \\"3\\",\n \\"canceltype\\" \\"1\\",\n \\"defaultmeal\\" \\"bb\\",\n \\"ratecategory\\" \\"b2b\\",\n \\"restrictedcountry\\" \\"af,al,dz,as\\"\n },\n {\n \\"rateid\\" \\"rxx x x\\",\n \\"authperson\\" \\"2\\",\n \\"canceltype\\" \\"1\\",\n \\"defaultmeal\\" \\"bb\\",\n \\"ratecategory\\" \\"b2c\\",\n \\"restrictedcountry\\" \\"af,al,dz,as\\"\n }\n ]\n }\n ]\n }\n}", "customlabel" "" }, { "id" "gclsfeg7tcl3xcgr1oozh", "language" "415", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"6891f3beb419472c500967e6\\",\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\\" 422,\n \\"message\\" \\"validation failed\\"\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" "wqk ise ml6p69i9hyujs", "language" "431", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"68c2abfc04829387650a4dbd\\",\n \\"errors\\" \[\n {\n \\"code\\" 431,\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\\" 451,\n \\"message\\" \\"mapping is not active\\"\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" "tps partner identifier assigned by bakuun (e g tpsxx)" } ], "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" "tps partner identifier assigned by bakuun (e g tpsxx)" } ] }, { "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" "status", "kind" "optional", "type" "string", "description" "true" }, { "name" "trackingid", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "propertydata", "kind" "optional", "type" "object", "description" "container for all static property, room, and rate plan data ", "children" \[ { "name" "propertyname", "kind" "optional", "type" "string", "description" "name of the property as shown to users " }, { "name" "roomtypes", "kind" "optional", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomid", "kind" "optional", "type" "string", "description" "unique identifier for the room type" }, { "name" "roomname", "kind" "optional", "type" "string", "description" "descriptive name of the room type (e g deluxe queen room with two queen beds) " }, { "name" "type", "kind" "optional", "type" "string", "description" "dailyroom would be the used default category " }, { "name" "ratetypes", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "rateid", "kind" "optional", "type" "string", "description" "unique identifier for the rate plan (e g rxx 1 2 1) " }, { "name" "authperson", "kind" "optional", "type" "string", "description" "maximum authorized occupancy (number of persons) for this rate plan " }, { "name" "canceltype", "kind" "optional", "type" "string", "description" "cancellation rule type code (mapping provided by bakuun; e g 0 = non refundable, 1 = refundable) " }, { "name" "defaultmeal", "kind" "optional", "type" "string", "description" "default meal plan code (e g 0 = room only, 1 = breakfast, 2 = half board, 3 = full board — actual mapping defined in your integration) " }, { "name" "ratecategory", "kind" "optional", "type" "string", "description" "assigned rate category (e g corporate, package, promotion)" }, { "name" "restrictedcountry", "kind" "optional", "type" "string", "description" "optional country restrictions for selling this rate can be empty or contain a list of countries " } ] } ] } ] } ] }

