-
Notifications
You must be signed in to change notification settings - Fork 161
docs: [HOTEL-20922] add reshopInfo field to rate details criteria #1412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
CelesteCasali
merged 11 commits into
SAP-docs:main
from
gabriel-schiferdecke:docs/HOTEL-20922
Jun 13, 2025
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9823696
docs: add reshopping information to rate details criteria
gabriel-schiferdecke 6079328
feat: add review suggestions
gabriel-schiferdecke f5aaa38
feat: add reshopping information to hotel service endpoints and schemas
gabriel-schiferdecke 05b2f48
fix: update reshopping information description in schemas and remove …
gabriel-schiferdecke 950f53f
refactor: update reshopping information structure in hotel service en…
gabriel-schiferdecke c37730e
fix: remove reshopping information from hotel rate details response
gabriel-schiferdecke 6d80fcf
feat: add rate details endpoint for modify/reshop flow with request a…
gabriel-schiferdecke b91c02b
feat: refactor reshop info structure to use ReshopInfo definition
gabriel-schiferdecke e0dd1df
feat: add -new sufix to test changes
gabriel-schiferdecke e8a592a
feat: add prerelease to hotel service schemas
gabriel-schiferdecke 88d79b6
Merge branch 'main' into docs/HOTEL-20922
gabriel-schiferdecke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -538,6 +538,201 @@ POST /hotels/ratedetails | |
} | ||
``` | ||
|
||
## Rate Details during modify/reshop flow <a id="opIdratedetails"></a> | ||
|
||
Retrieve hotel rate details for rates of a property. This endpoint is used and required when details including `guarantee`, `cancePenalties` and `nightlyRates` breakdown are missing from `/hotels/rates` call or `rateDetailsCallRequired` flag is set to true for a given rate. | ||
|
||
### URI | ||
|
||
```shell | ||
POST /hotels/ratedetails | ||
``` | ||
|
||
### Parameters | ||
|
||
|Name|Type|Format|Description| | ||
|---|---|---|---| | ||
`Accept-Language`|`string`|-|-| | ||
`concur-correlationid`|`string`|-|**Required** This unique code can be used during troubleshooting as it identifies the API call in the log files.| | ||
`body`|[`RateDetailsCriteria`](./v4.schemas.html#schemaratedetailscriteria)|-|**Required** Hotel rates criteria.| | ||
|
||
### Examples | ||
|
||
#### Request | ||
|
||
```json | ||
{ | ||
"requestorInfo": { | ||
"posRequestorId": "abc1234", | ||
"travelerUuid": "123e4567-e89b-12d3-a456-426614174000", | ||
"loginId": "[email protected]", | ||
"bookingForSelf": true | ||
}, | ||
"hotelPropertyRef": { | ||
"chainCode": "HH", | ||
"propertyCode": "HH498949" | ||
}, | ||
"ratePlanIds": [ | ||
"44SM3FAsfvgcZs9ehGlNOQ" | ||
], | ||
"checkin": "2021-10-20", | ||
"checkout": "2021-10-23", | ||
"rateCategories": [ | ||
{ | ||
"otaCode": 1, | ||
"value": "AAA" | ||
} | ||
], | ||
"numGuests": 1, | ||
"guestCountryCode": "CA", | ||
"searchSessionToken": "b41168ba-7ee1-4b68-9934-47f5c55337d6", | ||
"reshopInfo": { | ||
"gdsRecordLocator": { | ||
"gdsName": "SABRE", | ||
"pcc": "ABC123", | ||
"recordLocator": "ABC123" | ||
}, | ||
"confirmationCodes": [ | ||
{ | ||
"codeType": "SUPPLIER_CONFIRMATION", | ||
"code": "3704188022P5683" | ||
}, | ||
{ | ||
"codeType": "PIN", | ||
"code": "3704188022P5683" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Response | ||
|
||
```json | ||
{ | ||
"checkin": "2021-10-20", | ||
"checkout": "2021-10-23", | ||
"roomRates": [ | ||
{ | ||
"rateDescription": [ | ||
"Promotional Rate" | ||
], | ||
"rateCategory": { | ||
"otaCode": 1, | ||
"value": "AAA" | ||
}, | ||
"rateChangesOverStay": true, | ||
"roomId": "kVNU66KLxuggtu2H", | ||
"ratePlanId": "44SM3FAsfvgcZs9ehGlNOQ", | ||
"guarantee": { | ||
"guaranteeType": "DEPOSIT_REQUIRED", | ||
"acceptedPayments": [ | ||
"VISA" | ||
], | ||
"cvvRequired": true, | ||
"amountPercent": { | ||
"taxInclusive": true, | ||
"feesInclusive": true, | ||
"numberOfNights": 5, | ||
"basisType": "FULL_STAY", | ||
"applyAs": "FIRST_NIGHT_DEPOSIT", | ||
"percent": 10.05, | ||
"amount": { | ||
"amount": 190.95, | ||
"currencyCode": "USD" | ||
} | ||
} | ||
}, | ||
"prepayRequired": true, | ||
"refundable": true, | ||
"totalPrice": { | ||
"totalBeforeTax": 170.95, | ||
"taxes": 10, | ||
"fees": 10, | ||
"taxesBreakdown": [ | ||
{ | ||
"amount": 5, | ||
"fttCode": 1, | ||
"inclusive": true | ||
}, | ||
{ | ||
"amount": 5, | ||
"fttCode": 2, | ||
"inclusive": true | ||
} | ||
], | ||
"feesBreakdown": [ | ||
{ | ||
"amount": 5, | ||
"fttCode": 5, | ||
"inclusive": true | ||
}, | ||
{ | ||
"amount": 5, | ||
"fttCode": 6, | ||
"inclusive": true | ||
} | ||
], | ||
"totalAfterTax": 190.95, | ||
"currencyCode": "USD", | ||
"isTotalBeforeTaxDisplayEligible": true | ||
}, | ||
"nightlyPrices": [ | ||
{ | ||
"basePrice": 89.95, | ||
"taxes": { | ||
"amount": 5.55, | ||
"taxBreakdown": [ | ||
{ | ||
"amount": 8.05, | ||
"fttCode": 15, | ||
"inclusive": true | ||
} | ||
] | ||
}, | ||
"fees": { | ||
"amount": 10.95, | ||
"feeBreakdown": [ | ||
{ | ||
"amount": 8.05, | ||
"fttCode": 15, | ||
"inclusive": true | ||
} | ||
] | ||
}, | ||
"totalPrice": 100.05, | ||
"startDate": "2021-12-01", | ||
"endDate": "2021-12-31", | ||
"currencyCode": "USD" | ||
} | ||
], | ||
"cancelPenalties": { | ||
"description": "Some fees are not refundable", | ||
"penalties": [ | ||
{ | ||
"cancelDeadline": "2017-07-21T17:32:28", | ||
"description": "Free cancellation up to 1 week before checkin", | ||
"refundableStatus": "FULLY_REFUNDABLE", | ||
"amountPercent": { | ||
"taxInclusive": true, | ||
"feesInclusive": true, | ||
"numberOfNights": 5, | ||
"basisType": "FULL_STAY", | ||
"applyAs": "FIRST_NIGHT_DEPOSIT", | ||
"percent": 10.05, | ||
"amount": { | ||
"amount": 190.95, | ||
"currencyCode": "USD" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## Hotel Details <a id="opIdhoteldetails"></a> | ||
|
||
Retrieve descriptive details about specified hotels. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.