Renew Domain


CGI path at server

Live: http://www.onlinenic.com/cgi-bin/english/E_b_domain_renew.cgi


Parameters submitted by reseller

user_id  Reseller's user ID at OnlineNIC
order_id The unique order ID generated by reseller
o_time Order's generation time, Format:YYYY-MM-DD HH:MM:SS. For example: 2000-02-20 12£º03£º33
url The CGI address reseller provides to handle OnlineNIC's feedback messages. After OnlineNIC handles the request, the feedback message is sent to this CGI.
checksum MD5 checksum between reseller and OnlineNIC servers.
domain Domain to be renewed.
year Total years for renewal. Accepted range: 1 - 10 years.

The checksum is generated like this:

checksum = md5(user_id+order_id+o_time+url+md5(password)+domain+year)

The password is the reseller's OnlineNIC password. The other parameters are identical to those submitted by the reseller.


It is suggested that reseller submits forms in the following format:

<form action="http://www.onlinenic.com/cgi-bin/english/E_b_domain_renew.cgi" method=POST name=a_reg>
<input type="hidden" name="user_id" value="10575">
<input type="hidden" name="order_id" value="1">
<input type="hidden" name="o_time" value="2000-06-18 20:00:00">
<input type="hidden" name="url" value="http://yourserver.com/yourscript.php">
<input type="hidden" name="checksum" value="419021bc54f522ecfe8903a7895735f5">
<input type="hidden" name="domain" value="3wabcdefg.net">
<input type="hidden" name="year" value="2">
<input type="submit" value="Submit">
</form>


OnlineNIC's return values

user_id Reseller's user ID at OnlineNIC
order_id Reseller's order ID (the order ID reseller submits)
o_time Order's generation time(the time when reseller submits order)
success Result of call to OnlineNIC server, starting with result code, and ending with result message. A "0" indicates success. A non-zero code indicates failure. Most failure repsonses will include a text message explaining the error.
checksum md5 checksum£¬Reseller can use it to check the validity of the server response.

The checksum is generated like this:

checksum = md5(user_id+order_id+o_time+success+md5(password))

The password is the reseller's OnlineNIC password. The other parameters are identical to those submitted by the reseller.