create-paymentCreates the payment intent with the provider and returns the client secret or redirect.
Client-callable, authenticated, amount computed server-side from the cart. Never trust a price sent by a phone.
payment-webhookReceives paid / failed / expired / refunded from the payment provider.
Public endpoint. Verify the signature, then treat it as untrusted input.
delivery-quoteAsks the delivery provider what a job will cost before checkout.
Client-callable. Cache it; quotes are rate-limited and cost money.
dispatcherBooks the delivery job. The only thing permitted to create a driver task.
Service role only. Never client-callable, under any circumstance.
delivery-webhookReceives driver assigned / picked up / delivered / cancelled.
Public endpoint, signature-verified, idempotent.
delivery-statusRead-through for the tracking UI.
Client-callable, scoped to the caller's own orders by RLS.
menu-syncPulls catalogue, prices and availability from the merchant's POS.
Scheduled. Must survive the POS being down without corrupting the local catalogue.
order-pushPushes the paid order into the merchant's POS so it prints in the kitchen.
Service role, retried, idempotent on the POS side too.
send-pushFans out status-change notifications to devices.
Service role. Triggered by a status transition, not by the client.
delete-accountDeletes the user and records that deletion was requested.
Client-callable. Mandatory for both app stores if you have accounts.