Buyer API (Push)
...
Read Booking
Bulk Bookings Retrieval
1 min
{ "name" "bulk bookings retrieval", "method" "post", "url" "https //wsb bakuun com/v1/read booking/rdkxx/834809", "description" "returns multiple bookings acknowledgment confirming successful processing by bakuun, including the partner’s original reservation id, bakuun’s internal booking id, and the resulting booking status ", "tab" "examples", "examples" { "languages" \[ { "id" "polhsw0fal 4gozdfskjr", "language" "json", "code" "{\n \\"username\\" \\"xxxx\\",\n \\"password\\" \\"xxxx\\",\n \\"partnerid\\" \\"rdkxxx\\",\n \\"action\\" \\"readbulkbookingrq\\",\n \\"bookingdatefrom\\" \\"yyyy mm dd\\",\n \\"bookingdateto\\" \\"yyyy mm dd\\"\n}", "customlabel" "" }, { "id" "mnvam4b4s8ns3mbjawo9v", "language" "curl", "code" "curl location 'https //wsb bakuun com/v1/read booking/rdkxx/834809' \\\\\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 \\"bookingdatefrom\\" \\"string\\",\n \\"bookingdateto\\" \\"string\\"\n}'", "customlabel" "" }, { "id" "xniuofgl6hz9nn6ah9xoe", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v1/read booking/rdkxx/834809',\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 \\"bookingdatefrom\\" \\"string\\",\n \\"bookingdateto\\" \\"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" "x2x9ryclyxk qs9rhftih", "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 \\"bookingdatefrom\\" \\"string\\",\n \\"bookingdateto\\" \\"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/read booking/rdkxx/834809\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "ggdji63kdpdlguws864ew", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v1/read booking/rdkxx/834809\\"\n\npayload = json dumps({\n \\"username\\" \\"string\\",\n \\"password\\" \\"string\\",\n \\"partnerid\\" \\"string\\",\n \\"action\\" \\"string\\",\n \\"bookingdatefrom\\" \\"string\\",\n \\"bookingdateto\\" \\"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" "ihaahhijgg6mlqhqyzbog", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v1/read booking/rdkxx/834809\\")\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 \\"bookingdatefrom\\" \\"string\\",\n \\"bookingdateto\\" \\"string\\"\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "polhsw0fal 4gozdfskjr" }, "results" { "languages" \[ { "id" "inx ac2uwxrduwmplwzuu", "language" "200", "code" "{\n \\"success\\" true,\n \\"reservation\\" \[\n {\n \\"yourbookingid\\" \\"xxxxx\\",\n \\"ourbookingid\\" \\"rdk11 testbook111 bakuun channel\\",\n \\"statusbooking\\" \\"confirmed\\"\n },\n {\n \\"yourbookingid\\" \\"xxxxx\\",\n \\"ourbookingid\\" \\"rdk11 testbook121 bakuun channel\\",\n \\"statusbooking\\" \\"confirmed\\"\n }\n ]\n}", "customlabel" "" }, { "id" "mv5ghsmvy7vtys8mbgint", "language" "451", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 477,\n \\"message\\" \\"no booking to retrieve\\"\n }\n ]\n}", "customlabel" "" } ], "selectedlanguageid" "inx ac2uwxrduwmplwzuu" }, "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" "action", "kind" "required", "type" "string", "description" "always set as readbulkbookingrq", "" "always set as readbulkbookingrq" }, { "name" "bookingdatefrom", "kind" "required", "type" "string", "description" "start date from which the booking records should be retrieved or included in the update, formatted as yyyy mm dd ", "" "start date from which the booking records should be retrieved or included in the update, formatted as yyyy mm dd " }, { "name" "bookingdateto", "kind" "required", "type" "string", "description" "end date from which the booking records should be retrieved or included in the update, formatted as yyyy mm dd ", "" "end date from which the booking records should be retrieved or included in the update, formatted as yyyy mm dd " } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "success", "kind" "optional", "type" "boolean", "description" "list of bookings acknowledgements returned for the request " }, { "name" "reservation", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "yourbookingid", "kind" "optional", "type" "string", "description" "the reservation identifier sent by the partner in the original request " }, { "name" "ourbookingid", "kind" "optional", "type" "string", "description" "the booking id generated by bakuun " }, { "name" "statusbooking", "kind" "optional", "type" "string", "description" "the status of the booking as processed by bakuun (e g , confirmed, cancelled) " } ] } ] }

