Changes for page 7. GetReservations

Last modified by Giorgi Mdivnishvili on 2024/08/16 18:29

From version 9.1
edited by Giorgi Mdivnishvili
on 2024/08/16 18:29
Change comment: There is no comment for this version
To version 5.1
edited by Giorgi Mdivnishvili
on 2024/08/16 18:18
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,9 +47,7 @@
47 47  (% id="cke_bm_10575S" style="display:none" %)
48 48  
49 49  
50 -All provided parameters are optional, meaning it is not mandatory to include all of them in the request. You can specify just one parameter as a search criterion if needed
51 51  
52 -
53 53  == Request Body example ==
54 54  
55 55  {{code language="Json"}}
... ... @@ -357,130 +357,161 @@
357 357  === Schema ===
358 358  
359 359  {{success}}
360 -GetReservationsResponse{
358 +GetReservationDetailsResponse{
361 361  
362 -|pageId|integer($int32)
363 -|pagesCount|integer($int32)
364 -|reservations|[
365 -nullable: trueReservation{(((
360 +|reservation|ReservationDetails{(((
366 366  |id|string($uuid)
367 -|number|string
362 +|rfNumber|string
368 368  nullable: true
369 -|agentConfirmationNumber|string
364 +|contactNumber|string
370 370  nullable: true
371 -|registrationDate|string($date-time)
372 -|packageType|PackageTypeEnumstringEnum:
373 -[ Package, OnlyHotel, OnlyAvia ]
374 -|status|ReservationStatusEnumstringEnum:
375 -[ NotConfirmed, ConfirmedAndNotPaid, ConfirmedAndPaid, Overdued, Canceled ]
376 -|statusForAgent|StatusForAgentEnumstringEnum:
377 -[ New, OnProcess, Confirmed, Pending, Overdued, Delete, Draft, Canceled ]
378 -|departureToCityName|string
366 +|agentName|string
379 379  nullable: true
380 -|departureToAirlineName|string
368 +|totalPrice|number($double)
369 +|agentCommission|number($double)
370 +|netPrice|number($double)
381 381  nullable: true
382 -|arrivalTime|string($date-time)
383 -|arrivalCountryName|string
372 +|currency|string
384 384  nullable: true
385 -|departureTime|string($date-time)
386 -|pickupPeriods|[
387 -nullable: truestring]
388 -|driverMobile|string
374 +|tourists|[
375 +nullable: trueResDetailsTourist{(((
376 +|id|string($uuid)
377 +|gender|GenderEnumstringEnum:
378 +[ None, Male, Female ]
379 +|ageCategory|AgeCategorystringEnum:
380 +[ Adult, Infant, Child ]
381 +|firstName|string
389 389  nullable: true
390 -|paymentInOutInvCurrency|ReservationPaymentDetails{(((
391 -|currencyCode|string
383 +|lastName|string
392 392  nullable: true
393 -|price|number($double)
394 -|netPrice|number($double)
395 -|paid|number($double)
396 -|unpaid|number($double)
397 -|comission|number($double)
398 -|comissionPercent|number($double)
399 -
400 -}
401 -)))
402 -|paymentInSellCurrency|ReservationPaymentDetails{(((
403 -|currencyCode|string
385 +|birthDate|string($date-time)
404 404  nullable: true
405 -|price|number($double)
406 -|netPrice|number($double)
407 -|paid|number($double)
408 -|unpaid|number($double)
409 -|comission|number($double)
410 -|comissionPercent|number($double)
411 -
412 -}
413 -)))
414 -|showDownloadDocuments|boolean
415 -|guideMeetings|[
416 -nullable: trueGuideMeeting{(((
417 -|id|string($uuid)
418 -|meetingStartTime|string($date-time)
419 -|meetingEndTime|string($date-time)
387 +|passportNumber|string
420 420  nullable: true
421 -|hotelId|string($uuid)
422 -|hotelName|string
389 +|passportExpiryDate|string($date-time)
423 423  nullable: true
424 -|guides|[
425 -nullable: trueGuide{(((
426 -|id|string($uuid)
427 -|name|string
391 +|tin|string
428 428  nullable: true
393 +|citizenshipCountryCode|string
394 +nullable: true
395 +|citizenshipCountryName|string
396 +nullable: true
429 429  |mobile|string
430 430  nullable: true
399 +|email|string
400 +nullable: true
401 +|arrivalDate|string($date-time)
402 +nullable: true
403 +|arrivalFlightNumber|string
404 +nullable: true
405 +|arrivalTerminalCode|string
406 +nullable: true
407 +|returnDate|string($date-time)
408 +nullable: true
409 +|returnFlightNumber|string
410 +nullable: true
411 +|returnTerminalCode|string
412 +nullable: true
413 +|showReturn|boolean
431 431  
432 432  }]
433 433  )))
417 +|hotels|[
418 +nullable: trueResDetailsHotel{(((
419 +|id|string($uuid)
420 +|hotelName|string
421 +nullable: true
422 +|cityName|string
423 +nullable: true
424 +|hotelClass|string
425 +nullable: true
426 +|checkInDate|string($date-time)
427 +|checkOutDate|string($date-time)
428 +|roomCategoryName|string
429 +nullable: true
430 +|placementName|string
431 +nullable: true
432 +|mealPlan|string
433 +nullable: true
434 +|agentConfirmationNumber|string
435 +nullable: true
434 434  
435 435  }]
436 436  )))
437 -|services|[
438 -nullable: trueReservationService{...}]
439 -|tourists|[
440 -nullable: trueReservationTourist{(((
441 -|id|[...]
442 -|gender|GenderEnumstringEnum:
443 -[ None, Male, Female ]
444 -|ageCategory|AgeCategorystringEnum:
445 -[ Adult, Infant, Child ]
446 -|title|string
439 +|flights|[
440 +nullable: trueResDetailsFlight{(((
441 +|id|string($uuid)
442 +|isArrival|boolean
443 +|touristId|string($uuid)
444 +|touristName|string
447 447  nullable: true
448 -|firstName|string
446 +|date|string($date-time)
447 +|departureAirport|string
449 449  nullable: true
450 -|lastName|string
449 +|departureTerminal|string
451 451  nullable: true
452 -|birthDate|string($date)
451 +|arrivalAirport|string
453 453  nullable: true
454 -|passportNumber|string
453 +|arrivalTerminal|string
455 455  nullable: true
456 -|passportExpiryDate|string($date)
455 +|agentConfirmationNumber|string
457 457  nullable: true
458 -|tin|string
457 +|bookingConfirmationNumber|string
459 459  nullable: true
460 -|citizenshipCountryCode|string
459 +|note|string
461 461  nullable: true
462 -|canEdit|boolean
463 463  
464 464  }]
465 465  )))
466 -|documents|[
467 -nullable: trueReservationDocument{(((
468 -|type|ReservationDocumentTypeEnumstringEnum:
469 -[ None, HotelVoucher, Invoice, AviaTicketVoucher, Insurance ]
470 -|descriptions|[
471 -nullable: truestring]
472 -|url|string
464 +|transfers|[
465 +nullable: trueResDetailsTransfer{(((
466 +|id|string($uuid)
467 +|transferType|string
473 473  nullable: true
469 +|vehicleName|string
470 +nullable: true
471 +|touristId|string($uuid)
472 +|touristName|string
473 +nullable: true
474 +|date|string($date-time)
475 +|fromTerminal|string
476 +nullable: true
477 +|fromCityName|string
478 +nullable: true
479 +|fromHotelName|string
480 +nullable: true
481 +|toHotelName|string
482 +nullable: true
483 +|toTerminal|string
484 +nullable: true
485 +|toCityName|string
486 +nullable: true
487 +|agentConfirmationNumber|string
488 +nullable: true
489 +|note|string
490 +nullable: true
474 474  
475 475  }]
476 476  )))
477 -|invoiceUrl|string
494 +|services|[
495 +nullable: trueResDetailsService{(((
496 +|id|string($uuid)
497 +|serviceDate|string($date-time)
498 +|serviceName|string
478 478  nullable: true
500 +|touristId|string($uuid)
501 +|touristName|string
502 +nullable: true
503 +|note|string
504 +nullable: true
479 479  
480 480  }]
481 481  )))
482 482  
483 483  }
510 +)))
511 +
512 +}
484 484  {{/success}}
485 485  
486 486  
... ... @@ -488,59 +488,63 @@
488 488  
489 489  
490 490  (% class="table-bordered" %)
491 -|=**Parameter Name**|=**Type**|=**Description**|=**Example**
492 -|**pageId**|integer|Represents the current page of the results returned. Used for pagination.|0
493 -|**pagesCount**|integer|Indicates the total number of pages available based on the query filters applied.|0
494 -|**reservations**|array|An array containing details of each reservation matching the query parameters. Each entry in this array is a JSON object with multiple fields related to a single reservation.|[ {...}, {...} ]
495 -|**reservations[].id**|string|The unique identifier for the reservation.|"07fff3fd-7ae9-409f-b50b-2cc7a948b8d0"
496 -|**reservations[].number**|string|The reservation number, typically used as a reference by agents and customers.|"110576"
497 -|**reservations[].agentConfirmationNumber**|string|A confirmation number provided by the agent. It can be empty if not applicable.|""
498 -|**reservations[].registrationDate**|datetime|The date and time when the reservation was registered in the system.|"2024-07-11T10:09:52.243"
499 -|**reservations[].packageType**|string|Specifies the type of package associated with the reservation (e.g., "Package").|"Package"
500 -|**reservations[].status**|string|The current status of the reservation (e.g., "Canceled", "Confirmed").|"Canceled"
501 -|**reservations[].statusForAgent**|string|The reservation status as seen from the agent's perspective.|"Canceled"
502 -|**reservations[].departureToAirlineName**|string|The name of the airline for the departure flight. If not applicable, it will be "N/A".|"N/A"
503 -|**reservations[].arrivalTime**|datetime|The scheduled arrival time for the trip.|"2024-09-23T07:15:00.000"
504 -|**reservations[].arrivalCountryName**|string|The name of the country where the trip is scheduled to arrive.|"United Arab Emirates"
505 -|**reservations[].departureTime**|datetime|The scheduled departure time for the return trip.|"2024-09-29T21:30:00.000"
506 -|**reservations[].pickupPeriods**|array|An array of pickup periods, detailing the times when pickup services are scheduled. This can be empty if no pickup services are associated with the reservation.|[]
507 -|**reservations[].driverMobile**|string|The mobile number of the driver assigned for transfer services. It can be "N/A" if not applicable.|"N/A"
508 -|**reservations[].paymentInOutInvCurrency**|object|Contains payment details in the invoice currency.|{...}
509 -|**reservations[].paymentInOutInvCurrency.price**|decimal|Total price in the invoice currency.|952.90
510 -|**reservations[].paymentInOutInvCurrency.netPrice**|decimal|Net price after any discounts in the invoice currency.|952.90
511 -|**reservations[].paymentInOutInvCurrency.paid**|decimal|Amount already paid.|0.00
512 -|**reservations[].paymentInOutInvCurrency.unpaid**|decimal|Amount that is still unpaid.|952.90
513 -|**reservations[].paymentInOutInvCurrency.comission**|decimal|Commission amount, if applicable.|0.00
514 -|**reservations[].paymentInOutInvCurrency.comissionPercent**|integer|Percentage of the commission.|0
515 -|**reservations[].paymentInSellCurrency**|object|Similar to paymentInOutInvCurrency, but in the selling currency.|{...}
516 -|**reservations[].paymentInSellCurrency.currencyCode**|string|The code of the currency (e.g., "USD").|"USD"
517 -|**reservations[].paymentInSellCurrency.price**|decimal|Total price in the selling currency.|952.90
518 -|**reservations[].paymentInSellCurrency.netPrice**|decimal|Net price after any discounts in the selling currency.|952.90
519 -|**reservations[].paymentInSellCurrency.paid**|decimal|Amount already paid.|0.00
520 -|**reservations[].paymentInSellCurrency.unpaid**|decimal|Amount that is still unpaid.|952.90
521 -|**reservations[].paymentInSellCurrency.comission**|decimal|Commission amount, if applicable.|0.00
522 -|**reservations[].paymentInSellCurrency.comissionPercent**|integer|Percentage of the commission.|0
523 -|**reservations[].showDownloadDocuments**|boolean|Indicates whether documents related to the reservation can be downloaded.|false
524 -|**reservations[].guideMeetings**|array|An array of guide meeting details. This can be empty if no guide meetings are associated with the reservation.|[]
525 -|**reservations[].services**|array|An array of services associated with the reservation. Each service contains details such as service type, description, associated tourist IDs, and service-specific details (e.g., flight details).|[ {...}, {...} ]
526 -|**reservations[].services[].id**|string|The unique identifier for the service.|"00000000-0000-0000-0000-000000000000"
527 -|**reservations[].services[].serviceDate**|datetime|The date of the service.|"0001-01-01T00:00:00.000"
528 -|**reservations[].services[].type**|string|The type of service (e.g., "Hotel", "AviaTicket").|"Hotel"
529 -|**reservations[].services[].description**|string|A textual description of the service.|"N/A (N/A*) 23.09.2024 - 29.09.2024 / N/A N/A DBL"
530 -|**reservations[].services[].touristIds**|array|An array of tourist IDs associated with the service.|["29236304-d23c-4999-88ec-76ac4b99b614", "a2e833cf-cdcd-4ff9-9c43-b63066da1f7c"]
531 -|**reservations[].services[].serviceDetails**|array|Additional details specific to the service type, such as flight details.|[ {...}, {...} ]
532 -|**reservations[].tourists**|array|An array of tourists associated with the reservation. Each tourist object contains personal details such as name, gender, passport information, and more.|[ {...}, {...} ]
533 -|**reservations[].tourists[].id**|string|The unique identifier for the tourist.|"29236304-d23c-4999-88ec-76ac4b99b614"
534 -|**reservations[].tourists[].gender**|string|The gender of the tourist.|"Male"
535 -|**reservations[].tourists[].ageCategory**|string|The age category of the tourist (e.g., "Adult").|"Adult"
536 -|**reservations[].tourists[].title**|string|The title of the tourist (e.g., "MR.").|"MR."
537 -|**reservations[].tourists[].firstName**|string|The first name of the tourist.|"Teeeeest"
538 -|**reservations[].tourists[].lastName**|string|The last name of the tourist.|"Teeeest"
539 -|**reservations[].tourists[].birthDate**|datetime|The birth date of the tourist.|"1990-09-23T00:00:00"
540 -|**reservations[].tourists[].passportNumber**|string|The passport number of the tourist.|"1231233"
541 -|**reservations[].tourists[].passportExpiryDate**|datetime|The expiration date of the tourist's passport.|"2029-12-23T00:00:00"
542 -|**reservations[].tourists[].citizenshipCountryCode**|string|The citizenship country code of the tourist.|"N/A"
543 -|**reservations[].tourists[].canEdit**|boolean|Indicates whether the tourist’s details can be edited.|false
544 -|**reservations[].documents**|array|An array containing document details associated with the reservation.|[]
545 -
546 -
520 +|=Parameter|=Value Type|=Description
521 +|id|String|The unique identifier for the reservation, typically a UUID or similar.
522 +|rfNumber|String|The reference number for the reservation, usually generated by the system.
523 +|contactNumber|String|The contact number associated with the reservation, used for communication purposes.
524 +|agentName|String|The name of the agent who made the reservation, useful for tracking and accountability.
525 +|totalPrice|Number|The total price of the reservation, calculated based on the services and products included.
526 +|agentCommission|Number|The commission earned by the agent for this reservation, calculated as a percentage of the total price.
527 +|currency|String|The currency in which the price and commission are denominated, typically in ISO 4217 format (e.g., USD, EUR).
528 +|tourists[].id|String|The unique identifier for each tourist, typically a UUID.
529 +|tourists[].gender|String|The gender of the tourist, usually : [ None, Male, Female ]
530 +|tourists[].ageCategory|String|The age category of the tourist, such as 'Adult', 'Child', or 'Infant'.
531 +|tourists[].firstName|String|The first name of the tourist, as it appears on their passport.
532 +|tourists[].lastName|String|The last name of the tourist, as it appears on their passport.
533 +|tourists[].birthDate|String (Date)|The birth date of the tourist, typically in ISO 8601 format (YYYY-MM-DD).
534 +|tourists[].passportNumber|String|The passport number of the tourist, as it appears on their passport.
535 +|tourists[].passportExpiryDate|String (Date)|The expiry date of the tourist's passport, typically in ISO 8601 format (YYYY-MM-DD).
536 +|tourists[].citizenshipCountryCode|String|The ISO 3166-1 alpha-2 code of the tourist's country of citizenship (e.g., US, GB).
537 +|tourists[].citizenshipCountryName|String|The full name of the tourist's country of citizenship.
538 +|tourists[].arrivalDate|String (Date)|The date of the tourist's arrival, typically in ISO 8601 format (YYYY-MM-DD).
539 +|tourists[].arrivalFlightNumber|String|The flight number for the tourist's arrival, as provided by the airline.
540 +|tourists[].arrivalTerminalCode|String|The terminal code for the tourist's arrival, as provided by the airport.
541 +|tourists[].returnDate|String (Date)|The date of the tourist's return, typically in ISO 8601 format (YYYY-MM-DD).
542 +|tourists[].returnFlightNumber|String|The flight number for the tourist's return, as provided by the airline.
543 +|tourists[].returnTerminalCode|String|The terminal code for the tourist's return, as provided by the airport.
544 +|tourists[].showReturn|Boolean|A boolean indicating whether the return information should be displayed, useful for one-way trips.
545 +|hotels[].id|String|The unique identifier for each hotel booking, typically a UUID or similar.
546 +|hotels[].hotelName|String|The name of the hotel where the booking is made.
547 +|hotels[].cityName|String|The city where the hotel is located.
548 +|hotels[].hotelClass|String|The class or rating of the hotel, such as '3-star', '4-star', '5-star', etc.
549 +|hotels[].checkInDate|String (Date)|The check-in date for the hotel booking, typically in ISO 8601 format (YYYY-MM-DD).
550 +|hotels[].checkOutDate|String (Date)|The check-out date for the hotel booking, typically in ISO 8601 format (YYYY-MM-DD).
551 +|hotels[].roomCategoryName|String|The category of the room booked, such as 'Standard', 'Deluxe', 'Suite', etc.
552 +|hotels[].placementName|String|The type of placement, such as 'DBL' for double room, 'SGL' for single room, etc.
553 +|hotels[].mealPlan|String|The meal plan for the hotel booking, such as 'RO' for Room Only, 'BB' for Bed and Breakfast, etc.
554 +|flights[].id|String|The unique identifier for each flight, typically a UUID or similar.
555 +|flights[].isArrival|Boolean|A boolean indicating whether this flight is an arrival flight, useful for distinguishing between arrival and departure flights.
556 +|flights[].touristId|String|The id of the tourist taking this flight, linking the flight to a specific tourist.
557 +|flights[].touristName|String|The name of the tourist taking this flight, useful for passenger lists.
558 +|flights[].date|String (Date)|The date and time of the flight, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
559 +|flights[].departureAirport|String|The IATA code of the airport from which the flight departs (e.g., JFK, LHR).
560 +|flights[].departureTerminal|String|The terminal from which the flight departs, as provided by the airport.
561 +|flights[].arrivalAirport|String|The IATA code of the airport at which the flight arrives (e.g., JFK, LHR).
562 +|flights[].arrivalTerminal|String|The terminal at which the flight arrives, as provided by the airport.
563 +|flights[].note|String|Any additional notes about the flight, such as 'Overnight flight', 'Meal included', etc.
564 +|transfers[].id|String|The unique identifier for each transfer, typically a UUID or similar.
565 +|transfers[].transferType|String|The type of transfer, such as 'ARRIVAL' for airport to hotel transfers, 'DEPARTURE' for hotel to airport transfers.
566 +|transfers[].vehicleName|String|The name of the vehicle used for the transfer, such as 'Private Car', 'Shared Shuttle', etc.
567 +|transfers[].touristId|String|The id of the tourist using this transfer, linking the transfer to a specific tourist.
568 +|transfers[].touristName|String|The name of the tourist using this transfer, useful for passenger lists.
569 +|transfers[].date|String (Date)|The date and time of the transfer, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
570 +|transfers[].fromTerminal|String|The terminal from which the transfer starts, as provided by the airport or hotel.
571 +|transfers[].fromCityName|String|The city from which the transfer starts.
572 +|transfers[].toHotelName|String|The hotel to which the transfer goes.
573 +|transfers[].toCityName|String|The city to which the transfer goes.
574 +|transfers[].note|String|Any additional notes about the transfer, such as 'Private transfer', 'Shared transfer', etc.
575 +|services[].id|String|The unique identifier for each service, typically a UUID or similar.
576 +|services[].serviceDate|String (Date)|The date and time of the service, typically in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
577 +|services[].serviceName|String|The name of the service, such as insurance in this example.
578 +|services[].touristId|String|The id of the tourist using this service, linking the service to a specific tourist.
579 +|services[].touristName|String|The name of the tourist using this service, useful for booking confirmations.