Every v2 endpoint is documented in the pages under this tab, generated from the published contract.

Before you read an endpoint page

Four rails apply to the whole surface and are not repeated per endpoint:

Authentication

X-InStockRx-Api-Key, plus X-Pharmacy-Id on most endpoints.

Errors

One problem+json envelope, with a slug to branch on.

Paging

Opaque cursors. Every list works the same way.

Rate limits

Two windows, and search costs double.
Each operation lists the scopes it requires at the top of its description. Your key must hold all of them.

Try it

The playground targets the sandbox by default, which is deliberate: a stray “Try it” on a create endpoint should not list real inventory on the live marketplace. Switch the server to production only when you mean it.

Two honest caveats

Four operations are live ahead of the contract. POST /draft-listings/{id}/finalize, POST /marketplace-listings/{id}/photos, GET /marketplace-listings/{id}/seller-contact and POST /returns/{id}/ship-details are documented here with their parameters and purpose, but their response shapes are not yet in the published contract, so those pages show no response schema. The endpoints work; the documentation of what they return is catching up.
Where a request or response shape here disagrees with what the API actually does, the API is right and this is a bug — tell us at info@instockrx.com and quote the X-Request-Id from a real call. The endpoint inventory is checked against production automatically, so an endpoint appearing or disappearing is caught; individual field-level drift is not.