Implement or adjust the confirmation-order backend flow including NEW-order constraints, async update queueing, in-flight locking, Pancake payload shaping, and webhook-driven state convergence. Use when changing order confirmation update behavior.
Keep confirmation updates fast for users, safe for concurrency, and consistent with webhook truth.
apps/api/src/modules/orders/*
apps/api/src/modules/integrations/services/pos-order.service.ts
apps/api/src/modules/integrations/*webhook*0 for editable flow.