const payload = {
expectedAmountCents: quote.customerAmountCents,
legalConsent: true,
};domainIdstringrequiredIaGenify domain record ID in the URL.
expectedAmountCentsintegerrequiredCurrent renewal quote's customer amount in cents.
legalConsentbooleanrequiredMust be true to confirm the displayed renewal amount.
The response contains order and a payment url. Redirect the customer to that URL. Check the returned order after payment; do not treat the redirect by itself as proof of renewal. A pending renewal is protected against duplicate checkout.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | The authentication credential is missing, expired, or invalid. |
| 400 | renewal_consent_required | The customer has not confirmed the displayed amount. |
| 403 | email_verification_required | The account email must be verified before renewal. |
| 404 | domain_not_renewable_here | This account does not own an eligible IaGenify-registered domain with this ID. |
| 409 | domain_quote_changed · renewal_order_pending | Refresh the quote or wait for the existing renewal checkout to finish. |
| 503 | billing_unavailable · domain_purchases_disabled | Payment or domain renewal is unavailable. |