# Migrating from Karvy GST GSP

{% hint style="info" %}
Karvy GST GSP is acquired by ClearTax. The current Karvy APIs will be deprecated by 15th July 2020. Migrate now.
{% endhint %}

## **SAP CPI Customers**

If you are currently using Karvy iflow in your SAP CPI, you can migrate to ClearTax quickly by following the below steps.

### **Prerequisites**

1. ~~SAP GST GSP Integration Guide (.pdf file).~~
2. ~~SAP Cloud Integration Platform - Integration Flow Content package (.zip file).~~
3. ~~SAP Cloud Integration Platform - Router Content package (.zip file).~~
4. GSTN server public key (Sandbox and Production) (.zip file).
5. ClearTax GSP SSL certificate (Sandbox and Production) (.cer file).
6. Externalized Parameters (Sandbox and Production)

There is no change in points 1 to 3 above.

#### Download the GSTN server public key

You can download the latest public key of GSTN for both sandbox and production environment from the below link:

<https://developer.gst.gov.in/apiportal/howToStart/download>

#### Download ClearTax GSP SSL certificate

You can download the SSL certificates below:

{% file src="/files/-M3QNBaqqeBfwdJMISKC" %}
ClearTax GSP Sandbox SSL
{% endfile %}

{% file src="/files/-MBJc\_PNZQp8R29cYiA9" %}
ClearTax GSP Production SSL
{% endfile %}

In case you need the root certificate, you can download it from [here](/cleartax-docs/e-waybill-gsp-api/e-waybill-gsp-api-reference.md#environments).

#### **Obtain Externalized Parameters**

You need to change the following parameters in respective environments.

**Sandbox**

Update the following parameters with the new values:

| Parameter          | Value                                                                        |
| ------------------ | ---------------------------------------------------------------------------- |
| client-secret      | `<same client-secret as before>`                                             |
| clientid           | `<same clientid as before>`                                                  |
| gspurl             | <https://gsp-sandbox.internal.cleartax.co/api/>                              |
| karvyclient-secret | `<please check your email or write to integrations-support@cleartax.in>`     |
| karvyclientid      | `<same karvyclientid as before>`                                             |
| karvy\_gstn\_auth  | <https://gsp-sandbox.internal.cleartax.co/api/taxpayerapi/v1.0/authenticate> |
| karvy\_gstn\_ret   | <https://gsp-sandbox.internal.cleartax.co/api/taxpayerapi/v1.1/returns>      |

**Production**

Update the following parameters with the new values:

| Parameter                     | Value                                                       |
| ----------------------------- | ----------------------------------------------------------- |
| client-secret                 | `<same client-secret as before>`                            |
| clientid                      | `<same clientid as before>`                                 |
| gspurl                        | <https://gsp.cleartax.in/api/>                              |
| karvyclient-secret            | `<please write to integrations-support@cleartax.in>`        |
| karvyclientid                 | `<same karvyclientid as before>`                            |
| karvy\_gstn\_auth             | <https://gsp.cleartax.in/api/taxpayerapi/v1.0/authenticate> |
| karvy\_gstn\_comm             | <https://gsp.cleartax.in/api/commonapi/v1.1/search>         |
| karvy\_gstn\_comm\_track\_ret | <https://gsp.cleartax.in/api/commonapi/v1.0/returns>        |
| karvy\_gstn\_ledr             | <https://gsp.cleartax.in/api/taxpayerapi/v0.3/ledgers>      |
| karvy\_gstn\_ret              | <https://gsp.cleartax.in/api/taxpayerapi/v1.1/returns>      |

The following parameters will remain the same in both sandbox and production.

## Other ERP or Mode

If you are using SAP but not CPI, OR if you are not using SAP, please follow this guide:

{% content-ref url="/pages/-MBD9EjgCUqsQ0MYFLE\_" %}
[Getting Started with GST GSP API](/cleartax-docs/gst-gsp-api/getting-started-with-gst-gsp-api.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cleartax.in/cleartax-docs/gst-gsp-api/migrating-from-karvy-gsp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
