{
  "name": "Veratad DCAMS Age Verification API",
  "version": "2.0.0",
  "platform": "Cloudflare Workers",
  "integration": "DCAMS (admin.dcams.app)",
  "endpoints": {
    "POST /session": "Create DCAMS verification session/journey",
    "POST /customer/compliance": "Save customer citizenship metafield",
    "GET /status": "Check verification status by email",
    "GET /journey/:id": "Check journey status by journey ID",
    "POST /webhook/dcams": "DCAMS webhook receiver",
    "POST /webhook/customer": "BigCommerce customer webhook",
    "POST /migrate": "Import verified customers",
    "POST /log": "Frontend logging endpoint (BigCommerce theme)",
    "POST /orders/import": "Import BigCommerce orders by date range",
    "GET /test": "Test API connections",
    "GET /debug/orders": "Debug: Check orders by email or customer_id",
    "GET /cron/process-backlog": "Process verification backlog (cron job)",
    "POST /admin/migrate-verified-to-bigcommerce": "Backfill verified customers to BC metafields",
    "GET /admin/migration-status": "BC metafield migration progress",
    "POST /admin/migrate-customers": "Migrate existing customers to backlog (one-time)",
    "GET /health": "Health check",
    "GET /admin": "Admin dashboard"
  }
}