Back to Example List

OTA Rates response

      var ttwebHotel = new TTWebHotel(TTWebHotel.Reztrip, {
        hotelId: 'NYCSTW', //'NYCREF',
        portalId: 'stewarthotelnyc',
        defaultTimezone: 'America/New_York',
        ipAddress: sessionStorage.ip_add,
        defaultCurrency: 'USD',
        defaultLocale: 'en-US',
        // rootPath: 'https://rt3api-prd-ase.ttaws.com',
        localeFileRoot: '/locales/',
        localeOverrides: {
          'conversion-plus': {
            labels: {
              guaranteed_price: 'Web-Exclusive Special Offer'
            }
          }
        }
      })
      ttwebHotel.ready(function() {
        ttwebHotel.Rt3Api.offers().then((response) => {
          document.getElementById('offerResponse').innerHTML = JSON.stringify(response,null,4);
        });
      });
    
Response: