> ## Documentation Index
> Fetch the complete documentation index at: https://docs.junction.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Order Transactions

> Use order transactions to group an initial order with related orders and retrieve their combined results.

An order transaction groups the orders that belong to one patient testing journey. Every newly created initial order starts an order transaction, and related orders—such as supported redraws—join that transaction.

For the complete integration sequence from order creation through result retrieval, see [Orders and Results](/lab/overview/orders-and-results).

## Relationship to orders

* An initial order has `origin: initial` and is not derived from another order.
* Every order belongs to exactly one order transaction.
* One order transaction contains at least its initial order and can contain related orders.
* Each order retains its own lifecycle, events, and results.
* Transaction result endpoints combine results across the related orders.

Store both `order.id` and `order_transaction.id` from the Create Order response. Use the transaction ID as the stable grouping key for the full testing journey and the order ID for operations on an individual order. Related orders, including supported [redraws](/lab/workflow/redraws), retain separate order IDs and join the same transaction.

## Transaction statuses

| Status      | Meaning                                                                       |
| ----------- | ----------------------------------------------------------------------------- |
| `active`    | One or more orders in the transaction are still in progress.                  |
| `completed` | All expected laboratory work is complete and no further updates are expected. |
| `cancelled` | All orders in the transaction are cancelled.                                  |

The transaction status summarizes the group. Continue to use each order's `status` and `events` when your workflow depends on the progress of an individual order.

## API endpoints

The following endpoints are available to retrieve order transaction information and combined results for all orders within a transaction:

* [Get Order Transaction](/api-reference/lab-testing/order-transactions/get-order-transaction) — Retrieve transaction details and its list of orders.
* [Get Order Transaction Results](/api-reference/lab-testing/results/get-order-transaction-results) — Retrieve combined structured results for the transaction.
* [Get Order Transaction Results PDF](/api-reference/lab-testing/results/get-order-transaction-results-pdf) — Retrieve the combined result PDF.

Responses for the following endpoints also include order transaction details:

* [Get Orders](/api-reference/lab-testing/get-orders) — List and filter orders, including by order transaction ID.
* [Get Order](/api-reference/lab-testing/get-order) — Retrieve an individual order.
* [Get Order Results](/api-reference/lab-testing/results/get-results) — Retrieve an individual order's results.


## Related topics

- [Get order transaction](/api-reference/lab-testing/order-transactions/get-order-transaction.md)
- [Get Order Transaction Results](/api-reference/lab-testing/results/get-order-transaction-results.md)
- [Get Order Transaction Results PDF](/api-reference/lab-testing/results/get-order-transaction-results-pdf.md)
- [Orders and Results](/lab/overview/orders-and-results.md)
- [Unmatched Lab Results](/lab/workflow/unmatched-results.md)
