Obtener una clave API
Domain purchases

POST /api/domains/purchases/renewals/:domainId/checkout

POST https://api.iagenify.com/api/domains/purchases/renewals/DOMAIN_ID/checkout

Prepare a customer-confirmed one-year renewal payment for an eligible IaGenify-registered domain.

authenticated accountrenewal price reconfirmed
const payload = {
  expectedAmountCents: quote.customerAmountCents,
  legalConsent: true,
};
domainIdstringrequired

IaGenify domain record ID in the URL.

expectedAmountCentsintegerrequired

Current renewal quote's customer amount in cents.

legalConsentbooleanrequired

Must 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.

StatusCodeMeaning
401unauthorizedThe authentication credential is missing, expired, or invalid.
400renewal_consent_requiredThe customer has not confirmed the displayed amount.
403email_verification_requiredThe account email must be verified before renewal.
404domain_not_renewable_hereThis account does not own an eligible IaGenify-registered domain with this ID.
409domain_quote_changed · renewal_order_pendingRefresh the quote or wait for the existing renewal checkout to finish.
503billing_unavailable · domain_purchases_disabledPayment or domain renewal is unavailable.