GET
Pre-flight check for whether a pharmacy can purchase

Authorizations

X-InStockRx-Api-Key
string
header
required

Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.

Headers

X-Pharmacy-Id
string<uuid>

Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.

Path Parameters

pharmacyId
string<uuid>
required

Query Parameters

listingId
string<uuid>

Optional. If supplied, the response includes listing-specific blockers.

Response

OK

Result of a purchase-readiness pre-flight. ready is true only if blockers is empty. warnings is non-blocking (e.g. state license expiring soon).

pharmacyId
string<uuid>
required
ready
boolean
required
blockers
object[]
required

Each blocker corresponds to a problem.type that a POST /purchase call would return. Empty when ready: true.

asOf
string<date-time>
required
listingId
string<uuid>

Echoed back when the request included ?listingId=.

warnings
object[]

Non-blocking advisories the partner may want to surface.

verifiedPaymentMethodCount
integer

Count of payment methods in Verified status for this pharmacy. 0 is itself a blocker (no-verified-payment-method).

Required range: x >= 0
defaultPaymentMethodId
string<uuid>

ID of the pharmacy's isPaymentDefault method, if set. Partners can pass this on purchase without an additional GET /payment-methods call.