Connectivity Partner
Booking
Cancel
1 min
{ "name" "cancel booking", "method" "post", "url" "https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx", "description" "provides the connectivity partner with the cancellation payload generated by bakuun, confirming the booking status change and including all relevant reservation identifiers and cancellation details ", "tab" "examples", "examples" { "languages" \[ { "id" "n1 rf0ojokeo vl1rex h", "language" "json", "code" "{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"pushcancelbooking\\",\n \\"reservationdetail\\" \[\n {\n \\"propertyid\\" \\"string\\",\n \\"propertyname\\" \\"string\\",\n \\"reservationid\\" \\"string\\",\n \\"reservationstatus\\" \\"cancel\\"\n }\n ]\n}", "customlabel" "" }, { "id" "4juzwb ykmlf0nlviothp", "language" "curl", "code" "curl location 'https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "vk3ntxu45wcw9vt9h1j3t", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\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" "5p921glbdwh rhhus mbr", "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 \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "qy1ndglrkxgddotmcl33q", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\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" "owugdqv2ocqf9mknay pt", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\")\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 \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "6 dz4 zs ri3vskyluqrk", "language" "curl", "code" "curl location 'https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "5g6ntulyuumfgmh0shhug", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\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" "b3kgtbfvotsf6nskxowvm", "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 \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n});\n\nvar requestoptions = {\n method 'post',\n headers myheaders,\n body raw,\n redirect 'follow'\n};\n\nfetch(\\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "pcgrq6u zjjbrm9pjrcbf", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\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" "etibu6zsxhosn4jnnzzo2", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v1/booking/pushreservationapi/cpbxxx\\")\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 \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"reservationdetail\\" {\n \\"propertyid\\" \\"\\",\n \\"propertyname\\" \\"\\",\n \\"reservationid\\" \\"\\",\n \\"reservationstatus\\" \\"\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "n1 rf0ojokeo vl1rex h" }, "results" { "languages" \[ { "id" "qcanlqmojpvvqf xle8z1", "language" "200", "code" "{\n \\"success\\" true\n}", "customlabel" "" }, { "id" "tpgb3tsxwkhqnibemk9ec", "language" "408", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 408,\n \\"message\\" \\"processing error\\"\n }\n ]\n}", "customlabel" "" }, { "id" "yetwdfk4fksxzxv1tks97", "language" "415", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 415,\n \\"message\\" \\"invalid authentication key\\"\n }\n ]\n}", "customlabel" "" }, { "id" "qlajlewtkia8esrvbbxqh", "language" "451", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 476,\n \\"message\\" \\"reservation id not found\\"\n }\n ]\n}", "customlabel" "" }, { "id" "v7ub27q1ka82kpllmv7zy", "language" "431", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 440,\n \\"message\\" \\"reservation id not found\\"\n }\n ]\n}", "customlabel" "" }, { "id" "xjrxqiutip hoxzjvure6", "language" "429", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 442,\n \\"message\\" \\"endpoint is not active\\"\n }\n ]\n}", "customlabel" "" }, { "id" "zm1jxyxu5e2ikao3opzcv", "language" "428", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 454,\n \\"message\\" \\"invalid endpoint\\"\n }\n ]\n}", "customlabel" "" }, { "id" "zkemts01feqxmpe2nwjli", "language" "500", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 500,\n \\"message\\" \\"internal server error\\"\n }\n ]\n}", "customlabel" "" }, { "id" "oxx6uocuivt4 fno5fmu1", "language" "502", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 502,\n \\"message\\" \\"bad gateway\\"\n }\n ]\n}", "customlabel" "" }, { "id" "gbestt1zzzswitd b z6x", "language" "503", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 503,\n \\"message\\" \\"service unavailable\\"\n }\n ]\n}", "customlabel" "" }, { "id" "nndoy1yc elswylex0xhr", "language" "504", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 504,\n \\"message\\" \\"endpoint request timed out\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "nndoy1yc elswylex0xhr" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "username", "kind" "required", "type" "string", "description" "api username provided by the connectivity partner to authenticate incoming requests from bakuun ", "" "api username provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "password", "kind" "required", "type" "string", "description" "api password provided by the connectivity partner to authenticate incoming requests from bakuun ", "" "api password provided by the connectivity partner to authenticate incoming requests from bakuun " }, { "name" "partnerid", "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 pushcancelbooking", "" "always set as pushcancelbooking" }, { "name" "reservationdetail", "kind" "required", "type" "object", "description" "", "" "required", "children" \[ { "name" "propertyid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the connectivity partner) " }, { "name" "propertyname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "reservationid", "kind" "required", "type" "string", "description" "reservation id generaed by bakuun" }, { "name" "reservationstatus", "kind" "required", "type" "string", "description" "always set as cancel" } ], "schema" \[ { "name" "propertyid", "kind" "required", "type" "string", "description" "unique property identifier (shared mapping between bakuun and the connectivity partner) " }, { "name" "propertyname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "reservationid", "kind" "required", "type" "string", "description" "reservation id generaed by bakuun" }, { "name" "reservationstatus", "kind" "required", "type" "string", "description" "always set as cancel" } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false }

