Getting Started
Step 1 — Contact us & create your agency
Write to sales@aviaframe.com to get access. We'll create your agency account in the portal and send you:
- Portal login (admin dashboard URL)
- Your agency's API key
- Your backend API endpoint URL
Step 2 — Fill in your agency details
Before your clients can make bookings, complete your agency profile in the portal:
- Agency name — shown to clients in booking confirmations
- Bank name & IBAN — shown in payment instructions sent to clients after booking (required)
- Contact email & phone
- SWIFT/BIC, SAMA code — optional, for international transfers
Note: Bank Name and IBAN are required. Without them, the system cannot show payment instructions to clients after they complete a booking.
Step 3 — Embed the widget on your website
Add two lines of HTML to any page on your website where you want the flight search to appear:
<!-- 1. Place this div where you want the widget --> <div id="aviaframe-widget" data-api-url="https://YOUR-BACKEND-URL/webhook/drct/search" data-checkout-url="/booking" ></div> <!-- 2. Load the widget script --> <script src="https://widget.aviaframe.com/widget/aviaframe-widget.js"></script>
Replace YOUR-BACKEND-URL with the API endpoint we provided. That's it — the widget initialises itself automatically.
Step 4 — Verify it's working
- Open your website — the flight search form should appear
- Search for a flight — results should load from the API
- Select a flight — you should see the passenger details form
- Complete a test booking — check it appears in the portal dashboard under Orders
- Open the order → View Payment Instructions — confirm your bank details appear correctly
Step 5 — Customise your widget (optional)
Add your brand colors and logo to make the widget match your website:
<div id="aviaframe-widget" data-api-url="https://YOUR-BACKEND-URL/webhook/drct/search" data-primary-color="#0057b8" data-logo-url="https://youragency.com/logo.png" data-title="Search Flights" ></div>
Need help?
Write to us at sales@aviaframe.com — we'll help you get set up and answer any questions.