Skip to content

Commit 64995e4

Browse files
Merge pull request #1412 from gabriel-schiferdecke/docs/HOTEL-20922
docs: [HOTEL-20922] add reshopInfo field to rate details criteria
2 parents 38b3c7a + 88d79b6 commit 64995e4

File tree

3 files changed

+215
-0
lines changed

3 files changed

+215
-0
lines changed

src/api-explorer/v4-0/HotelService.swagger2.json renamed to src/api-explorer/v4-0/HotelService.swagger2-new.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,9 @@
18471847
},
18481848
"searchSessionToken": {
18491849
"$ref": "#/definitions/SearchSessionToken"
1850+
},
1851+
"reshopInfo": {
1852+
"$ref": "#/definitions/ReshopInfo"
18501853
}
18511854
},
18521855
"required": [
@@ -2718,6 +2721,20 @@
27182721
"score"
27192722
],
27202723
"type": "object"
2724+
},
2725+
"ReshopInfo": {
2726+
"description": "Contains information required for reshopping a hotel booking.",
2727+
"properties": {
2728+
"gdsRecordLocator": {
2729+
"$ref": "#/definitions/GDSRecordLocator"
2730+
},
2731+
"confirmationCodes": {
2732+
"items": {
2733+
"$ref": "#/definitions/ConfirmationCode"
2734+
},
2735+
"type": "array"
2736+
}
2737+
}
27212738
}
27222739
},
27232740
"x-components": {

src/api-reference/direct-connects/hotel-service-4/v4.endpoints.md renamed to src/api-reference/direct-connects/hotel-service-4/v4.endpoints-new.md

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,201 @@ POST /hotels/ratedetails
538538
}
539539
```
540540

541+
## Rate Details during modify/reshop flow <a id="opIdratedetails"></a>
542+
543+
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.
544+
545+
### URI
546+
547+
```shell
548+
POST /hotels/ratedetails
549+
```
550+
551+
### Parameters
552+
553+
|Name|Type|Format|Description|
554+
|---|---|---|---|
555+
`Accept-Language`|`string`|-|-|
556+
`concur-correlationid`|`string`|-|**Required** This unique code can be used during troubleshooting as it identifies the API call in the log files.|
557+
`body`|[`RateDetailsCriteria`](./v4.schemas.html#schemaratedetailscriteria)|-|**Required** Hotel rates criteria.|
558+
559+
### Examples
560+
561+
#### Request
562+
563+
```json
564+
{
565+
"requestorInfo": {
566+
"posRequestorId": "abc1234",
567+
"travelerUuid": "123e4567-e89b-12d3-a456-426614174000",
568+
"loginId": "[email protected]",
569+
"bookingForSelf": true
570+
},
571+
"hotelPropertyRef": {
572+
"chainCode": "HH",
573+
"propertyCode": "HH498949"
574+
},
575+
"ratePlanIds": [
576+
"44SM3FAsfvgcZs9ehGlNOQ"
577+
],
578+
"checkin": "2021-10-20",
579+
"checkout": "2021-10-23",
580+
"rateCategories": [
581+
{
582+
"otaCode": 1,
583+
"value": "AAA"
584+
}
585+
],
586+
"numGuests": 1,
587+
"guestCountryCode": "CA",
588+
"searchSessionToken": "b41168ba-7ee1-4b68-9934-47f5c55337d6",
589+
"reshopInfo": {
590+
"gdsRecordLocator": {
591+
"gdsName": "SABRE",
592+
"pcc": "ABC123",
593+
"recordLocator": "ABC123"
594+
},
595+
"confirmationCodes": [
596+
{
597+
"codeType": "SUPPLIER_CONFIRMATION",
598+
"code": "3704188022P5683"
599+
},
600+
{
601+
"codeType": "PIN",
602+
"code": "3704188022P5683"
603+
}
604+
]
605+
}
606+
}
607+
```
608+
609+
### Response
610+
611+
```json
612+
{
613+
"checkin": "2021-10-20",
614+
"checkout": "2021-10-23",
615+
"roomRates": [
616+
{
617+
"rateDescription": [
618+
"Promotional Rate"
619+
],
620+
"rateCategory": {
621+
"otaCode": 1,
622+
"value": "AAA"
623+
},
624+
"rateChangesOverStay": true,
625+
"roomId": "kVNU66KLxuggtu2H",
626+
"ratePlanId": "44SM3FAsfvgcZs9ehGlNOQ",
627+
"guarantee": {
628+
"guaranteeType": "DEPOSIT_REQUIRED",
629+
"acceptedPayments": [
630+
"VISA"
631+
],
632+
"cvvRequired": true,
633+
"amountPercent": {
634+
"taxInclusive": true,
635+
"feesInclusive": true,
636+
"numberOfNights": 5,
637+
"basisType": "FULL_STAY",
638+
"applyAs": "FIRST_NIGHT_DEPOSIT",
639+
"percent": 10.05,
640+
"amount": {
641+
"amount": 190.95,
642+
"currencyCode": "USD"
643+
}
644+
}
645+
},
646+
"prepayRequired": true,
647+
"refundable": true,
648+
"totalPrice": {
649+
"totalBeforeTax": 170.95,
650+
"taxes": 10,
651+
"fees": 10,
652+
"taxesBreakdown": [
653+
{
654+
"amount": 5,
655+
"fttCode": 1,
656+
"inclusive": true
657+
},
658+
{
659+
"amount": 5,
660+
"fttCode": 2,
661+
"inclusive": true
662+
}
663+
],
664+
"feesBreakdown": [
665+
{
666+
"amount": 5,
667+
"fttCode": 5,
668+
"inclusive": true
669+
},
670+
{
671+
"amount": 5,
672+
"fttCode": 6,
673+
"inclusive": true
674+
}
675+
],
676+
"totalAfterTax": 190.95,
677+
"currencyCode": "USD",
678+
"isTotalBeforeTaxDisplayEligible": true
679+
},
680+
"nightlyPrices": [
681+
{
682+
"basePrice": 89.95,
683+
"taxes": {
684+
"amount": 5.55,
685+
"taxBreakdown": [
686+
{
687+
"amount": 8.05,
688+
"fttCode": 15,
689+
"inclusive": true
690+
}
691+
]
692+
},
693+
"fees": {
694+
"amount": 10.95,
695+
"feeBreakdown": [
696+
{
697+
"amount": 8.05,
698+
"fttCode": 15,
699+
"inclusive": true
700+
}
701+
]
702+
},
703+
"totalPrice": 100.05,
704+
"startDate": "2021-12-01",
705+
"endDate": "2021-12-31",
706+
"currencyCode": "USD"
707+
}
708+
],
709+
"cancelPenalties": {
710+
"description": "Some fees are not refundable",
711+
"penalties": [
712+
{
713+
"cancelDeadline": "2017-07-21T17:32:28",
714+
"description": "Free cancellation up to 1 week before checkin",
715+
"refundableStatus": "FULLY_REFUNDABLE",
716+
"amountPercent": {
717+
"taxInclusive": true,
718+
"feesInclusive": true,
719+
"numberOfNights": 5,
720+
"basisType": "FULL_STAY",
721+
"applyAs": "FIRST_NIGHT_DEPOSIT",
722+
"percent": 10.05,
723+
"amount": {
724+
"amount": 190.95,
725+
"currencyCode": "USD"
726+
}
727+
}
728+
}
729+
]
730+
}
731+
}
732+
]
733+
}
734+
```
735+
541736
## Hotel Details <a id="opIdhoteldetails"></a>
542737

543738
Retrieve descriptive details about specified hotels.

src/api-reference/direct-connects/hotel-service-4/v4.schemas.markdown renamed to src/api-reference/direct-connects/hotel-service-4/v4.schemas-new.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Direct Connect - Hotel Service v4 - Schemas
33
layout: reference
44
---
55

6+
{% include prerelease.html %}
7+
68
# Direct Connect - Hotel Service v4 - Schemas
79

810
## <a id="schemasearchcriteria"></a> SearchCriteria
@@ -61,6 +63,7 @@ Reference to location details for search.
6163
`numGuests`|`integer`|`int32`|Number of guests for accommodation.|
6264
`guestCountryCode`|`string`|`ISO ALPHA-2`|Two-character ISO code for country.|
6365
`searchSessionToken`|[`SearchSessionToken`](#schemasearchsessiontoken)|-|Session token to be generated and provided by server on initial search call that can be referenced back for future calls on the same session.|
66+
`reshopInfo`|[`ReshopInfo`](#schemareshopinfo)|-|Information related to reshopping, only available during modify (and not shopping) flow|
6467

6568
## <a id="schemahoteldetailscriteria"></a> HotelDetailsCriteria
6669

0 commit comments

Comments
 (0)