RahalCorporate
CompaniesConcepts

Booking Engine Configuration

Connect your company to travel suppliers via OAuth integration

Booking Engine Configuration

The booking engine configuration connects your company to external travel suppliers, enabling flight and hotel searches, bookings, and reservations.

Overview

Rahal integrates with travel content providers via OAuth 2.0. Each company can have its own booking engine credentials, allowing:

  • Custom Supplier Access — Connect to specific travel suppliers
  • Isolated Credentials — Each company's API access is separate
  • Configurable Scopes — Control which features are accessible

Configuration Fields

FieldRequiredDescription
Client IDOptionalOAuth client identifier
Client SecretOptionalOAuth client secret (encrypted)
OAuth ScopesOptionalSpace-separated OAuth scopes
Base URLOptionalBooking engine API base URL
Token URLOptionalOAuth token endpoint URL

Booking engine configuration is optional. If not configured, the company uses the platform's default supplier credentials.

OAuth Authentication Flow

Setting Up Integration

Prerequisites

Before configuring the booking engine:

  1. Obtain Credentials — Get OAuth client ID and secret from your travel supplier
  2. Verify URLs — Confirm the base URL and token URL endpoints
  3. Define Scopes — Determine which API scopes you need

Configuration Steps

  1. Navigate to Companies → Select your company
  2. Click Edit to open the company form
  3. Switch to the Booking Engine tab
  4. Enter your OAuth credentials:
    • Client ID — Your OAuth client identifier
    • Client Secret — Your OAuth secret (will be encrypted)
    • Scopes — Space-separated list (e.g., booking.read booking.write)
    • Base URL — Full URL including protocol (e.g., https://api.supplier.com)
    • Token URL — Token endpoint (e.g., https://api.supplier.com/oauth/token)
  5. Click Save

URL Validation

Both Base URL and Token URL must be valid HTTP/HTTPS URLs:

ExampleValid?Notes
https://api.supplier.comCorrect format
https://api.supplier.com/v1Path included is fine
api.supplier.comMissing protocol
ftp://api.supplier.comInvalid protocol

Security

Credential Storage

  • Client secrets are encrypted before storage
  • Secrets are never returned in API responses
  • Only the presence of credentials is indicated (hasConfiguredCredentials: true)

Credential Updates

When editing a company with existing credentials:

  • Leave the Client Secret field blank to keep the existing secret
  • Enter a new value to replace the existing secret

There is no way to view the stored client secret. Keep a secure backup of your credentials.

Without Configuration

If no booking engine is configured:

  • The company uses platform default credentials
  • All standard travel content is available
  • No custom supplier integration

Troubleshooting

Authentication Failures

If bookings fail with authentication errors:

  1. Verify the client ID and secret are correct
  2. Check the token URL is accessible
  3. Confirm the scopes match what the supplier expects
  4. Ensure credentials haven't expired

Missing Content

If flights or hotels aren't appearing:

  1. Verify the base URL is correct
  2. Check the scopes include read permissions
  3. Confirm your supplier account is active

Invalid URL Errors

If you see URL validation errors:

  1. Include the protocol (https://)
  2. Remove trailing slashes
  3. Ensure the URL is complete (not just a domain)

On this page