Create a travel itinerary reservation item
post
/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/{expenseTravelItinerariesUniqID}/child/itineraryReservations/{itineraryReservationsUniqID}/child/reservationItems
Request
Path Parameters
-
expenseTravelItinerariesUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Expense Travel Itineraries resource and used to uniquely identify an instance of Expense Travel Itineraries. The client should not generate the hash key value. Instead, the client should query on the Expense Travel Itineraries collection resource in order to navigate to a specific instance of Expense Travel Itineraries to get the hash key.
-
itineraryReservationsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Expense Travel Itinerary Reservations resource and used to uniquely identify an instance of Expense Travel Itinerary Reservations. The client should not generate the hash key value. Instead, the client should query on the Expense Travel Itinerary Reservations collection resource in order to navigate to a specific instance of Expense Travel Itinerary Reservations to get the hash key.
Header Parameters
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AircraftTypeCode: string
Maximum Length:
30
Global distribution system aircraft type code for airplane used in a flight. -
ArrivalCity: string
Maximum Length:
64
Arrival city for airport or train station. -
ArrivalCountry: string
Maximum Length:
64
Arrival country for airport or train station. -
ArrivalCountryCode: string
Maximum Length:
30
Arrival country code for airport or train station. -
ArrivalDateTime: string
Maximum Length:
32
Arrival date and time in arrival city. -
ArrivalLocationCode: string
Maximum Length:
30
Arrival airport or train station code. -
ArrivalLocationName: string
Maximum Length:
80
Arrival airport or train station name. -
ArrivalState: string
Maximum Length:
64
Arrival state or province name for airport or train station. -
ArrivalStateCode: string
Maximum Length:
30
Arrival state or province code for airport or train station. -
CancelledFlag: boolean
Indicates whether the reservation item is canceled. When this value is set to Y the reservation item gets removed from the itinerary.
-
ConnectionTypeCode: string
Maximum Length:
30
Connection indicator for nondirect travel segments such as O for outbound, I for inbound, IO for inbound and outbound connecting stops. -
DepartureCity: string
Maximum Length:
64
Departure city name for airport or train station. -
DepartureCountry: string
Maximum Length:
64
Departure country for airport or train station. -
DepartureCountryCode: string
Maximum Length:
30
Departure country code for airport or train station. -
DepartureDateTime: string
Maximum Length:
32
Departure date and time in departure city local time. -
DepartureLocationCode: string
Maximum Length:
30
Global distribution system code for departure airport or train station. -
DepartureLocationName: string
Maximum Length:
80
Departure airport or train station name. -
DepartureState: string
Maximum Length:
64
Departure state or province name for airport or train station. -
DepartureStateCode: string
Maximum Length:
30
Departure state or province code for airport or train station. -
FareClass: string
Maximum Length:
64
Travel fare class of the seat on the flight. -
FlightNumber: string
Maximum Length:
16
Flight number for air travel segment. -
ItemConfirmationNumber: string
Maximum Length:
32
Confirmation number of AIR or RAIL reservation at the travel segment level. -
ItineraryReservationId: integer
(int64)
The unique identifier of an air or rail reservation to which a travel segment belongs.
-
MarketAirlineCode: string
Maximum Length:
30
Global distribution system marketing airline code for a flight. -
NumberInParty: integer
(int32)
Number of travelers in the party.
-
OperatingAirlineCode: string
Maximum Length:
30
Global distribution system operating airline code for a flight. -
OperatingAirlineName: string
Maximum Length:
120
Operating airline name for a flight. -
PolicyViolation: string
Maximum Length:
240
Policy violation text displayed to the employee while booking the reservation. -
RailVendorCode: string
Maximum Length:
30
Global distribution system code for the rail carrier. -
ReservationGlobalDistributionCode: string
Maximum Length:
30
Global distribution code for the reservation or booking. -
ReservationItemId: integer
(int64)
The unique identifier of a travel segment for an AIR or RAIL reservation.
-
TrainNumber: string
Maximum Length:
16
Train number for rail travel segment.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : expenseTravelItineraries-itineraryReservations-reservationItems-item-response
Type:
Show Source
object
-
AircraftTypeCode: string
Maximum Length:
30
Global distribution system aircraft type code for airplane used in a flight. -
ArrivalCity: string
Maximum Length:
64
Arrival city for airport or train station. -
ArrivalCountry: string
Maximum Length:
64
Arrival country for airport or train station. -
ArrivalCountryCode: string
Maximum Length:
30
Arrival country code for airport or train station. -
ArrivalDateTime: string
Maximum Length:
32
Arrival date and time in arrival city. -
ArrivalLocationCode: string
Maximum Length:
30
Arrival airport or train station code. -
ArrivalLocationName: string
Maximum Length:
80
Arrival airport or train station name. -
ArrivalState: string
Maximum Length:
64
Arrival state or province name for airport or train station. -
ArrivalStateCode: string
Maximum Length:
30
Arrival state or province code for airport or train station. -
CancelledFlag: boolean
Indicates whether the reservation item is canceled. When this value is set to Y the reservation item gets removed from the itinerary.
-
ConnectionTypeCode: string
Maximum Length:
30
Connection indicator for nondirect travel segments such as O for outbound, I for inbound, IO for inbound and outbound connecting stops. -
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the row. -
CreationDate: string
(date-time)
Read Only:
true
Date and time when the row was created. -
DepartureCity: string
Maximum Length:
64
Departure city name for airport or train station. -
DepartureCountry: string
Maximum Length:
64
Departure country for airport or train station. -
DepartureCountryCode: string
Maximum Length:
30
Departure country code for airport or train station. -
DepartureDateTime: string
Maximum Length:
32
Departure date and time in departure city local time. -
DepartureLocationCode: string
Maximum Length:
30
Global distribution system code for departure airport or train station. -
DepartureLocationName: string
Maximum Length:
80
Departure airport or train station name. -
DepartureState: string
Maximum Length:
64
Departure state or province name for airport or train station. -
DepartureStateCode: string
Maximum Length:
30
Departure state or province code for airport or train station. -
FareClass: string
Maximum Length:
64
Travel fare class of the seat on the flight. -
FlightNumber: string
Maximum Length:
16
Flight number for air travel segment. -
ItemConfirmationNumber: string
Maximum Length:
32
Confirmation number of AIR or RAIL reservation at the travel segment level. -
ItineraryReservationId: integer
(int64)
The unique identifier of an air or rail reservation to which a travel segment belongs.
-
LastUpdateDate: string
(date-time)
Read Only:
true
Date and time when the row was last updated. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who last updated the row. -
LastUpdateLogin: string
Read Only:
true
Maximum Length:32
Session login associated with the user who last updated the row. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MarketAirlineCode: string
Maximum Length:
30
Global distribution system marketing airline code for a flight. -
NumberInParty: integer
(int32)
Number of travelers in the party.
-
OperatingAirlineCode: string
Maximum Length:
30
Global distribution system operating airline code for a flight. -
OperatingAirlineName: string
Maximum Length:
120
Operating airline name for a flight. -
PolicyViolation: string
Maximum Length:
240
Policy violation text displayed to the employee while booking the reservation. -
RailVendorCode: string
Maximum Length:
30
Global distribution system code for the rail carrier. -
ReservationGlobalDistributionCode: string
Maximum Length:
30
Global distribution code for the reservation or booking. -
ReservationItemId: integer
(int64)
The unique identifier of a travel segment for an AIR or RAIL reservation.
-
TrainNumber: string
Maximum Length:
16
Train number for rail travel segment.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.