You need a key — Sandbox onboarding gets you one, and your Home page lists the
pharmacy ids to use below. These examples use the sandbox; swap the base URL and key for
production.
1. Confirm the key works
GET /api/v2/pharmacies is the best first call: it proves the key is valid and shows you
exactly which pharmacies you can act for.
401 means the key is wrong, missing, or from the other environment. Keep the
X-Request-Id from the response if you need to ask us about it.
2. Say which pharmacy you are acting as
If your group has more than one pharmacy, most endpoints need to know which one — otherwise you get400 missing-pharmacy-context.
3. Read a page
nextCursor back to get the next page, and stop when it comes back null. Cursors are
opaque — see Searching and paging.
4. Before you write anything
Three things will save you a round of debugging:Money is a string
"199.99", not 199.99. A bare number is rejected.Enums are names
PascalCase strings, not v1’s integers.
Send an Idempotency-Key
On every write, from the start. See Safe retries.
Where next
Authentication
Keys, scopes and the context headers.
Webhooks
Be told when something happens instead of polling.