Hanzo
OpenapiDomain

Extends a domain your org already owns and answers the updated record with its…

Extends a domain your org already owns and answers the updated record with its new expiry alongside what was paid.

POST /v1/domain/renew

Addresshttps://api.hanzo.ai/v1/domain/renew
MethodPOST
Operationpost_domain_renew
AuthAuthorization: Bearer $HANZO_API_KEY

Extends a domain your org already owns and answers the updated record with its new expiry alongside what was paid.

Ownership is the gate: a name the caller's org does not hold is 404, so a renewal can never reach another tenant's domain.

The price is re-quoted at the CURRENT renewal rate rather than the one paid at purchase. If the registrar returns no renewal price the org's original price is charged instead, so a renewal is never accidentally free. The balance is authorized before the registrar is called and captured after it confirms — 402 when the prepaid balance cannot cover it, 503 when the deployment has no registrar credentials. Requires a validated principal.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
domainbodystringyesDomain is the name to extend.
yearsbodyintegerYears is how much longer to hold it, defaulting to 1.

Response

StatusBodyMeaning
200RenewResultok

200 body — 10 fields.

FieldInTypeAlwaysDescription
paidCentsbodyintegerwhat this renewal cost, in cents
recordbodyHolding
record.costCentsbodyintegerwholesale cost
record.domainbodystringthe name owned
record.expiresAtbodystringwhen the registration lapses, RFC3339
record.nameserversbodystring[]the authoritative nameservers the name points at
record.orderbodyintegerregistrar order id
record.orgbodystringthe org that owns the domain
record.priceCentsbodyintegerwhat the customer paid (sell)
record.registeredAtbodyintegerunix seconds

Failure carries the platform error shape — see Errors.

Examples

hanzo domain renew --domain <domain>

Domain API · All Hanzo APIs · Interactive reference

How is this guide?

On this page