Connectivity Partner
Mapping
Push Property
1 min
{ "name" "push property", "method" "post", "url" "https //wsb bakuun com/v2/push property/test/{sourceid}/165688", "description" "sends property static data and mapping information from connectivity partner to bakuun \n\nthis action is typically used when \n\na new property is onboarded is updated in the connectivity partnner system or when the mapping status change\n", "tab" "examples", "examples" { "languages" \[ { "id" "rjxefdxztk ii0nh24633", "language" "json", "code" "{\n \\"sharepost\\" \\"wh1adag976ii6jyszkqoc2uoxqiqz5wi4wyj2iq0utfprci0gmgqphp6mgrkuf5x1nrwmurhxfxfkkb8q0jaz5ynngt2gkugfb8cfaoqofzcsjb6tbcjkz3uanf81xhnneyw081w71753258xxxxxx\\",\n \\"propertyid\\" \\"jhjkxxx\\",\n \\"sourceid\\" \\"cpbxx\\",\n \\"action\\" \\"pushpropertyinfo\\",\n \\"mappingstatus\\" \\"active\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"hotel test\\",\n \\"roomtypes\\" \[\n {\n \\"roomid\\" \\"r14xx x\\",\n \\"roomname\\" \\"r1xx x\\",\n \\"type\\" \\"dailyroom\\",\n \\"ratetypes\\" \[\n {\n \\"rateid\\" \\"r14xx x x\\",\n \\"rateplanname\\" \\"superior one room breakfast rate\\",\n \\"canceltype\\" \\"1\\",\n \\"authperson\\" \\"2\\",\n \\"defaultmeal\\" \\"ro\\",\n \\"ratecategory\\" \\"xx\\",\n \\"restrictedcountry\\" \\"vb\\"\n }\n ]\n }\n ]\n }\n}", "customlabel" "" }, { "id" "4jz1sire0d hdkvj gzsm", "language" "curl", "code" "curl location globoff 'https //wsb bakuun com/v2/push property/test/{sourceid}/165688' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"sharepost\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateid\\" \\"\\",\n \\"rateplanname\\" \\"\\"\n }\n }\n }\n}'", "customlabel" "" }, { "id" "30li vdn4gofvmpysksjx", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/push property/test/{sourceid}/165688',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"sharepost\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateid\\" \\"\\",\n \\"rateplanname\\" \\"\\"\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" "8kodnqdydu1sfsxefq zb", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"sharepost\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateid\\" \\"\\",\n \\"rateplanname\\" \\"\\"\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/{sourceid}/165688\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "gx9wocgjyla12rylb1epl", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/push property/test/{sourceid}/165688\\"\n\npayload = json dumps({\n \\"sharepost\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateid\\" \\"\\",\n \\"rateplanname\\" \\"\\"\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" "dehorieayplsusy1x2eqj", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/push property/test/{sourceid}/165688\\")\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 \\"sharepost\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"mappingstatus\\" \\"string\\",\n \\"propertydata\\" {\n \\"propertyname\\" \\"\\",\n \\"roomtypes\\" {\n \\"roomid\\" \\"\\",\n \\"roomname\\" \\"\\",\n \\"type\\" \\"\\",\n \\"ratetypes\\" {\n \\"rateid\\" \\"\\",\n \\"rateplanname\\" \\"\\"\n }\n }\n }\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 \\"message\\" \\"property info validated and mappings exist \\",\n \\"trackingid\\" \\"6895dcaca77bdcd61a0a0b99\\"\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" "sharepost", "kind" "required", "type" "string", "description" "system generated, human readable secret api access key (unique per account) ", "" "system generated, human readable secret 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" "sourceid", "kind" "required", "type" "string", "description" "connectivity partner identifier assigned by bakuun (e g cpbxx)", "" "connectivity partner identifier assigned by bakuun (e g cpbxx)" }, { "name" "action", "kind" "required", "type" "string", "description" "always set as pushpropertyinfo ", "" "always set as pushpropertyinfo " }, { "name" "mappingstatus", "kind" "required", "type" "string", "description" "current mapping status for this property , available options are \nactive\nsuspended \ndisconnected", "" "current mapping status for this property , available options are \nactive\nsuspended \ndisconnected" }, { "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" "roomtypes", "kind" "required", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomid", "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 type" }, { "name" "ratetypes", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "rateid", "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" "optional", "type" "string", "description" "cancellation rule type code (mapping provided by bakuun; e g 0 = non refundable, 1 = refundable) " }, { "name" "authperson", "kind" "optional", "type" "string", "description" "maximum authorized occupancy (number of persons) for this rate plan " }, { "name" "defaultmeal", "kind" "optional", "type" "string", "description" "default meal plan code \n0 = room only\n1 = breakfast\n2 = half board\n3 = full board" }, { "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 " } ] } ] } ], "schema" \[ { "name" "propertyname", "kind" "required", "type" "string", "description" "name of the property as shown to users " }, { "name" "roomtypes", "kind" "required", "type" "object", "description" "list of room types configured for this property ", "children" \[ { "name" "roomid", "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 type" }, { "name" "ratetypes", "kind" "required", "type" "object", "description" "", "children" \[ { "name" "rateid", "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" "optional", "type" "string", "description" "cancellation rule type code (mapping provided by bakuun; e g 0 = non refundable, 1 = refundable) " }, { "name" "authperson", "kind" "optional", "type" "string", "description" "maximum authorized occupancy (number of persons) for this rate plan " }, { "name" "defaultmeal", "kind" "optional", "type" "string", "description" "default meal plan code \n0 = room only\n1 = breakfast\n2 = half board\n3 = full board" }, { "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 " } ] } ] } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "string", "description" "true" } ] }

