WebHooks

In order to limit the number of API calls to our system, and deliver certificates even faster, we have a webhook available. Through this webhook we will call a predefined URL on your servers.

How does it work?

In this call we will specific the Request ID and the newly updated status of the request. By using this system, you will be able to collect the certificate through our API immediately after issuance, and save both our and your own resources.

By using a HTTP GET request, we request the specified URL with parameters RequestId and Status. Afterwards you can process this in whichever way you see fit. If you wish to start using the webhook, please supply the URL you want us to use, by sending an email to api@xolphin.com.

Example

Below you will find an example of how it can be used:

<?php
$RequestId = (int) $_GET['RequestId'];
$Status = $_GET['Status'];
// Log the webhook calls to a file if required
// file_put_contents('XolphinWebhook.log', date("Y-m-d H:i:s") . ' ' . $Status . ' ' . $RequestId . "\n", FILE_APPEND);
if ($Status == 'Issued') {
// Certificate has been issued and is ready for collection.
// Call your collect certificate function. Find the request based on Xolphins RequestId, not your own Id!
CollectCertificate($RequestId);
}
echo 'OK';
?>
WHMCS

Easily order, manage and install SSL certificates directly on cPanel, DirectAdmin and Plesk

Get SSL Module