1. Home
  2. How it Connects
How it Connects

How your website and backend connect

Your website and embedded booking widget aren't bolted onto your reservation system, they're part of it. Here's the architecture, the data flow, and the security that carries a booking into the backend your team runs on.

Four layersFrom click to drop-off
LiveUpdates without refreshing
SeparateData scoped per company
JWT + rolesAuthenticated, validated, rate-limited
Architecture

Four layers, one connected system

Your website and booking widget sit on top, the API layer sits in the middle, and the reservation backend your team logs into sits underneath, with data tied to your company. Bookings flow down from the widget into dispatch; live status flows back up to your team.

  1. Layer 01

    Your website

    The public frontend, what riders see

    • Marketing pages
    • Embedded booking widget
    • Branded confirmations

    Hosted on your domain. The booking widget is a drop-in script that calls the API directly over HTTPS, it never touches your database.

    Widget calls the API over HTTPS ↓

  2. Layer 02

    API layer

    The bridge between site and backend

    • REST over HTTPS
    • JWT auth & sessions
    • Role-based access
    • Validated & rate-limited

    Every request is authenticated, role-checked, and validated here. Roles cover riders, drivers and five staff roles: owner, operations manager, dispatcher, reservations and accountant. The website never reaches the database directly.

    Validated · authenticated · rate-limited ↓

  3. Layer 03

    Reservation backend / admin dashboard

    Your back office, what your team logs into

    • Live dispatch board
    • Rates & zones engine
    • Fleet & driver records
    • Corporate billing
    • Reports

    Your team logs in at yourcompany.karfisllc.com. The dispatch board updates in real time over a server-sent-events stream, no manual refresh.

  4. Layer 04

    Your data

    One source of truth, scoped to your company

    • Every reservation, rider, driver, vehicle, invoice, and rate rule lives here

    The backend reads and writes to it; the website only ever reads back what the API allows.

These four layers are the "how". For the "what", the eight modules your team manages day to day, see Backend management

Data flow

A booking, start to finish

Follow a single reservation from quote request through pricing, dispatch, status updates, and into your reports.

  1. Website

    Rider books on the website

    A visitor enters pickup, drop-off, date, and vehicle class in the booking widget and requests a quote.

  2. API + backend

    Backend prices the trip

    The API validates the request, the rates engine computes real driving distance, and your rates, zones, and vehicle multipliers are applied.

  3. Backend + DB

    Dispatch board updates live

    On confirm, the reservation is saved, a branded confirmation email goes out, and the ride appears on your dispatch board in real time.

  4. Dispatch + driver

    Ride is assigned & worked

    Your dispatcher assigns the ride. The driver updates status, assigned, en route, arrived, in progress, completed, live on the board.

  5. Backend → reports

    Completed ride flows into reports

    The trip flows into revenue summary, revenue over time, ride status breakdown, and driver performance reports.

Security & auth

Six layers between the user and the data

The website never touches the database directly. Every request is encrypted, authenticated, role-checked, validated, and rate-limited before it reaches your data.

JWT auth & sessions

Every request carries a signed token scoped to the user's role. The website never touches the database directly.

Role-based access

Riders, drivers and five staff roles (owner, operations manager, dispatcher, reservations, accountant) see only what their role permits, enforced on the server.

Server-side validation

Every write is validated at the API layer before it reaches your data, no client can write something the backend does not allow.

Rate limiting

Abusive traffic is throttled at the API before it ever reaches the core, keeping your backend responsive.

Optional two-factor auth

Staff accounts can enable TOTP with backup codes. Account setup is email-verified, with self-service password reset.

Data kept separate

Every record is tied to your company. Other companies on the platform cannot see it.

In action

The connection, in real scenarios

Everyday moments where the connected website and backend do work that separate tools simply can't.

The Karfis reservations table, shown with a made-up demo company: bookings from the website, the app and staff in one list

Airport pickup booked at 2am

A traveler books an airport ride outside business hours. The quote is instant, the reservation is captured, and your team sees it on the board the moment they log in, no missed leads.

  1. Website quote
  2. API validates
  3. Reservation saved
  4. Dispatch board lights up

Corporate account repeat booking

A corporate client books through your site under their standing account. The ride attaches to the right corporate profile and a net-terms invoice is generated for it.

  1. Corporate rider books
  2. API attaches to account
  3. Net-terms invoice generated

Dispatcher assigns and tracks

A new ride lands on the live dispatch board the moment it is booked, no refresh needed. The dispatcher assigns it to a driver and watches the status update in real time.

  1. New ride on board
  2. Dispatcher assigns
  3. Status updates live

Driver updates status from the road

The driver uses their authenticated API access to move a ride through each status as the trip happens, and the board reflects it instantly for the whole team.

  1. Driver marks en route
  2. Board updates live
  3. Rider sees status
Next step

Want this backend wired into your company?

Tell us about your fleet and current setup. We will walk you through exactly how this connects your website, drivers, customers, dispatch, and billing.