V1 RESTful Architecture

Dummy Ticket API Integration Guidelines

Programmatically search worldwide airline schedules and hotel properties, then direct-book embassy-verifiable dummy tickets & hotel vouchers with real-time PNR generation and watermarked PDF outputs.

⚠️

B2B Agent Account Required Prior to API Access

Every API key is strictly linked to a verified B2B Travel Agent Account. Bookings are charged directly from your central agency wallet ($1.00 USD / passenger). New agencies must register for a B2B account first.

1. Register Agent Account

API Yearly Subscription Packages

Installation: $500 USD (one-time) • Issuance: $1.00 USD / ticket debited from wallet

STARTER API
$500 / year
+ $500 setup & $1/ticket
  • ✓ 250 Daily Searches
  • ✓ 10,000 Monthly Searches
  • ✓ 1,000 Bookings Capacity
  • ✓ Flight & Hotel API Access
  • ✓ 30-Min Cached Token
GROWTH API
$1,000 / year
+ $500 setup & $1/ticket
  • ✓ 500 Daily Searches
  • ✓ 15,000 Monthly Searches
  • ✓ 1,500 Bookings Capacity
  • ✓ Flight & Hotel API Access
  • ✓ Priority SLA & Support
POPULAR
PRO SCALE
$1,500 / year
+ $500 setup & $1/ticket
  • ✓ 1,000 Daily Searches
  • ✓ 30,000 Monthly Searches
  • ✓ 3,000 Bookings Capacity
  • ✓ Flight & Hotel API Access
  • ✓ WhatsApp Developer Support
ENTERPRISE
$5,000 / year
+ $500 setup & $1/ticket
  • ✓ 5,000 Daily Searches
  • ✓ 100,000 Monthly Searches
  • ✓ 10,000 Bookings Capacity
  • ✓ Custom Rate Limits & White-label
  • ✓ Dedicated Tech Manager
ADVERTISEMENT

Integration & Account Linking Workflow

How prospective and existing agencies establish an API connection with the Dummy Ticket Factory engine.

01

Agent Registration

Register your agency at /signup or sign in to your existing B2B dashboard.

02

Submit API Query

Provide Name, Email, Phone, and WhatsApp. Request Flight, Hotel, or Both services.

03

Admin Approval & Quotas

Admin reviews KYC, establishes search/book rate limits, and issues your client_id & client_secret.

04

Search & Direct Book

Generate 30-min Bearer token, search itineraries, and direct-book. $1.00 USD is auto-debited per ticket.

💡
Admin Service Assignment

The Admin Panel allows granular permission management. Admin can authorize Flight Only, Hotel Only, or Both. If your application calls an unassigned service, the API responds with 403 SERVICE_NOT_ASSIGNED.

POST

OAuth2 Authentication & Token Caching

/api/v1/auth/token

Authenticate your B2B account using client credentials to receive a Bearer token valid for 30 minutes (1,800 seconds).

⏱️
Mandatory 30-Minute Token Caching Policy

Clients MUST store and reuse the access token across all API calls during its 30-minute validity window. Do not request a new token per search or booking. Doing so will trigger aggressive rate limits on the auth endpoint.

Request Payload (JSON)

FieldTypeRequirementDescription
client_id string Required Your agency client identifier provided by the admin team. (e.g. b2b_agent_live_9f8d3c1a)
client_secret string Required Your private agency API key secret. Never expose this in client-side code.
curl -X POST "https://api.flyjat.com/api/v1/auth/token" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": "b2b_agent_live_9f8d3c1a",
    "client_secret": "sec_live_8849204820194820afedcb"
  }'
Response (200 OK — 30-Min Lifespan)
{
  "status": "success",
  "token_type": "Bearer",
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 1800,
  "expires_at": "2026-10-04T23:02:21Z",
  "allowed_services": ["flight", "hotel"],
  "agency": {
    "agency_id": "AG-7821",
    "wallet_balance": 450.00,
    "currency": "USD",
    "ticket_cost_rate": 1.00
  }
}
POST

Direct Book Flight Ticket ($1.00 USD / Passenger)

/api/v1/flights/book

Directly issues a verifiable dummy flight reservation with active PNR code and immediately accessible PDF ticket. Auto-debited from your B2B wallet.

🎫
Pricing & PNR Guarantee

Each passenger is charged exactly $1.00 USD from your B2B pre-funded wallet. The issued PNR is verifiable on airline reservation systems and ready for visa submissions.

Booking Payload
curl -X POST "https://api.flyjat.com/api/v1/flights/book" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "flight_token": "fl_token_77a91b2c4d5e",
    "validity_days": 14,
    "passengers": [
      {
        "title": "MR",
        "first_name": "JOHN",
        "last_name": "DOE",
        "dob": "1990-05-14",
        "nationality": "GBR",
        "passport_number": "P89123891"
      }
    ]
  }'
Response (201 Created)
{
  "status": "success",
  "booking_reference": "DT-FL-928174",
  "pnr": "EKB84Q",
  "airline": "Emirates",
  "valid_until": "2026-10-18T22:45:00Z",
  "commercial": {
    "passenger_count": 1,
    "rate_per_passenger_usd": 1.00,
    "total_debited_usd": 1.00,
    "remaining_wallet_balance_usd": 449.00
  },
  "documents": {
    "ticket_pdf_url": "https://api.flyjat.com/flight-booking-pdf?booking_ref=DT-FL-928174",
    "verification_url": "https://flyjat.com/verify/EKB84Q"
  }
}
POST

Direct Book Hotel Voucher ($1.00 USD / Guest)

/api/v1/hotels/book

Directly issues verified dummy hotel reservation vouchers with booking confirmation code and official hotel voucher PDF.

Booking Payload
curl -X POST "https://api.flyjat.com/api/v1/hotels/book" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "hotel_token": "ht_opt_44f128bc9a",
    "validity_days": 14,
    "guests": [
      { "title": "MR", "first_name": "JOHN", "last_name": "DOE" },
      { "title": "MRS", "first_name": "JANE", "last_name": "DOE" }
    ]
  }'
Response (201 Created)
{
  "status": "success",
  "booking_reference": "DT-HT-448291",
  "hotel_confirmation_code": "HT-839201",
  "hotel_name": "Novotel Central Paris",
  "commercial": {
    "guest_count": 2,
    "rate_per_guest_usd": 1.00,
    "total_debited_usd": 2.00,
    "remaining_wallet_balance_usd": 447.00
  },
  "documents": {
    "voucher_pdf_url": "https://api.flyjat.com/hotel-booking-pdf?booking_ref=DT-HT-448291"
  }
}
GET

Agency Balance & Quotas Telemetry

/api/v1/agent/quota-balance

Inspect your current wallet funds, service entitlements, and remaining daily, monthly, and yearly search/booking counters in real time.

cURL Request
curl -X GET "https://api.flyjat.com/api/v1/agent/quota-balance" \
  -H "Authorization: Bearer "
Response (200 OK)
{
  "status": "success",
  "agency": {
    "agency_id": "AG-7821",
    "wallet_balance_usd": 447.00,
    "ticket_unit_rate_usd": 1.00
  },
  "service_entitlements": {
    "flight_search": true,
    "flight_booking": true,
    "hotel_search": true,
    "hotel_booking": true
  },
  "quotas": {
    "searches": {
      "hourly": { "limit": 60, "used": 4, "remaining": 56 },
      "monthly": { "limit": 5000, "used": 380, "remaining": 4620 }
    },
    "bookings": {
      "hourly": { "limit": 60, "used": 2, "remaining": 58 },
      "monthly": { "limit": 1000, "used": 48, "remaining": 952 }
    },
    "in_panel_tester": {
      "hourly": { "limit": 5, "note": "Max 5 test requests per hour inside the B2B agent panel" }
    }
  }
}

Public API Production Limits & In-Panel Testing

Standard production throughput quotas and developer testing limitations.

Hourly Search Quota
60 / hour
Production flight/hotel search
Hourly Booking Quota
60 / hour
Direct PNR/voucher generation
Monthly Max Volume
5,000 Srch / 1,000 Book
5k search & 1k booking cap / mo
In-Panel Test Limit
5 / hour
Inside agent dashboard tester

Every API response provides live telemetry in response headers so your software can adapt smoothly:

X-RateLimit-Search-Hourly-Limit: 60
X-RateLimit-Search-Hourly-Remaining: 56
X-RateLimit-Booking-Hourly-Limit: 60
X-RateLimit-Booking-Hourly-Remaining: 58
X-RateLimit-Search-Monthly-Limit: 5000
X-RateLimit-Booking-Monthly-Limit: 1000
X-RateLimit-Reset: 1728086400

Error Response Schema

HTTP CodeError CodeCause & Resolution
401 Unauthorized TOKEN_EXPIRED Bearer token exceeded 30 minutes. Re-authenticate via POST /api/v1/auth/token.
402 Payment Required INSUFFICIENT_WALLET Agency wallet balance is under $1.00 USD. Recharge via B2B agency portal.
403 Forbidden SERVICE_NOT_ASSIGNED Service not authorized for your agency (e.g. Flight Only assigned, but attempted Hotel booking).
429 Too Many Requests RATE_LIMIT_EXCEEDED Daily, Monthly, or Yearly quota exceeded. Contact admin to upgrade capacity.

Frequently Asked Questions (FAQ)

Technical answers, integration standards, rate policies, and billing details for engineering teams.

What is the Dummy Ticket API?

The Dummy Ticket API is a high-speed RESTful JSON API that enables OTAs, B2B travel agents, visa consultants, and corporate travel platforms to programmatically search flight routes, issue authentic airline reservations with live verifiable PNRs, and generate customized PDF e-tickets in seconds.

Are API-generated flight reservations verifiable on airline websites?

Yes. All bookings generated via the API are backed by authentic airline reservations with live verifiable 6-character PNR codes. Embassy visa officers, border officials, and travelers can verify them directly on airline websites (Emirates, Qatar Airways, Turkish Airlines, Lufthansa, British Airways, etc.) via the "Manage Booking" or "Check In" sections.

How does API authentication work?

The API uses an enterprise dual-token security architecture. You exchange your master API key for a temporary 30-minute Bearer token via POST /api/v1/auth/token. All subsequent search and booking requests send this Bearer token in the Authorization: Bearer <token> header.

What are the search and booking rate limits?

Standard production environments allow 60 searches per hour and 60 direct bookings per hour. Annual subscription plans range from Starter ($500/yr: 250 daily searches / 1,000 bookings) to Enterprise ($5,000/yr: 5,000 daily searches / 10,000 bookings). The in-panel developer sandbox allows up to 5 live test calls per hour.

What is the wholesale cost per ticket issued via API?

Tickets issued via API cost a flat wholesale rate of $1.00 USD per passenger/ticket, debited automatically in real time from your pre-funded agency wallet. There is zero commission or revenue share taken.

Can I test the API before going live in production?

Yes! Every verified B2B agent with API access has instant access to the In-Panel API Sandbox inside the agent dashboard. You can test authentication, flight searches, live flight bookings, hotel searches, and hotel vouchers with instant JSON telemetry and PDF generation up to 5 calls per hour.

ADVERTISEMENT
💬 API WhatsApp Support