Returns need us in the middle
You can file a return withPOST /returns. You cannot then ship it unaided.
1
You file the return
POST /returns succeeds.2
InStockRx approves it and arranges the label
There is no API call for this, and no webhook event fires when it happens.
3
Only then can you ship
POST /returns/{id}/ship-details and POST /returns/{id}/buyer-ship both fail with
409 return-shipping-not-arranged until the step above has happened.Certification needs the portal
Some drugs require a certification document. v2 accepts no file uploads on those paths, so creating a listing, finalizing a draft or accepting a cash offer for such a drug returns409 certification-required with a remediationUrl.
Send your user to that link. No change to the request will get through.
This is the same class of limitation as v1’s, and the
remediationUrl exists precisely so you can hand the user a next step instead of an error.Smaller things worth knowing
marketplace_listing.updated never fires
marketplace_listing.updated never fires
The event type exists and you can subscribe to it. Nothing is ever delivered. Don’t build
on it — see Webhooks.
No self-serve key management in production
No self-serve key management in production
In production, issuing, rotating, revoking and re-scoping keys are all done by us. There is
no console and no API for it yet. On the sandbox you manage your own keys from your Home
page, but they always hold every scope.
savedByUserId is empty on drafts you create
savedByUserId is empty on drafts you create
That field attributes a human user, and an API key isn’t one. Expect it to be blank on
anything your integration creates.
nationalDrugCode can't be changed on a cash offer
nationalDrugCode can't be changed on a cash offer
It is ignored on update rather than rejected. If you need a different NDC, cancel the
offer and make a new one.
Permissive filters return empty rather than 400
Permissive filters return empty rather than 400
An unknown filter value —
?type=Bogus on payment methods — returns 200 and an empty
list. Likewise a one-character autocomplete query. A typeahead that errors on the first
keystroke is worse than one that returns nothing, so these are deliberate; just don’t read
“empty” as “valid filter, no matches”.