=================== Renew Domain =================== To renew domain send ``POST`` Request to https://globalr.com/api/domain/renew Domain renew request model ---------------------------------------------------------- .. code-block:: json { "domains":[ { "DomainName":"int" } ] } Example request in php ------------------------------------------------------ .. code-block:: php ['example.am' => 1] ] $resault = sendToGlobalR($renew, 'POST', '/domain/renew', 'xXGsvO26ntTHTESTKEYSOICKu8nOvMzKKiwg'); $domain = json_decode($resault); Response Example ------------------------------------------ .. code-block:: json { "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 .. code-block:: json { "status": 402, "textStatus": "Payment Required", "errors": { "balance": "This transaction cannot be sent because there are insufficient funds available.", } }