Buy Closeout
buy_closeoutBuys a closeout at current price, claims the name, and spends account credit. Confirm exact total first; use dry_run for a quote without charging.
Instructions
Spends account credit. Buys a closeout at its current price and claims the name. Confirm the total with the user first. cost_cents must equal totalPrice from get_closeout exactly — any other value is refused, so you cannot accidentally charge a price the user did not agree to. Use dry_run with cost 0 to quote without charging. The domain is reserved, not delivered. The provider releases it over the following days, so do not tell the user it is in their account: poll list_domains or watch the domain.registered webhook. Every post-charge failure refunds automatically and reports refunded:true. Losing the race to another buyer (CLOSEOUT_UNAVAILABLE) is not worth retrying on the same name — closeouts are first-come at a fixed price. CLOSEOUT_NOT_ELIGIBLE means support has blocked this account from auctions and closeouts over past-due invoices or an auction terms violation — do not retry, tell the user to contact support. There is no account-age or order-history requirement: eligibility is the same as registering a domain, plus verified email and phone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Deprecated alias of `cost_cents`, same unit (integer US cents). Send `cost_cents` instead. | |
| domain | Yes | Domain to buy, e.g. `example.com` | |
| dry_run | No | Validate and price without charging or claiming. | |
| cost_cents | No | Exact totalPrice from get_closeout. Use 0 only with dry_run. Required. Integer US cents: 803 means $8.03, not $803. |