Cancel a Reservation in an Itinerary
An employee decides to stay at a friend's house instead of a hotel. They cancel their hotel reservation.
Example URL
Here's an example of the resource URL:
PATCH
fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211375831/child/itineraryReservations/300100211735506
cURL Command
curl -i -u "<username>:<password>" -H "Content-Type: application/vnd.oracle.adf.resourcecollection+json" -X PATCH https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211375831/child/itineraryReservations/300100211735506
Supported media types:
- Content-Type: application/json
Example Request
Here's an example of the request body in JSON format:
{
"CancelledFlag":"Y"
}
Example Response
Here's an example of the response body in JSON format:
{
"ItineraryReservationId": 300100211035773,
"HotelLocationCode": null,
"PickupLocationCode": null,
"ReturnLocationCode": null,
"TravelItineraryId": 300100211035766,
"ConfirmationNumber": "CASDFGHBD",
"ReservationType": "Hotel",
"CurrencyCode": "USD",
"Amount": 480,
"TotalTax": null,
"TotalAmount": 480,
"LowerAmount": null,
"MerchantCode": "CP",
"MerchantName": "Crowne Plaza Englewood",
"HotelCode": null,
"StartDateTime": "2020-12-17T12:35:00",
"EndDateTime": "2020-12-21T12:35:00",
"NumberOfRooms": 2,
"RoomCode": null,
"BaseRate": 120,
"RateDetails": null,
"NumberOfGuests": 2,
"AddressLine1": "21425",
"AddressLine2": "hsjfjfj",
"AddressLine3": "sdghj",
"AddressLine4": "New York",
"ContactNumber1": "436475869",
"ContactNumber2": "2423645879",
"ContactNumber3": "43564758",
"ContactNumber4": "242364589",
"HotelCity": "New York",
"HotelState": "NEW YORK",
"HotelStateCode": "JFX",
"HotelCountry": "USA",
"HotelCountryCode": "US",
"VehicleType": null,
"PickupCity": null,
"PickupState": null,
"PickupStateCode": null,
"PickupCountry": null,
"PickupCountryCode": null,
"ReturnCity": null,
"ReturnState": null,
"ReturnStateCode": null,
"ReturnCountry": null,
"ReturnCountryCode": null,
"PolicyViolation": null,
"PolicyJustification": null,
"CreationDate": "2020-11-30T14:18:12.083+00:00",
"CreatedBy": "travel.admin1@oracle.com",
"LastUpdateDate": "2020-12-01T10:06:49+00:00",
"LastUpdatedBy": "travel.admin1@oracle.com",
"LastUpdateLogin": "B4FE96C21A0EF015E0532988F40A8F1A",
"CancelledFlag": true,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211035766/child/itineraryReservations/300100211035773",
"name": "itineraryReservations",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211035766/child/itineraryReservations/300100211035773",
"name": "itineraryReservations",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211035766",
"name": "expenseTravelItineraries",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/expenseTravelItineraries/300100211035766/child/itineraryReservations/300100211035773/child/reservationItems",
"name": "reservationItems",
"kind": "collection"
}
]
}