-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathHotelService.swagger2.json
More file actions
2842 lines (2842 loc) · 79.7 KB
/
HotelService.swagger2.json
File metadata and controls
2842 lines (2842 loc) · 79.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"x-sap-shortText": "Hotel workflow endpoints.",
"tags": [
{
"description": "Hotel workflow endpoints",
"name": "Service"
}
],
"x-servers": [
{
"url": "https://www.concursolutions.com/api/v4.0",
"description": "Concur API EndPoint"
}
],
"basePath": "/",
"host": "hs-mock.service.cnqr.tech",
"info": {
"description": "## Important: Please refer to [Endpoints](https://developer.concur.com/api-reference/direct-connects/hotel-service-4/v4.endpoints.html) document for detailed documentation on all endpoints for this API.\nHotel Service API provides a method for Custom Hotel Source vendors to provide hotel inventory, rates and booking related functionality to users of Concur OBT (Online Booking Tool).",
"title": "Hotel Service API",
"version": "4.0"
},
"paths": {
"/hotels/details": {
"post": {
"consumes": [
"application/json"
],
"description": "Retrieve hotel property information",
"operationId": "hoteldetails",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Hotel details criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/HotelDetailsCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Hotel descriptive info for requested properties",
"schema": {
"$ref": "#/definitions/HotelDetailsResponse"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Retrieve descriptive details about specified hotels.",
"tags": [
"Service"
]
}
},
"/hotels/ratedetails": {
"post": {
"consumes": [
"application/json"
],
"description": "Retrieve hotel rate details for rates of a property - used when rate details are missing from /rates call and/or during checkout process.",
"operationId": "ratedetails",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Hotel rates criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/RateDetailsCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Hotel rates for requested properties",
"schema": {
"$ref": "#/definitions/RateDetailsResponse"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Retrieve hotel rate details",
"tags": [
"Service"
]
}
},
"/hotels/rates": {
"post": {
"consumes": [
"application/json"
],
"description": "Retrieve hotel rates",
"operationId": "rates",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Hotel rates criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/RatesCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Hotel rates for requested properties",
"schema": {
"$ref": "#/definitions/RatesResponse"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Retrieve rates for specific hotel properties",
"tags": [
"Service"
]
}
},
"/hotels/reservation": {
"post": {
"consumes": [
"application/json"
],
"description": "Reserve hotel rate",
"operationId": "reservation",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Reservation criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ReservationCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Hotel reservation successful",
"schema": {
"$ref": "#/definitions/ReservationDetails"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Reserve the given hotel rate",
"tags": [
"Service"
]
}
},
"/hotels/reservation/cancel": {
"post": {
"consumes": [
"application/json"
],
"description": "Cancel specified reservation according to parameters",
"operationId": "cancel",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Cancel reservation criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CancelCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Reservation successfully cancelled",
"schema": {
"$ref": "#/definitions/CancelDetails"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Reservation record not found"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Cancel specified reservation",
"tags": [
"Service"
]
}
},
"/hotels/reservation/modify": {
"post": {
"consumes": [
"application/json"
],
"description": "Modify given reservation",
"operationId": "modify",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Modify reservation criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ModifyCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Reservation succeessfully modified",
"schema": {
"$ref": "#/definitions/ReservationDetails"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Reservation record not found"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"501": {
"description": "Endpoint not implemented"
}
},
"summary": "Modify specific reservation",
"tags": [
"Service"
]
}
},
"/hotels/reservation/read": {
"post": {
"consumes": [
"application/json"
],
"description": "Read reservation details. Used in a process of reserving a hotel to acknowledge receipt of booking confirmation as well as write information to Itinerary. Not invoked by user, but by automatic Concur process. Hotel Supplier should reply with the same response as provided for the book response.\n",
"operationId": "read",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"description": "This unique code can be used during troubleshooting as it identifies the API call in the log files.",
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string"
},
{
"description": "Read itinerary criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ReadCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful read itinerary",
"schema": {
"$ref": "#/definitions/ReservationDetails"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Reservation record not found"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Returns detailed information about a hotel reservation.",
"tags": [
"Service"
]
}
},
"/hotels/search": {
"post": {
"consumes": [
"application/json"
],
"description": "Perform the initial search for hotels according to params",
"operationId": "search",
"parameters": [
{
"in": "header",
"name": "Accept-Language",
"required": false,
"type": "string",
"description": "Advertises which languages the client is able to understand"
},
{
"in": "header",
"name": "concur-correlationid",
"required": true,
"type": "string",
"description": "Correlation ID to track the record across the logs"
},
{
"description": "Hotel search criteria",
"in": "body",
"name": "body",
"required": true,
"schema": {
"$ref": "#/definitions/SearchCriteria"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Search results that meet criteria",
"schema": {
"$ref": "#/definitions/SearchResponse"
}
},
"400": {
"description": "Invalid client request. Request shouldn't be retried without changing it.",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Error while processing the request. Request can be retried as is at a later time.",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"summary": "Perform the initial search for hotels.",
"tags": [
"Service"
]
}
}
},
"schemes": [
"https"
],
"security": [
{
"BasicAuth": []
}
],
"securityDefinitions": {
"BasicAuth": {
"type": "basic"
}
},
"definitions": {
"AcceptedPayments": {
"items": {
"$ref": "#/definitions/PaymentCardType"
},
"type": "array"
},
"Address": {
"properties": {
"addressLines": {
"items": {
"example": "910 Mainland Street",
"type": "string"
},
"type": "array"
},
"city": {
"description": "City name",
"example": "Vancouver",
"type": "string"
},
"countryCode": {
"description": "Two-character ISO code (ISO ALPHA-2) for country",
"example": "CA",
"type": "string"
},
"postalCode": {
"example": "V5K 0A1",
"type": "string"
},
"state": {
"description": "**Deprecated - Use stateName instead** Two-character state code - provided when available",
"example": "BC",
"type": "string"
},
"stateName": {
"description": "Name or code of the State/Province/Adminstrative region ",
"example": "British Columbia",
"type": "string"
}
},
"required": [
"addressLines",
"city",
"countryCode"
],
"type": "object"
},
"AmountPercent": {
"properties": {
"amount": {
"$ref": "#/definitions/Price"
},
"applyAs": {
"$ref": "#/definitions/AmountPercentApplyAs"
},
"basisType": {
"$ref": "#/definitions/AmountPercentBasisType"
},
"feesInclusive": {
"description": "If true, all fees are included in the returned rate.",
"example": true,
"type": "boolean"
},
"numberOfNights": {
"description": "The number of nights that are to be spent in the property.",
"example": 5,
"type": "integer"
},
"percent": {
"description": "The percentage used to calculate the amount of the cancel fee.",
"example": 10.05,
"multipleOf": 0.01,
"type": "number"
},
"taxInclusive": {
"description": "If true, all taxes are included in the returned rate.",
"example": true,
"type": "boolean"
}
},
"type": "object"
},
"AmountPercentApplyAs": {
"enum": [
"FIRST_NIGHT_DEPOSIT",
"LAST_NIGHT_DEPOST",
"FIRST_AND_LAST_NIGHT_DEPOSIT",
"FIRST_NIGHT_PAYMENT",
"LAST_NIGHT_PAYMENT",
"FIRST_AND_LAST_NIGHT_PAYMENT"
],
"type": "string"
},
"AmountPercentBasisType": {
"enum": [
"FULL_STAY",
"NIGHTS",
"FIRST_LAST"
],
"type": "string"
},
"AvailabilityStatus": {
"enum": [
"AVAILABLE_FOR_SALE",
"CLOSED_OUT",
"UNKNOWN"
],
"type": "string"
},
"SustainabilityProvider": {
"description": "Sustainability providers that are supported by hsv4",
"enum": [
"GSTC",
"EARTH_CHECK",
"GREEN_GLOBE",
"GREEN_KEY",
"TRAVELIFE",
"GREEN_LEAF",
"LEED",
"GREEN_GROWTH_2050",
"GREEN_SEAL",
"HILTON_LIGHTSTAY",
"IHG_GREEN_ENGAGE",
"NORDIC_SWAN",
"ACTIVITY_GREEN",
"ADVENTURE_GREEN_ALASKA",
"ECO_CERTIFICATION_MALTA",
"GLOBAL_ECOSPHERE_RETREATS",
"GREAT_GREEN_DEAL",
"SEYCHELLES_SUSTAINABLE_TOURISM",
"GREEN_STAY",
"OTHER"
],
"example": "EARTH_CHECK",
"type": "string"
},
"Measure" : {
"enum" : [ "CO2E", "CO2" ],
"type" : "string"
},
"UnitOfMeasure" : {
"enum" : [ "TONNES", "KILOGRAMS" ],
"type" : "string"
},
"BasicHotelProperty": {
"properties": {
"address": {
"$ref": "#/definitions/Address"
},
"chainCode": {
"example": "HH",
"type": "string"
},
"cityCode": {
"description": "IATA 3 char city code for this property (required for adding passive segments)",
"example": "DFW",
"type": "string"
},
"contactInfo": {
"$ref": "#/definitions/ContactInfo"
},
"hotelName": {
"example": "JW Marriott Parq",
"type": "string"
},
"position": {
"$ref": "#/definitions/Geolocation"
},
"propertyCode": {
"$ref": "#/definitions/PropertyCode"
}
},
"required": [
"cityCode",
"contactInfo",
"hotelName",
"propertyCode"
],
"type": "object"
},
"Bedding": {
"description": "Details about bedding associated with the room",
"properties": {
"bedTypeCode": {
"description": "Code based on OTA Bed Type (BED) list (https://www.opentraveldevelopersnetwork.com/code-list)",
"example": 3,
"format": "int32",
"type": "integer"
},
"quantity": {
"description": "No. of beds",
"example": 1,
"type": "integer"
}
},
"required": [
"bedTypeCode",
"quantity"
],
"type": "object"
},
"CancelCriteria": {
"properties": {
"confirmationCodes": {
"items": {
"$ref": "#/definitions/ConfirmationCode"
},
"type": "array"
},
"requestorInfo": {
"$ref": "#/definitions/RequestorInfo"
}
},
"required": [
"confirmationCodes",
"requestorInfo"
],
"type": "object"
},
"CancelDetails": {
"properties": {
"cancellationRemarks": {
"example": "Reservation cancelled with no penalty",
"type": "string"
},
"confirmationCodes": {
"items": {
"$ref": "#/definitions/ConfirmationCode"
},
"type": "array"
}
},
"required": [
"confirmationCodes"
],
"type": "object"
},
"CancelPenalties": {
"properties": {
"description": {
"description": "Common description applicable to all the penalties",
"example": "Free cancellation up to 1 week before checkin",
"type": "string"
},
"penalties": {
"description": "Cancel penalties associated with the rate",
"items": {
"$ref": "#/definitions/CancelPenalty"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"penalties"
],
"type": "object"
},
"CancelPenalty": {
"properties": {
"amountPercent": {
"$ref": "#/definitions/AmountPercent"
},
"cancelDeadline": {
"description": "Date string in the date-time notation as defined by RFC 3339 with or without timezone, section 5.6. If there is no timezone it is assumed to be local timezone of the hotel",
"example": "2017-07-21T17:32:28Z07:00 or 2017-07-21T17:32:28 or 2017-07-21 17:32:28",
"type": "string"
},
"description": {
"example": "Free cancellation up to 1 week before checkin",
"type": "string"
},
"refundableStatus": {
"$ref": "#/definitions/RefundableStatus"
}
},
"required": [
"refundableStatus"
],
"type": "object"
},
"CatalogName": {
"description": "Northstar, Giata and GDS (Sabre, Amadeus, Galileo) are preferred options at this time",
"enum": [
"NORTHSTAR",
"GIATA",
"LEONARDO",
"AMADEUS",
"SABRE",
"GALILEO",
"CWT",
"EXPEDIA",
"HRS",
"BOOKING.COM",
"OMNIBEES"
],
"type": "string"
},
"ConfirmationCode": {
"properties": {
"code": {
"example": "3704188022P5683",
"type": "string"
},
"codeType": {
"$ref": "#/definitions/ConfirmationCodeType"
}
},
"required": [
"code",
"codeType"
],
"type": "object"
},
"ConfirmationCodeType": {
"description": "Confirmation Code Types that maps to OTA codes for Unique Id Types list RESERVATION(Record Locator)=14, SUPPLIER_CONFIRMATION=40, CANCELLATION=50, HOTEL_CONFIRMATION(Property Confirmation No.)=10, CONCUR_GDS_REFERENCE -> Concur Booking Record Locator for Passives",
"enum": [
"RESERVATION",
"SUPPLIER_CONFIRMATION",
"CANCELLATION",
"HOTEL_CONFIRMATION",
"CONCUR_GDS_REFERENCE",
"PASSIVE_CONFIRMATION",
"PIN"
],
"type": "string"
},
"ContactInfo": {
"properties": {
"emails": {
"items": {
"format": "email",
"type": "string"
},
"type": "array"
},
"faxNumber": {
"example": "+1-555-555-5678",
"type": "string"
},
"phoneNumbers": {
"items": {
"example": "+1-555-555-1234",
"type": "string"
},
"type": "array"
}
},
"required": [
"emails",
"phoneNumbers"
],
"type": "object"
},
"CurrencyCode": {
"description": "ISO 4217 currency code",
"example": "USD",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"CustomField": {
"description": "Vendor supported custom field",
"properties": {
"name": {
"description": "Name of the custom field",
"example": "OrgUnit",
"type": "string"
},
"value": {
"description": "Value of the custom field",
"example": "Travel Agents",
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"DistanceUnit": {
"description": "Unit of distance",
"enum": [
"MILE",
"KM"
],
"type": "string"
},
"Error": {
"description": "Error with OTA code and description",
"properties": {
"message": {
"type": "string"
},
"otaCode": {
"description": "Code based on OTA Error Codes list (https://www.opentraveldevelopersnetwork.com/code-list)",
"format": "int32",
"type": "integer"
}
},
"required": [
"message"
],
"type": "object"
},
"FeeTaxType": {
"description": "Fee or Tax associated with rate - can be either included or excluded from total rate as marked with 'inclusive' field.",
"properties": {
"amount": {
"example": 8.05,
"multipleOf": 0.01,
"type": "number"
},
"fttCode": {
"description": "Code based on OTA's Fee Tax Type (FTT) list (https://www.opentraveldevelopersnetwork.com/code-list)",
"example": 15,
"format": "int32",
"type": "integer"
},
"inclusive": {
"description": "Whether or not this tax/fee is included in totalAmountAfterTax amount.",
"example": true,
"type": "boolean"
}
},
"required": [
"amount",
"fttCode",
"inclusive"
],
"type": "object"
},
"Fees": {
"description": "Representation of nightly fees associated with a rate for given dates along with optional breakdown.",
"properties": {
"amount": {
"example": 10.95,