BoxpressdProvider.
This allows you to focus on building your website instead of managing application configuration.
What Is Business Context?
Business context is the information the SDK uses to determine which Boxpressd business should be displayed throughout your application. Internally, the SDK resolves information similar to:- Components
- Data APIs
- Hooks
- Future SDK integrations
How Resolution Works
When your application loads:- The provider authenticates using your API key.
- The SDK validates the key.
- The associated business is identified.
- The business type is determined.
- Business context becomes available throughout the SDK.
Why Business Context Matters
Because the SDK understands the active business, components automatically load the correct data. For example:- Which business owns the events
- Which API endpoints to call
- Which content to display
Example: Venue Website
A cigar lounge receives an API key from Boxpressd.- Upcoming events
- Check-ins
- Reviews
- Session activity
- Venue information
Example: Brand Website
A cigar manufacturer receives a different API key.No Manual IDs Required
Traditional integrations often require developers to configure multiple identifiers:Business-Aware Components
Many SDK components automatically adapt their behavior based on the resolved business type. Examples include:| Component | Venue | Brand |
|---|---|---|
| Events | ✓ | ✓ |
| Reviews | ✓ | ✓ |
| Sessions | ✓ | ✓ |
| Check-ins | ✓ | Varies by feature availability |
| Maps | ✓ | Optional |
| Business Information | ✓ | ✓ |
Business-Aware Data APIs
Data APIs use the same context resolution system. For example:Accessing Business Context
Advanced integrations may need access to the resolved business information. Example:- Conditional rendering
- Analytics
- Custom integrations
- Business-specific functionality
Conditional Rendering
You may choose to render different experiences depending on the business type.Multi-Business Applications
Most websites represent a single business and should use a single provider instance.Troubleshooting
Data Appears for the Wrong Business
Verify:- The correct API key is being used.
- Environment variables are configured correctly.
- The API key has not been rotated or replaced.
Business Type Is Unexpected
Verify:- The API key belongs to the intended business.
- The business is configured correctly within Boxpressd.
Components Show No Data
Verify:- The business contains published content.
- The provider has initialized successfully.
- Authentication is working correctly.
Best Practices
One Business Per Website
The vast majority of websites should represent a single business. Use one API key and one provider instance.Avoid Hardcoding Business IDs
Let the SDK resolve business context automatically whenever possible.Build Business-Aware Experiences
Use the resolved business type to tailor layouts and functionality when needed.Next Steps
Now that you understand business context resolution, continue to:- Business Types
- Theming
- Components Overview
- Data Fetching