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

🚧

Travel Merchant Requirement

If you are a travel merchant, you are required to include the itinerary object in your checkout flow.

Attributs

AttributType de donnéesDescription
Type stringThe type of itinerary object.
Allowed values:
- flight
- hotel
- cruise
- vacation_rental
- rental_car
- event
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.

AttributsType de donnéesDescription
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.

Exemple

{
   "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.

AttributsType de donnéesDescription
managementstringThe hotel corporation. For example, “Marriott”, “Hilton”, etc.
marquestringThe specific brand of the property.
locationobjetThe 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_detailsobjetThe 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.

Exemple

{
   "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.

AttributType de donnéesDescription
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 stop.
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_detailsobjetDetails around the room.
travelersarrayArray of traveler objects with additional details.
loyalty_programbooleanIs the customer enrolled in a loyalty program.

Vacation_rental attributes

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

AttributsType de donnéesDescription
managementstringThe individual or company.
marquestringThe 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_detailsobjetDetails around the rental.
num_travelersintegerNumber of travelers.
loyalty_programbooleanIs the customer enrolled in a loyalty program.

Rental_car attributes

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

AttributsType de donnéesDescription
sociétéstringThe 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_detailobjetDetails around the car.
driver_detaillisteArray of driver names.
loyalty_programbooleanIs the customer enrolled in a loyalty program.

Event attributes

AttributsType de donnéesDescription
venuestringThe name of the venue where the event is hosted. E.g., "Yankee Stadium".
locationstringThe 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.

Exemple

{
"type":"event",
"sku":"ABC123",
"display_name":"Bad Bunny at Petco Park",
"venue": "Petco Park",
"location": "100 Park Blvd, San Diego, CA 92101, US",
"date_start":"2022-12-06T03:00:00.000Z UTC"
}