Renew a domain
This endpoint allows you to renew a domain.
Endpoint
POST /registrar/v1/domains/{domain}/renew
Parameters
| Name | Location | Required | Type | Default value | Description |
|---|---|---|---|---|---|
| domain | URL | Yes | String | A complete domain name | |
| expiryDate | Body | Yes | String | The domain expiry date with format Y-m-d | |
| period | Body | Yes | Integer | 1 | Number of years for registration. Possible values: 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."
}