const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.betterez.com/operations/trip-change-info/:productId',
  qs: {
    ticketNumber: ':ticketNumber-to-be-changed',
    lastName: ':customerLastName-not-passenger',
    departureDate: ':new-departure-date',
    returnDate: ':new-return-date'
  },
  headers: {'x-api-key': '{{x-api-key}}'}
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);

	console.log(body);
});