Docs

Pharmacy stock check

Which pharmacies have enough of a drug.

POST/v1/actions

typepharmacy_stock_check

Input

  • drugobjectRequired

    What to look for.

    • drug_namestringRequired

      Up to 255 characters.

    • strengthstringRequired

      Up to 64 characters.

    • formstring

      Up to 64 characters.

    • quantityintegerRequired

      How much the patient needs. 1 to 10,000.

  • pharmaciesarray of objectsRequired

    Called in this order. 1 to 10 items.

    • namestringRequired

      Such as CVS Pharmacy. Up to 255 characters.

    • addressobjectRequired

      The exact store.

      • line1stringRequired

        Street address. Up to 255 characters.

      • line2string

        Suite or unit. Up to 255 characters.

      • citystringRequired

        Up to 120 characters.

      • statestringRequired

        Such as CA. Two-letter state code.

      • postal_codestringRequired

        Five-digit ZIP code. 5 digits.

    • npistring

      The pharmacy NPI. 10 digits.

    • phonestring

      A hint. Vene checks the number before it dials. E.164 phone number.

  • include_cash_priceboolean

    Also ask the cash price.

Returns

The action, with this result once it ends.

  • summarystring

    What happened, in a sentence or two. Up to 2,000 characters.

  • failure_reasonenum, nullable

    Why 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 over max_fee. The result names it.
    • internal_errorA Vene fault.
  • next_stepstring, nullable

    What you could do next. Up to 1,000 characters.

  • pharmaciesarray of objects

    One per pharmacy, in input order.

    • pharmacyobject
      • namestring

        Such as CVS Pharmacy. Up to 255 characters.

      • addressobject

        The exact store.

        • line1string

          Street address. Up to 255 characters.

        • line2string

          Suite or unit. Up to 255 characters.

        • citystring

          Up to 120 characters.

        • statestring

          Such as CA. Two-letter state code.

        • postal_codestring

          Five-digit ZIP code. 5 digits.

      • npistring

        The pharmacy NPI. 10 digits.

      • phonestring

        A hint. Vene checks the number before it dials. E.164 phone number.

    • stockenum, nullable

      How 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, nullable

      Units on hand.

    • can_have_bydate, nullable

      When it could have enough.

    • cash_priceobject, nullable

      For the quantity asked, when you asked.

      • amount_centsinteger

        Whole cents.

      • currencyenum

        Always USD.

        Possible values

        • USDUS dollars.

Questions

inputtextnumberbooleandatechoice

How to answer them

Calls

ask_pharmacy_stock

Errors

  • 400invalid_request

    The body or query failed validation.

  • 401unauthorized

    The API key is missing, unknown, or revoked.

  • 403forbidden

    The key lacks the scope.

  • 409idempotency_conflict

    The key was used with a different body.

  • 429rate_limited

    Over a limit. Wait for Retry-After.

  • 500internal_error

    A Vene fault.