Renew domain

Request Information
URL POST {{basepath}}/domain/:name/renew
CategoryREPP Domain

Description

Allows you to renew a domain. Can only be used if the domain is not set to auto renew.

Expects a DomainRenewRequest object.

Returns a DomainRenewResponse object.

Url variables
:namezerg-test-controlpanel-2023-06-23-02.frl
JSON
{
    "period": 12
}

Example responses

Renew a domain
Request Method & URL
POST {{basepath}}/domain/:name/renew
Request Body:
{
    "period": 12
}
Url variables
:namezerg-test-controlpanel-2023-06-14-03.frl
Response Code:
200 OK
Response Body:
{
    "responseId": "mapi1_3c4693ddeeb5bf90462b777cd5ec589136503759",
    "status": "ok",
    "message": "Command completed successfully",
    "domain": {
        "name": "zerg-test-controlpanel-2023-06-14-03.frl",
        "exDate": "2028-06-13T23:59:59+00:00"
    }
}
Renew domain - autorenew is on
Request Method & URL
POST {{basepath}}/domain/:name/renew
Request Body:
{
    "period": 12
}
Url variables
:namezerg-test-controlpanel-2023-06-23-02.frl
Response Code:
409 Conflict
Response Body:
{
    "responseId": "mapi1_cac39d0fba72ef5290b23c9c246a11e4ef507390",
    "status": "error",
    "errorCode": "epp-2304",
    "errorMessage": "Object status prohibits operation; The domain name zerg-test-controlpanel-2023-06-23-02.frl is set to autorenew. You cannot renew this manually."
}