Buyer API (Push)
...
New
Acknowledgement
1 min
{ "name" "acknowledgement", "method" "post", "url" "https //wsb bakuun com/v1/booking/mpbxx/668451", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "nwqsuc0yyaxzpbxc7hsc4", "language" "json", "code" "{\n \\"username\\" \\"xxxxx\\",\n \\"password\\" \\"xxxxx\\",\n \\"partnerid\\" \\"rdkxxx\\",\n \\"partnername\\" \\"xxxxx\\",\n \\"action\\" \\"getbooking\\",\n \\"hotelreservation\\" \[\n {\n \\"hotelcode\\" \\"xxx\\",\n \\"hotelname\\" \\"xxxx\\",\n \\"resstatus\\" \\"new\\",\n \\"bookingtokencode\\" \\"xxxxxx\\",\n \\"resid\\" \\"xxxxx\\"\n }\n ],\n \\"warnings\\" \[],\n \\"errors\\" \[]\n}", "customlabel" "" }, { "id" "ycdx4iabfnxyfznnp5hp0", "language" "curl", "code" "curl location 'https //wsb bakuun com/v1/booking/mpbxx/668451' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"bookingtokencode\\" \\"\\",\n \\"resid\\" \\"\\"\n },\n \\"warnings\\" \\"array\\",\n \\"errors\\" \\"string\\"\n}'", "customlabel" "" }, { "id" "ir9xfaurkcbtv0hhjkprd", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v1/booking/mpbxx/668451',\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 \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"bookingtokencode\\" \\"\\",\n \\"resid\\" \\"\\"\n },\n \\"warnings\\" \\"array\\",\n \\"errors\\" \\"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" "ic9yjysztupptdo8ef5y9", "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 \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"bookingtokencode\\" \\"\\",\n \\"resid\\" \\"\\"\n },\n \\"warnings\\" \\"array\\",\n \\"errors\\" \\"string\\"\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/mpbxx/668451\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "mnyqhgue2 nmrsuhw3drm", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v1/booking/mpbxx/668451\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"bookingtokencode\\" \\"\\",\n \\"resid\\" \\"\\"\n },\n \\"warnings\\" \\"array\\",\n \\"errors\\" \\"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" "cytotlnkajf wsf0lunxz", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v1/booking/mpbxx/668451\\")\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 \\"partnername\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"hotelreservation\\" {\n \\"hotelcode\\" \\"\\",\n \\"hotelname\\" \\"\\",\n \\"resstatus\\" \\"\\",\n \\"bookingtokencode\\" \\"\\",\n \\"resid\\" \\"\\"\n },\n \\"warnings\\" \\"array\\",\n \\"errors\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "nwqsuc0yyaxzpbxc7hsc4" }, "results" { "languages" \[ { "id" "38fznvoie bnlypuvjywh", "language" "200", "code" "{\n \\"success\\" true,\n \\"message\\" \\"reservation success\\",\n \\"reservationid\\" \\"rdk00009360\\"\n}", "customlabel" "" }, { "id" "13et4ryah9wuvy10huiqk", "language" "451", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 449,\n \\"message\\" \\"check in date exceeded\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "38fznvoie bnlypuvjywh" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, api access secret key (unique per account) ", "" "system generated, api access secret key (unique per account) " }, { "name" "password", "kind" "required", "type" "string", "description" "system generated, api access secret key (unique per account) ", "" "system generated, api access secret key (unique per account) " }, { "name" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) ", "" "partner (buyer) identifier (e g rdkxx mpbxxx) " }, { "name" "partnername", "kind" "required", "type" "string", "description" "partner (buyer) name", "" "partner (buyer) name" }, { "name" "action", "kind" "required", "type" "string", "description" "always set as getbooking", "" "always set as getbooking" }, { "name" "hotelreservation", "kind" "required", "type" "object", "description" "", "" "required", "children" \[ { "name" "hotelcode", "kind" "required", "type" "string", "description" "unique bakuun or partner property id " }, { "name" "hotelname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "resstatus", "kind" "required", "type" "string", "description" "always set as new" }, { "name" "bookingtokencode", "kind" "required", "type" "string", "description" "unique token code generated in pre booking response" }, { "name" "resid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ], "schema" \[ { "name" "hotelcode", "kind" "required", "type" "string", "description" "unique bakuun or partner property id " }, { "name" "hotelname", "kind" "required", "type" "string", "description" "hotel/property name " }, { "name" "resstatus", "kind" "required", "type" "string", "description" "always set as new" }, { "name" "bookingtokencode", "kind" "required", "type" "string", "description" "unique token code generated in pre booking response" }, { "name" "resid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ] }, { "name" "warnings", "kind" "required", "type" "array", "description" "", "" "required" }, { "name" "errors", "kind" "required", "type" "string", "description" "", "" "required" } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "" }, { "name" "message", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "reservationid", "kind" "optional", "type" "string", "description" "generate reservation id", "children" \[] } ] }

