The itinerary array contains travel objects that define a portion of the itinerary. The itinerary array should only be included within the metadata object.

Attributes

AttributeData typeDescription
type stringThe type of itinerary object.
Allowed values:

- flight
- hotel
- cruise
- vacation_rental
- rental_car
sku stringThe booking/itinerary number (if applicable).
display_name stringReadable description of the itinerary item.
additional_valuearrayArray of data objects that may help Affirm verify the validity of the order. This is a future proofing attribute that allows receiving additional info without having to change the JSON structure of the itinerary objects.
add-onshashSet of key-value pairs that you can attach an amount in cents. This can be useful for storing additional information.

- trip_insurance
- seat_upgrade
- service_package
- mean_package_a
- pool_cabana
- late_checkout
- cleaning_service
- etc.

Flight attributes

Theflight type provides additional attributes that define each flight leg of the itinerary.

flight_numberstringThe unique identifier for a flight including the airline IATA code. For example, if describing United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'.
originstringAirport code of flight origin.
destinationstringAirport code of flight destination.
date_startdatetimeDate and time of take-off for flight segment. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_enddatetimeDate and time of take-off for flight segment. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_start_localdatetimeDate and time of take-off for flight segment. ISO format, excluding milliseconds. Note: This specific time should be kept in local time with the timezone specified.
date_end_localdatetimeDate and time of take-off for flight segment. ISO format, excluding milliseconds. Note: This specific time should be kept in local time with the timezone specified.
num_travelersintegerNumber of travelers.
travelersarrayArray of traveler objects that contains the details of the individuals flying.
{
   "type":"flight",
   "sku":"a9dladiak",
   "display_name":"MIA-DCA-2019-12-11T12:07",
   "flight_number":"UA110",
   "origin":"MIA",
   "destination":"DCA",
   "date_start":"2019-12-11T12:07",
   "date_end":"2019-12-11T15:21",
   "fare_type":"economy",
   "num_travelers":2,
   "travelers":{
      "0":{
         "name":"John Smith",
         "dob":"1954-12-26",
         "frequent_flyer_number":"false",
         "tsa_pre_enrolled":"true",
         "passport_number_on_file":"true"
      },
      "1":{
         "name":"Jane Smith",
         "dob":"1955-11-22",
         "frequent_flyer_number":"true",
         "tsa_pre_enrolled":"true",
         "passport_number_on_file":"true"
      }
   },
   "add-ons":{
      "trip_insurance":5300
   }
}

Hotel attributes

The hotel type provides additional attributes that define each hotel stay of the itinerary.

managementstringThe hotel corporation. For example, “Marriott”, “Hilton”, etc.
brandstringThe specific brand of the property.
locationobjectThe address object that can be parsed.
date_startdatetimeDate and time of check-in. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_enddatetimeDate and time of check-out. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
num_roomsintegerThe number of rooms that were included in the reservation.
rooms_detailsobjectThe room details.
num_travelersintegerNumber of travelers.
discount_ratesbooleanIs the customer receiving a discounted rate or not.
loyalty_programbooleanIs the customer enrolled in a loyalty program.
{
   "type":"hotel",
   "sku":"124blksn3",
   "display_name":"The Grand Hotel & Beach Club by ZZzz Hotels",
   "management":"ZZzz Hotels",
   "location":"3925 Collins Avenue, Miami Beach, FL, 33140, US",
   "date_start":"2019-12-05",
   "date_end":"2019-12-10",
   "num_rooms":1,
   "room_details":{
      "night_rate":19993,
      "room_type":"suite",
      "num_adults":2,
      "num_children":2,
      "num_beds":2
   },
   "num_traveler":4,
   "discount_rates":"true",
   "loyalty_program":"true"
}

Cruise attributes

The cruise type provides additional attributes that define each cruise itinerary.

cruiselinestringThe name of the cruise line. For example, "Carnival, "Norwegian", "Princess", etc.
originstringLocation where cruise will start.
destinationstringLocation where cruise will end.
location_stopsarrayArray of international port codes where the boat will stops.
date_startdatetimeDate and time of initial check in. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_enddatetimeDate and time of final check out. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
room_detailsobjectDetails around the room.
travelersarrayArray of traveler objects with additional details.
loyalty_programbooleanDid a loyalty program number was provided.

Vacation_rental attributes

The vacation_rental type provides additional attributes that define each vacation rented during the itinerary.

managementstringThe individual or company.
brandstringThe specific brand of the property.
locationarrayThe address object that can be parsed.
date_startdatetimeDate and time of check-in. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_enddatetimeDate and time of check-out. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
rental_detailsobjectDetails around the rental.
num_travelersintegerNumber of travelers.
loyalty_programbooleanDid a loyalty program number was provided.

Rental_car attributes

The rental_car type provides additional attributes that define each car rented during the itinerary.

companystringThe name of the rental car company. For example, "Hertz", "Enterprise", etc.
originstringAddress of the rental car pick-up location. Airport code if applicable.
destinationstringAddress of the rental car return location. Airport code if applicable.
date_startdatetimeDate and time of initial pick up. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
date_enddatetimeDate and time of final drop off. ISO format, excluding milliseconds. Note: All times should be converted into UTC, for standardization.
car_detailobjectDetails around the car.
driver_detaillistArray of driver names.
loyalty_programbooleanDid a loyalty program number was provided.