Auto Renew Domain¶
To auto renew domain send POST
Request to https://globalr.com/api/domain/autoRenew
Domain auto renew request model¶
{
"domain":"DomainName":"string",
"renew":"1|0":"boolean"
}
renew=1 enable auto renew, renew = 0 disable auto renew option
Example request in php¶
<?php
$autoRenew = [
'domain' => 'example.am',
'renew' => 1
]
$resault = sendToGlobalR($autoRenew, 'POST', '/domain/autoRenew', 'xXGsvO26ntTHTESTKEYSOICKu8nOvMzKKiwg');
$domain = json_decode($resault);
Response Example¶
{
"status": 200,
"textStatus": "success",
"message": "Your example.am domain will be renewed 7 days before the expiration date!
Please, fill your balance in time.",
"errors": [
]
}
Available status codes
- Status: 200 - success
- Status: 422 - invalid data (in this case field will be provided in errors array)
- Status: 500 - Internal Error
{
"status": 422,
"textStatus": "invalid data",
"errors": {
"domain": "please provide domain name.",
}
}