Back to Example List

OTA Rates response

      rt3.getOTARates({'arrival_date':'2016-12-14', 'departure_date':'2016-12-15'}).then(function(response){
        var rates= response;
        document.getElementById('otaResponse').innerHTML = JSON.stringify(rates,null,4);
        console.log("BRG rates" );
        console.log(rates);

      }).catch(function(error){
        console.log("BRG rates" );
        console.log(error);
        document.getElementById('otaResponse').innerHTML = JSON.stringify(error,null,4);
      });
    
Response: