v2 counts two one-minute windows at once: The per-pharmacy window is skipped on requests that carry no pharmacy context.
POST …/search costs 2, not 1 — it is the expensive call. Budget accordingly if your integration is search-heavy.

Read the headers

Every response carries your current position against the more constraining of the two windows:
X-RateLimit-Reset is epoch seconds. Over the limit is 429 with the standard problem body (type slug rate-limited) and a Retry-After.
Because the headers track whichever window is tighter, a healthy X-RateLimit-Remaining does not mean both windows are healthy — it means the worse one is. Concentrating traffic on a single pharmacy can exhaust the 300 window while your credential budget looks barely touched.

Testing your back-off

Two sandbox-only hooks on the X-InStockRx-Trigger header, both ignored in production:
The counters are held per API instance rather than shared, so the ceiling you can actually observe is the published number multiplied by however many instances are serving traffic — a number that changes with scaling and is not published.Build to 600 and 300. Calibrating to the throughput you measure will break the next time production scales in.