Connectivity Partner
...
Restrictions Rate Plan Level
Close Arrival Rate Plan
1 min
{ "name" "close arrival rate plan", "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 a specific room condition (rateid) is closed or open for arrival (check in) on selected date ranges \nit ensures both systems remain synchronized when hotels apply “no check in” or “check in allowed” restrictions to specific rate plans or room conditions ", "tab" "examples", "examples" { "languages" \[ { "id" "r 8ym yoajhto8f4bblrm", "language" "json", "code" "{\n \\"sharepost\\" \\"xxxx\\",\n \\"sourceid\\" \\"xxx\\",\n \\"propertyid\\" \\"xxx\\",\n \\"action\\" \\"arrivalcondclosed\\",\n \\"data\\" \[\n {\n \\"startdateymd\\" \\"yyyy mm dd\\",\n \\"enddateymd\\" \\"yyyy mm dd\\",\n \\"roomid\\" \\"xxx\\",\n \\"rateid\\" \\"xxx\\",\n \\"restriction\\" \\"arrival\\",\n \\"status\\" \\"x\\"\n }\n ]\n}", "customlabel" "" }, { "id" "bg07 m3grpavv2drqhb7g", "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\\" {\n \\"startdateymd\\" \\"\\",\n \\"enddateymd\\" \\"\\",\n \\"roomid\\" \\"\\",\n \\"rateid\\" \\"\\",\n \\"restriction\\" \\"\\",\n \\"status\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "kascev23qukto642oco8n", "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\\" {\n \\"startdateymd\\" \\"\\",\n \\"enddateymd\\" \\"\\",\n \\"roomid\\" \\"\\",\n \\"rateid\\" \\"\\",\n \\"restriction\\" \\"\\",\n \\"status\\" \\"\\"\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" "3rd5c 8tolsi67voonyow", "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\\" {\n \\"startdateymd\\" \\"\\",\n \\"enddateymd\\" \\"\\",\n \\"roomid\\" \\"\\",\n \\"rateid\\" \\"\\",\n \\"restriction\\" \\"\\",\n \\"status\\" \\"\\"\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 ari/cpb46/881826\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "abjydcqhvres ivyo7gst", "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\\" {\n \\"startdateymd\\" \\"\\",\n \\"enddateymd\\" \\"\\",\n \\"roomid\\" \\"\\",\n \\"rateid\\" \\"\\",\n \\"restriction\\" \\"\\",\n \\"status\\" \\"\\"\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" "odeybfedq7mczydzj6342", "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\\" {\n \\"startdateymd\\" \\"\\",\n \\"enddateymd\\" \\"\\",\n \\"roomid\\" \\"\\",\n \\"rateid\\" \\"\\",\n \\"restriction\\" \\"\\",\n \\"status\\" \\"\\"\n }\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" "428", "code" "{\n \\"success\\" false,\n \\"trackingid\\" \\"xxxxxxxxxxxxx\\",\n \\"errors\\" \[\n {\n \\"code\\" 452,\n \\"message\\" \\"invalid rate plan mapping\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "hifbzgqchsln3h59tz70s" }, "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 arrivalcondclosed", "" "always set as arrivalcondclosed" }, { "name" "data", "kind" "required", "type" "object", "description" "list of arrival restriction records for one or more rooms and conditions ", "" "list of arrival restriction records for one or more rooms and conditions ", "children" \[ { "name" "startdateymd", "kind" "required", "type" "string", "description" "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 " }, { "name" "roomid", "kind" "required", "type" "string", "description" "id identifying the room type (as mapped between bakuun and the connectivity partner) " }, { "name" "rateid", "kind" "required", "type" "string", "description" "id identifying the rate type (as mapped between bakuun and the connectivity partner) " }, { "name" "restriction", "kind" "required", "type" "string", "description" "restriction type , for this action, always \\"arrival\\"" }, { "name" "status", "kind" "required", "type" "string", "description" "restriction flag \n\\"1\\" = closed for arrival\n\\"0\\" = open for arrival" } ], "schema" \[ { "name" "startdateymd", "kind" "required", "type" "string", "description" "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 " }, { "name" "roomid", "kind" "required", "type" "string", "description" "id identifying the room type (as mapped between bakuun and the connectivity partner) " }, { "name" "rateid", "kind" "required", "type" "string", "description" "id identifying the rate type (as mapped between bakuun and the connectivity partner) " }, { "name" "restriction", "kind" "required", "type" "string", "description" "restriction type , for this action, always \\"arrival\\"" }, { "name" "status", "kind" "required", "type" "string", "description" "restriction flag \n\\"1\\" = closed for arrival\n\\"0\\" = open for arrival" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false }

