# E-Invoicing KSA API Reference

## 1. API URLs to be used/whitelisted

For API requests, use the below information.

### 1.1 Sandbox Environment (QA, Testing)

<table><thead><tr><th width="162">API Type</th><th width="290">Hostname</th><th width="145">IP</th><th>Port</th></tr></thead><tbody><tr><td>API</td><td>https://api-sandbox.cleartax.com</td><td>193.122.66.8<br>84.8.110.211</td><td>443</td></tr></tbody></table>

Please whitelist both the IPs on sandbox if it is required in your network environment or ERP.

**Base URL**:

```
https://api-sandbox.cleartax.com/middle-east/ksa/einvoicing
```

{% hint style="success" %}
Please note that the above URL is for API requests only. The corresponding frontend web application URL where you can log in and verify the data is [https://app-sandbox.cleartax.com/middle-east/ksa/einvoicing/](https://app-sandbox.cleartax.com/middle-east/ksa/einvoicing/)
{% endhint %}

### 1.2 Production Environment (Prod)

<table><thead><tr><th width="162">API Type</th><th width="290">Hostname</th><th width="145">IP</th><th>Port</th></tr></thead><tbody><tr><td>API</td><td>https://api.cleartax.com</td><td>150.230.55.2</td><td>443</td></tr></tbody></table>

**Base URL**:

```
https://api.cleartax.com/middle-east/ksa/einvoicing
```

{% hint style="success" %}
Please note that the above URL is for API requests only. The corresponding frontend web application URL where you can log in and verify the data is [https://app.cleartax.com/middle-east/ksa/einvoicing/](https://app.cleartax.com/middle-east/ksa/einvoicing/)
{% endhint %}

## 2. SSL/TLS Certificate to be downloaded and installed

{% hint style="info" %}
**Note**: This is a multidomain SAN (Subject Alternative Name) certificate, utilized across all products within the Clear ecosystem and is common for both sandbox and production environments.
{% endhint %}

<table><thead><tr><th width="201">For Hostname</th><th width="202.66668701171875">Applicable Up to</th><th data-type="files">Certificate</th></tr></thead><tbody><tr><td>*.cleartax.com</td><td><strong>23rd April 2026</strong></td><td><a href="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FcSDmu1sI69IDSfG3prrL%2F_.clear.in.cer?alt=media&#x26;token=db676045-6f1c-4bf1-a515-d439054a0f5e">_.clear.in.cer</a></td></tr><tr><td>Intermediate</td><td>3rd May 2031</td><td><a href="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FVPJz744oU3A6ekm1DvWk%2FGo%20Daddy%20Secure%20Certificate%20Authority%20-%20G2.cer?alt=media&#x26;token=a77ebfea-2a07-4456-b44b-38bf04966374">Go Daddy Secure Certificate Authority - G2.cer</a></td></tr><tr><td>Root</td><td>1st Jan 203</td><td><a href="https://2888774781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZ9fXxeBEm3pJiVldcu%2Fuploads%2FbRsrI0uQKvJUohLrJOs8%2FGo%20Daddy%20Root%20Certificate%20Authority%20-%20G2.cer?alt=media&#x26;token=615ac9f2-8e16-4458-a27b-7f35d11775f2">Go Daddy Root Certificate Authority - G2.cer</a></td></tr></tbody></table>

**TLS Versions Supported:** TLS 1.2

For detailed information on how to download the host, intermediate, and root certificate&#x73;**,** you can always refer to [How to get SSL Certificate](../general/how-to-get-the-ssl-certificate-of-a-host). Alternatively, you can also download the certificates directly from the below links.
