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. 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.
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
Only a draft can be cancelled. If the Install cannot be created after redeeming, the draft ends as failed.
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. |
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 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
Order Drafts API
Create, update, redeem, and cancel order drafts.
Offers API
Create and resolve the Offers that start a draft.
Authentication
Mint API tokens for automation.