Comanda API
Base: /api/public/v1 · Autenticação: Authorization: Bearer <token do checkin>
| POST | /checkin | { phone, webhook_url? } → token (garçom ou cozinheiro) |
| GET | /menu | { menu_url, items } — link público do cardápio + itens |
| GET | /tables | Mesas cadastradas |
| POST | /comandas | Garçom · { table_number, name } |
| GET | /comandas | Comandas abertas |
| GET | /comandas/:id | Comanda + pedidos |
| POST | /comandas/:id/orders | Garçom · { items: [{ code, quantity, notes? }] } |
| PATCH | /orders/:id | Garçom · { quantity?, notes?, code? } |
| POST | /orders/:id/cancel | Garçom · cancelar pedido |
| GET | /kitchen/orders | Cozinheiro · fila da cozinha |
| POST | /orders/:id/receive | Cozinheiro · receber |
| POST | /orders/:id/start | Cozinheiro · iniciar |
| POST | /orders/:id/finish | Cozinheiro · finalizar → webhook order.ready ao garçom |
| POST | /comandas/:id/close | Garçom · fecha e retorna { total, bill_url } |