Both serve the same v2 contract. Build against the sandbox, then change the base URL and the key.
Keys are environment-specific and say so in the prefix. ik_sandbox_ works only against the sandbox and ik_live_ only against production, so a misconfigured base URL fails immediately with a 401 rather than quietly doing something real.

Working in the sandbox

It is a separate copy of InStockRx with its own accounts and simulated payments, and you sign yourself up — see Sandbox onboarding. A listing you create there is not visible to real pharmacies and cannot be bought with real money.
  • You will see records you did not create. Other partners test here, and every day the newest pending production listings and cash offers are copied in, attached to demo pharmacies. Filter by the pharmacies you act for.
  • It carries no stability guarantee. It can receive changes ahead of production and is not covered by an uptime commitment. It is for development, not for a demo you cannot reschedule.
  • Older sandbox keys may start ik_test_. They still work, and rotating one keeps its prefix. New keys start ik_sandbox_.
  • The rate-limit test hooks only work here. X-InStockRx-Trigger: force-429 and bypass-rate-limit are ignored in production — see Rate limits.

Moving to production

1

Ask for a production key

Email us. See Production access. Keys are issued per environment.
2

Confirm your group

GET /api/v2/pharmacies against production. The pharmacies returned are the ones you can act for — the list may differ from your sandbox group.
3

Switch the base URL and the key

Nothing else changes.
Build the base URL and the key as configuration, not constants. You will move between these two more than once.