Overview
Configure all app behavior including stock thresholds, automation rules, sync schedules, and notification preferences. Layout: 5 blocks in 2 rows (3 + 2).
Stock Thresholds Block
| Setting | Description | Default |
|---|---|---|
| Healthy Threshold | Minimum units to be considered healthy | 20 |
| Low Threshold | Minimum units before "low" warning | 5 |
| Critical Threshold | Minimum units before "critical" alert | 0 |
| Dead Stock Days | Days without sales to flag as dead stock | 90 |
Automation Block
| Setting | Description | Default |
|---|---|---|
| Auto-create PO | Automatically create PO for critical stock | Disabled |
| Auto-send PO | Automatically send POs to suppliers | Disabled |
| Default Lead Time | Default delivery time for new products | 7 days |
Sync Settings Block
| Setting | Description | Default |
|---|---|---|
| Auto-sync | Enable automatic sync on schedule | Disabled |
| Auto-sync Interval | Hours between automatic syncs | 4 |
| Sync on App Load | Sync when app opens | Enabled |
Notifications Block
| Setting | Description |
|---|---|
| Email Alerts | Send stock alerts to email |
| Alert Email | Email address for notifications |
| Slack Webhook | Slack incoming webhook URL |
| Digest Frequency | Immediate, daily, or weekly |
| Weekly Digest | Send weekly summary email |
Shopify Sync Block
| Setting | Description |
|---|---|
| Primary Supplier Cost | Maps to Shopify cost_per_item Syncs to Shopify |
| Location | Default inventory location for sync |
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/settings | GET | Get all settings |
/api/settings | PUT | Update settings |