Skip to main content

Renew a domain

This endpoint allows you to renew a domain.

Endpoint

POST /registrar/v1/domains/{domain}/renew

Parameters

NameLocationRequiredTypeDefault valueDescription
domainURLYesStringA complete domain name
expiryDateBodyYesStringThe domain expiry date with format Y-m-d
periodBodyYesInteger1Number of years for registration. Possible values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

If you don’t set the ‘period’ key, we’ll use the default value set in Nameshield for this extension (the smallest period).

Response

Renew domain

Example Request

POST https://api.nameshield.net/registrar/v1/domains/exemple.com/renew
Content-Type: application/json
Body
{
"expiryDate": "2024-02-26",
"period": "1"
}

Example Response

Renew domain

{
"message": "The domain has been successfully renewed."
}