namecheap.ssl.create

Creates a new 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
Years Number 1 Yes 1

Number of years to register

PromotionCode String 20 No Promotional (coupon) code for the certificate
Type String 50 Yes Type of SSL

 Possible values for Type 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,EssentialSSL, EssentialSSL Wildcard, InstantSSL Pro, Premiumssl wildcard, EV SSL, EV SSL SGC, SSL123, SSL Web Server, SGC Super Certs, SSL Webserver EV.

Example Request

https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&
UserName=apiexample&Command=namecheap.ssl.create&ClientIp=192.168.1.109&Years=2&
Type=RapidSSL

Example Response

<?xml version="1.0" encoding="utf-8" ?>
<ApiResponse Status="OK">
<Errors/>
<RequestedCommand>namecheap.ssl.create</RequestedCommand>
<CommandResponse Type="namecheap.ssl.create">
<SSLCreateResult IsSuccess="true" OrderId="3186" TransactionId="4211" ChargedAmount="30.2000">
  <SSLCertificate CertificateID="500393" Created="06/26/2010" Expires="" 
                  SSLType="SSLCertificate1" Years="2" Status="NewPurchase"/>
  </SSLCreateResult>
</CommandResponse>
<Server>IMWS-A03</Server>
<GMTTimeDifference>+5:30</GMTTimeDifference>
<ExecutionTime>0.219</ExecutionTime>
</ApiResponse>

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 is invalid
2011170 Promotion code is invalid
4011299 The Purchasevalidationid already exists.The certificate cannot be created
2528166 Order creation failed
5050900 Unhandled exceptions

Comments

Support requests, bug reports, and off-topic comments will be deleted without warning.

Please do post corrections or additional information/ pointers for this article below. We aim to quickly move corrections into the documentation. Also, your comments may take some time to appear.

If you need specific help with your account, please contact Support

We are an ICANN accredited registrar. Serving customers since 2001
TRUSTe online privacy certification
Verisign Security Seal - Click to Verify
Payment Options
Supported Currency Conversions