FitsAir
API Integration

2022
3 months
2 engineers
Integration Engineer
Real-time airline API inside an OTA microservice architecture
The FitsAir integration connects a regional airline's proprietary booking API into the Trabill OTA platform as a dedicated microservice. The integration handles the full booking lifecycle: search availability, price validation, seat selection, booking creation, PNR confirmation, and cancellation. Because FitsAir's API has rate limits and occasional downtime, the integration is built defensively — all outbound calls go through a circuit breaker, failed bookings are queued for retry with exponential backoff, and webhook events from FitsAir trigger async status updates in the OTA. The microservice exposes a clean internal API to the rest of the OTA system, fully abstracting FitsAir's proprietary protocols.
Full booking lifecycle: search → validate → book → confirm → cancel
Circuit breaker pattern prevents cascade failures during FitsAir outages
Bull-powered retry queue with exponential backoff for failed API calls
Webhook receiver for real-time PNR status updates from FitsAir
Clean internal REST API fully abstracts FitsAir's proprietary schema
Comprehensive request/response logging for dispute resolution
FitsAir's API enforces strict rate limits and occasionally times out under load, causing booking failures to cascade into the main OTA system.
A network drop mid-booking could leave a booking in a partially confirmed state with no reliable way to reconcile.
FitsAir uses a bespoke XML-based schema with airline-specific field names that don't map cleanly to the OTA's internal booking model.
Service
Resilience
Database
Transport
Infra
PHASE 01 — API Analysis