What changes on the wire
The three that will actually break your code
What you gain
Stop polling
Webhooks tell you when a listing sells, ships or is received —
including when the pharmacy does it in the portal.
Safe retries
Idempotency-Key means a timeout no longer risks a duplicate
listing.One error shape
One envelope, a slug to branch on, and a
requestId to quote at support.Much more surface
Returns, bundles, evergreen preferences, drug-package lookup, notifications and payment
methods — none of which v1 has.
The drug-package lookup is worth a special mention
v1 partners have to discover the per-NDC listing rules by attempting a create and reading the refusal. v2 exposesGET /drug-packages/{nationalDrugCode} and
POST /drug-packages/search, so you can check before you submit and show the pharmacist a
useful form instead of an error.
Suggested order
1
Get a sandbox key and list your pharmacies
Your sandbox starter kit includes a V2 key; tick V2 when you request access.
GET /api/v2/pharmacies confirms the credential, the group and the scopes in one call.2
Port your reads first
Search and get. This is where the cursor and enum changes surface, with nothing at stake.
3
Then the writes, with Idempotency-Key from the start
Retrofitting it later means revisiting every call site.
4
Add webhooks last
Replace whatever polling you built for v1. Verify signatures against multiple
v1 values
from the outset so a rotation never catches you out.You can run both at once. They are separate credentials on separate paths, so a partial
migration is a supported state rather than a risky one.