Skip to main content

Documentation

The connector documentation will be stored in the docs/ directory, which will also be used as context for Copilot.
The docs/ directory will include the following subfolders: docs/analysis/, docs/certification/, and docs/supplier/, each providing additional context about the supplier's API.

  • The docs/analysis/ folder will be pre-filled and will contain a technical analysis summarizing the different (JSON or XML) calls and business logic (such as Metadata) of the supplier’s API.
  • The docs/certification/ folder will initially be empty and should later contain production logs and examples from the certification process with the supplier’s API, once the connector has been completed and certified.
  • The docs/supplier/ folder will also be pre-filled and will include the supplier’s API specification file, which provides the official documentation for the supplier’s API.

Format Clarification

  • <Version> must follow the format X.X.X (e.g., 1.0, 2.0.2, etc.).
  • <Date> must follow the format YYYYMMDD (e.g., 20250903).

Supplier Documentation

The supplier-specific API documentation is stored in the docs/supplier/ directory.
Each file should follow the naming format spec_<Version>.md, corresponding to the supplier API version.


Certification

The connector certification files will be stored in the docs/certification/ directory.
This section provides production examples and logs used to validate the connector’s API calls against the supplier’s API.
It is structured to help coding agents and LLMs understand the layout and use of real-world certification data.

The directory will include a file named docs/certification/certification_<Version>_<Date>.md, which describes the expected structure of certification files.


Structure Overview

Two main folders must be created inside the docs/certification/ directory.


Travelgate Certification Folder

A folder named docs/certification/travelgate/ should be created to store the connector certification from Travelgate’s side.

Within this folder, the following directories should exist, each representing a certification type:

  • Connectors/
  • HotelX/
  • Legacy/

Certification Folders

Each of these directories must contain four subfolders, representing different booking flow scenarios for certification:

  • 1Rooms@1Adults+1Childs/
  • 1Rooms@2Adults/
  • 2Rooms@1Adults+1Childs@2Adults/
  • 2Rooms@2Adults@2Adults/

Each scenario folder should include production examples for all main connector operations (e.g., Search, Quote, Book, Cancel, CheckBookingByReference, etc.) generated during the connector certification process.

Certification Subfolders


Supplier Certification Folder

A folder named docs/certification/supplier/ should also exist within the certification directory.
It will contain the supplier’s own certification data, if a certification process is performed by the supplier.


Technical Analysis of an API

The technical analysis files will be stored in the docs/analysis/ directory.
Each file should follow the naming format analysis_<Version>_<Date>.md.
These files will provide additional technical context about the supplier’s API, organized according to the following table structure:

IDCategoryMandatory CategoryCheckpointDetailsMandatory CheckpointResultComments
DOC-01DocumentationMandatoryVerify completenessEnsure documentation is complete and up-to-date.Mandatory✅ / ❌Comment if needed
DOC-02Endpoint informationVerify clear information about the available endpoints.Mandatory
DOC-03Validate examplesConfirm that the documentation includes clear examples of requests and responses.Highly recommended
DOC-04Review error codesReview details provided about error codes.Mandatory
AUT-01Authentication and AuthorizationMandatoryConfirm authentication typeConfirm the type of authentication required (e.g., OAuth, API Key, etc.).Mandatory
AUT-02Test authentication flowEnsure the authentication flow works as expected.Mandatory
AUT-03Verify authorization mechanismsCheck authorization mechanisms and access control for different user roles.Recommended
FUN-01FunctionalityMandatoryEndpoint testingTest each endpoint with various data sets to check correct responses and error handling.Mandatory
FUN-02
FUN-03Business logic validationValidate the underlying business logic for consistency and accuracy. Minimum shopping flow (search, quote?, book)Mandatory
PER-01PerformanceMandatoryEvaluate response timesAssess API response times to ensure they meet performance requirements.Mandatory
PER-02Scalability testingPerform load tests to review the API's scalability, if applicable.Mandatory
PAY-01Payment TypesMandatoryVerify compatible payments typesCheck if at least one of these payment types is compatible: MERCHANT, DIRECT, CARD_BOOKING or CARD_CHECKIN_IN.Mandatory
CNP-01Cancellation PoliciesMandatoryIncludes start date, end date, penalty amount and penalty typeVerify whether the API provides: a cancellation deadline, penalty amount and penalty type (amount, percentage or number of nights).Mandatory
CNP-02Refundability IndicatorConfirm whether the cancellation policy includes an explicit field or flag indicating whether the option/room is refundable.Recommended
CNP-03Special policies (No-show, In-stay Cancellation, ...)Check if the API indicates special types of policies.Mandatory
CNP-04Mapping DifficultyClassify the complexity of mapping the cancellation policies to TravelgateX's model:• 🟢 (Green): Direct entity mapping****• 🟡 (Yellow): Requires intermediate logic (e.g., uncommon date formats, policy identifiers, cross-referenced calculations)****• 🔴 (Red): Cannot be mapped (e.g., free-text descriptions without structure)Mandatory
AVAI-01AvailabilityMandatoryMust be able to search by list of hotelsMandatory
AVAI-02Return rooms or options. Requires combinatory?Combinatory must be done by TG or not.Mandatory
AVAI-03An option/room must have a code and a description of the room and priceMandatory
AVAI-04Return policies in availabilityRecommended
AVAI-05An option/room must have a defined meal planotherwise we will assume room onlyHighly recommended
AVAI-06Must be able to uniquely identify an optionMandatory
AVAI-07The provider's API must be for accommodations for 1 checkin daynot packages, last-minute offers, checkin by hours...Mandatory
QUO-01QuoteNot mandatory if there is a second availability that includes all necessary informationPriceMandatory
QUO-02PoliciesMandatory
QUO-03RemarksRecommended
QUO-04If expiring, must be able to detect the expiration timeMandatory
BOO-01BookingMandatoryReservation statusMandatory
BOO-02PriceHighly recommended
CNX-01CancellationHighly recommendedReservation statusMandatory
CNX-02Amount to be paid (cancel penalty)Highly recommended
CHB-01CheckBookingsByReferenceHighly recommendedReservation statusMandatory
CHBD-01CheckBookingsByDateRecommendedReservation statusMandatory
HLIS-01HotelListMandatoryHotel codeMandatory
HIN-01HotelInfoHighly recommendedHotel code, name, address, country, geocoding (lat,long)Mandatory
HIN-02Hotel category, descriptions, images, amenitiesRecommended
CAT-01CategoriesHighly recommendedCategory code and descriptionNot having this call would force Travelgate to list hotels as NC, lowering their competitivenessMandatory
MEA-01MealplansHighly recommendedNot returning meal plans in availability lowers the competitiveness of the product.Mandatory
DES-01DestinationsRecommendedCode and name of the provider's destination treeMandatory
ROO-01RoomListOptionalCode and nameIt may be mandatory for some buyersMandatory