Authentication

The Marketplace Engine API uses Laravel Passport OAuth2-style access tokens for customers, vendors, and delivery drivers. Issue a token via the relevant login endpoint, then send it on protected routes.

Base path

{marketplace-host}/api/v3/

Customer

POST /api/v3/auth/login
Content-Type: application/json

{ "email_or_phone": "…", "password": "…" }

Successful login returns an access token. Use it as:

Authorization: Bearer {access_token}

Guest sessions

Unauthenticated storefront users can still use cart and place/track flows via POST /auth/guest/request. Guest-capable customer routes sit behind the apiGuestCheck middleware (cart, order place/track, etc.).

Vendor

Authenticated vendor API routes use the vendor.api middleware group under /vendor/*.

Delivery driver

Authenticated driver routes live under /driver/* with the driver.api middleware.

Common request headers

Admin support surfaces

Selected /admin/* JSON routes (support tickets, knowledge centre, dashboard stats, promoted restaurants, shop admin, etc.) are gated by a configured support key header: X-Web-Admin-Support-Key. This is for licensed ops tooling — not a public third-party key.

EPOS & supplies shop