Buyer API (Push)
Mapping
Push Property Info
1 min
{ "name" "push property info", "method" "post", "url" "https //wsb bakuun com/v2/push property/test/mpbxx/281627", "description" "sends property static data and mapping information from the buyer to bakuun \n\nthis action is typically used when \n\na new property is onboarded is updated in bakuun or when the mapping status change\n\n", "tab" "examples", "examples" { "languages" \[ { "id" "aoepe2dzr dbsk5ugr5rn", "language" "json", "code" "{\n \\"username\\" \\"testusername\\",\n \\"password\\" \\"testpassword\\",\n \\"propertyid\\" \\"htlxx 1\\",\n \\"partnerid\\" \\"rdkxx\\",\n \\"action\\" \\"pushpropertyinfo\\",\n \\"mappingstatus\\" \\"active\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"hotel form\\",\n \\"country\\" \\"test\\",\n \\"region\\" \\"test\\",\n \\"city\\" \\"test\\",\n \\"area\\" \\"test\\",\n \\"zipcode\\" \\"123456\\",\n \\"address\\" \\"test\\",\n \\"latitude\\" \\"1 35601825\\",\n \\"longitude\\" \\"103 9884945\\",\n \\"prefixphone\\" \\"+1\\",\n \\"phonenum\\" \\"123456789\\",\n \\"currency\\" \\"xxx\\",\n \\"roomtypes\\" \[\n {\n \\"roomtypeid\\" \\"rxx 1 9\\",\n \\"roomname\\" \\"one bedroom villa\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateplanid\\" \\"rxx 1 9 2\\",\n \\"rateplanname\\" \\"superior one room breakfast rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"7\\",\n \\"defaultmeal\\" \\"0\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n ]\n },\n {\n \\"roomtypeid\\" \\"rxx 1 10\\",\n \\"roomname\\" \\"single room new year's special event\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateplanid\\" \\"rxx 1 10 1\\",\n \\"rateplanname\\" \\"single room breakfast rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"6\\",\n \\"defaultmeal\\" \\"0\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n ]\n },\n {\n \\"roomtypeid\\" \\"rxx 1 1\\",\n \\"roomname\\" \\"family room with lake view\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateplanid\\" \\"rxx 1 1 2\\",\n \\"rateplanname\\" \\"family room breakfast rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"10\\",\n \\"defaultmeal\\" \\"3\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n ]\n },\n {\n \\"roomtypeid\\" \\"rxx 1 2\\",\n \\"roomname\\" \\"deluxe queen room with two queen beds\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateplanid\\" \\"rxx 1 2 1\\",\n \\"rateplanname\\" \\"hotel bar\\",\n \\"canceltype\\" \\"0\\",\n \\"authperson\\" \\"14\\",\n \\"defaultmeal\\" \\"3\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n },\n {\n \\"rateplanid\\" \\"rxx 1 2 2\\",\n \\"rateplanname\\" \\"bar rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"5\\",\n \\"defaultmeal\\" \\"1\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n },\n {\n \\"rateplanid\\" \\"rxx 1 2 3\\",\n \\"rateplanname\\" \\"bar rate\\",\n \\"canceltype\\" \\"0\\",\n \\"authperson\\" \\"12\\",\n \\"defaultmeal\\" \\"2\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n },\n {\n \\"rateplanid\\" \\"rxx 1 2 5\\",\n \\"rateplanname\\" \\"bar rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"6\\",\n \\"defaultmeal\\" \\"0\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n },\n {\n \\"rateplanid\\" \\"rxx 1 2 6\\",\n \\"rateplanname\\" \\"bar rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"3\\",\n \\"defaultmeal\\" \\"0\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n ]\n }\n ]\n }\n}", "customlabel" "" }, { "id" "887cwvv by cdlj s64eh", "language" "curl", "code" "curl location 'https //wsb bakuun com/v2/push property/test/mpbxx/281627' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"country\\" \\"\\",\n \\"region\\" \\"\\",\n \\"city\\" \\"\\",\n \\"area\\" \\"\\",\n \\"zipcode\\" \\"\\",\n \\"address\\" \\"\\",\n \\"latitude\\" \\"\\",\n \\"longitude\\" \\"\\",\n \\"prefixphone\\" \\"\\",\n \\"phonenum\\" \\"\\",\n \\"currency\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateplanid\\" \\"\\",\n \\"rateplanname\\" \\"\\",\n \\"canceltype\\" \\"\\",\n \\"authperson\\" \\"\\",\n \\"defaultmeal\\" \\"\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n }\n }\n}'", "customlabel" "" }, { "id" "swfb6rl2hixsdq1roe3m9", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/push property/test/mpbxx/281627',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"country\\" \\"\\",\n \\"region\\" \\"\\",\n \\"city\\" \\"\\",\n \\"area\\" \\"\\",\n \\"zipcode\\" \\"\\",\n \\"address\\" \\"\\",\n \\"latitude\\" \\"\\",\n \\"longitude\\" \\"\\",\n \\"prefixphone\\" \\"\\",\n \\"phonenum\\" \\"\\",\n \\"currency\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateplanid\\" \\"\\",\n \\"rateplanname\\" \\"\\",\n \\"canceltype\\" \\"\\",\n \\"authperson\\" \\"\\",\n \\"defaultmeal\\" \\"\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n }\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" "jyhnhvykwiiqcae9zaily", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"country\\" \\"\\",\n \\"region\\" \\"\\",\n \\"city\\" \\"\\",\n \\"area\\" \\"\\",\n \\"zipcode\\" \\"\\",\n \\"address\\" \\"\\",\n \\"latitude\\" \\"\\",\n \\"longitude\\" \\"\\",\n \\"prefixphone\\" \\"\\",\n \\"phonenum\\" \\"\\",\n \\"currency\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateplanid\\" \\"\\",\n \\"rateplanname\\" \\"\\",\n \\"canceltype\\" \\"\\",\n \\"authperson\\" \\"\\",\n \\"defaultmeal\\" \\"\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n }\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/push property/test/mpbxx/281627\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "gwmwwtymaromt9kw gpsr", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/push property/test/mpbxx/281627\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"country\\" \\"\\",\n \\"region\\" \\"\\",\n \\"city\\" \\"\\",\n \\"area\\" \\"\\",\n \\"zipcode\\" \\"\\",\n \\"address\\" \\"\\",\n \\"latitude\\" \\"\\",\n \\"longitude\\" \\"\\",\n \\"prefixphone\\" \\"\\",\n \\"phonenum\\" \\"\\",\n \\"currency\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateplanid\\" \\"\\",\n \\"rateplanname\\" \\"\\",\n \\"canceltype\\" \\"\\",\n \\"authperson\\" \\"\\",\n \\"defaultmeal\\" \\"\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n }\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" "u8y i6qbrhxhsnnopgre", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/push property/test/mpbxx/281627\\")\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 \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"country\\" \\"\\",\n \\"region\\" \\"\\",\n \\"city\\" \\"\\",\n \\"area\\" \\"\\",\n \\"zipcode\\" \\"\\",\n \\"address\\" \\"\\",\n \\"latitude\\" \\"\\",\n \\"longitude\\" \\"\\",\n \\"prefixphone\\" \\"\\",\n \\"phonenum\\" \\"\\",\n \\"currency\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomtypeid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateplanid\\" \\"\\",\n \\"rateplanname\\" \\"\\",\n \\"canceltype\\" \\"\\",\n \\"authperson\\" \\"\\",\n \\"defaultmeal\\" \\"\\",\n \\"ratecategory\\" \\"\\",\n \\"restrictedcountry\\" \\"\\"\n }\n }\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "aoepe2dzr dbsk5ugr5rn" }, "results" { "languages" \[ { "id" "bvujfridcm7llpyvvpe0n", "language" "200", "code" "{\n \\"success\\" true\n}", "customlabel" "" }, { "id" "4trsqtziivrtdf0gtbjxr", "language" "431", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"endpoint bad format\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "4trsqtziivrtdf0gtbjxr" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) ", "" "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) ", "" "system generated, human readable api access key (unique per account) " }, { "name" "propertyid", "kind" "required", "type" "string", "description" "property identifier on your side or mapping key (e g htlxx 1) ", "" "property identifier on your side or mapping key (e g htlxx 1) " }, { "name" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) ", "" "partner (buyer) identifier (e g rdkxx mpbxxx) " }, { "name" "action", "kind" "required", "type" "string", "description" "must be set to pushpropertyinfo ", "" "must be set to pushpropertyinfo " }, { "name" "mappingstatus", "kind" "required", "type" "string", "description" "current mapping status for this property (e g active, suspended disconnected)\n", "" "current mapping status for this property (e g active, suspended disconnected)\n" }, { "name" "propertydata", "kind" "required", "type" "object", "description" "container for all static property, room, and rate plan data ", "" "container for all static property, room, and rate plan data ", "children" \[ { "name" "propertyname", "kind" "required", "type" "string", "description" "name of the property as shown to users " }, { "name" "country", "kind" "required", "type" "string", "description" "country name" }, { "name" "region", "kind" "required", "type" "string", "description" "region / state / province " }, { "name" "city", "kind" "required", "type" "string", "description" "city name " }, { "name" "area", "kind" "required", "type" "string", "description" "local area / neighborhood " }, { "name" "zipcode", "kind" "required", "type" "string", "description" "postal / zip code " }, { "name" "address", "kind" "required", "type" "string", "description" "street address " }, { "name" "latitude", "kind" "required", "type" "string", "description" "latitude of the property " }, { "name" "longitude", "kind" "required", "type" "string", "description" "longitude of the property " }, { "name" "prefixphone", "kind" "required", "type" "string", "description" "phone country code prefix (e g +1) " }, { "name" "phonenum", "kind" "required", "type" "string", "description" "phone number " }, { "name" "currency", "kind" "required", "type" "string", "description" "default selling currency code for the property " }, { "name" "roomtypes", "kind" "required", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomtypeid", "kind" "required", "type" "string", "description" "unique identifier for the room type" }, { "name" "roomname", "kind" "required", "type" "string", "description" "descriptive name of the room type (e g deluxe queen room with two queen beds) " }, { "name" "type", "kind" "required", "type" "string", "description" "dailyroom would be the used default category " }, { "name" "ratetypes", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "rateplanid", "kind" "required", "type" "string", "description" "unique identifier for the rate plan (e g rxx 1 2 1) " }, { "name" "rateplanname", "kind" "required", "type" "string", "description" "name of the rate plan (e g advance purchase ) " }, { "name" "canceltype", "kind" "required", "type" "string", "description" "cancellation rule type code (mapping provided by bakuun; e g 0 = non refundable, 1 = refundable) " }, { "name" "authperson", "kind" "required", "type" "string", "description" "maximum authorized occupancy (number of persons) for this rate plan " }, { "name" "defaultmeal", "kind" "required", "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" "required", "type" "string", "description" " assigned rate category (e g corporate, package, promotion)" }, { "name" "restrictedcountry", "kind" "required", "type" "string", "description" "optional country restrictions for selling this rate can be empty or contain a list of countries " } ] } ] } ], "schema" \[ { "name" "propertyname", "kind" "required", "type" "string", "description" "name of the property as shown to users " }, { "name" "country", "kind" "required", "type" "string", "description" "country name" }, { "name" "region", "kind" "required", "type" "string", "description" "region / state / province " }, { "name" "city", "kind" "required", "type" "string", "description" "city name " }, { "name" "area", "kind" "required", "type" "string", "description" "local area / neighborhood " }, { "name" "zipcode", "kind" "required", "type" "string", "description" "postal / zip code " }, { "name" "address", "kind" "required", "type" "string", "description" "street address " }, { "name" "latitude", "kind" "required", "type" "string", "description" "latitude of the property " }, { "name" "longitude", "kind" "required", "type" "string", "description" "longitude of the property " }, { "name" "prefixphone", "kind" "required", "type" "string", "description" "phone country code prefix (e g +1) " }, { "name" "phonenum", "kind" "required", "type" "string", "description" "phone number " }, { "name" "currency", "kind" "required", "type" "string", "description" "default selling currency code for the property " }, { "name" "roomtypes", "kind" "required", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomtypeid", "kind" "required", "type" "string", "description" "unique identifier for the room type" }, { "name" "roomname", "kind" "required", "type" "string", "description" "descriptive name of the room type (e g deluxe queen room with two queen beds) " }, { "name" "type", "kind" "required", "type" "string", "description" "dailyroom would be the used default category " }, { "name" "ratetypes", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "rateplanid", "kind" "required", "type" "string", "description" "unique identifier for the rate plan (e g rxx 1 2 1) " }, { "name" "rateplanname", "kind" "required", "type" "string", "description" "name of the rate plan (e g advance purchase ) " }, { "name" "canceltype", "kind" "required", "type" "string", "description" "cancellation rule type code (mapping provided by bakuun; e g 0 = non refundable, 1 = refundable) " }, { "name" "authperson", "kind" "required", "type" "string", "description" "maximum authorized occupancy (number of persons) for this rate plan " }, { "name" "defaultmeal", "kind" "required", "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" "required", "type" "string", "description" " assigned rate category (e g corporate, package, promotion)" }, { "name" "restrictedcountry", "kind" "required", "type" "string", "description" "optional country restrictions for selling this rate can be empty or contain a list of countries " } ] } ] } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "true", "children" \[] } ] }

