bookunited/travel-compositor

There is no license information available for the latest version (1.0.0) of this package.

A client library for the Travel Compositor API

1.0.0 2025-04-28 12:48 UTC

This package is auto-updated.

Last update: 2025-04-28 12:55:18 UTC


README

Documentation:

  <ul>
    <li><a href=\"https://online.travelcompositor.com/api/documentation/index.xhtml#Introduction\">Introduction</a></li>
    <li><a href=\"https://online.travelcompositor.com/api/documentation/index.xhtml#ApiAccomodation\">Accommodation API</a></li>
    <li><a href=\"https://online.travelcompositor.com/api/documentation/index.xhtml#ApiTransport\">Transport API</a></li>
    <li><a href=\"https://online.travelcompositor.com/api/documentation/index.xhtml#ApiClosedTour\">Closed Tour API</a></li>
    <li><a href=\"https://online.travelcompositor.com/api/documentation/index.xhtml#Webhooks\">Webhooks</a></li>
  </ul>

Installation & Usage

Requirements

PHP 8.4 and later.

Your project is free to choose the http client of your choice Please require packages that will provide http client functionality: https://packagist.org/providers/psr/http-client-implementation https://packagist.org/providers/php-http/async-client-implementation https://packagist.org/providers/psr/http-factory-implementation

As an example:

composer require guzzlehttp/guzzle php-http/guzzle7-adapter http-interop/http-factory-guzzle

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new TravelCompositor\Api\AuthenticationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client()
);
$authentication = new \TravelCompositor\Model\Authentication(); // \TravelCompositor\Model\Authentication

try {
    $result = $apiInstance->authenticate($authentication);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationApi->authenticate: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://online.travelcompositor.com/resources

ClassMethodHTTP requestDescription
AuthenticationApiauthenticatePOST /authentication/authenticateReturn auth token
AuthenticationApigetAuthTokenGET /authentication/getAuthTokenReturn auth token. DEPRECATED: For security reasons, use POST - /authentication/authenticate so the password is not visible in the URL
BookAccommodationApibookPOST /booking/accommodations/{accommodationId}/bookBook accommodation
BookAccommodationApicancelDELETE /booking/{bookingReference}/accommodations/{accommodationBookingReference}Cancel accommodation
BookAccommodationApiconfirmPOST /booking/accommodations/{accommodationId}/confirmConfirm accommodation
BookAccommodationApigetAccommodationBookedDetailGET /booking/{bookingReference}/accommodations/{accommodationBookingReference}Accommodation booking detail
BookAccommodationApigetCancellationFeeGET /booking/{bookingReference}/accommodations/{accommodationBookingReference}/cancellation-feeCancellation fees
BookAccommodationApiprebookPOST /booking/accommodations/{accommodationId}/prebookPrebook accommodation
BookAccommodationApiquotePOST /booking/accommodations/quoteQuote accommodations
BookAccommodationApiquoteSingleAccommodationPOST /booking/accommodations/{accommodationId}/quoteQuote accommodation
BookAccommodationApirefreshPUT /booking/{bookingReference}/accommodations/{accommodationBookingReference}Refresh accommodation booking
BookClosedTourApibook1POST /booking/closedtour/{closedTourId}/bookBook Closed Tour
BookClosedTourApicancel2DELETE /booking/{bookingReference}/closedtour/{closedTourBookingReference}Cancel closedtour
BookClosedTourApiconfirm1POST /booking/closedtour/{closedTourId}/confirmConfirm Closed Tour
BookClosedTourApigetAccommodationOptionsPOST /booking/closedtour/{closedTourId}/accommodationGet Closed Tour Accommodation Options
BookClosedTourApigetCancellationFee2GET /booking/{bookingReference}/closedtour/{closedTourBookingReference}/cancellation-feeCancellation fees
BookClosedTourApigetClosedTourBookedDetailGET /booking/{bookingReference}/closedtour/{closedTourBookingReference}Closed Tour booking detail
BookClosedTourApigetPrePostNightsPOST /booking/closedtour/{closedTourId}/prequotedataGet possible closed Tour additional data
BookClosedTourApiprebook1POST /booking/closedtour/{closedTourId}/prebookPrebook Closed tour
BookClosedTourApiquote1POST /booking/closedtour/{closedTourId}/quoteQuote closed Tour
BookClosedTourApirefresh1PUT /booking/{bookingReference}/closedtour/{closedTourBookingReference}Refresh closed tour booking
BookTransportsApibook2POST /booking/transports/bookBook transports
BookTransportsApicancel3DELETE /booking/{bookingReference}/transports/{transportBookingReference}Cancel transport
BookTransportsApiconfirm2POST /booking/transports/confirmConfirm transports
BookTransportsApigetCancellationFee3GET /booking/{bookingReference}/transports/{transportBookingReference}/cancellation-feeCancellation fees
BookTransportsApigetTransportBookedDetailGET /booking/{bookingReference}/transports/{transportBookingReference}Transport booking detail
BookTransportsApiprebook2POST /booking/transports/prebookPrebook transports
BookTransportsApiquote2POST /booking/transports/quoteQuote transports
BookTransportsApirefresh2PUT /booking/{bookingReference}/transports/{transportBookingReference}Refresh transport booking
BookingApicancel1PUT /booking/{bookingReference}/{serviceType}/{serviceId}/cancelCancel a booking service
BookingApigetBookingsGET /booking/getBookings/{micrositeId}/{bookingReference}Return booking by reference
BookingApigetBookings1GET /booking/getBookingsReturn bookings by operator or microsite
BookingApigetCancellationFee1GET /booking/{bookingReference}/{serviceType}/{serviceId}/cancellation-feeCancellation fees for booking service
BookingClientRequestApiclientRequestClosePUT /booking/{bookingReference}/client-requests/{clientRequestId}/closeCloses an existing client request
BookingClientRequestApiclientRequestCreatePOST /booking/{bookingReference}/client-requestsCreates a new client request
BookingClientRequestApiclientRequestOpenPUT /booking/{bookingReference}/client-requests/{clientRequestId}/openOpens an existing client request
BookingClientRequestApiclientRequestReplyPOST /booking/{bookingReference}/client-requests/{clientRequestId}/replyReply to an existing client request
ContractClosedTourApicreateClosedTourPOST /closedtour/{supplierId}Creates a new closed tour
ContractClosedTourApicreateClosedTourOptionPOST /closedtour/{supplierId}/{closedTourCode}Creates a new closed tour option
ContractClosedTourApigetClosedTourGET /closedtour/{supplierId}/{closedTourCode}Return closed tour by its code
ContractClosedTourApigetOptionsGET /closedtour/{supplierId}/{closedTourCode}/{optionCode}Return closed tour options by code
ContractClosedTourApiupdateClosedTourPUT /closedtour/{supplierId}Updates an existing closed tour
ContractClosedTourApiupdateClosedTourOptionPUT /closedtour/{supplierId}/{closedTourCode}Updates an existing closed tour option
ContractGolfApicreateContractPOST /golf/{supplierId}Creates a new golf contract
ContractGolfApicreateRatePOST /golf/{supplierId}/{contractCode}/rateCreates a new rate for an existing golf contract
ContractGolfApicreateSeasonPOST /golf/{supplierId}/{contractCode}/seasonCreates a new season for an existing golf contract
ContractGolfApicreateTeeTimePOST /golf/{supplierId}/{contractCode}/teetimeCreates a new tee time for an existing golf contract
ContractGolfApigetContractGET /golf/{supplierId}/{contractCode}Return the details of golf contract by its code
ContractGolfApigetContractsGET /golf/{supplierId}Return golf contracts by supplier
ContractGolfApiupdateContractPUT /golf/{supplierId}Updates an existing golf contract
ContractGolfApiupdateRatePUT /golf/{supplierId}/{contractCode}/rateUpdates an existing rate for an existing golf contract
ContractGolfApiupdateSeasonPUT /golf/{supplierId}/{contractCode}/seasonUpdates an existing season for an existing golf contract
ContractGolfApiupdateTeeTimePUT /golf/{supplierId}/{contractCode}/teetimeUpdate an existing tee time for an existing golf contract
ContractHotelApicreateHotelPOST /hotel/{supplierId}Creates a new hotel contract
ContractHotelApicreateHotelMealPlanPOST /hotel/mealplan/{supplierId}/{providerCode}Creates a new hotel mealplan
ContractHotelApicreateHotelOfferPOST /hotel/offer/{supplierId}/{providerCode}Add offer to hotel contract
ContractHotelApicreateHotelRatesPOST /hotel/rates/{supplierId}/{providerCode}Add rates to hotel contract
ContractHotelApicreateHotelRoomPOST /hotel/room/{supplierId}/{providerCode}Creates a new hotel room
ContractHotelApicreateHotelSupplementPOST /hotel/supplement/{supplierId}/{providerCode}Add supplement to hotel contract
ContractHotelApigetHotelGET /hotel/{supplierId}/{providerCode}Return hotel by its provider code
ContractHotelApigetHotelsGET /hotel/{supplierId}Return hotels by supplier
ContractHotelApiupdateHotelPUT /hotel/{supplierId}Updates an existing hotel contract
ContractHotelApiupdateHotelRatesPUT /hotel/rates/{supplierId}/{providerCode}Modifies hotel contract rates
ContractSupplierApicreateContractSupplierPOST /suppliersCreates a new supplier
ContractSupplierApigetContractSupplierGET /suppliers/{supplierId}Return supplier by its code
ContractSupplierApigetSupplierListGET /suppliersReturn suppliers of operator
ContractSupplierApiupdateContractSupplierPUT /suppliers/{supplierId}Modify an existing contract supplier
ContractTicketApicreateTicketPOST /tickets/{supplierId}Creates a new ticket
ContractTicketApicreateTicketOptionPOST /tickets/{supplierId}/{ticketCode}Creates a new ticket option
ContractTicketApigetOptions1GET /tickets/{supplierId}/{ticketCode}/{optionCode}Return ticket options by code
ContractTicketApigetTicketGET /tickets/{supplierId}/{ticketCode}Return ticket by its code
ContractTicketApigetTicketsGET /tickets/{supplierId}Return tickets by supplier
ContractTicketApiupdateTicketPUT /tickets/{supplierId}Updates an existing ticket
ContractTicketApiupdateTicketOptionPUT /tickets/{supplierId}/{ticketCode}Updates an existing ticket option
ContractTransferApicreateTransferPOST /transfer/{supplierId}Creates a new transfer
ContractTransferApigetTicket1GET /transfer/{supplierId}/{transferId}Return transfer by its id
ContractTransferApigetTransfersGET /transfer/{supplierId}Return transfers by supplier
ContractTransferApigetZonesGET /transfer/zones/{supplierId}Return transfer zones
ContractTransferApiupdateTransferPUT /transfer/{supplierId}Updates an existing transfer
ContractTransportApicreateTransportPOST /transport/{supplierId}Creates a new transport
ContractTransportApicreateTransportOptionPOST /transport/{supplierId}/{transportId}Creates a new transport option
ContractTransportApigetOptions2GET /transport/{supplierId}/{transportId}/{optionCode}Return transport options by code
ContractTransportApigetTransportContractGET /transport/{supplierId}/{transportId}Return transports by its ID
ContractTransportApigetTransportsGET /transport/{supplierId}Return transports by supplier
ContractTransportApiupdateTransportPUT /transport/{supplierId}Updates an existing transport
ContractTransportApiupdateTransportOptionPUT /transport/{supplierId}/{transportId}Updates an existing transport option
IdeasApigetDayToDay1GET /travelidea/{micrositeId}/{ideaId}Return idea details by its ID
IdeasApigetIdeaGET /travelidea/{micrositeId}/info/{ideaId}Return idea by its ID
IdeasApigetIdeasGET /travelidea/{micrositeId}Return ideas by microsite
IdeasApiupdateIdeaPUT /travelidea/{micrositeId}/{ideaId}Updates an existing idea
PackagesApigetDayToDayGET /package/{micrositeId}/{holidayPackageId}Return holiday package details by its ID
PackagesApigetHolidayPackageGET /package/{micrositeId}/info/{holidayPackageId}Return holiday package by its ID
PackagesApigetHolidayPackageCalendarGET /package/calendar/{micrositeId}/{holidayPackageId}Return holiday package calendar by its ID
PackagesApigetHolidayPackagesGET /package/{micrositeId}Return holiday packages by microsite
PackagesApiupdateHolidayPackagePUT /package/{micrositeId}/{holidayPackageId}Updates an existing holiday package
PromotionCodesApicreatePromotionCodePOST /promotioncode/{micrositeId}Creates a new promotional code
PromotionCodesApigetPromotionCodeGET /promotioncode/{micrositeId}Return promotional codes by microsite
PromotionCodesApiupdatePromotionCodePUT /promotioncode/{micrositeId}Modify an existing promotional code
PurchaseAttemptsApigetPurchaseAttemptGET /purchase-attempts/{micrositeId}Return purchase attempt
PurchaseAttemptsApigetPurchaseAttemptByIdGET /purchase-attempts/{micrositeId}/{purchaseAttemptId}Return purchase attempt by Id
TripQuoteApicountTripQuotesGET /tripquote/count
TripQuoteApireportTripQuotesGET /tripquote/report
UsersAndAgenciesApiaddUserLoyaltyRewardsPOST /user/rewards/{micrositeId}/{agencyId}/{username}Add rewards
UsersAndAgenciesApicreateAgencyPOST /agency/{micrositeId}Creates a new agency
UsersAndAgenciesApicreateUserPOST /user/{micrositeId}/{agencyId}Creates a new user
UsersAndAgenciesApigetAgenciesGET /agency/{micrositeId}Return agencies by microsite
UsersAndAgenciesApigetAgencyGET /agency/{micrositeId}/{agencyId}Return agency by its ID
UsersAndAgenciesApigetAgency1GET /agencymanager/{micrositeId}/{agencyManagerId}Return agency manager by its ID
UsersAndAgenciesApigetAgencyCreditGET /agency/agencyCredit/{micrositeId}/{agencyId}Return agency credit balance by its ID
UsersAndAgenciesApigetUserGET /user/{micrositeId}/{agencyId}/{username}Return user by its ID
UsersAndAgenciesApigetUsersGET /user/{micrositeId}Return users
UsersAndAgenciesApigetUsers1GET /user/{micrositeId}/{agencyId}Return users by agency
UsersAndAgenciesApiincreaseAgencyCreditPUT /agency/agencyCredit/{micrositeId}/{agencyId}Increase the credit of an existing agency by its ID
UsersAndAgenciesApiupdateAgencyPUT /agency/{micrositeId}Updates an existing agency
UsersAndAgenciesApiupdateUserPUT /user/{micrositeId}/{agencyId}Updates an existing user
WebContentApideleteCustomDatasheetDELETE /static/closedtour/customdatasheet/{lang}/{dataSheetId}Deletes Custom Data Sheet
WebContentApigetAccommodationDataSheetGET /accommodations/{accommodationId}/datasheetReturns a accommodation datasheet
WebContentApigetAccommodationsGET /accommodationsReturns the active accommodations
WebContentApigetAccommodationsDataSheetGET /accommodations/datasheetReturns a list of accommodations datasheet
WebContentApigetAirlinesGET /airline/{micrositeId}Return airlines by microsite
WebContentApigetClosedTour1GET /static/closedtour/{lang}/{closedTourId}Get Closed Tour
WebContentApigetCountriesGET /destination/countries/{micrositeId}Return countries
WebContentApigetCruiseDeparturesGET /cruise/{micrositeId}/{cruiseId}/departuresReturn cruise departures
WebContentApigetCruiseItineraryGET /cruise/{cruiseId}/itineraryReturn an itinerary by ID
WebContentApigetCruiseLineCharacteristicsGET /cruise/{micrositeId}/cruiseLineReturn cruise line characteristics
WebContentApigetCruisesGET /cruise/{micrositeId}Return all cruises
WebContentApigetCustomDatasheetGET /static/closedtour/customdatasheet/{dataSheetId}Get Custom Datasheet
WebContentApigetDatasheetPOST /static/closedtour/datasheetGet Datasheets
WebContentApigetDatasheet1GET /static/closedtour/datasheet/{dataSheetId}Get Datasheet
WebContentApigetDestinationGET /destination/{micrositeId}/{destinationId}Return destination by ID
WebContentApigetDestinationsGET /destination/{micrositeId}Return destinations
WebContentApigetExpediaAccommodationDataSheetGET /accommodations/{accommodationId}/expediaDatasheetReturns a expedia accommodation datasheet. CAUTION: Requires to have expedia as an active hotel supplier.
WebContentApigetExpediaReviewsGET /accommodations/{accommodationId}/expedia-reviewsReturns expedia reviews for a given hotel. CAUTION: Requires approval from both Travelcompositor and Expedia.
WebContentApigetInfoTicketByReferenceGET /ticket/datasheet/{micrositeId}/{ticketId}Return info ticket
WebContentApigetMealPlansGET /mealplan/{micrositeId}Return meal plans by microsite
WebContentApigetPortByIdGET /cruise/port/{cruisePortId}Return a port by its id
WebContentApigetPortsGET /cruise/portReturn all ports
WebContentApigetPreferredHotelsGET /accommodations/preferred/{micrositeId}Return preferred accommodations
WebContentApigetPreferredTicketsGET /ticket/preferred/{micrositeId}Return preferred tickets
WebContentApigetProviderConfigurationListGET /providers/configurations/{micrositeId}Return providers configuration of microsite
WebContentApigetShipByIdGET /cruise/{micrositeId}/ship/{shipId}Return cruise ship by ID
WebContentApigetShipsGET /cruise/{micrositeId}/shipReturn all ships
WebContentApigetThemesGET /theme/{micrositeId}Return microsite themes
WebContentApigetTransportBaseByCodeGET /transportbases/{code}Returns a transport base by its code
WebContentApigetTransportBasesGET /transportbasesReturns the active transport bases
WebContentApisearchClosedToursPOST /static/closedtour/{lang}Search Closed Tours
WebContentApiupdateCustomDatasheetPUT /static/closedtour/customdatasheet/{dataSheetId}Updates Custom Datasheet

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
    • Generator version: 7.13.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen