A connection blip must never show retail prices to a wholesale buyer
Why it breaks
When a buyer's token expires, every query with buyer context fails, and the wholesale catalog goes blank. The obvious fix — retry without buyer context on any error — also fires on an ordinary network hiccup, and then a wholesale buyer silently sees retail prices.
What I did
The app retries without buyer context only when Shopify specifically rejects the buyer or token. Network errors and server errors surface as errors. Checkout follows the same rule as a ladder — drop the company location, then the customer — while always keeping the subscription plan and never retrying stock or plan errors. Each step is logged.