Renew Domain

To renew domain send POST Request to https://globalr.com/api/domain/renew

Domain renew request model

 {
    "domains":[
      {
         "DomainName":"int"
       }
    ]
}

Example request in php

<?php
$renew = [
    'domains' =>
        ['example.am' => 1]
]
$resault = sendToGlobalR($renew, 'POST', '/domain/renew', 'xXGsvO26ntTHTESTKEYSOICKu8nOvMzKKiwg');
$domain = json_decode($resault);

Response Example

{
  "status": 200,
  "textStatus": "success",
  "message": "Your renewal is now completed.",
  "errors": [

  ]
}

Available status codes

  • Status: 200 - success
  • Status: 201 - completed
  • Status: 402 - Payment Required
  • Status: 422 - invalid data (in this case field will be provided in errors array)
  • Status: 500 - Internal Error
{
  "status": 402,
  "textStatus": "Payment Required",
  "errors": {
    "balance": "This transaction cannot be sent because there are insufficient funds available.",
  }
}