|
41 | 41 |
|
42 | 42 | ### Request
|
43 | 43 |
|
44 |
| -[PlatformAddress]/api/channelManager/v1/processAvailabilityBlock |
| 44 | +* **Test environment:** sandbox.pci-proxy.com/v1/push/4ef00bba562b5622 |
| 45 | +* **Production environment:** api.pci-proxy.com/v1/push/9eaa344245feed7f |
45 | 46 |
|
46 | 47 | ```json
|
47 | 48 | {
|
|
52 | 53 | "code": "33",
|
53 | 54 | "confirmationNumber": "2",
|
54 | 55 | "status": "Created",
|
55 |
| - "name": "SampleBlock", |
| 56 | + "name": "Smith wedding", |
56 | 57 | "dates": {
|
57 | 58 | "start": "2024-12-05",
|
58 | 59 | "end": "2024-12-11"
|
|
64 | 65 | "originalRateCode": "FF",
|
65 | 66 | "spaceCategories": [
|
66 | 67 | {
|
67 |
| - "spaceTypeCode": "D", |
| 68 | + "spaceTypeCode": "Double", |
68 | 69 | "allocatedSpaces": [
|
69 | 70 | {
|
70 | 71 | "start": "2024-12-05",
|
|
81 | 82 | {
|
82 | 83 | "start": "2024-12-05",
|
83 | 84 | "end": "2024-12-07",
|
84 |
| - "grossAmount": 100.00 |
| 85 | + "prices": [ |
| 86 | + { |
| 87 | + "grossAmount": 80.00, |
| 88 | + "netAmount": 70.50, |
| 89 | + "currencyCode": "EUR", |
| 90 | + "guestCount": 1 |
| 91 | + }, |
| 92 | + { |
| 93 | + "grossAmount": 100.00, |
| 94 | + "netAmount": 90.00, |
| 95 | + "currencyCode": "EUR", |
| 96 | + "guestCount": 2 |
| 97 | + }, |
| 98 | + { |
| 99 | + "grossAmount": 105.00, |
| 100 | + "netAmount": 91.00, |
| 101 | + "currencyCode": "EUR", |
| 102 | + "guestCount": 3 |
| 103 | + } |
| 104 | + ] |
85 | 105 | },
|
86 | 106 | {
|
87 | 107 | "start": "2024-12-08",
|
88 | 108 | "end": "2024-12-11",
|
89 |
| - "grossAmount": 50.00 |
| 109 | + "prices": [ |
| 110 | + { |
| 111 | + "grossAmount": 50.00, |
| 112 | + "netAmount": 40.50, |
| 113 | + "currencyCode": "EUR", |
| 114 | + "guestCount": 1 |
| 115 | + }, |
| 116 | + { |
| 117 | + "grossAmount": 60.00, |
| 118 | + "netAmount": 50.00, |
| 119 | + "currencyCode": "EUR", |
| 120 | + "guestCount": 2 |
| 121 | + }, |
| 122 | + { |
| 123 | + "grossAmount": 66.00, |
| 124 | + "netAmount": 55.00, |
| 125 | + "currencyCode": "EUR", |
| 126 | + "guestCount": 3 |
| 127 | + } |
| 128 | + ] |
90 | 129 | }
|
91 | 130 | ]
|
92 | 131 | }
|
|
102 | 141 | "loyaltyCode": null,
|
103 | 142 | "address": null
|
104 | 143 | },
|
| 144 | + "paymentCard": { |
| 145 | + "cvv": "666", |
| 146 | + "expireDate": "1222", |
| 147 | + "holderName": "John Smith", |
| 148 | + "number": "4111111111111111", |
| 149 | + "type": 1 |
| 150 | + }, |
105 | 151 | "company": null,
|
106 | 152 | "notes": "This is a note.",
|
107 | 153 | "pickupType": "AllInOneGroup"
|
|
129 | 175 | | `originalRateCode` | `string` | required | Original rated code of the availability block. |
|
130 | 176 | | `spaceCategories` | [`Space category allocation`](#space-category-allocation) collection | required | Allocated categories of the availability block. |
|
131 | 177 | | `booker` | [`Customer`](./reservations.md#customer) object | required | The main booker. This does not mean that the person has arrived at the property. |
|
| 178 | +| `paymentCard` | [`Payment Card`](./reservations.md#payment-card) object | optional | Represents the payment card of the [`Customer`](./reservations.md#customer) . | |
132 | 179 | | `company` | [`Company`](./reservations.md#company) object | optional | The company associated with the availability block. |
|
133 | 180 | | `notes` | `string` | optional | Notes related to the availability block. |
|
134 | 181 | | `pickupType`| [`PickupType`](#pickupType) object | required | Specifies how new reservations in block should be picked up. |
|
|
169 | 216 | | :-- | :-- | :-- | :-- |
|
170 | 217 | | `start` | `string` | required | Start date in format `"yyyy-MM-dd"` \(e.g. `"2024-12-05"`\). |
|
171 | 218 | | `end` | `string` | required | End date \(excluded\) in format `"yyyy-MM-dd"` \(e.g., `"2024-12-31"`\). |
|
172 |
| -| `grossAmount` | `string` | required | Price with taxes included. | |
173 |
| - |
| 219 | +| `prices` | [`Price`](../channel-manager-operations/inventory.md#price) collection | required | Collection of prices for each guest count. | |
| 220 | +| ~~`grossAmount`~~ | ~~`string`~~ | ~~required~~ | ~~Price with taxes included.~~ **[Deprecated!](../deprecations/README.md)** Use `prices` instead. | |
174 | 221 |
|
175 | 222 | #### Status
|
176 | 223 |
|
|
0 commit comments