Skip to content

Commit 6482608

Browse files
Booker added to Mews -> CHM direction (#209)
2 parents 3780a4b + ac46c87 commit 6482608

File tree

3 files changed

+55
-23
lines changed

3 files changed

+55
-23
lines changed

changelog/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 25th July 2025
4+
5+
* [CHM: Process group](../channel-manager-operations/reservations.md#process-group):
6+
* Extended request object with new `booker` property.
7+
8+
39
## 29th May 2025
410

511
* Further refinements to the partner journey, including [Your integration journey](../your-journey/README.md) and [Environments](../guidelines/environments.md). Documentation-only, no change to API.

channel-manager-operations/reservations.md

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The operation supports creations, modifications, and partial or complete cancell
1010
`[ChannelManagerApiAddress]/processGroup`
1111

1212

13-
```javascript
13+
```json
1414
{
1515
"clientToken": "[Channel manager client token]",
1616
"connectionToken": "[Token of a concrete connection]",
@@ -46,22 +46,47 @@ The operation supports creations, modifications, and partial or complete cancell
4646
"loyaltyCode": "PG60972345",
4747
"loyaltyInfo": {
4848
"membershipId": "PG60972345",
49-
"programCode": "BWR",
49+
"programCode": "LoyalCustomers",
5050
"tierCode": "Gold"
5151
}
5252
},
53+
"booker": {
54+
"address": {
55+
"addressLine1": "Some street 123",
56+
"addressLine2": "Some other detail",
57+
"city": "Some city",
58+
"country": "US",
59+
"latitude": 30,
60+
"longitude": 20,
61+
"region": "Some region",
62+
"zip": "123 45"
63+
},
64+
"email": "[email protected]",
65+
"firstName": "Jane",
66+
"lastName": "Smith",
67+
"title": "Miss",
68+
"nationalityCode": "UK",
69+
"languageCode": "en-UK",
70+
"telephone": "1-3526-88918",
71+
"loyaltyCode": "PG654321",
72+
"loyaltyInfo": {
73+
"membershipId": "PG654321",
74+
"programCode": "LoyalCustomers",
75+
"tierCode": "Platinum"
76+
}
77+
},
5378
"sources": [
5479
{
5580
"code": 1,
5681
"name": "Expedia",
5782
"type" : 0,
58-
"isPrimary" true
83+
"isPrimary": true
5984
},
6085
{
6186
"code": 2,
6287
"name": "ChoiceCRS",
6388
"type" : 0,
64-
"isPrimary" false
89+
"isPrimary": false
6590
}
6691
],
6792
"company": {
@@ -146,7 +171,7 @@ The operation supports creations, modifications, and partial or complete cancell
146171
{
147172
"net": 97.2,
148173
"gross": 120
149-
},
174+
}
150175
],
151176
"ratePlanCode": "FF",
152177
"spaceTypeCode": "SGL",
@@ -155,6 +180,13 @@ The operation supports creations, modifications, and partial or complete cancell
155180
"totalAmount": {
156181
"gross": 260,
157182
"net": 208
183+
},
184+
"paymentCardData": {
185+
"identifier": "12345678-1011-1213-1415-161718192021",
186+
"expireDate": "1222",
187+
"holderName": "John Smith",
188+
"obfuscatedNumber": "41111*******1111",
189+
"type": 1
158190
}
159191
},
160192
{
@@ -203,13 +235,6 @@ The operation supports creations, modifications, and partial or complete cancell
203235
"spaceTypeCode": "DBL",
204236
"state": 3,
205237
"to": "2020-05-09"
206-
},
207-
"paymentCardData": {
208-
"identifier": "12345678-1011-1213-1415-161718192021"
209-
"expireDate": "1222",
210-
"holderName": "John Smith",
211-
"obfuscatedNumber": "41111*******1111",
212-
"type": 1
213238
}
214239
],
215240
"totalAmount": {
@@ -231,7 +256,8 @@ The operation supports creations, modifications, and partial or complete cancell
231256
| `availabilityBlockConfirmationNumber` | `string` | optional | Unique identification of the availability block in the Mews. |
232257
| `currencyCode` | `string` | required \(exc. Cancellation\) | [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) three-letter currency code of all prices within the booking. |
233258
| `totalAmount` | [`Amount`](../mews-operations/reservations.md#amount) object | required \(exc. Cancellation\) | Total amount of the whole booking. |
234-
| `customer` | [`Customer`](../mews-operations/reservations.md#customer) object | required \(exc. Cancellation\) | Represents the main booker. Does not necessarily mean that the person arrives to the property. |
259+
| `customer` | [`Customer`](../mews-operations/reservations.md#customer) object | required \(exc. Cancellation\) | Represents the owner of the reservation - the main customer that arrives to the property. |
260+
| `booker` | [`Customer`](../mews-operations/reservations.md#customer) object | optional | Represents the person that booked and manages the reservation. Does not necessarily mean that the person arrives to the property. |
235261
| `sources` | [`Source`](../mews-operations/reservations.md#source) collection | optional | Represents the sources for the booking. |
236262
| `company` | [`Company`](../mews-operations/reservations.md#company) object | optional | Represents the company associated with the booking. |
237263
| `travelAgency` | [`Travel Agency`](../mews-operations/reservations.md#travel-agency) object | optional | Represents the travel agency associated with the booking. |
@@ -249,7 +275,7 @@ It is used to send confirmation of success as well as confirmation of failure.
249275

250276
#### Confirmation of success:
251277

252-
```javascript
278+
```json
253279
{
254280
"clientToken": "[Mews Client token]",
255281
"connectionToken": "[Token of a concrete connection]",
@@ -266,7 +292,7 @@ It is used to send confirmation of success as well as confirmation of failure.
266292

267293
#### Confirmation of failure:
268294

269-
```javascript
295+
```json
270296
{
271297
"clientToken": "[Mews Client token]",
272298
"connectionToken": "[Token of a concrete connection]",

mews-operations/reservations.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ The third `reservation` definition shows the partial cancellation - canceling th
8181
"zip": "123 45"
8282
},
8383
"email": "[email protected]",
84-
"firstName": "adam",
85-
"lastName": "Arnold",
86-
"title": "Mister",
87-
"nationalityCode": "US",
88-
"languageCode": "en-US",
89-
"telephone": "1-5526-88918",
90-
"loyaltyCode": "PG60982345",
91-
"loyaltyInfo": {
84+
"firstName": "adam",
85+
"lastName": "Arnold",
86+
"title": "Mister",
87+
"nationalityCode": "US",
88+
"languageCode": "en-US",
89+
"telephone": "1-5526-88918",
90+
"loyaltyCode": "PG60982345",
91+
"loyaltyInfo": {
9292
"membershipId": "PG60972345",
9393
"programCode": "BWR",
9494
"tierCode": "Gold"

0 commit comments

Comments
 (0)