API Documentation

Access Euro Asia Group's enterprise travel and fintech infrastructure. Embed Global GDS flight bookings, instant mobile recharges, and digital services directly into your OTA or fintech app via our unified REST API.

Authentication

The Euro Asia API uses API keys to authenticate requests. You can view and manage your API keys in the Developer Dashboard. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must pass the key in the HTTP Authorization header.

Authorization: Bearer sk_live_YOUR_SECRET_KEY

Environments & Rate Limits

We provide a dedicated Sandbox environment to safely test integrations without touching real funds. Toggle the environment purely by changing the API key prefix. Standard rate limits apply to both environments (100 requests / second).

sk_test_...

Sandbox Mode

Routes requests to mock providers. Will not deduct from your real wallet.

sk_live_...

Production Mode

Issues real tickets and instantly deducts from your live wallet balance.

Official SDKs

While you can use raw REST requests, we recommend using our official client libraries for seamless type-safety and automatic retry handling.

// Node.js (TypeScript)
npm install @euroasia/node
// Python
pip install euroasia-python
// PHP
composer require euroasia/php

Flights API (Global GDS & NDC)

Programmatically search and book worldwide flights. Our unified API aggregates legacy GDS (Amadeus, Sabre), Low-Cost Carriers (LCCs), and modern NDC (New Distribution Capability) inventory into a single standard schema.

POST/v1/flights/search

Initiates a live flight search across all connected aggregators. This endpoint is highly optimized but may take up to 3 seconds to aggregate all global suppliers.

  • Supports multi-city and open-jaw routing.
  • Returns structured baggage and fare rules.
  • Automatically applies your markup margins.
// Request Payload
{
  "slices": [
    {
      "origin": "FCO",
      "destination": "JFK",
      "departure_date": "2026-11-15"
    }
  ],
  "passengers": [
    { "type": "adult" }
  ],
  "cabin_class": "economy"
}

Mobile Recharge API

Instantly top-up mobile balances across 150+ countries. The API natively enforces strict idempotency to protect your ledger from double-charges during network timeouts.

POST/v1/recharge/purchase

Issues a top-up to the specified phone number. The transaction is atomic. If the supplier fails to deliver the top-up, the funds are instantly released back to your B2B wallet.

// Request Payload
{
  "operatorId": 154,
  "phoneNumber": "+8801712345678",
  "amountCents": 1000,
  "idempotencyKey": "req_a1b2c3d4"
}

Webhooks (Async Callbacks)

For async operations like flight ticketing or cargo processing, we will send a POST request to your configured webhook URL once the operation finalizes.

Verifying Signatures

All webhook events include an EA-Signature header. You must verify this signature using your Webhook Secret to ensure the payload was genuinely sent by Euro Asia Group.

EA-Signature: t=1678901234,v1=5257a869e7ecebea0d1...