Core concepts
The Vantage API data model: catalog structure, orders and order items, recipients and test takers, status lifecycles, and conventions used across all endpoints.
The catalog: product types → products → variants
The catalog is three levels deep:
Product type
The broadest category
Blood Test, DNA Test
Product
An offering within a type
An at-home blood test kit from a given supplier
Variant
The exact configuration an end user receives - the thing you order
The "Inflammation" panel (hs-CRP + Vitamin D), 3-5 day turnaround
A product's description is a rich text document from API version 2026-10-29, and a string before it.
You browse with GET /api/v1/products (types) → GET /api/v1/products/{product_type_id} (products), and you order a variant_id. Each product in that listing carries its variants nested under variants, so one call per product type lists everything you can order. GET /api/v1/products/{product_id}/variants remains available for the variants of a single product. A variant advertises which collection methods it supports in available_collection_types (an array of strings: "AT_HOME", "GO_TO_LAB").
For display, a variant carries typed fields, added in API version 2026-10-01:
name: the variant's name, as the supplier states it.description: the supplier's blurb. Omitted when there is none.collection_method: how the sample is taken,finger_prickorvenous_draw. Omitted when the supplier states a method outside that vocabulary.turnaround_days: the stated lab turnaround as{ "min": 3, "max": 5 }. Omitted when none is stated.requires_activation: always present. Whentrue, show the kit-activation step: the sample is not processed until the kit is activated.availability: a string, one ofunknown,in_stockorout_of_stock. Products carry the same field.biomarkers: what the kit measures, in panel order. Each entry has aname, and may carrycode, which matches the Observation code in the result bundle, and aloinccode. Always present, empty when the panel is not catalogued yet. Each entry also explains the biomarker for people without a medical background:summary: one line of plain text, for a table row.description: a fuller explanation, as a rich text document in every API version.source_url: the page both are copied from, word for word: the U.S. National Cancer Institute's Dictionary of Cancer Terms or MedlinePlus (U.S. National Library of Medicine). Credit it with a link wherever you show the text.
All three are always present, and
nulltogether when no source explains the biomarker.
A trimmed product from GET /api/v1/products/1:
Your catalog is scoped to your contract: browsing returns only the panels and fulfilment options your account is entitled to, and orders for anything outside it are rejected. To add panels to your contract, contact the Terra team. Within your entitlements, you can additionally curate which products your catalog reads return - see Managing orders.
Markets
Vantage sells in two markets, the UK and the US, and each offers different products. Each environment has its own markets:
Until an environment's markets are set, it sees every market's products, including markets added later.
Once they are set, catalog reads leave out products not sold in them:
GET /api/v1/products/{id}(with or withoutshow_all) omits them, andGET /api/v1/products/{id}/variantsreturns404for one. Ordering one returns403.Testing environments choose their markets in the dashboard, under Vantage → Settings → Markets.
Production environments have their markets set by Terra during account setup. Tell your Terra contact which markets you sell in.
Markets and curation combine: a product must be in one of your markets and enabled in your catalog to be listed or ordered.
Orders and order items
An order is one purchase: it has a recipient, a collection type, an address, and one or more order items (one per variant_id + quantity). Everything result-related happens per order item: kit activation, result statuses, result downloads, and acknowledgment are all keyed by order_item_id, not order_id.
client_order_reference_id- your unique identifier for the order, supplied when you create it. Use it to reconcile webhooks and REST reads with your own system. For retry-safe creation, send anIdempotency-Keyheader - the reference id alone does not deduplicate.order_id,order_item_id,recipient_id,test_taker_id- Terra-generated identifiers.
Recipient vs test taker
The recipient is the person the order is placed for - name, date of birth, gender at birth, email, phone. You provide it at order time.
The test taker is the person who actually takes the test. For variants with
requires_activation: true, the test taker registers themselves during activation (and may differ from the recipient, supplier-permitting). Terra assigns atest_taker_idat that point and includes it in every result webhook.
You need the test_taker_id to fetch and acknowledge results - capture it from the result webhooks (or from GET /api/v1/orders/{orderID}).
Collection types
Every order has a collection_type that determines how the sample is collected and which address field the order requires:
collection_type
Meaning
Address field
AT_HOME
Kit shipped to the recipient, who self-collects
shipping_address
GO_TO_LAB
Sample drawn at a lab draw site (Patient Service Center)
requested_lab_address
Status lifecycles
An order carries a fulfilment status; each order item carries a results status.
Order (fulfilment) statuses, as returned by the REST API:
New orders start at order.payment_processing.
Order item (results) statuses:
Escalation levels
Results carrying clinical escalation include an escalation_level, one of (in ascending severity):
not_escalated, very_low, low, medium, high, very_high
Escalated results also carry an acknowledgment_due_by timestamp - see Acknowledging Results.
Conventions
Money is integer cents (
price_cents,total_cents); currency is an ISO 4217 numeric code (840= USD,978= EUR,826= GBP).Phone numbers are a single E.164 string everywhere: the industry-standard format used by Stripe, Twilio and FHIR. Send
phone_numberas a+-prefixed E.164 string ("+14155551234"); reads and webhooktest_takerpayloads return the same string. There is no separate recipientcountry_codefield.Timestamps in webhook payloads (
timestamp) are Unix seconds; REST timestamps are RFC 3339 strings.Errors follow RFC 7807 problem-detail format - see Errors.
List endpoints (
GET /api/v1/orders,GET /api/v1/results,GET /api/v1/webhook-deliveries) are keyset-paginated: pass the returnednext_cursoras?cursor=for the next page; a page withoutnext_cursoris the last one.
Last updated
Was this helpful?