Connectivity Partner
...
Restrictions Room Level
Close Arrival Room Level
1 min
{ "name" "close arrival room level", "method" "post", "url" "https //wsb bakuun com/v2/push ari/cpb46/881826", "description" "pushes arrival restriction updates from connectivity partner to bakuun \n\nthis action notifies the partner when a property or room is closed or open for check in (arrival) on specific dates \n\nit ensures the partner system correctly prevents new arrivals on dates where the property does not accept check ins ", "tab" "examples", "examples" { "languages" \[ { "id" "r 8ym yoajhto8f4bblrm", "language" "json", "code" "{\n \\"sharepost\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"arrivalclosedrq\\",\n \\"data\\" \[\n {\n \\"startdateymd\\" \\"yyyy mm dd\\",\n \\"enddateymd\\" \\"yyyy mm dd\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"arrival\\",\n \\"status\\" \\"string\\"\n }\n ]\n}", "customlabel" "" }, { "id" "pgvoiirgrvaoo kvd kaw", "language" "curl", "code" "curl location 'https //wsb bakuun com/v2/push ari/cpb46/881826' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"sharepost\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"data\\" \\"array\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"string\\",\n \\"status\\" \\"string\\"\n}'", "customlabel" "" }, { "id" "b3b4q9bppgtiuns3gkqkj", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/push ari/cpb46/881826',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"sharepost\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"data\\" \\"array\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"string\\",\n \\"status\\" \\"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" "iosrnywasa73j5fbk8ffq", "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 \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"data\\" \\"array\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"string\\",\n \\"status\\" \\"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/push ari/cpb46/881826\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "5qlgkqpwojbjggl8eoq3r", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/push ari/cpb46/881826\\"\n\npayload = json dumps({\n \\"sharepost\\" \\"string\\",\n \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"data\\" \\"array\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"string\\",\n \\"status\\" \\"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" "qixl1omlpkakss7wpn6i4", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/push ari/cpb46/881826\\")\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 \\"sourceid\\" \\"string\\",\n \\"propertyid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"data\\" \\"array\\",\n \\"startdateymd\\" \\"string\\",\n \\"enddateymd\\" \\"string\\",\n \\"roomid\\" \\"string\\",\n \\"restriction\\" \\"string\\",\n \\"status\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "r 8ym yoajhto8f4bblrm" }, "results" { "languages" \[ { "id" "hifbzgqchsln3h59tz70s", "language" "200", "code" "{\n \\"success\\" true\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n}\n", "customlabel" "" }, { "id" "okdaypawwi1931fmxbhlr", "language" "410", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 410,\n \\"message\\" \\"unauthorized user\\"\n }\n ]\n}", "customlabel" "" }, { "id" "8xqvq1waslilsyot7 gb ", "language" "403", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 403,\n \\"message\\" \\"invalid restriction status\\"\n }\n ]\n}", "customlabel" "" }, { "id" "0bv3 8nfjzftp f1b1cip", "language" "404", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 404,\n \\"message\\" \\"invalid start date\\"\n }\n ]\n}", "customlabel" "" }, { "id" " cg9gsndssc2wn0wufhof", "language" "405", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 405,\n \\"message\\" \\"invalid end date\\"\n }\n ]\n}", "customlabel" "" }, { "id" "63z6z5lcceasjg hx2tbz", "language" "408", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 405,\n \\"message\\" \\"invalid end date\\"\n }\n ]\n}", "customlabel" "" }, { "id" "6dgk 0nhummdentt1dxup", "language" "415", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 405,\n \\"message\\" \\"invalid end date\\"\n }\n ]\n}", "customlabel" "" }, { "id" "mpoqouawworgaw0x2rpnb", "language" "416", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 405,\n \\"message\\" \\"invalid end date\\"\n }\n ]\n}", "customlabel" "" }, { "id" "bvdonsbntbs4b8jgmb17t", "language" "431", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 446,\n \\"message\\" \\"invalid property mapping\\"\n }\n ]\n}", "customlabel" "" }, { "id" "ckv1sopprmj5smtbhbowh", "language" "429", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 451,\n \\"message\\" \\"invalid room mapping\\"\n }\n ]\n}", "customlabel" "" }, { "id" "clgsoki7jbq16qu2szy1p", "language" "451", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"invalid endpoint \\"\n }\n ]\n}", "customlabel" "" }, { "id" "d1f ru3h trnrc3zvmwf5", "language" "418", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 471,\n \\"message\\" \\"source id blocked\\"\n }\n ]\n}", "customlabel" "" }, { "id" "jzt asnr7pvszhgs81jb0", "language" "414", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 453,\n \\"message\\" \\"mapping is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "jbrvjyhkg4cc x2ed43nt", "language" "424", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 453,\n \\"message\\" \\"mapping is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "pohnwqmnqpfrnuobbud2b", "language" "421", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"invalid endpoint\\"\n }\n ]\n}", "customlabel" "" }, { "id" "lralooxcgg6wjxijb6cco", "language" "500", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 500,\n \\"message\\" \\"internal server error\\"\n }\n ]\n}", "customlabel" "" }, { "id" "drdn5lv6p 2a09ua1jeoo", "language" "502", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 502,\n \\"message\\" \\"bad gateway\\"\n }\n ]\n}", "customlabel" "" }, { "id" "b4r1k cb7vfyxm9yypfna", "language" "504", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 504,\n \\"message\\" \\"endpoint request timed out\\"\n }\n ]\n}", "customlabel" "" }, { "id" "4gij8ckkwxser xdhxz6o", "language" "503", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 503,\n \\"message\\" \\"service unavailable\\"\n }\n ]\n}", "customlabel" "" }, { "id" "pisk2exk2i9gdfydourmc", "language" "409", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 442,\n \\"message\\" \\"endpoint is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "wk1szh0lspyavcerx9dpa", "language" "413", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 442,\n \\"message\\" \\"{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 440,\n \\"message\\" \\"endpoint is not active\\"\n }\n ]\n}\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "wk1szh0lspyavcerx9dpa" }, "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" "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" "propertyid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the connectivity partner) ", "" "unique property identifier (shared mapping between bakuun and the connectivity partner) " }, { "name" "action", "kind" "required", "type" "string", "description" "always set as arrivalclosedrq", "" "always set as arrivalclosedrq" }, { "name" "data", "kind" "required", "type" "array", "description" "list of arrival restriction records (each for a room/date range) ", "" "list of arrival restriction records (each for a room/date range) " }, { "name" "startdateymd", "kind" "required", "type" "string", "description" "start date of the update range, formatted as yyyy mm dd ", "" "start date of the update range, formatted as yyyy mm dd " }, { "name" "enddateymd", "kind" "required", "type" "string", "description" "end date of the update range, formatted as yyyy mm dd ", "" "end date of the update range, formatted as yyyy mm dd " }, { "name" "roomid", "kind" "required", "type" "string", "description" "id identifying the room type (as mapped between bakuun and the connectivity partner) ", "" "id identifying the room type (as mapped between bakuun and the connectivity partner) " }, { "name" "restriction", "kind" "required", "type" "string", "description" "restriction type always \\"arrival\\" for this action ", "" "restriction type always \\"arrival\\" for this action " }, { "name" "status", "kind" "required", "type" "string", "description" "restriction value \n\\"0\\" = open for arrival\n\\"1\\" = closed for arrival", "" "restriction value \n\\"0\\" = open for arrival\n\\"1\\" = closed for arrival" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false }

