Skip to main content
POST
Get a price quote
Returns the authoritative, best-deal price and an eligibility result for a set of product codes and a patient. Always quote before ordering. An ineligible order returns 200 with eligible: false and the failing reasons β€” see Orders.

Every code is priced, or none is

Each code you send comes back in lineItems β€” priced on its own line, or listed in a bundle’s coveredCodes. If any code cannot be priced, the whole quote fails with 422 and names it in errorCodes. You never receive a partial quote whose total quietly under-reports.
🚧 Working in progress β€” a code that cannot be priced is currently dropped from lineItems and the quote still returns 200 with a lower total. Check that every code you sent came back before showing the price to a patient.
Best-deal scope (v1): the quote guarantees the cheapest official-bundle combination (ordering GUT_ZOOMER + VITD_25OH together is priced as the bundle). Other promotions β€” x-choose-y, seasonal, conditional discounts β€” are not yet folded in, and total excludes shipping, tax, and markup.

Authorizations

Authorization
string
header
required

OAuth2 client credentials. Generate a client ID and client secret in the Portal, exchange them for an access token, then send Authorization: Bearer <access_token>. Request the result and report scopes to read results.

Body

application/json
patientId
integer
required

Id of the patient to quote for.

Example:

477769

testCodes
string[]
required

Product codes to quote (from the catalog).

Example:

Response

Eligible quote, or an ineligible result with failing reasons.

Eligible quote.

quoteId
string

Price reference for this quote.

currency
string
eligible
enum<boolean>
Available options:
true
isDbs
boolean

Whether this is a dried blood spot (DBS) quote.

Example:

false

lineItems
object[]
bestDealPrice
number

Best-deal-optimized subtotal (official-bundle cheapest combo; v1).

total
number

Order total. v1: equals bestDealPrice β€” shipping, tax, and markup excluded (roadmap).