Buyer API (Push)
Mapping
Get Listing
1 min
{ "name" "get listing", "method" "post", "url" "https //wsb bakuun com/v2/getlisting/test/rdkxx/966102", "description" "retrieve the status of all properties mapped under a partner account in bakuun ", "tab" "examples", "examples" { "languages" \[ { "id" " a6ev31cslizcdtyzhisl", "language" "json", "code" "{\n \\"action\\" \\"getlisting\\",\n \\"authentication\\" {\n \\"username\\" \\"xxxxxx\\",\n \\"password\\" \\"xxxxx\\",\n \\"partnerid\\" \\"mpbxx\\"\n }\n}", "customlabel" "" }, { "id" "4apqe9vdxmyqmis7xjse6", "language" "curl", "code" "curl location 'https //wsb bakuun com/v2/getlisting/test/rdkxx/966102' \\\\\n header 'accept application/json' \\\\\n header 'content type application/json' \\\\\n data '{\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n}'", "customlabel" "" }, { "id" "ws4hcsaf1w9445ti4re8a", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'post',\n 'url' 'https //wsb bakuun com/v2/getlisting/test/rdkxx/966102',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json'\n },\n body json stringify({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"partnerid\\" \\"\\"\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" "r8xwixlr5gtxh 8tt4hnl", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\n\nvar raw = json stringify({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"partnerid\\" \\"\\"\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/getlisting/test/rdkxx/966102\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "kfu18p4ni43dru7et8f u", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //wsb bakuun com/v2/getlisting/test/rdkxx/966102\\"\n\npayload = json dumps({\n \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"partnerid\\" \\"\\"\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" "ifitvslu2ziunvmindgbk", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //wsb bakuun com/v2/getlisting/test/rdkxx/966102\\")\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 \\"action\\" \\"string\\",\n \\"authentication\\" {\n \\"username\\" \\"\\",\n \\"password\\" \\"\\",\n \\"partnerid\\" \\"\\"\n }\n})\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" " a6ev31cslizcdtyzhisl" }, "results" { "languages" \[ { "id" "bvujfridcm7llpyvvpe0n", "language" "200", "code" "{\n \\"status\\" \\"success\\",\n \\"totallisting\\" 78,\n \\"listingdata\\" \[\n {\n \\"propertyid\\" \\"htlxx 1\\",\n \\"propertyname\\" \\"hotel test\\",\n \\"mappingstatus\\" \\"draft\\"\n },\n {\n \\"propertyid\\" \\"htlxx 2\\",\n \\"propertyname\\" \\"hotel test\\",\n \\"mappingstatus\\" \\"suspended\\"\n },\n {\n \\"propertyid\\" \\"htlxx 3\\",\n \\"propertyname\\" \\"hotel test\\",\n \\"mappingstatus\\" \\"completed\\"\n },\n {\n \\"propertyid\\" \\"htlxx 4\\",\n \\"propertyname\\" \\"hotel test\\",\n \\"mappingstatus\\" \\"to start\\"\n },\n {\n \\"propertyid\\" \\"htlxx 5\\",\n \\"propertyname\\" \\"hotel test\\",\n \\"mappingstatus\\" \\"disconnected\\"\n }\n ]\n} ", "customlabel" "" }, { "id" "ccultxxxz8yicbm4ekxio", "language" "410 class", "code" "{\n \\"success\\" false,\n \\"errors\\" \[\n {\n \\"code\\" 410,\n \\"message\\" \\"unauthorized user\\"\n }\n ]\n }", "customlabel" "" } ], "selectedlanguageid" "ccultxxxz8yicbm4ekxio" }, "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "action", "kind" "required", "type" "string", "description" "defines the requested operation must be set to getlisting ", "" "defines the requested operation must be set to getlisting " }, { "name" "authentication", "kind" "required", "type" "object", "description" "", "" "", "children" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "password", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ], "schema" \[ { "name" "username", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "password", "kind" "required", "type" "string", "description" "system generated, human readable api access key (unique per account) " }, { "name" "partnerid", "kind" "required", "type" "string", "description" "partner (buyer) identifier (e g rdkxx mpbxxx) " } ] } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "hastryitout" false, "response" \[ { "name" "status", "kind" "optional", "type" "string", "description" "overall result of the request typical values \\"success\\" or \\"error\\" " }, { "name" "totallisting", "kind" "optional", "type" "integer", "description" "total number of properties returned for the authenticated partner account ", "children" \[] }, { "name" "listingdata", "kind" "optional", "type" "object", "description" "list of property objects with mapping information ", "children" \[ { "name" "propertyid", "kind" "optional", "type" "string", "description" "unique bakuun property identifier (e g htlxx 3)" }, { "name" "propertyname", "kind" "optional", "type" "string", "description" "display name of the property " }, { "name" "mappingstatus", "kind" "optional", "type" "string", "description" "current mapping status of the property in bakuun available status are \n draft\n to start\n completed\n disconnected\n suspended" } ] } ] } 41

