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

# Order drafts

> The record of one customer redeeming an Offer, from the link to a started install

An order draft is one customer's in-progress redemption of an [Offer](https://docs.akua.dev/marketplace/offers.md). Opening an Offer link only shows the customer a view of the Offer. After the customer signs in and continues, Akua creates a draft that they own. It carries their choices: which Workspace receives the install, which Cluster it runs on, and the values they configure. Redeeming the draft starts the [install](https://docs.akua.dev/installs.md).

Customers rarely see the term "order draft". They walk through the guided form, and the draft is what that form reads and writes.

## The customer flow

Opens the Offer link
and signs in

Picks the details
Workspace, Cluster, inputs, any order

Redeems
fields are frozen

Install exists

## The states

| `status` | What is happening |
| - | - |
| `draft` | The draft is editable. Workspace, Cluster and values can be set in any order until `expires_at`. |
| `redeeming` | Fields are frozen while Akua redeems the Offer and creates the Install. Redeeming again resumes it. |
| `installing` | The Install exists. The draft carries `install_id` and `operation_id` so you can follow progress through [Operations](https://docs.akua.dev/api-reference/operations/get-operation-details.md). |
| `failed` | The Offer was redeemed but the Install could not be created. The draft reports an `install-failed` condition. |
| `cancelled` | The customer ended the draft. Only a `draft` can be cancelled; once redeeming starts it cannot. |

## What a draft still needs

Each read of a draft lists what is `missing` and which `problems` block redemption:

* **Missing**: a Workspace, a Cluster, or a value for an input.
* **Problems**: the Offer is not found, not for this customer, unavailable, or used up; the Workspace is not allowed or is being deleted; the Cluster is not found, belongs to another Workspace, or is not ready; a value is invalid or locked; the draft expired.

The customer picks an existing Workspace or creates a new one in an Organization where they are owner or admin. The Cluster must belong to that Workspace. Redeeming checks everything together and changes nothing if something is missing or wrong.

Sensitive inputs are write-only. The customer sends them with the redeem call, they go to the Install and its vault, and they are never stored on the draft.

## What happens after

Once the draft is `installing`, the Install is the long-lived resource in the customer's Workspace. As the customer, follow it with the [installation lifecycle](https://docs.akua.dev/installs/lifecycle.md) and choose when to update to another published Package version. Sharing an Offer does not give the Seller access to your Workspace or Install.

## API

> [card] [Order Drafts API](https://docs.akua.dev/api-reference/order-drafts/create-order-draft.md)
>
> Create, update, redeem, and cancel order drafts.

> [card] [Offers API](https://docs.akua.dev/api-reference/offers/list-offers-in-workspace.md)
>
> Create and resolve the Offers that start a draft.

> [card] [Authentication](https://docs.akua.dev/apis/authentication.md)
>
> Mint API tokens for automation.

## Related topics

> [card] [Offers](https://docs.akua.dev/marketplace/offers.md)
>
> The links that start every order draft.

> [card] [Products](https://docs.akua.dev/products.md)
>
> The Product behind an Offer.

> [card] [Installations](https://docs.akua.dev/installs.md)
>
> What a redeemed draft produces.
