Buyer API (Push)
Mapping
Get Property Info
1 min
{ "name" "get property info", "method" "post", "url" " https //wsb bakuun com/v2/getproperty/mpbxx/575653", "description" "returns detailed information about the property associated with the given propertyid \nthis action allows partners to retrieve static content such as the property name, address, facilities, and room configuration as defined in bakuun ", "tab" "examples", "examples" { "languages" \[ { "id" " a6ev31cslizcdtyzhisl", "language" "json", "code" "{\n \\"action\\" \\"getpropertyinfo\\",\n \\"authentication\\" {\n \\"username\\" \\"xxxxxx\\",\n \\"password\\" \\"xxxxx\\",\n \\"propertyid\\" \\"htlxx\\",\n \\"partnerid\\" \\"mpbxx\\"\n }\n}", "customlabel" "" }, { "id" "f335r6p5y3iq7nrjx r d", "language" "curl", "code" "curl location 'https //wsb bakuun com/v2/getproperty/mpbxx/575653' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "99pjotiake3e 6cxpnhag", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/getproperty/mpbxx/575653',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n })\n\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "fkbxh3exryfl3ulqeweqe", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //wsb bakuun com/v2/getproperty/mpbxx/575653\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "w o3g77sewasxrvvzfsrd", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/getproperty/mpbxx/575653\\"\n\npayload = json dumps({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\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" "qonj1bdhpgkfqa xfyjw ", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/getproperty/mpbxx/575653\\")\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 \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"propertyid\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "f335r6p5y3iq7nrjx r d" }, "results" { "languages" \[ { "id" "bvujfridcm7llpyvvpe0n", "language" "200", "code" "{\n \\"success\\" true,\n \\"propertydata\\" {\n \\"propertyname\\" \\"test property\\",\n \\"country\\" \\"india\\",\n \\"region\\" \\"maharashtra\\",\n \\"city\\" \\"pune\\",\n \\"area\\" \\"baner\\",\n \\"zipcode\\" \\"401203\\",\n \\"address\\" \\"street 1,baner\\",\n \\"latitude\\" \\" 32 037822\\",\n \\"longitude\\" \\"115 86321\\",\n \\"prefixphone\\" \\"+91\\",\n \\"phonenum\\" \\"45454654645\\",\n \\"currency\\" \\"inr\\",\n \\"roomtypes\\" \[\n {\n \\"roomtypeid\\" \\"rxx 1\\",\n \\"roomname\\" \\"deluxe room\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateplanid\\" \\"rxxx x x\\",\n \\"authperson\\" \\"1\\",\n \\"canceltype\\" \\"1\\",\n \\"defaultmeal\\" \\"0\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n ]\n }\n ]\n }\n}", "customlabel" "" }, { "id" "4trsqtziivrtdf0gtbjxr", "language" "451", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"endpoint bad format\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "bvujfridcm7llpyvvpe0n" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "action", "kind" "required", "type" "string", "description" "defines the requested operation must be set to getpropertyinfo ", "" "defines the requested operation must be set to getpropertyinfo " }, { "name" "authentication", "kind" "required", "type" "object", "description" "", "" "", "children" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "password", "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" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ], "schema" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "password", "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" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "true" }, { "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" "country", "kind" "optional", "type" "string", "description" "country name" }, { "name" "region", "kind" "optional", "type" "string", "description" "region / state / province " }, { "name" "city", "kind" "optional", "type" "string", "description" "city name " }, { "name" "area", "kind" "optional", "type" "string", "description" "local area / neighborhood " }, { "name" "zipcode", "kind" "optional", "type" "string", "description" "postal / zip code " }, { "name" "address", "kind" "optional", "type" "string", "description" "street address " }, { "name" "latitude", "kind" "optional", "type" "string", "description" "latitude of the property " }, { "name" "longitude", "kind" "optional", "type" "string", "description" "longitude of the property " }, { "name" "prefixphone", "kind" "optional", "type" "string", "description" "phone country code prefix (e g +1) " }, { "name" "phonenum", "kind" "optional", "type" "string", "description" "phone number " }, { "name" "currency", "kind" "optional", "type" "string", "description" "default selling currency code for the property " }, { "name" "roomtypes", "kind" "optional", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomtypeid", "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" "rateplanid", "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 " } ] } ] } ] } ] }

