SSLCertificateOrder

Order a SSL certificate. Fees will be charged!.

Input

Parameter Value Example value
product_id Type certificate to order. Retrieve with SSLListProducts
Parameter is required
1
csr CSR code used to order.
Parameter is required.
--CSR CODE--
approver_email Approver email to appprove certificate. Retrieve with SSLListApproverEmails
Parameter is required for 'domain-validation' and 'wildcard' certificates.
email@email.uk
street Street and housenumber
Parameter is only required for 'extended-validation' certificates.
Street 123
zipcode Zipcode
Parameter is alleen required voor 'extended-validation' certificaten.
1111aa
term Min 1 max 3. Amount year to order SSL certificate.
Parameter is required
1
san_names Extra domains wich u want to add to a multi domain EV certificate. Seperate with comma. Max 99. Standard 4 names are included for free. After you pay 50 GBP per extra SAN name.
Parameter is not required and only possible for extended-validation multi_domain certificate.
domain1.nl,domain2.com,domain3.org
auto_renew Auto renew certificate 5 days before expiredate?
Parameter is NOT required
1 = yes
0 = no
If parameter not sent, your default account value will be used


Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
id Certificate ID (numeric).
Only sent when value parameter success = 1
10


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "SSLCertificateOrder", "product_id" => "5", "csr" => "csr code", "term" => 1, "approver_email" => "email@email.uk", "street" => "Street 123", "zipcode" => "1111 AA", "san_names" => "domain1.nl,domain2.com,domain3.org", "auto_renew" => "1" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { ?> <table> <tr> <td><? echo $versio['id']; ?></td> </tr> </table> <? } ?>