API documentation
Domain renewal
Domain name renewal is the process of extending a domain name registration for an additional period beyond its current expiration date. It is important to renew a domain name in order to retain ownership and keep your website, mail services or other related services up and running
Content-Type
application-json
category
domain
action
renew
Request parameters
| Parameter Name | Type | Describe | Example |
|---|---|---|---|
| domain | String (3-60) | Domain name | example.com |
| deaddate | Date | Domain expiration date | 2025-01-01 |
| year | Integer (4) | The registration period is from 1 to 10 years, with some exceptions for certain domains. | 1 |
Response parameters
| Parameter Name | Type | Describe |
|---|---|---|
| domain | String | Domain name |
| old_expired_date | Date | Old domain expiration date |
| new_expired_date | Date | New domain expiration date |
Request Example
{
curl http://api.www.gtlpnf.cn/v2/?category=domain&action=renew&domain={domain}&deaddate={deaddate}&year={year}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Return result
0 OK
Successful response
{
"code": 0,
"msg" : "success",
"data" : {
"domain" : "skinporkit123.com",
"old_expired_date" : "2025-01-31",
"new_expired_date" : "2026-01-01"
}
}
400 Bad Request
{
"code": 400,
"msg" : "Request parameter error",
}






