const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.betterez.com/sales/cart',
  headers: {
    authorization: 'Bearer {{jwtToken}}',
    'Content-Type': 'application/json;charset=UTF-8',
    Accept: 'application/json, text/plain, */*',
    'x-api-key': '{{x-api-key}}'
  },
  body: '{"operationId": "{{some-GUID}}","providerId": "{{providerId}}","channel": "{{valid-channel}}","items": {"reservation": [{"productId": "{{productId}}","from": {"_id": "{{originId}}","name": "{{origin-station-name}}","province": "{{origin-station-province}}"},"to": {"_id": "{{destinationId}}","name": "{{destination-station-name}}","province": "{{destination-station-province}}"},"selectedTrips": {"departureTripId": "{{departureTripId}}","returnTripId": "{{returnTripId}}",},"roundTrip": true,"dateFrom": "{{date-from}}","dateTo": "","promo": "","passengers": [{"firstName": "{{passenger-first-name}}","lastName": "{{passenger-last-name}}","email": "{{passenger-email}}","fare": "{{fareName}}","fareId": "{{fareId}}","fareClassIds": {"outbound": "{{outboundFareClassId}}","return": "{{returnFareClassId}}"},"ssrs": [],"ticketsQuantity": 0,"roundTrip": true,"seats": [{"tripId": "{{tripId}}", "seatMapId": "{{seatMapId}}", "sectionId": "{{sectionId}}", "rowLabel": "{{rowLabel}}", "seatNumber": "{{seatNumber}}", "seatId": "{{seatId}}", "scheduleId": "{{scheduleId}}", "sectionName": "{{sectionName}}"}]}],"redeemableItemId": "","manualFees": []}]},"currency":{"buy":1,"sell":1,"isocode":"USD","symbol":"$"},"language":"en"}'
};

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

	console.log(body);
});