Skip to content

Latest commit

 

History

History
120 lines (100 loc) · 6.08 KB

README.md

File metadata and controls

120 lines (100 loc) · 6.08 KB

Katanox PHP SDK

Welcome to the official PHP SDK of the Katanox API. You can simply install the SDK using Composer and after providing your API key you can start calling the API.

Make sure you create a Travel Seller account at the Katanox Platform first so that you can receive a sandbox API key.

Install

Via Composer

$ composer require katanox/katanox-php

Manual Installation

Download the files and include autoload.php:

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

API Endpoints

All URIs are relative to https://api.katanox.com/v2

Class Method HTTP request Description
AvailabilityApi getAvailableProperties GET /availability Retrieve the list of available properties
BookingsApi cancelBookingById DELETE /bookings/{booking_id} Cancel a booking
BookingsApi cancelReservation DELETE /bookings/{booking_id}/reservations/{reservation_id} Cancel a reservation
BookingsApi createBooking POST /bookings Create a booking
BookingsApi createReservation POST /bookings/{booking_id}/reservations Create a reservation
BookingsApi getBookingById GET /bookings/{booking_id} Retrieve a booking
BookingsApi getReservationById GET /bookings/{booking_id}/reservations/{reservation_id} Retrieve a reservation by id
BookingsApi updateReservation PUT /bookings/{booking_id}/reservations/{reservation_id} Update a reservation
OfferApi offerRefresh POST /offers/{offer_id}/refresh Refresh an offer
OfferApi offerValidate GET /offers/{offer_id} Retrieve an offer
PropertiesApi getProperties GET /properties Retrieve the list of contracted properties
PropertiesApi getPropertyById GET /properties/{id} Retrieve a property by id
PropertiesApi getRateplanById GET /properties/{property_id}/rate-plans/{id} Retrieve a rate plan by id
PropertiesApi getUnitById GET /properties/{property_id}/units/{id} Retrieve a unit by id

Models

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

About this package

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

  • API version: 2.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen