TeamCopilot quickstart
What is TeamCopilot?
TeamCopilot is a Shopify POS team operations app for scheduling, time-clock integrity, checklists, exception handling, and commission summaries. It runs as an embedded Shopify admin app on Cloudflare Workers with a PostgreSQL database.Shopify app scopes
Defined inshopify.app.toml:
read_orders— Commission attribution from paid ordersread_locations— Location sync from Shopify Admin
POS extension
One POS UI extension is included:- pos-time-clock — Targets
pos.home.tile.render(Tile.tsx: Team Clock heading) andpos.home.modal.render(Modal.tsx: clock-in/clock-out form with member ID and PIN fields). Uses Preact and@shopify/ui-extensionsAPI 2026-04.
Sign-in model
- Shopify OAuth install flow at
/auth/*. - App Bridge ID-token verification for every embedded page view.
- Session token exchange for API authorization.
- Role-based access via
shop_staff_accessPostgreSQL table: member, manager, admin. - The first unassigned Shopify account owner becomes an app administrator automatically.
Public integration points
- REST API (embedded admin routes under
/api/*) — see the API overview - Webhooks —
POST /webhooks/shopifyaccepts app lifecycle, billing, order attribution, and GDPR compliance topics - Health endpoint —
GET /healthreturns release SHA and origin - POS time-clock extension — calls
POST /api/time-clock/clock-inandPOST /api/time-clock/clock-out
Next steps
- Read the architecture overview for runtime and data flow details.
- Browse the API overview for route definitions.
- Review the merchant guides to understand the user-facing workflows.