System Overview

🔄
Webhooks Received (Total)
Loading from database...
🛒
Orders Recorded
orders/create events
📦
Subscription Orders
with selling_plan_id
🏆
Contract Events
create + update
📡 Live Webhook Events — Real Shopify Data
Every event Shopify sends to /api/webhooks is recorded here in SQLite
Auto-refresh every 5s

Loading webhook events from database...

🧪
Live System Diagnostics
Verify connections, database integrity, and backend logic in real-time.
Shopify API Connection Checking...
Verifying API connection to Shopify...
SQLite Database Tables Checking...
Checking database tables...
ACA Streak Logic Engine Checking...
Checking streak engine state...
Group Autoship Engine Checking...
Verifying bundle rules...

Bridge Services

🏆
ACA Logic Engine
services/acaService.js
Active

Tracks consecutive 28-day subscription cycles per customer. Increments custom.aca_streak Metafield on each successful renewal. Applies a 7-day grace period before resetting streak.

  • POST /api/webhooks
  • orders/create
  • subscriptions/update
📦
Group Autoship
services/groupAutoshipService.js
Active

Manages Parent-Child subscription bundles. All items in a group share one billing date and shipping address. Supports add, remove, merge, renew, and auto-cancel on empty.

  • POST /api/groups
  • GET /api/groups/:id
  • POST /api/groups/:id/items
  • DELETE /api/groups/:id
🔄
Webhook Sync
services/shopifyWebhookSync.js
Active

Mirrors Shopify subscription contracts into the local SQLite autoships table. Handles idempotent creates and status propagation (CANCELLED, PAUSED, ACTIVE).

  • subscription_contracts/create
  • subscription_contracts/update
💳
Payment Migration
Coming Next
Planned

Handles PCI-compliant credit card token transfer from legacy gateway (Nuvei) to Shopify Payments. Uses gateway-specific vault migration APIs.

  • POST /api/payments/migrate
  • GET /api/payments/status