Danvas
Danvas
DashboardSupportWelcome

👤 USER DOCS

User Guides

Getting Started

Getting StartedDashboard & OnboardingApp Settings

Tutorials

Tutorial: Setting Up Shift Tasks & ClosersTutorial: Managing Incidents in the InboxTutorial: Tracking Compliance & Sync StatusTutorial: Operational Workflows with the AI AssistantTutorial: Building & Deploying Custom Checklists

Daily Operations (Staff)

Shift Workspace & TasksService Day SetupDaily Line-UpStaff Service Day ReportsForms

Communication & Chat

Messages & AnnouncementsUnified Operations InboxAI Assistant

Manager & Admin Guides

Daily Line-Up SetupStaff SchedulingManaging LocationsNPS and Guest FeedbackCouponsContacts and Guest HistoryManager CloseoutsDaily Line-Up & ComplianceAnalyticsIncident ReportingWhistleblower Concerns & FeedbackAdmin Tools

⚙️ DEVELOPER DOCS

Getting Started

Getting StartedDevelopmentDeployment Guide

Architecture

Architecture OverviewExplanation: AI Integration & Tenant SecurityExplanation: Dynamic Forms Engine DesignExplanation: Compliance Ledger DesignExplanation: Live Sync & Data FreshnessData FlowArchitecture Decision Records

Core Domain

Core DomainDatabase ReferenceLocations DomainAuth & RBACScheduling DomainReports DomainIncidents DomainUnified Operations InboxLive Sync Data FreshnessToast Sync PipelineNotifications DomainCoupons and Guest NPSAudit Log & Compliance ArchitectureDesign Audit FindingsAI Chat IntegrationAnalytics & Tips Integration

Frontend

Frontend ArchitectureFormsLoading SkeletonsComponentsPWA & Offline ShellScreenshots

API Reference

API Reference

Endpoints

POS Sales APIOptimization Data APISchedule Shifts APIEmployee Export APIReports APIIncidents APIAI Chat APIPush Notifications APIWebhooks APICron API

Contributing

ContributingCode Examples

Security

Security & Compliance

Release Notes

What's New

POS Sales API

Real-time sales data from Toast POS

Deprecated upstream. This endpoint described the legacy analytics_api HTTP surface. Live sales are synced by the live-sales-pipeline cron into staging tables and read from local marts. See Analytics tips.

Overview

The POS Sales API provides access to current sales metrics aggregated from Toast POS. This data is used by staff when filing shift reports to compare actual performance against goals.

Endpoint

GET /api/analytics/sales

Authentication

Legacy: Required an ANALYTICS_API_KEY via the Authorization: Bearer header on the decommissioned analytics_api service. Production reads from local staging/marts.

Parameters

NameInTypeDescription
locationIdquerystringThe ID of the location to fetch sales for.
datequerystringISO date (YYYY-MM-DD).

Response

{
  "totalSales": 1250.50,
  "transactionCount": 45,
  "averageCheck": 27.78
}

Related

Shift Reports Guide

Analytics Dashboard

API Overview

API Reference

Programmatic access to the Danvas platform

Optimization Data API

Labor optimization metrics and goals for schedule planning

On this page

OverviewEndpointAuthenticationParametersResponseRelated