Call the quote endpoint immediately before checkout and use the exact returned first-year and renewal amounts. Checkout rejects a changed quote and does not open payment.
Request
{
domain: quote.domain,
expectedFirstPeriodCents: quote.customerFirstPeriodCents,
expectedRenewalCents: quote.customerRenewalCents,
"legalConsent": true,
"registrant": {
"country": "US",
"whoisDetails": {
"first_name": "Alex",
"last_name": "Example",
"email": "alex@example.net",
"phone": "+12025550123",
"address": "1 Example Street",
"city": "Example City",
"state": "CA",
"zip": "90001",
"organization": ""
}
}
}domainstringrequiredThe exact domain from the current quote.
expectedFirstPeriodCentsintegerrequiredCurrent quote's first-period customer amount in cents.
expectedRenewalCentsintegerrequiredCurrent quote's annual renewal customer amount in cents.
legalConsentbooleanrequiredMust be true; confirms that the registrar may receive the submitted registrant details.
registrant.countrystringrequiredTwo-letter ISO country code.
registrant.whoisDetailsobjectrequiredMust include first_name, last_name, email, phone, address, city, state and zip. organization is optional.
registrant.tldDetailsobjectOptional extension-specific contact fields.
registrant.additionalDetailsobjectOptional registrar contact details for this registration.
Response and next steps
Success returns { ok: true, order, url }. order includes the order ID, domain, status, charged amount in cents, currency, years, nameservers, failure code and timestamps. url is the customer payment link.
- Send the customer to the returned
urlto complete payment. - After the customer returns, fetch the order using GET /api/domains/purchases/orders/:id; do not infer payment success from the browser redirect alone.
- After paid registration, the purchased domain is added to the same signed-in account and onboarding provisions its DNS zone and IaGenify nameservers. The domain can remain pending nameserver delegation while registration or DNS setup completes.
| 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 | registrant_required · registrant_phone_invalid · registrant_consent_required · currency_unsupported · domain_restricted | Required legal registrant information or consent is missing or invalid, or the registrar offer cannot be checked out in the supported currency. |
| 403 | email_verification_required · domain_limit | Verify the account email or reduce the account's registered domain count. |
| 409 | domain_quote_changed · domain_unavailable · domain_order_pending · domain_already_attached | The quote changed, name is no longer available, an order is already running, or the domain is already attached. |
| 503 | domain_purchases_disabled · domains_unavailable · billing_unavailable | The required purchase, automatic DNS onboarding, or payment service is unavailable. |