Working with Sandbox

  • To familiarise yourself with the API, we provide a comprehensive sandbox environment where you can simulate ordering kits from different suppliers

  • Below we will simulate an ordering a kit + end user's flow from a supplier that supports a 2 step activation process

Kit Activation in Sandbox

1. Order a test kit

2. Receiving supplier's item ID

  • After ordering a kit you should receive the following webhook:

  • Notice how supplier_item_id is only available when working in sandbox

{
  "data": {
    "order_id": 249956252111773696,
    "status": "fulfillment.delivery_fulfilled",
    "supplier_item_id": "249602021676720128",
    "tracking_number": "KnD3d5PMZyq5ulNcWkrq"
  },
  "event_id": 249956485092777984,
  "event_type": "order.status_changed",
  "timestamp": 1763661470
}

3. Activating the kit

  • For suppliers who support 2 step activation, on each kit there will be a QR code that embeds the following URL which links to prod

  • To simulate scanning the QR code:

    • Replace the production domain with sandbox domain

    • Paste supplier_item_id as the query parameter

  • You should be redirected to the page below - fill out the details and activate your kit!

4. Lab received kit + results

4. Lab received kit + Results

  • At this point your end user will take the test and post it to the lab to be analysed. Upon arriving at the lab, a webhook will be sent to you.

  • Results will be available shortly after arrival of the kit at the lab, with a second webhook sent.

  • To simulate this, the sandbox environment automatically sends the following two webhooks after successful kit activation, sent at 1-2 minute intervals.

  • N.B There is also a change you will get a results.sample_rejected webhook

5. Fetching results

  • When fetching results, a pre-signed URL will be returned which can be used to download test results

  • Use order_item_id and test_taker_id to fetch results

6. Acknowledge Results

  • Once an end user sees their results, they are required to acknowledge it

    • How an end-user interfaces with the acknowledgement page must adhere to Acknowledging Results to be compliant

  • Importantly you need to inform us an end-user has acknowledged their results by hitting the following endpoint

    • We also use order_item_id and test_taker_id to acknowledge

Last updated

Was this helpful?