Buy domains
Buys up to 10 registrable apex domains in one checkout. Quotes each, adds it to the team’s inventory, and holds them all for one payment. Returns every registration (pending_payment) and data.checkout.url for a person to open and pay; nothing is registered or charged until they do. One name that can’t be bought refuses the whole cart. Pass expectedTotalCents (before tax) to refuse if the price moved. A hostname the team already holds is registered on its existing record.
/v1/domains/purchasesAuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.0 with explicit Spacefast capability scopes. Use the authorization-code flow for people and client credentials for machines.
domains:writeapplication/jsonanalyticsobjectShow propertiesHide properties
sessionIdstring<uuid>requiredtraceIdstring<uuid>requiredanonymousIdstringrequiredpathstringrequireddomainsobject[]requiredDomains to buy in one checkout (up to 10).
Show propertiesHide properties
objectnamestringrequiredRegistrable apex domain; canonicalized server-side.
periodnumberYears. Only 1 is offered today.
teamIdstringOwning team. Defaults to the active team.
contactIdstringrequiredRegistrant contact (dcon_...) from createDomainContact.
expectedTotalCentsintegerRefuse with domain_checkout_total_changed if the live total (before tax, ICANN fees included) differs.
Response for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobjectrequiredShow propertiesHide properties
registrationsobject[]requiredShow propertiesHide properties
objectidstring | nullrequiredRegistration or transfer record id; null when unregistered.
domainIdstringrequiredDomain inventory record (dom_...).
hostnamestringrequiredRegistered hostname.
providerstring | nullrequiredWrapped registrar bridge where the registration lives.
Show propertiesHide properties
stringnullstatusstringrequiredRegistration lifecycle status. pending_payment means checkout is open and nothing is registered yet.
expiresAtstring<date-time> | nullrequiredInstant when the registration expires.
Show propertiesHide properties
string<date-time>nullredemptionEndsAtstring<date-time> | nullrequiredInstant when the redemption window ends after expiry.
Show propertiesHide properties
string<date-time>nullautoRenewbooleanrequiredSaved auto-renew preference. Nothing renews on its own yet; renew by hand.
transferLockbooleanrequiredWhether outbound transfers are locked.
privacySettingstring | nullrequiredWHOIS privacy behavior.
Show propertiesHide properties
stringnullcontactIdstring | nullrequiredRegistrant contact record.
failureReasonstring | nullrequiredProvider failure detail when status is failed.
purchaseobject | nullrequiredMoney state of the current purchase or renewal line; null when none is in flight.
Show propertiesHide properties
intentIdstringrequiredPurchase intent that paid for this line.
lineStatusstringrequiredawaiting_paymentsubmittingsettledrefundingrefundedcancelledcheckoutobject | nullThe open payment link, when you request includeCheckout. You get it only when you may purchase this domain and, when the checkout was opened with billing authority over the paying team, hold that authority too. Null when you cannot get an open link; check checkoutUnavailable for lookup failures. Omitted when you do not request it or may not purchase this domain.
Show propertiesHide properties
idstringrequiredExisting Stripe Checkout session id.
urlstring<uri>requiredOpen this existing checkout to complete payment.
expiresAtstring<date-time>requiredWhen this checkout expires.
nullcheckoutUnavailablebooleanTrue when the requested payment link could not be retrieved or verified. Registration status remains available. Retry the read to recover the existing checkout; do not start another purchase.
quotedFeeAmountCentsinteger | nullrequiredRegistrar fee before tax, in cents.
Show propertiesHide properties
integernullpaidAmountCentsinteger | nullrequiredWhat the customer paid for this line, tax included, in cents.
Show propertiesHide properties
integernullrefundobject | nullrequiredShow propertiesHide properties
referencestringrequiredStripe refund id.
amountCentsintegerrequiredrefundedAtstring<date-time>requirednullnullcreatedAtstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullupdatedAtstring<date-time> | nullrequiredShow propertiesHide properties
string<date-time>nullcheckoutobjectrequiredShow propertiesHide properties
idstringrequiredStripe Checkout session id.
urlstring<uri>requiredOpen this to pay. Nothing is charged until payment completes here.
expiresAtstring<date-time>requiredsubtotalCentsintegerrequiredcurrencystringrequiredlinesobject[]requiredShow propertiesHide properties
objectdomainIdstringrequiredregistrationIdstringrequirednamestringrequiredamountCentsintegerrequiredPrice before tax, in cents: the registrar fee plus any ICANN fee.
operationobject | nullrequiredAlways null: nothing runs until payment completes.
Show propertiesHide properties
idstringrequiredkindstringrequiredstatusstringrequiredqueuedrunningsucceededfailedcanceledresourcesobject[]requiredShow propertiesHide properties
objecttypestringrequiredidstringrequiredprogressobjectShow propertiesHide properties
totalintegerrequiredcompletedintegerrequiredfailedintegerrequireddiagnosticsobject[]Show propertiesHide properties
objectcodestringrequiredStable snake_case diagnostic code naming the public contract that produced it.
severitystringrequiredHow actionable the diagnostic is.
infowarningerrormessagestringrequiredHuman-readable explanation with enough detail to act on.
pathstring | nullArtifact path the diagnostic points at, for example "_headers:12", when one exists.
providerstring | nullUpstream system the diagnostic originated from, when not Spacefast itself.
Show propertiesHide properties
stringnulldetailsobject | nullMachine-readable context for the diagnostic code.
Show propertiesHide properties
objectnullfixstring | nullConcrete, agent-actionable remediation hint, when one can be derived.
retryableboolean | nullWhether retrying the same operation can resolve this diagnostic without the caller changing anything.
createdAtstring<date-time>requiredfinishedAtstring<date-time>nullProblem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
fixstringOne sentence on what to do about this error code, the same text as the type page. Read it before retrying.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.