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

# Finalize, hold and book a proposal

> Finalize a seller's draft proposal with V3 refine_proposals, read its hold, and book it with save_media_buy

A seller's proposal can carry a hold: the seller keeps its inventory for you
while you decide. This page is the buyer's side in the V3 tools. What the seller
promises, and what each of its answers means, is in
[Hold and book a seller's proposal](https://docs.apostra.com/v3/seller-proposal-holds.md).

## Availability

Holds are in the buyer-experience beta. A seller serves them only to a buyer
whose account is on the `buyer-proposal-refinement` feature profile. Apostra
does not decide that for the seller: a buyer who is not on it, or a seller that
does not offer holds, answers `refine_proposals` with the seller's own refusal
and nothing changes. Proposals you do not finalize keep working as they do
today.

## The three steps

1. **Ask for proposals** with `request_proposals`. Each draft proposal you read
   back has `holdPolicy`, the seller's rules for any hold it places on it.
2. **Finalize one** with `refine_proposals` and `action: "finalize"`. The seller
   commits the draft's terms and, when it can, holds its inventory.
3. **Book it** with `save_media_buy` and `fromProposalId`, as you book any
   proposal. When the buy is launched, Apostra books the committed proposal with
   the seller's `accept_proposal` for the terms you reviewed, so the seller
   converts the hold into your media buy at the price it committed.

## Finalize

```json theme={null}
{ "action": "finalize", "proposalIds": ["sfp1:…"] }
```

`finalize` and `extend_hold` take exactly one `proposalId`. The proposal keeps
its `proposalId`. Its current version is replaced by the version the seller
committed, so read it again to see the committed terms, `expiresAt` and hold.
The draft stays in the proposal's version history.

Without `action`, or with `action: "refine"`, `refine_proposals` only records
that you want to refine the proposal. It never contacts the seller.

A seller that cannot place the hold answers `hold_unavailable`. You get an
error that names it, nothing is committed, and the proposal stays a draft.
Finalize it again later, or book another proposal.

### Extending a hold

`action: "extend_hold"` is accepted but not available yet. It returns an error
and sends nothing: the AdCP client Apostra sends through cannot send it
(adcp-client#3753), and Apostra storefronts do not serve it. Book before
`expiresAt`, or finalize a fresh proposal.

## Read the hold

Every proposal read, from `get` or `search` with `kind: "proposal"`, carries:

| Field | Meaning |
| - | - |
| `holdPolicy` | The seller's `hold_policy` for this proposal. |
| `holdPlacedAt` | When the seller placed the hold. Absent when it placed none. |
| `expiresAt` | When the hold ends. When the seller committed terms only, when you can no longer accept them. |
| `holdState` | `held`, `released` or `expired`; `null` when no hold was ever placed. |
| `productsWithoutHold` | The products that cannot be held, when the seller committed terms only because of them. Absent when the seller did not say. |

A hold covers the whole proposal: a proposal holds all its products or none.
`holdState` is worked out when you read the proposal, so it is never stale:

* `held`: the seller placed a hold, `expiresAt` is in the future and the hold has
  not ended.
* `expired`: the hold ran out before it was booked.
* `released`: the hold ended another way. **A booked proposal reads
  `released`**, because the hold was converted into the buy. A declined proposal
  reads `released` too.
* `null`: no hold was ever placed. A terms-only proposal reads `null`, and
  `productsWithoutHold` names why.

## If booking is slow or fails

Booking is safe to retry. Apostra sends the seller the same request every time
until it gets an answer, so a retry never books twice.

* If the seller refuses (the proposal expired, was replaced, or its terms no
  longer match), nothing is booked and the media buy fails with the seller's
  reason. Request a fresh proposal.
* If the seller does not answer, the media buy is retried automatically with the
  same request.
* If the seller says it does not know whether it booked
  (`accept_outcome_unknown`), the proposal is never booked again. Read the
  seller's media buys with `get_media_buys` to see what exists.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.