Get Portal Configuration
Returns the complete portal configuration object for the current location. This includes feature flags, payment provider settings, branding configuration, checkout options, module availability, and all other operator-controlled settings that determine how the Members Portal behaves. The portal fetches this on startup and re-fetches when switching locations.
Authentication
Requires a valid customer bearer token, or returns public configuration for unauthenticated sessions depending on space settings.
Response
Returns BusinessSetting[] — a flat array of name–value pairs. Each setting corresponds to a portal configuration option set by the operator.
The setting key (e.g. "PublicWebSite.Tour.TimeSlots.Enabled", "PaymentProvider", "AllowSelfSignup").
The setting value as a string. Boolean settings use "True"/"False". Numeric settings are stringified.
Example Response
[
{ "Name": "PaymentProvider", "Value": "Stripe" },
{ "Name": "AllowSelfSignup", "Value": "True" },
{ "Name": "DefaultLanguage", "Value": "en" },
{ "Name": "PublicWebSite.Tour.TimeSlots.Enabled", "Value": "False" }
]
TypeScript Integration
import endpoints from '@/api/endpoints'
import { useData } from '@/api/fetchData'
import { BusinessSetting } from '@/types/sys/BusinessSetting'
const { resource: settings } = useData<BusinessSetting[]>(httpClient, endpoints.system.business.configuration)
const getSetting = (name: string) => settings?.find((x) => x.Name?.toLocaleLowerCase() === name.toLocaleLowerCase())?.Value
if (getSetting('AllowSelfSignup') === 'True') {
// Show signup flow
}
Usage in Portal
| Context | Source file |
|---|
| App bootstrap / feature flag provider | src/states/useLocationByRouteContext.tsx |
| Payment provider initialisation | src/views/checkout/ |
| Navigation and route guard | src/routes/ |
Error Responses
Authentication is required and no valid token was supplied.
No configuration found for the resolved location.
| Method | Endpoint | Description |
|---|
GET | /api/public/businesses/current | Get the current location profile |
GET | /api/sys/businesses/{id}/colors | Get the brand colour palette |
GET | /api/public/outlines/navigation | Get the portal navigation outline |