Domain purchases

GET /api/domains/purchases/quote

GET https://api.iagenify.com/api/domains/purchases/quote?domain=example.com

Get a current registration quote and availability result before showing a purchase action.

signed-in session requiredlive registrar quoteprices are before tax

Request

curl --get "https://api.iagenify.com/api/domains/purchases/quote" \
  -H "Authorization: Bearer $IAGENIFY_SESSION" \
  --data-urlencode "domain=example.com"
domainstringrequired

Complete domain name to check and quote, such as example.com.

Response

const { quote } = await response.json();
console.log(quote);
// quote.customerFirstPeriodCents and quote.customerRenewalCents
// are live integer amounts in quote.currency.

The returned customer amounts are integer cents and exclude any checkout tax. They are the values to display and send back as the expected amounts at checkout. Refresh the quote if checkout reports domain_quote_changed. pricePolicy identifies the current retail-pricing policy; do not describe it as a guaranteed final price.

availableboolean

Whether the registrar currently reports the name as available.

purchaseEnabledboolean

Whether the required registrar, onboarding and payment configuration currently permits checkout.

customerFirstPeriodCentsinteger

Current customer-facing registration amount in cents.

customerRenewalCentsinteger

Current annual renewal amount in cents.

currencystring

Currency returned by the registrar offer.

pricePolicystring

Retail pricing policy identifier; the quote can change before checkout.

Availability is not a reservation

A name can become unavailable after the quote. Checkout checks it again before opening payment. A disabled <code>purchaseEnabled</code> means do not offer checkout yet.

StatusCodeMeaning
401unauthorizedThe bearer session is missing, expired, or invalid. Exchange the account API key for a short-lived session first.
403session_requiredThis checkout route requires a signed-in account session; an API-key credential alone is not accepted.
400invalid_domain · unsupported_tld · unsupported_termThe domain syntax, extension, or registration term cannot be quoted.
409domain_unavailable · domain_restrictedThe name is taken or has registry restrictions.
503registrar_live_unavailableLive registrar pricing or availability could not be provided.