NOTE: You can renew a certificate if it is (a) currently ACTIVE (b) is set to expire in <= 30 days.
namecheap.ssl.renew
Renews an SSL certificate.
Request Parameters
Global parameters are not shown here for clarity, but should be present in all requests
| Name | Type | MaxLength | Required? | Default | Description |
| CertificateID | Number | 10 | Yes | | Unique ID of the SSL certificate you wish to renew |
| Years | Number | 1 | Yes | 1 | Number of years to renew |
| PromotionCode | String | 20 | No | | Promotional (coupon) code for the certificate |
| SSLType | String | 50 | Yes | | Type of SSL |
Possible values for SSLType parameter:
QuickSSL, QuickSSL Premium, RapidSSL, RapidSSL Wildcard, PremiumSSL, InstantSSL, PositiveSSL, PositiveSSL Wildcard, True BusinessID with EV, True BusinessID , True BusinessID Wildcard , Secure Site , Secure Site Pro , Secure Site with EV , Secure Site Pro with EV.
Example Request
https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&
UserName=apiexample&command=namecheap.ssl.renew&clientip=1.2.3.4&certificateid=501904&
ssltype=positivessl&years=1
Example Response
<?xml version="1.0" encoding="utf-8" ?>
<ApiResponse Status="OK">
<Errors/>
<Warnings/>
<RequestedCommand>namecheap.ssl.renew</RequestedCommand>
<CommandResponse>
<SSLRenewResult CertificateID="501284" Years="1" OrderId="2345545"
TransactionId="32487444" ChargedAmount="9.98"/>
</CommandResponse>
<Server>IMWS-A03</Server>
<GMTTimeDifference>+5:30</GMTTimeDifference>
<ExecutionTime>0.219</ExecutionTime>
Error Codes
Specifies the error codes that might be returned from this method
| Number | Description |
| 2033409 | Possibly a logical error in authentication phase. Order chargeable for
Username is not found |
| 2015167 | Number of years should be maximum 10 |
| 2011301 | SSLType mismatch |
| 2011170 | Promotion code is invalid |
| 4011294 | Certificateid is invalid |
| 2528166 | Order creation failed |
| 5050900 | Unhandled exceptions |