Wiki source code of CalcPackage
Version 3.1 by Giorgi Mdivnishvili on 2023/12/14 12:46
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| |
2.1 | 2 | |
| 3 | |||
| |
1.1 | 4 | {{toc/}} |
| 5 | {{/box}} | ||
| 6 | |||
| |
2.1 | 7 | = Method Description = |
| |
1.1 | 8 | |
| |
2.1 | 9 | The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. |
| |
1.1 | 10 | |
| 11 | |||
| |
2.1 | 12 | == Endpoint URL - [GET] == |
| |
1.1 | 13 | |
| |
2.1 | 14 | {{info}} |
| |
3.1 | 15 | [[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage>>https://online-api.kazunion.com/api/OnlyHotelPackages/CalcPackage]] |
| |
2.1 | 16 | {{/info}} |
| |
1.1 | 17 | |
| 18 | |||
| |
2.1 | 19 | == Request Parameters == |
| |
1.1 | 20 | |
| |
2.1 | 21 | (% class="box infomessage" %) |
| 22 | ((( | ||
| |
3.1 | 23 | None |
| |
2.1 | 24 | ))) |
| |
1.1 | 25 | |
| 26 | |||
| |
2.1 | 27 | == Request Body == |
| |
1.1 | 28 | |
| |
2.1 | 29 | {{code language="Json"}} |
| |
3.1 | 30 | none{ |
| 31 | "packageId": "string", | ||
| 32 | "extraServicePriceCodes": [ | ||
| 33 | "string" | ||
| 34 | ] | ||
| 35 | } | ||
| |
2.1 | 36 | {{/code}} |
| |
1.1 | 37 | |
| |
3.1 | 38 | == (% id="cke_bm_10575S" style="display:none" %) (%%)Request Body example == |
| |
1.1 | 39 | |
| |
3.1 | 40 | {{code language="Json"}} |
| 41 | { | ||
| 42 | "packageId": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
| 43 | "extraServicePriceCodes": [ | ||
| 44 | |||
| 45 | ] | ||
| 46 | } | ||
| 47 | {{/code}} | ||
| |
2.1 | 48 | |
| |
3.1 | 49 | |
| 50 | == Response == | ||
| 51 | |||
| |
2.1 | 52 | {{code language="json"}} |
| 53 | [ | ||
| 54 | { | ||
| 55 | "hotelCode": "string", | ||
| 56 | "hotelName": "string", | ||
| 57 | "hotelClass": "string", | ||
| 58 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 59 | "countryCode": "string", | ||
| 60 | "countryName": "string", | ||
| 61 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
| 62 | "cityName": "string", | ||
| 63 | "districtName": "string", | ||
| 64 | "hotelType": "CityHotel", | ||
| 65 | "latitude": "string", | ||
| 66 | "longitude": "string", | ||
| 67 | "hasAlcohol": true, | ||
| 68 | "hasFreeWifi": true, | ||
| 69 | "hasMetro": true, | ||
| 70 | "hasPool": true, | ||
| 71 | "hasMall": true | ||
| 72 | } | ||
| 73 | ] | ||
| 74 | {{/code}} | ||
| 75 | |||
| 76 | |||
| |
3.1 | 77 | === Response example === |
| |
2.1 | 78 | |
| 79 | {{code language="Json"}} | ||
| 80 | { | ||
| |
3.1 | 81 | "package": { |
| 82 | "id": "onlyhotel:c4e23e7e-3d54-4efa-a3db-88508230ce91:504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
| 83 | "priceCurrency": "USD", | ||
| 84 | "totalPrice": 381.70, | ||
| 85 | "agentCommissionPercent": 0.00, | ||
| 86 | "agentCommissionAmount": 0.00, | ||
| 87 | "hotel": { | ||
| 88 | "hotelPriceId": "504f63ca-6dd5-4d84-8245-cf7e77ccff73", | ||
| 89 | "providerId": 13, | ||
| 90 | "hotelName": "Golden Tulip Al Barsha Hotel", | ||
| 91 | "hotelCode": "ed0820c5-29b0-4e1b-8bcf-9f3c181e7961", | ||
| 92 | "nigths": 4, | ||
| 93 | "mealPlan": "RO", | ||
| 94 | "hotelClass": "4", | ||
| 95 | "availabilityType": "FreeSale", | ||
| 96 | "availableRoomsCount": 0, | ||
| 97 | "fewRooms": true, | ||
| 98 | "roomCategoryCode": "e63ea5ac-4883-4059-bb0a-795a534bbbfb", | ||
| 99 | "roomCategoryName": "Superior Twin", | ||
| 100 | "placementTypeName": "SNGL + CHILD(6-11.99)sharing", | ||
| 101 | "checkInDate": "2024-02-17T08:00:00.000Z", | ||
| 102 | "checkOutDate": "2024-02-21T08:00:00.000Z", | ||
| 103 | "adults": 1, | ||
| 104 | "children": 1, | ||
| 105 | "districtUID": "4c65f6ed-902b-4fd8-9419-af7884c22c5e", | ||
| 106 | "districtName": "Al Barsha", | ||
| 107 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
| 108 | "cityName": "Dubai", | ||
| 109 | "countryCode": "AE", | ||
| 110 | "countryName": "United Arab Emirates", | ||
| 111 | "hasAlcohol": true, | ||
| 112 | "hasFreeWifi": true, | ||
| 113 | "hasMetro": false, | ||
| 114 | "hasPool": true, | ||
| 115 | "hasMall": false, | ||
| 116 | "cancellationPolicyDescription": "Cancellation Policy: 15 Day Before Arrival: 100.00 %, Early Departure: 100.00 %, NoShow: 100.00 %", | ||
| 117 | "cancellationPolicy": { | ||
| 118 | "noShowChargeValue": 100.00, | ||
| 119 | "noShowChargeValueType": "%", | ||
| 120 | "earlyDepartureChargeValue": 100.00, | ||
| 121 | "earlyDepartureChargeValueType": "%", | ||
| 122 | "conditions": [ | ||
| 123 | { | ||
| 124 | "timeunits": 15, | ||
| 125 | "timeunitType": "Day", | ||
| 126 | "timeOffsetTypeName": "Before Arrival", | ||
| 127 | "chargeValue": 100.00, | ||
| 128 | "chargeValueType": "%" | ||
| 129 | } | ||
| 130 | ] | ||
| 131 | } | ||
| 132 | }, | ||
| 133 | "extraServices": [] | ||
| |
2.1 | 134 | }, |
| |
3.1 | 135 | "error": false |
| 136 | } | ||
| |
2.1 | 137 | {{/code}} |
| 138 | |||
| 139 | |||
| 140 | === Schema === | ||
| 141 | |||
| 142 | {{code language="none"}} | ||
| 143 | [Hotel{ | ||
| 144 | hotelCode string | ||
| 145 | nullable: true | ||
| 146 | hotelName string | ||
| 147 | nullable: true | ||
| 148 | hotelClass string | ||
| 149 | nullable: true | ||
| 150 | cityUID string($uuid) | ||
| 151 | nullable: true | ||
| 152 | countryCode string | ||
| 153 | nullable: true | ||
| 154 | countryName string | ||
| 155 | nullable: true | ||
| 156 | districtUID string($uuid) | ||
| 157 | nullable: true | ||
| 158 | cityName string | ||
| 159 | nullable: true | ||
| 160 | districtName string | ||
| 161 | nullable: true | ||
| 162 | hotelType HotelTypeEnumstring | ||
| 163 | Enum: | ||
| 164 | [ CityHotel, BeachHotel, SecondLineBeach ] | ||
| 165 | latitude string | ||
| 166 | nullable: true | ||
| 167 | longitude string | ||
| 168 | nullable: true | ||
| 169 | hasAlcohol boolean | ||
| 170 | hasFreeWifi boolean | ||
| 171 | hasMetro boolean | ||
| 172 | hasPool boolean | ||
| 173 | hasMall boolean | ||
| 174 | }] | ||
| 175 | {{/code}} |