Update a travel itinerary

patch

/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/{expenseTravelItinerariesUniqID}

Request

Path Parameters
  • 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.
Header Parameters
  • 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".
  • 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.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Expense Travel Itinerary Reservations
Type: array
Title: Expense Travel Itinerary Reservations
The expense itinerary reservations resource is used to get travel reservation information from third-party travel partner sites.
Show Source
Nested Schema : expenseTravelItineraries-itineraryReservations-item-patch-request
Type: object
Show Source
Nested Schema : Expense Travel Itinerary Reservation Items
Type: array
Title: Expense Travel Itinerary Reservation Items
The expense reservation items resource is used to get travel reservation item information from third-party travel partner sites.
Show Source
Nested Schema : expenseTravelItineraries-itineraryReservations-reservationItems-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : expenseTravelItineraries-item-response
Type: object
Show Source
Nested Schema : Expense Travel Itinerary Reservations
Type: array
Title: Expense Travel Itinerary Reservations
The expense itinerary reservations resource is used to get travel reservation information from third-party travel partner sites.
Show Source
Nested Schema : expenseTravelItineraries-itineraryReservations-item-response
Type: object
Show Source
Nested Schema : Expense Travel Itinerary Reservation Items
Type: array
Title: Expense Travel Itinerary Reservation Items
The expense reservation items resource is used to get travel reservation item information from third-party travel partner sites.
Show Source
Nested Schema : expenseTravelItineraries-itineraryReservations-reservationItems-item-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to update a travel itinerary by submitting a PATCH request on the REST resource using cURL.

curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourcecollection+json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211820664/child/itineraryReservations/300100211820681

Example Request Body

The following example shows the contents of the request body in JSON format:

{
	"ConfirmationNumber": "00000000US08",
	"ReservationType": "Hotel",
	"HotelCity": "JFK",
	"CurrencyCode": "USD",
	"Amount": 719.86,
	"TotalAmount": 719.86,
	"MerchantCode": "CP",
	"MerchantName": "Crowne Plaza Englewood",
	"ReturnCity": "New York",
	"ReturnCountry": "USA",
	"ReturnCountryCode": "US",
	"ReturnLocationCode": "JFK",
	"ReturnState": "NEW YORK",
	"ReturnStateCode": "JFX",
	"PickupCity": "Englewood",
	"PickupCountry": "USA",
	"PickupCountryCode": "US",
	"PickupLocationCode": "JFK",
	"PickupState": "New Jersey",
	"PickupStateCode": "NJ",
	"VehicleType": "LARGE",
	"StartDateTime" :"2020-06-09T12:35:00",
	"EndDateTime": "2020-06-09T12:35:00"
}

Example Response Body

The following example shows the contents of the response body in JSON format:

{
	"ItineraryReservationId" : 300100211820681,
	"HotelLocationCode" : null,
	"PickupLocationCode" : "JFK",
	"ReturnLocationCode" : "JFK",
	"TravelItineraryId" : 300100211820664,
	"ConfirmationNumber" : "00000000US08",
	"ReservationType" : "Hotel",
	"CurrencyCode" : "USD",
	"Amount" : 719.86,
	"TotalTax" : null,
	"TotalAmount" : 719.86,
	"LowerAmount" : null,
	"MerchantCode" : "CP",
	"MerchantName" : "Crowne Plaza Englewood",
	"HotelCode" : null,
	"StartDateTime" : "2020-06-09T12:35:00",
	"EndDateTime" : "2020-06-09T12:35:00",
	"NumberOfRooms" : null,
	"RoomCode" : null,
	"BaseRate" : null,
	"RateDetails" : null,
	"NumberOfGuests" : null,
	"AddressLine1" : null,
	"AddressLine2" : null,
	"AddressLine3" : null,
	"AddressLine4" : null,
	"ContactNumber1" : null,
	"ContactNumber2" : null,
	"ContactNumber3" : null,
	"ContactNumber4" : null,
	"HotelCity" : "JFK",
	"HotelState" : null,
	"HotelStateCode" : null,
	"HotelCountry" : null,
	"HotelCountryCode" : null,
	"VehicleType" : "LARGE",
	"PickupCity" : "Englewood",
	"PickupState" : "New Jersey",
	"PickupStateCode" : "NJ",
	"PickupCountry" : "USA",
	"PickupCountryCode" : "US",
	"ReturnCity" : "New York",
	"ReturnState" : "NEW YORK",
	"ReturnStateCode" : "JFX",
	"ReturnCountry" : "USA",
	"ReturnCountryCode" : "US",
	"PolicyViolation" : null,
	"PolicyJustification" : null,
	"CreationDate" : "2020-11-09T07:51:27+00:00",
	"CreatedBy" : "travel.admin1@oracle.com",
	"LastUpdateDate" : "2020-11-09T07:51:27.045+00:00",
	"LastUpdatedBy" : "travel.admin1@oracle.com",
	"LastUpdateLogin" : "B2226CE77501D587E0532988F40AFC64",
	"CancelledFlag" : null,
	"links" : [ 
	{
		"rel" : "self",
		"href" : "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211820664/child/itineraryReservations/300100211820681",
		"name" : "itineraryReservations",
		"kind" : "item",
		"properties" : {
		"changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
		}
	}, 
	{
		"rel" : "canonical",
		"href" : "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211820664/child/itineraryReservations/300100211820681",
		"name" : "itineraryReservations",
		"kind" : "item"
	}, 
	{
		"rel" : "parent",
		"href" : "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211820664",
		"name" : "expenseTravelItineraries",
		"kind" : "item"
	}, 
	{
		"rel" : "child",
		"href" : "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211820664/child/itineraryReservations/300100211820681/child/reservationItems",
		"name" : "reservationItems",
		"kind" : "collection"
	} 
	]
}
Back to Top