Search in this section
Complete automation of the extension of the duration of a domain. This action requires two steps, retrieving the domain data to determine the expiration date and extending the domain duration with the expiration date.
Inquiring domain information
The required expiration date is queried via the DomainInfo command. It is contained in the exDate tag in the system response.
Extending domain registration period
The registration period of a domain can be extended with the DomainRenew command. The length of the renew is set with the period tag. In the tag curExpDate
the value from exDate
is set.
The possible registration periods that can be used for a DomainRenew depend on the TLD.
By setting a clTRID
, the poll message for this request can be assigned. In this example <clTRID>EXAMPLE-123456789</clTRID>
is used.
Inquiring and confirming poll messages (poll info and poll confirm)
The DomainRenew command automatically generates a job that takes care of the renewal process. As soon as the job is finished, a poll message is generated that can be inquired with the PollInfo command.
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <response> <result code="1301"> <msg lang="en">Command completed successfully; ack to dequeue</msg> </result> <msgQ count="2" id="880178"> <qDate>2017-07-14T06:52:19.000Z</qDate> <msg>Message text</msg> </msgQ> <resData> <!-- See polling section for different message results --> </resData> <trID> <clTRID>1cb47efe-2ab3-4769-b0cb-3252af528095</clTRID> <svTRID>20170714-app2-dev-10055</svTRID> </trID> </response> </epp>
In order to assign a poll message to a domain registration, a clTRID
(ClientTransactionId) can be used for which the following is important:
<clTRID>EXAMPLE-123456789</clTRID>
The returned clTRID
is the same as the one that was used for the previous DomainCreate command. The polling system works under the first-in-first-out (FIFO) principle. The poll message is therefore returned until it is confirmed. To confirm a poll message with the PollConfirm request, the ID from the previous command is required.