BusinessPlus Connect (Developer)
Authentication & Store Identification Reference
Understand the two-tier security model of BusinessPlus: public edge-cached storefront reads versus privileged server operations requiring your private Site API Key.
The Two Security Tiers
BusinessPlus strictly separates public storefront queries from privileged commerce mutations:
- Tier 1: Public Storefront Reads (Zero Credentials): Endpoints under /v1/storefront/* (such as /v1/storefront/catalog-items and /v1/storefront/product) require NO credentials. They are secured by IP rate limiting, tenant scoping, and edge caching across global Cloudflare Points of Presence (PoPs).
- Tier 2: Server-Authenticated Operations (x-api-key Required): Privileged operations (such as POST /v1/orders, GET /v1/orders/:id, and POST /v1/lead-capture) require a valid Site API Key provided via the x-api-key HTTP header. These endpoints must be called strictly from your backend application server.
API Key Header Format
When dispatching server-authenticated requests, supply your private Site API Key using either of the following HTTP header formats:
- Header Option 1: x-api-key (Recommended Canonical Header): x-api-key: YOUR_BUSINESSPLUS_API_KEY
- Header Option 2: Authorization Bearer: Authorization: Bearer YOUR_BUSINESSPLUS_API_KEY
Security Rules: Where API Keys Belong
Your BusinessPlus API Key grants programmatic access to create orders and retrieve customer records for your store tenant. Keep it strictly on your server.
Store Identifiers: Store Slug vs Site UUID
Developers must understand the distinction between the two identifiers used across BusinessPlus endpoints:
Where to Find Your Identifiers in Dashboard
You can locate your store identifiers in the BusinessPlus merchant portal:
- Store Slug / Identifier: Navigate to Dashboard -> Settings -> General (/dashboard/settings/site/:id). Your store subdomain or slug is displayed under "Store Slug" (e.g. my-store).
- Site UUID (site_id): The Site UUID is displayed in the browser URL bar whenever viewing your site in the dashboard (e.g., https://businessplus.co.ke/dashboard/sites/00000000-0000-4000-8000-000000000001). You can copy the UUID directly from the URL.
- Site API Key: Navigate to Dashboard -> Settings -> Site Settings -> AI & Integrations (/dashboard/settings/site/:id/ai). Click "Copy API Key" or generate a new secret key.
NOTE: For server-authenticated endpoints (POST /v1/orders and POST /v1/lead-capture), the backend automatically resolves your site_id directly from the x-api-key header. You do not need to pass site_id in the order payload.