Aniva
9
 min read

Diagnostics as a Service API: what happens between a blood test order and the result

A blood test ordered through an API passes a blood draw or a home kit, a courier and a laboratory before a result reaches your product. This guide sets out each step, the status your product reads and what to build when a sample fails.
Clear laboratory beakers and a pipette on a white bench
Written by
Robert Jakobson
Published on
November 24, 2026

Diagnostics as a Service is a way for a health product to sell blood tests under its own brand, while a provider runs the kits, the blood draws, the courier and the laboratory behind it. The product talks to that provider through an API, which is a connection that lets its own software book a draw, send a kit and read the result.

Between the order and the result, somebody collects a sample and a courier carries it to a laboratory for analysis. At each of those steps your product sees a different status, and at some of them a sample can fail, so a product that sells testing needs to know the whole path before it promises a customer a date.

How the order path differs in Europe

Most of the order lifecycles we found published by lab testing APIs were written for American networks. Two examples are the lab testing API that Junction offers throughout the US1 and the Lab Connect service that InsideTracker runs for the US and Canada2. A European product works with a different set of parts, which are a European laboratory, European couriers and health data handled under the GDPR.

Aniva's Partner API combines both ways of giving a sample in one integration, which are blood draws at over 25 locations in Germany3 and home kits such as the Tasso+, which Aniva supplies to businesses across Europe4. So one order model covers a customer who gives blood at a pharmacy in Germany and a customer who uses a kit at home in another EU country.

The path from order to result

Every order passes through the same stages, from the booking and the collection of the sample to the courier, the laboratory and the result. The figure shows the status your product reads at each stage, first for a draw at a location and then for a home kit56.

How a blood test order becomes a resultAn order passes the booking, the sample, the courier, the laboratory and the result. A draw at a location moves from pending to confirmed to blood_drawn, a home kit moves from pending to dispatched to activated, the shipment moves to in_transit and delivered, and the results move from in_progress to completed or fault.How a blood test orderbecomes a resultThe status your product reads at each step.OrderThe draw is booked or thekit is sent out.Locationpending, confirmedHome kitpending, dispatchedSampleThe tube barcodes or the timeof collection are recorded.Locationblood_drawnHome kitactivatedCourierA courier carries the sampleto the laboratory.Shipmentin_transit, deliveredLaboratoryThe laboratory analyses eachtube it receives.Resultsin_progressResultValues and the report areready to read.Resultscompleted or fault

The status your product reads at each step of an order.

The appointment and the home kit order each carry their own short status, while the courier and the laboratory are tracked on separate objects in the API. Each status stays simple that way, but your product reads three objects to describe one order to a customer.

How a customer gives the sample

A customer gives a sample in one of two ways, either at a pharmacy or practice in Aniva's network or at home with a kit. The laboratory order is placed at a different moment on each route, which changes what your product can still edit56.

QuestionAt a locationAt home with a kit
Where the sample is takenAt a pharmacy or practice in Aniva's network5At the customer's home6
Who takes itA healthcare professional at the location5The customer6
Status before the samplePending, then confirmed5Pending, then dispatched6
What places the laboratory orderConfirming the draw with the barcode of every tube7Activating the kit with the time of collection6
What can still changeThe time, the location and the panels can change until the draw is confirmed5Address and extra markers until the kit is dispatched, and the panel until activation if the new one fits the kit6
If the sample failsThe appointment is cancelled with a reason, and a new one is booked5A replacement kit with a new code is sent6

Both routes end at the same results endpoint, so your product shows a result the same way whichever route the customer chose.

Confirming the draw is the step that cannot be undone

When a draw is confirmed, Aniva records the barcode of every tube and places the laboratory order. From then on the appointment cannot be moved or cancelled, and no panel can be added7.

A venous draw has one code printed on every tube, while a capillary draw at a pharmacy has one code for each small tube, called a microtainer, and each of those codes becomes its own laboratory order7. Because the step is final, a product should let staff check the tubes and the bill before they confirm, which the preview endpoint of the API lists for each appointment8.

How the sample reaches the laboratory

Each parcel is a shipment in the API, whether it is a courier collection from a location to the laboratory or a kit on its way to or from a customer's home9. When Aniva packs a blood kit, it books two shipments at once, one to the customer and one back to the laboratory, so your product does not need to print a label.

Blood samples are carried under transport rules for biological samples, which the World Health Organization's transport guidance explains for every mode of transport10. At partner pharmacies, Aniva checks each evening which samples are ready and has them collected on the next working day by default11.

Aniva reads the carrier's tracking every ten minutes for GO! and every hour for DHL, and each shipment shows when its tracking was last updated9.

Why most laboratory errors happen before the analysis

Most errors in laboratory testing happen before the sample is analysed. Reviews by Mario Plebani of the University of Padua put the share of errors that arise before analysis at 46 to 68.2 percent of all errors12. In a 2002 review he co-authored, the analysis itself accounted for 13 to 32 percent of errors across the studies examined13.

For a product that sells testing, this means most of the risk is in the parts of an order outside the laboratory, which are the collection, the labelling of the tube and the journey. Those are the steps where Aniva's API reports each tube code, each parcel and each laboratory order separately, so your product can tell a customer exactly which part went wrong.

What your product sees when a sample fails

In the results, each laboratory order has its own status, so one laboratory order can fail while another reports normally. A failed laboratory order is marked as a fault, and when Aniva sends the sample on to a second laboratory, that laboratory files its own entry beside the first14.

When a home kit cannot give a result, for example because the customer could not fill the tube, your product orders a replacement kit. The replacement carries a new code and re-runs only the markers you choose, while the first order keeps any results it already delivered6. A draw that has to be repeated is cancelled with a reason, such as "Failed. Repeat required", and your product books a new appointment5.

How results reach your product

The laboratory reports results one at a time, so the overall status stays in progress until every laboratory order has closed. It then moves to completed, or to fault when none of the laboratory orders reported14. Because each result carries its own status, your product can show the first values while the rest are still in the laboratory.

A laboratory sometimes corrects a value after reporting it, and the result keeps the same id when that happens, so your product should update the stored value rather than add a second one14. Aniva also converts every value to one standard unit and one marker name, so the same marker can be compared across laboratories and over time, and it keeps the laboratory's own line beside it exactly as reported14.

Each result carries the reference range the laboratory measured it against, and Aniva's documentation names that range as the standard for reading the result14.

Why the notifications carry no lab values

Aniva tells your server about each change with a webhook, which is a short message sent to an address you register. The message carries the id, the new status and the address to read the data from, but never lab values or personal data15.

Your server then reads the data with its own API key. Health data is a special category of personal data under Article 9 of the GDPR, so health data is copied to fewer places when the message holds none16.

Your endpoint has to answer within 15 seconds, and Aniva sends a results message within a few minutes of the last change15. So your product can update the customer's screen without asking the API for news every few minutes.

What your engineers build

Most of the work on your side is turning these statuses into screens and messages your customers understand. The checklist below collects what Aniva's documentation asks a partner to handle51415.

What your engineers buildTreat a 409 reply as already booked and book draws at least 12 hours ahead. Check every webhook signature and answer within 15 seconds. Show results as they are reported, update corrected values by id and show the laboratory range. Explain a failed sample in plain words and offer a replacement kit or a new appointment.What your engineers buildWhat Aniva's documentation asks a partnerto handle.BookingTreat a 409 reply as already booked,because it names the appointment that exists.Book draws at Aniva-operated locations atleast 12 hours ahead.NotificationsCheck the signature on every webhook youreceive.Answer within 15 seconds, then read the datawith your API key.ResultsShow each result as soon as the laboratoryreports it.Update a corrected value by its id instead ofadding a new one.Show the laboratory's reference range withevery value.Failed samplesTell the customer in plain words which tubeor kit failed.Offer a replacement kit or a new appointmentstraight away.

What a partner builds on top of the Aniva Partner API.

How long each step takes

The table gives the timings that Aniva publishes for each step, with the source for each one.

StepTimeSource
From a signed contract to the first draw48 hours17
Booking a draw at an Aniva-operated locationAt least 12 hours ahead5
Collection of samples from a partner pharmacyThe next working day by default11
Core panel analysis in the laboratory24 hours from sample pickup17
Report after a draw at a partner pharmacyUsually 3 to 5 days after the draw11
Courier tracking updateEvery 10 minutes for GO! and every hour for DHL9
Webhook after a results changeWithin a few minutes of the last change15

The time a home kit spends in the post depends on the customer's country, so these timings describe draws at locations.

Who does what

Aniva supplies the kits, the draws, the courier and the laboratory, while your product handles everything the customer sees. The table shows who does each part of an order.

Part of the orderAnivaYour product
CollectionSupplies the kits and tubes, with blood draws at over 25 locations in Germany3Lets the customer choose a location and a time, or a home kit
CourierArranges sample pickups from partner pharmacies11 and books both parcels of every blood kit6Shows the customer where the kit or the sample is, if you choose to
LaboratoryPlaces the order with a laboratory partner accredited under ISO 1518917Chooses the panels and markers for each order
ResultsConverts values to standard units and sends a webhook on every change1415Shows the results to the customer with the laboratory's reference range

Walk through an order for your own panel

Aniva runs Diagnostics as a Service for health apps, telemedicine services, insurers and brands across Europe. The time from a signed contract to the first draw is 48 hours, and the Partner API documentation is public at docs.anivahealth.com17.

In a call of about 30 minutes we can walk through one order for a panel of your choice, from the booking to the result your product would read, which you can arrange when you book a demo.

Common questions

What is a blood test API?

It is a connection that lets your product book a blood draw, send a home kit and read the laboratory result from its own software. The provider runs the kits, the courier and the laboratory behind it.

Can an appointment be changed after the blood draw?

It cannot, because confirming the draw places the laboratory order and fixes the panels. Before the draw, the time, the location and the panels can all still be changed.

What happens if a home kit sample cannot be analysed?

Your product orders a replacement kit with a new code and chooses which markers the laboratory runs again. The first order keeps any results it already delivered.

Do webhooks contain lab results?

A webhook carries only the id, the new status and the address to read the data from. Your server reads the results with its own API key in a separate request.

Notes and sources

  1. Junction, Lab Testing API documentation, introduction, on coverage throughout the US. Read 24 November 2026. docs.junction.com/lab
  2. InsideTracker, Lab Connect developer documentation, on coverage in the United States and Canada. Read 24 November 2026. developer.insidetracker.com/docs/lab-connect
  3. Aniva, Partner API overview, on blood draws at over 25 locations in Germany. anivahealth.com/for/developers-api-overview
  4. Aniva, Tasso+ blood collection for businesses, supplied by Aniva, and the Aniva homepage on Diagnostics as a Service across Europe. anivahealth.com/tasso and anivahealth.com/#diagnostics-as-a-service
  5. Aniva Partner API documentation, Appointments. docs.anivahealth.com/concepts/appointments
  6. Aniva Partner API documentation, Home Kit Orders. docs.anivahealth.com/concepts/home-kit-orders
  7. Aniva Partner API documentation, Confirm Blood Draw guide. docs.anivahealth.com/guides/confirm-blood-draw
  8. Aniva Partner API documentation, Preview Appointment. docs.anivahealth.com/api/appointments/preview-containers
  9. Aniva Partner API documentation, Shipments. docs.anivahealth.com/concepts/shipments
  10. World Health Organization, Guidance on regulations for the transport of infectious substances 2025 to 2026, applicable from 1 October 2025. www.who.int/publications/i/item/9789240120822
  11. Aniva Help Centre, Your first test step by step, on sample pickup and report timing at partner pharmacies. Read 24 November 2026. help.anivahealth.com/en/articles/14-your-first-test-step-by-step
  12. Plebani M. Errors in clinical laboratories or errors in laboratory medicine? Clinical Chemistry and Laboratory Medicine, 2006. University of Padua research record. www.research.unipd.it/handle/11577/1564070
  13. Bonini P, Plebani M, Ceriotti F, Rubboli F. Errors in laboratory medicine. Clinical Chemistry, 2002. University of Padua research record. www.research.unipd.it/handle/11577/2428994
  14. Aniva Partner API documentation, Results. docs.anivahealth.com/concepts/results
  15. Aniva Partner API documentation, Webhooks. docs.anivahealth.com/concepts/webhooks
  16. Regulation (EU) 2016/679, the General Data Protection Regulation, Article 9. eur-lex.europa.eu/eli/reg/2016/679/oj
  17. Aniva, Diagnostics as a Service, on the 48 hours from signed contract to first customer draw, the 24 hour Core panel laboratory turnaround and ISO 15189 accreditation of the laboratory partner. anivahealth.com/diagnostics

This article describes published documentation, studies and guidance about blood testing for partner businesses. It is general information and not medical or legal advice, and clinical decisions belong to a clinician.

Add blood testing to your business

Aniva provides the labs, the test kits, the shipping, the software and the data protection paperwork. You offer blood tests under your own brand. Tell us which tests you need and we will show you how it works.

Book a 30-Minute Call

Your future self is waiting

Start building the healthiest decade of your life.

Join today