Connecting StoreHub POS to Craveva
Integrate StoreHub POS system with Craveva AI for unified sales analytics and inventory management across multiple outlets.
Connecting StoreHub POS to Craveva
Overview
StoreHub is a popular POS system for F&B businesses in Singapore and Malaysia. This guide will help you connect your StoreHub account to Craveva AI for real-time sales data, inventory tracking, and multi-outlet analytics.
Prerequisites
- Active StoreHub merchant account
- StoreHub API access enabled
- StoreHub API credentials (API Key and Secret)
- Craveva AI account with appropriate permissions
Step 1: Enable StoreHub API Access
- Log in to your StoreHub merchant dashboard
- Navigate to Settings → Integrations → API Access
- Click Enable API Access if not already enabled
- Generate a new API key pair:
- Note your Store ID (found in Settings → Store Information)
- - API Key: Your public API identifier
- - API Secret: Your private API secret (save this securely)
Step 2: Configure API Permissions
Ensure your API key has access to:
- Sales Data: Read transaction and order information
- Inventory: Read product and stock level data
- Customers: Read customer information (optional)
- Reports: Access to sales reports and analytics
Step 3: Connect StoreHub in Craveva
- Log in to your Craveva AI dashboard
- Navigate to Data Sources from the main menu
- Click Connect New Data Source
- Select REST API as the connection type
- Choose POS System category
- Enter your StoreHub credentials:
- Click Test Connection to verify
- If successful, click Save Connection
- - Connection Name: "StoreHub POS" (or your preferred name)
- - Base URL:
https://api.storehub.com/v1 - - Authentication Type: API Key
- - API Key: Your StoreHub API Key
- - API Secret: Your StoreHub API Secret (in password field)
- - Store ID: Your StoreHub Store ID
Step 4: Configure Endpoints
After connection, map these StoreHub endpoints:
- Sales:
/sales- Transaction data - Products:
/products- Product catalog - Inventory:
/inventory- Stock levels - Orders:
/orders- Order information - Customers:
/customers- Customer data
Step 5: Verify Connection
- Go to Data Sources page
- Find your StoreHub connection
- Click on it to view details
- Status should show Connected
- Test data retrieval by clicking Preview Data
Step 6: Create Multi-Outlet Agents
Sales Analytics Agent
- Navigate to Agent Builder
- Create new agent with StoreHub data source
- Configure for sales analysis:
- - Daily/weekly/monthly sales reports
- - Product performance tracking
- - Peak hours analysis
- - Revenue trends
Inventory Management Agent
- Create agent for inventory monitoring
- Set up alerts for:
- - Low stock levels
- - Out-of-stock items
- - Slow-moving products
- - Reorder recommendations
Multi-Outlet Dashboard
- Connect multiple StoreHub outlets
- Create unified analytics dashboard
- Compare performance across outlets
- Identify best-performing locations
Available Data
Once connected, you can access:
- Sales Transactions: All POS transactions with timestamps
- Products: Complete product catalog with pricing
- Inventory: Real-time stock levels per outlet
- Orders: Order details and status
- Customers: Customer profiles and purchase history
- Reports: Pre-built sales and inventory reports
Use Cases
Real-Time Sales Monitoring
- Track sales in real-time across all outlets
- Monitor daily revenue goals
- Alert on unusual sales patterns
Inventory Optimization
- Predict stockouts before they happen
- Optimize reorder points
- Reduce waste through better inventory management
Customer Insights
- Analyze customer purchase patterns
- Identify VIP customers
- Personalize marketing campaigns
Multi-Outlet Management
- Compare outlet performance
- Identify best practices
- Optimize staffing across locations
Webhook Configuration (Optional)
For real-time updates, configure StoreHub webhooks:
- In StoreHub dashboard → Settings → Webhooks
- Add webhook URL:
https://api.craveva.ai/webhooks/storehub - Subscribe to events:
- Verify webhook delivery
- - New sale
- - Inventory update
- - Order status change
Troubleshooting
Connection Failed?
- Verify API key and secret are correct
- Check that API access is enabled in StoreHub
- Ensure Store ID matches your account
- Verify network connectivity
No Data Showing?
- Wait 2-3 minutes for initial data sync
- Check that your StoreHub account has recent transactions
- Verify API permissions include data read access
- Test endpoint manually using StoreHub API docs
Authentication Errors?
- Regenerate API key pair if expired
- Ensure API secret is entered correctly (no extra spaces)
- Check API key hasn't been revoked
Best Practices
- Secure Credentials: Never share API keys publicly
- Rate Limiting: Be mindful of StoreHub API rate limits
- Data Sync: Allow time for initial data synchronization
- Monitoring: Set up alerts for connection issues
- Backup: Keep API credentials in secure password manager
Next Steps
- Create your first sales analytics agent
- Set up inventory monitoring alerts
- Connect additional StoreHub outlets
- Build custom dashboards for your team
Related Guides
Connecting Qashier POS to Craveva
Step-by-step guide to integrate your Qashier POS system with Craveva AI for real-time sales data and...
Shopify E-commerce Integration
Connect your Shopify store to automate order processing, inventory sync, and customer support....
Connecting Database
Learn how to connect PostgreSQL, MySQL, MongoDB, and other databases to Craveva AI for data analysis...