Pharmacy stock check
Which pharmacies have enough of a drug.
POST/v1/actions
typepharmacy_stock_check
Input
drugobjectRequiredWhat to look for.
drug_namestringRequiredUp to 255 characters.
strengthstringRequiredUp to 64 characters.
formstringUp to 64 characters.
quantityintegerRequiredHow much the patient needs. 1 to 10,000.
pharmaciesarray of objectsRequiredCalled in this order. 1 to 10 items.
namestringRequiredSuch as
CVS Pharmacy. Up to 255 characters.addressobjectRequiredThe exact store.
line1stringRequiredStreet address. Up to 255 characters.
line2stringSuite or unit. Up to 255 characters.
citystringRequiredUp to 120 characters.
statestringRequiredSuch as
CA. Two-letter state code.postal_codestringRequiredFive-digit ZIP code. 5 digits.
npistringThe pharmacy NPI. 10 digits.
phonestringA hint. Vene checks the number before it dials. E.164 phone number.
include_cash_pricebooleanAlso ask the cash price.
Returns
The action, with this result once it ends.
summarystringWhat happened, in a sentence or two. Up to 2,000 characters.
failure_reasonenum, nullableWhy it failed. Null unless
failed.Possible values
patient_authorization_requiredThe place needs the patient herself to authorize it.place_would_not_helpThe place would not discuss it with Vene.place_unreachableClosed, never answered, or no working number.declined_by_youYou declined something the action needed.fee_over_maxThe fee was overmax_fee. The result names it.internal_errorA Vene fault.
next_stepstring, nullableWhat you could do next. Up to 1,000 characters.
pharmaciesarray of objectsOne per pharmacy, in input order.
pharmacyobjectnamestringSuch as
CVS Pharmacy. Up to 255 characters.addressobjectThe exact store.
line1stringStreet address. Up to 255 characters.
line2stringSuite or unit. Up to 255 characters.
citystringUp to 120 characters.
statestringSuch as
CA. Two-letter state code.postal_codestringFive-digit ZIP code. 5 digits.
npistringThe pharmacy NPI. 10 digits.
phonestringA hint. Vene checks the number before it dials. E.164 phone number.
stockenum, nullableHow much it has.
Possible values
full_quantityHas at least the quantity asked for.partial_quantityHas some, less than the quantity asked for.out_of_stockHas none.
quantity_availableinteger, nullableUnits on hand.
can_have_bydate, nullableWhen it could have enough.
cash_priceobject, nullableFor the quantity asked, when you asked.
amount_centsintegerWhole cents.
currencyenumAlways
USD.Possible values
USDUS dollars.
Questions
inputtextnumberbooleandatechoice
Calls
ask_pharmacy_stock
Errors
400invalid_requestThe body or query failed validation.
401unauthorizedThe API key is missing, unknown, or revoked.
403forbiddenThe key lacks the scope.
409idempotency_conflictThe key was used with a different body.
429rate_limitedOver a limit. Wait for
Retry-After.500internal_errorA Vene fault.