Skyight API
B2B Partner Module

Skyight APIDocumentation

The B2B Partner module is designed to integrate and expose third-party airline booking APIs to our business partners. This module acts as a middleware layer between B2B clients and airline service providers.

🔍

Search Tickets

Find airline tickets

📝

Create Bookings

Book flights easily

🎫

Issue Tickets

Confirm reservations

📊

Track Bookings

Manage all bookings

🎟️

Support Tickets

Get help when needed

Authentication Required

Once your company is registered, you will receive a secretToken which must be included in all API requests.

Company APIs

Manage your company profile, transactions, and wallet operations

POST

Create Transaction

api/b2bpartner/company/create-transaction

Load amount into your wallet. This transaction will be pending until approved by admin. You need to add funds before creating bookings.

Request Payload

BodyJSON
{
  "bank_name": "string",
  "bank_number": "string",
  "account_holder_name": "string",
  "document_number": "string",
  "payment_date": "string",
  "amount": "string",
  "comment": "string",
  "document": "file"
}
PUT

Update Company

api/b2bpartner/update/company

Modify your company details including name, location, and website.

Request Payload

BodyJSON
{
  "companyId": 0,
  "name": "string",
  "country": "string",
  "city": "string",
  "address": "string",
  "website": "string"
}
DELETE

Delete Company Image

api/b2bpartner/company/image

Remove your company's profile image.

POST

Upload Company Image

api/b2bpartner/company/image

Add or update your company's profile image.

GET

Get Transactions

api/b2bpartner/company/get-transactions

Retrieve all your wallet transactions history.

GET

Get Company KPI

api/b2bpartner/company/company-kpi

Retrieve key performance indicators for your company.

Bank APIs

Access approved bank information for transactions

GET

Get All Banks

api/b2bpartner/bank

Retrieve list of approved banks. Only transactions from these banks will be processed and approved.

Booking APIs

Search flights, create bookings, and manage reservations

GET

Get All Active Routes

api/b2bpartner/booking-all-active-routes

Retrieve all available city names and active flight routes.

GET

Search Flights

api/b2bpartner/search

Search for available flights based on your criteria.

POST

Create Booking

api/b2bpartner/booking

Create a new booking with traveller information and flight details.

Request Payload

BodyJSON
{
  "trip_type": "OneWay",
  "origin_location_code": "str",
  "origin_location_code_return": "string",
  "flight_duration": "string",
  "flight_duration_return": "string",
  "departure_terminal": "string",
  "departure_terminal_return": "string",
  "arrival_terminal": "string",
  "arrival_terminal_return": "string",
  "destination_location_code_return": "string",
  "destination_location_code": "str",
  "airline_code": "st",
  "airline_code_return": "st",
  "air_equip_type": "string",
  "air_equip_type_return": "string",
  "departure_date_time": "2024-01-15 10:30",
  "departure_date_time_return": "2024-01-20 14:00",
  "arrival_date_time": "2024-01-15 12:45",
  "arrival_date_time_return": "2024-01-20 16:15",
  "departure_date": "2024-01-15",
  "departure_date_return": "2024-01-20",
  "departure_time": "10:30",
  "departure_time_return": "14:00",
  "arrival_date": "2024-01-15",
  "arrival_date_return": "2024-01-20",
  "arrival_time": "12:45",
  "arrival_time_return": "16:15",
  "flight_number": "string",
  "flight_number_return": "string",
  "res_book_design_Code": "string",
  "res_book_design_Code_return": "string",
  "rph": "string",
  "rph_return": "string",
  "ref_number": "string",
  "ref_number_return": "string",
  "direction_id": 0,
  "direction_id_return": 0,
  "elapsed_time": 0,
  "elapsed_time_return": 0,
  "cabin_class": "string",
  "cabin_class_return": "string",
  "transaction_identifier": "string",
  "travellers": ["string"],
  "booking_class_avails": ["string"],
  "booking_class_avails_return": ["string"],
  "free_baggages": ["string"],
  "free_baggages_return": ["string"],
  "priceInfo": {
    "itin_total_fare": {
      "base_fare": {
        "amount": 0,
        "currency_code": "str",
        "decimal_places": 0
      },
      "total_fare": {
        "amount": 0,
        "currency_code": "str",
        "decimal_places": 0
      },
      "total_equiv_fare": {
        "amount": 0,
        "currency_code": "str",
        "decimal_places": 0
      }
    },
    "ptc_fare_break_downs": ["string"]
  }
}
GET

Get Travellers Data

api/b2bpartner/getTravellers

Retrieve all travellers that you created during booking process.

GET

Get All Company Bookings

api/b2bpartner/booking/company

Fetch all bookings associated with your company.

GET

Get Booking by ID

api/b2bpartner/booking/:id

Fetch a single booking by its unique identifier.

GET

Get Total Credits

api/b2bpartner/booking-credits

Fetch your remaining wallet credits balance.

POST

Confirm Booking

api/b2bpartner/booking-issue

Confirm and issue a booking that you have created.

Request Payload

BodyJSON
{
  "pnr": "string"
}
POST

Get PNR

api/b2bpartner/booking-pnr

Retrieve PNR details to download booking information.

Request Payload

BodyJSON
{
  "pnr": "string"
}
POST

Get Penalty

api/b2bpartner/getPenalty

Get cancellation penalty information for a ticket.

Request Payload

BodyJSON
{
  "Items": [
    {
      "ticket_number": "string",
      "coupon_number": "string",
      "reference": "string",
      "zero_penalty": false
    }
  ]
}
GET

Get Orders

api/b2bpartner/orders/company

Retrieve all confirmed bookings/orders for your company.

POST

Cancel Booking

api/b2bpartner/booking-cancel-request-ticket

Request cancellation for a booking you have created.

Request Payload

BodyJSON
{
  "id": 0
}
POST

Report Booking

api/b2bpartner/booking-user-ticket

Generate a report for bookings within specified date ranges.

Request Payload

BodyJSON
{
  "from_departure_date": "2024-01-01",
  "to_departure_date": "2024-01-31",
  "page_number": 0,
  "page_size": 0,
  "from_issue_date": "2024-01-01",
  "to_issue_date": "2024-01-31",
  "user_ticket_type": 0
}
GET

Get Custom Ticket

api/b2bpartner/custom-ticket

Retrieve tickets that were created by admin.

Support Ticket

Create and manage support tickets for any issues or inquiries

POST

Create Ticket

api/b2bpartner/ticket

Create a new support ticket if you encounter any problems.

Request Payload

BodyJSON
{
  "title": "string",
  "description": "string"
}
PUT

Update Ticket

api/b2bpartner/ticket

Update an existing support ticket with new information or status.

Request Payload

BodyJSON
{
  "ticket_id": 0,
  "title": "string",
  "description": "string",
  "status": "open"
}
GET

Get Single Ticket

api/b2bpartner/ticket

Fetch details of a specific support ticket.

DELETE

Delete Ticket

api/b2bpartner/ticket

Remove a support ticket from the system.

GET

Get Company Tickets

api/b2bpartner/ticket/company

Fetch all support tickets associated with your company.