Quote first, then order — the same codes
POST /quote and POST /orders take
the same list of product codes (testCodes). Quote is a safe, no-commitment preview of the
price and eligibility; ordering re-sends the same codes. You don’t thread a quote id — you send the
codes you quoted.
The lab does the rest server-side: prices the order (BestDeal), applies New York routing
(auto-substitutes the NY version of a test and adds the NY fee when the patient is in NY), runs the
eligibility check, and places the order only when eligible. You never send demographics, prices, kit
settings, or internal ids — your account context (customer and clinic) is applied server-side.
Idempotency: placerId
placerId is your own unique id for the order — and it’s optional. Omit it and every request
creates a new order. Send one and it becomes the idempotency key: the server first checks it, and
if an order with the same placerId already exists you get the original result back
(status: duplicate), never a second order or a double charge; if none exists, a new order is
created. Always send one in production so a network retry is safe.
Order outcomes
The response has a singlestatus:
The same problem, seen from quote and order
Quote and order report the same underlying condition differently. Don’t map a quote failure straight onto an order failure:🚧 Working in progress — reason codes are being unified across the two endpoints; the same
condition currently uses different names and casing.
Ordering restrictions
One blood collection per order
Tests that need blood are collected one of two ways: a blood draw, or a DBS — a dried blood spot card the patient could use at home. Only some blood tests offer a DBS version. The lab works from a single blood sample per order, so an order uses one collection method or the other, never both.NEURAL_ZOOMER (blood) and FOOD_ZOOMER_DBS (DBS) cannot be ordered together,
even though they are different tests.
POST /orders rejects mixed collection methods with 422 mixed_collection_methods, naming the
conflicting codes in errorCodes.
Tests that don’t need blood — saliva, urine, stool — are unaffected, and go with either.
Each product’s sampleType tells you which it is.
The same test only once
A test can appear once per order, in one version.NEURAL_ZOOMER and NEURAL_ZOOMER_DBS are the
same test. POST /orders rejects repeated tests with 422 duplicate_test_codes.
Add-on products
ApoE, Factor II-V and MTHFR each come in a blood and a saliva version. None can be ordered on its own — each rides along with another test’s sample:
Ordering an add-on without its companion returns
422 no_orderable_items, naming the code.
🚧 Working in progress — a saliva add-on is currently accepted alongside hosts other than a
saliva test. Build to the saliva add-on rule above: orders that break it can be placed today but
the lab cannot fulfil them.
Eligibility failures
Anineligible order returns a failures array — one entry per rule, each with a machine code and
a human reason. Resolve each and re-order. Current reason codes:
Treat this list as non-exhaustive — tolerate unknown future
codes and fall back to reason.
Gut Zoomer NY/standard versioning is handled automatically by New York routing, not returned as a failure.The accession id links order → report
A placed order returnsorderId, sampleId, and accessionId. The accessionId (also called
the barcode) is what you pass to GET /report/fhir/{id} to
retrieve the result, status, and issues.
Who pays
chargeIndicator selects billing: C = customer pays; P/I/O or omitted = patient pays later.
For these flows, payment instruments are handled in the Portal. See the FAQ.
WIP — coming soon.
T adds payment by a third-party platform using its stored card.
It requires platformId and a signed X-Payment-Authorization header in addition to the
provider access token. See Third-party payment for the planned
contract, setup, and request example.Tracking an order
GET /orders returns the order’s lifecycle status, kit shipping,
lab receipt, report readiness, open exceptions, and cancellation information when available.
Cancellation eligibility and fee preview
remain WIP. Webhooks notify you when an order, its kit, or its reports change;
they use their own status values and identify the order by accessionId. Issue changes also
trigger notifications; query issue details through the order or report APIs.
Cancelling an order
POST /orders/cancel with the order’s placerId or sampleId (exactly one — the orderId is
not accepted). Free before the kit ships, $25 after it ships, and not possible once the
lab has received the sample. The response returns the refundAmount actually applied (0 when
nothing had been charged). Cancelling an already-cancelled order returns 422 /
not_cancellable — treat it as already done. See Cancel an order.