Docs / built-apps / PurchaseDomainRequest

PurchaseDomainRequest

typesince 0.3.1not for built apps

Request body for purchaseDomain: name + TLD + registrant contact + auto-renew/privacy/auto-connect options (P0-163).

import type { PurchaseDomainRequest } from 'flowstack-sdk'

What purchaseDomain sends to POST /api/v1/registrar/purchase. Setting site_id makes the purchased domain auto-connect to that site after the payment webhook completes registration — the buy-and-wire path; omit it to just own the domain.

Signature

interface PurchaseDomainRequest

Returns

FieldTypeDescription
domainstringName WITHOUT the TLD, e.g. thezengarden (not thezengarden.com).
tldstringThe TLD to register, e.g. com.
registrantRegistrantContactWHOIS contact — registrar-validated formats (E.164 phone, ISO country code).
auto_renewboolean?Renew automatically each year.
whois_privacyboolean?Enable WHOIS privacy protection.
site_idstring?If set, the domain auto-connects to this site after payment — no separate connectDomain call needed.
Notedomain is the bare name — passing thezengarden.com as domain with tld: "com" would attempt thezengarden.com.com.

See also

purchaseDomain · RegistrantContact · DomainSearchResult · searchDomains

Source: src/types/index.ts (Domain Registrar, P0-163) · Also available in llms-full.txt and registry.json.