Request
curl --get "https://api.iagenify.com/api/domains/purchases/quote" \
-H "Authorization: Bearer $IAGENIFY_SESSION" \
--data-urlencode "domain=example.com"domainstringrequiredComplete 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.
availablebooleanWhether the registrar currently reports the name as available.
purchaseEnabledbooleanWhether the required registrar, onboarding and payment configuration currently permits checkout.
customerFirstPeriodCentsintegerCurrent customer-facing registration amount in cents.
customerRenewalCentsintegerCurrent annual renewal amount in cents.
currencystringCurrency returned by the registrar offer.
pricePolicystringRetail pricing policy identifier; the quote can change before checkout.
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.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | The bearer session is missing, expired, or invalid. Exchange the account API key for a short-lived session first. |
| 403 | session_required | This checkout route requires a signed-in account session; an API-key credential alone is not accepted. |
| 400 | invalid_domain · unsupported_tld · unsupported_term | The domain syntax, extension, or registration term cannot be quoted. |
| 409 | domain_unavailable · domain_restricted | The name is taken or has registry restrictions. |
| 503 | registrar_live_unavailable | Live registrar pricing or availability could not be provided. |