Before you ask
- Build and test it in the sandbox. Production behaves the same as the sandbox, with real consequences: a listing is a genuine offer to sell and a cash offer is a genuine offer to buy.
- Each pharmacy you sell or buy for must have finished payment setup on InStockRx. Until it has, writes made for that pharmacy are refused.
Ask for access
Press the button to see our address. Write the email opens your email app with the subject and these headings filled in:- Who you are: your company, and the person who will hold the key.
- What you’re building: what the integration does, and whether it uses V1, V2 or both.
What happens next
1
We reply
Someone at InStockRx replies to agree the details of your integration with you.
2
We create your group
Your group is the set of pharmacies your key can act for.
3
We issue your key
We either send the key to your technical contact, or invite them to your group as an
administrator so they can reveal and copy it on InStockRx themselves.
4
You switch over
Point your integration at
https://api.instockrx.com with the production key, add your
pharmacies to your group by NPI through the API, and confirm that the pharmacies returned
are the ones you expect.Your key
A production key startsik_live_ and can act for every pharmacy in your group.
Ask for the scopes you need, not all of them. A key issued without further instruction
holds every scope. If your integration only reads, say so and we will issue a read-only key:
a key that cannot write cannot list real inventory on the live marketplace, which makes a
leak far less damaging. See Scopes. Sandbox keys always hold every
scope.
- Rotation overlaps. The new key carries the old key’s scopes, and the old one keeps working for 24 hours. Deploy the new key, confirm traffic has moved, and let the old one lapse.
- Revocation is immediate. If a key has leaked, say so in the subject line and we will revoke it. Don’t wait to arrange a replacement first.
Next
Start in the sandbox
Sign up, get two test pharmacies and a key, and build your integration.
Environments
Base URLs, key prefixes, and what changes between the sandbox and production.