---
title: "What is API integration? A travel guide | PHPTRAVELS"
description: "What is API integration? A plain-language travel guide: requests and responses, REST, XML and webhooks, one booking traced across four systems, and testing."
source: https://phptravels.com/what-is-api-integration
---

Guide

# What is API integration , explained for travel businesses

An API integration is a connection that lets two software systems exchange data and trigger actions without a person re-typing anything. This guide explains how it works, using one hotel booking that travels between a traveller, a booking platform, a supplier API and a payment gateway.

- One request, one response
- REST, XML, SOAP and webhooks
- A booking traced across four systems
- How integrations are tested

The definition

## What is API integration, in plain language

API stands for application programming interface: the set of rules a system publishes so other software can talk to it. API integration is the work of connecting your platform to one of those interfaces so that data moves and actions happen automatically.

In travel, that platform is usually a booking system such as [Travel booking software](https://phptravels.com/travel-booking-software), and the interface belongs to a supplier, a payment gateway or a business tool. Our [Travel API integration](https://phptravels.com/api-integration) page explains how PHPTRAVELS delivers these connections, and the [All integrations](https://phptravels.com/integrations) lists the suppliers already connected.

- Exchange data Rates, availability, customer details and status updates move between systems in a structured format.
- Automate actions Search, book, pay, cancel and reconcile happen as requests, not as steps someone repeats by hand.
- Track outcomes Every call carries a reference, so a failed booking can be traced back to the request that caused it.

Request

Response

Sample call to a fictional hotel supplier. Field names, endpoints and amounts differ from one supplier to another.

### Anatomy of one API call

- 1 Endpoint and method The address of the operation and the verb used on it: POST to availability means search for rooms.
- 2 Authentication A key, token or signature proves who is calling. Suppliers issue separate credentials for sandbox and production.
- 3 Payload The structured input: city, dates, guests and currency. The supplier's documentation defines every field.
- 4 Status code A number that says how the call went: 200 is success, 4xx a problem with the request, 5xx a problem on the supplier's side.
- 5 Request ID An identifier both sides keep. When support asks what happened to a booking, this is what they search for.
- 6 Response body The answer in the supplier's format, which your platform maps into its own rooms, rates and policies.

One booking, four systems

## What API integration does during a hotel booking

Follow one two-night stay from search to voucher. Every arrow is an API call; the traveller only sees the first and the last.

- 01 Searches hotels in Dubai, two nights, two guests From: Traveller, To: Booking platform
- 02 Availability request with dates, guests and currency From: Booking platform, To: Supplier API
- 03 Rooms, rates, policies and a rate key From: Supplier API, To: Booking platform
- 04 Results shown with your markup and currency applied From: Booking platform, To: Traveller
- 05 Price recheck on the chosen rate key before payment From: Booking platform, To: Supplier API
- 06 Payment authorization for the total From: Booking platform, To: Payment gateway
- 07 Authorized, signed webhook received From: Payment gateway, To: Booking platform
- 08 Booking request with guest details From: Booking platform, To: Supplier API
- 09 Confirmation number and cancellation terms From: Supplier API, To: Booking platform
- 10 Voucher, invoice and booking reference From: Booking platform, To: Traveller
- 01 Traveller Booking platform Searches hotels in Dubai, two nights, two guests
- 02 Booking platform Supplier API Availability request with dates, guests and currency
- 03 Supplier API Booking platform Rooms, rates, policies and a rate key
- 04 Booking platform Traveller Results shown with your markup and currency applied
- 05 Booking platform Supplier API Price recheck on the chosen rate key before payment
- 06 Booking platform Payment gateway Payment authorization for the total
- 07 Payment gateway Booking platform Authorized, signed webhook received
- 08 Booking platform Supplier API Booking request with guest details
- 09 Supplier API Booking platform Confirmation number and cancellation terms
- 10 Booking platform Traveller Voucher, invoice and booking reference

The platform in the middle is where API integration lives: it translates between the traveller's screen and each supplier's format, and it stores every reference.

The same sequence serves [Flight booking software](https://phptravels.com/flight-booking-software) with a GDS, [Tour operator software](https://phptravels.com/tour-operator-software) with an activity supplier and [Payment gateway integration](https://phptravels.com/travel-payment-gateways-integration) with any gateway; only the field names change.

Integration styles

## REST, XML, SOAP, webhooks and GraphQL

Suppliers publish their interfaces in different styles. The style is decided by the supplier's documentation, not by preference, so a travel platform needs to speak all of them.

- REST and JSON JSON Data format JSON documents Transport HTTP methods: GET, POST, PUT, DELETE Typical in travel Newer flight, hotel, activity and payment APIs Strength Compact payloads and wide developer tooling Watch out for Loosely specified; each supplier interprets REST differently
- XML and SOAP XML Data format XML documents, often with a strict schema Transport HTTP POST with a SOAP envelope or plain XML Typical in travel GDS, bedbanks and established hotel and tour systems Strength Formal contracts, signatures and service definitions Watch out for Verbose messages and heavier parsing
- Webhooks EVENT Data format JSON or XML, pushed by the other side Transport HTTP POST to a URL you register Typical in travel Payment results, booking status changes, ticketing updates Strength No polling; your platform is told when something happens Watch out for Signatures must be verified and repeats handled
- GraphQL QUERY Data format JSON, shaped by the query you send Transport A single HTTP endpoint Typical in travel Some newer distribution platforms and internal APIs Strength Ask for exactly the fields you need Watch out for Supplier support in travel is still uncommon

### API integration versus API development

Connects your product to an interface that already exists. The supplier owns the API; you build the client, the mapping and the rules around it.

Creates an interface that other systems use to connect to your product, such as a B2B API your agents' tools can call. You own the contract and its versions.

Many travel projects need both: the platform integrates suppliers on one side and publishes its own API to agents and partners on the other.

Before and after

## What changes when systems are integrated

The same five steps of a booking, done by hand against supplier portals and done through API integration.

### Search

An agent opens each supplier portal and copies prices into a quote.

One search fans out to every connected supplier and returns one list.

### Price

Markup is added in a spreadsheet; the rate may have changed by the time the quote is sent.

Markup, taxes and currency rules apply at response time; the rate is rechecked before payment.

### Book

Guest details are re-typed into the supplier portal; typos become booking errors.

Details are sent once, validated and stored with the supplier's confirmation.

### Pay

Payment is collected separately and matched to the booking later.

Authorization, capture and refund are tied to the booking reference.

### Service

Cancellations and changes mean another login and another email.

Changes and cancellations run through the same connection and update the record.

### Where API integration appears in a travel platform

- [Flight booking software Buyer's checklist for agencies and OTAs selling flights](https://phptravels.com/flight-booking-software)
- [Hotel booking engine Direct bookings on your own hotel website](https://phptravels.com/hotel-booking-engine)
- [Tour operator software Departures, itineraries, guaranteed minimums and agent sales](https://phptravels.com/tour-operator-software)
- [Car rental system Fleet, branches, deposits and returns for rental companies](https://phptravels.com/car-rental-system)
- [Payment gateway integration Checkout, 3D Secure, refunds and webhooks](https://phptravels.com/travel-payment-gateways-integration)
- [Travel agency CRM Leads, quotes, bookings and invoices in one CRM](https://phptravels.com/travel-agency-crm)

Vocabulary

## Terms you will meet in API documentation

Twelve words that appear in almost every supplier's developer portal, defined the way they are used in travel.

- API Application programming interface: the published rules for talking to a system.
- Authentication Proving who is calling, with an API key, a bearer token, a signature or an approved IP address.
- Certification A supplier's review of your integration before production credentials are issued.
- Endpoint One address for one operation, such as search, book or cancel.
- Idempotency Sending the same request twice produces one result, which prevents duplicate bookings and charges.
- Mapping Translating the supplier's fields, codes and names into your platform's own data model.
- Payload The data carried inside a request or response, usually JSON or XML.
- Rate limit The number of calls a supplier allows per second or per day before it starts refusing them.
- Request and response One call: your platform asks, the supplier answers, and both sides log it.
- Sandbox A test environment with fake inventory and test cards where nothing is really booked or charged.
- Status code The HTTP number that summarises the result: 200 success, 401 unauthorized, 429 rate limited, 500 supplier error.
- Webhook A call in the other direction: the supplier or gateway notifies your platform when an event happens.

Testing and scoping

## How a travel API integration is tested before it goes live

An integration is only finished when the unhappy paths behave. A test run against the supplier sandbox covers the cases below before certification and the switch to production credentials.

run integration tests

supplier sandbox, nine cases

- [OK] OK: Authentication with valid and expired credentials
- [OK] OK: Invalid request rejected with a readable error
- [OK] OK: Supplier timeout handled without a hanging booking
- [OK] OK: Rate limit respected and retried after the wait
- [OK] OK: Price change caught at recheck and shown before payment
- [OK] OK: Duplicate submission returns the first booking, not a second one
- [OK] OK: Cancellation applied and fees calculated
- [OK] OK: Refund issued against the original payment
- [OK] OK: Booking, payment and supplier references reconcile

All cases passed, ready for certification

### What scoping needs from you

- 1 Supplier agreement, documentation and sandbox credentials
- 2 Markets, currencies, products and user roles
- 3 Search, booking, change, cancellation and refund scope
- 4 Certification requirements and the production access process

### Ready to connect a supplier

PHPTRAVELS integrates suppliers, gateways and business tools into a self-hosted platform delivered with its source code. See [Pricing](https://phptravels.com/pricing) for the three one-time plans, or ask us about a specific API.

### Keep reading

- [Travel API integration Connect XML and JSON travel suppliers in PHP](https://phptravels.com/api-integration)
- [Custom API integration Connect any supplier or partner API to PHPTRAVELS](https://phptravels.com/integrations/custom-api-integration)
- [Travel XML API suppliers list Bedbanks, wholesalers, GDS, cruises and more](https://phptravels.com/travel-xml-api-suppliers-list)
- [Technology The stack under the hood](https://phptravels.com/technology)

Questions

## API integration questions, answered

Short answers to the questions people ask before their first integration project.

API integration is a connection that lets two software systems exchange data and trigger actions automatically. One system sends a structured request, the other returns a structured response, and both follow agreed rules for security and data.

In travel it connects a booking platform with flight, hotel, tour or car suppliers, payment gateways and business tools. It supports search, price validation, booking, cancellation, refunds and reconciliation without re-keying.

REST is an architectural style that usually exchanges JSON over HTTP. XML is a data format still common among GDS and bedbank suppliers, often wrapped in SOAP. The supplier's contract and documentation decide which one you use.

It depends on supplier access, the endpoints in scope, certification, mapping rules and booking edge cases. A reliable estimate follows a review of the documentation, the credentials and the workflows you need.

Test authentication, valid and invalid requests, timeouts, rate limits, price changes, duplicate submissions, cancellations, refunds and reconciliation. In production, every request should be traceable to a booking reference.

No. Integration connects your product to an existing API; development creates an interface that others connect to. Travel platforms often need both: suppliers integrated on one side and a B2B API published to partners on the other.

Keep exploring

## More from the platform

Reviewed by [Qasim Hussain](https://phptravels.com/author/qasim-hussain), Founder & CEO, PHPTRAVELS · Updated October 2, 2026

- [Travel API integration Connect XML and JSON travel suppliers in PHP](https://phptravels.com/api-integration)
- [Travel APIs GDS, hotel, tour, car and payment APIs](https://phptravels.com/travel-apis)
- [All integrations The live, complete list](https://phptravels.com/integrations)
- [Payment gateway integration Checkout, 3D Secure, refunds and webhooks](https://phptravels.com/travel-payment-gateways-integration)
- [Custom API integration Connect any supplier or partner API to PHPTRAVELS](https://phptravels.com/integrations/custom-api-integration)
- [Technology The stack under the hood](https://phptravels.com/technology)
