Connectivity Partner
...
Restrictions Rate Plan Level
Stop Sell Rate Plan
1 min
{ "name" "stop sell rate plan", "method" "post", "url" "https //wsb bakuun com/v2/push ari/cpb46/881826", "description" "pushes master stop sell / open sell status updates from connectivity partner to bakuun \n\nthis action communicates to the partner when a property or specific room type becomes closed (stop sell) or open (sell allowed) for given date ranges \nit ensures both systems maintain synchronized availability and restrictions \n\na \\"master\\" restriction applies at the room level, regardless of rate plan \n\nif multiple records are sent, each represents a unique combination of roomcode and date range \n", "tab" "examples", "examples" { "languages" \[ { "id" "r 8ym yoajhto8f4bblrm", "language" "json", "code" "{\n \\"sharepost\\" \\"xxxx\\",\n \\"sourceid\\" \\"xxx\\",\n \\"propertyid\\" \\"xxx\\",\n \\"action\\" \\"mastercondclosed\\",\n \\"data\\" \[\n {\n \\"startdateymd\\" \\"yyyy mm dd\\",\n \\"enddateymd\\" \\"yyyy mm dd\\",\n \\"roomid\\" \\"xxx\\",\n \\"rateid\\" \\"xxx\\",\n \\"restriction\\" \\"master\\",\n \\"status\\" \\"xx\\"\n }\n ]\n}", "customlabel" "" }, { "id" "fggz76zoqlb xsnl8mvzl", "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" "abuoghq4oxvrroy8aknq0", "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" "ty0 y91w5tga 6sm4rvwu", "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" "fgfobj1p0aappdirpc9jf", "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" "sim oh1irqf5b3sivretv", "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" "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 mastercondclosed", "" "always set as mastercondclosed" }, { "name" "data", "kind" "required", "type" "object", "description" "list of departure restriction records (each corresponding to a room/date range) \n", "" "list of departure restriction records (each corresponding to a room/date range) \n", "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 \\"master\\"" }, { "name" "status", "kind" "required", "type" "string", "description" "condition status flag \n\\"1\\" = closed (condition not sellable)\n\\"0\\" = open (condition sellable)" } ], "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 \\"master\\"" }, { "name" "status", "kind" "required", "type" "string", "description" "condition status flag \n\\"1\\" = closed (condition not sellable)\n\\"0\\" = open (condition sellable)" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false }

