E-Invoicing GSP API Reference

Environments

ClearTax E-Invoicing GSP has 2 environments:
  1. 1.
    Sandbox Environment
  2. 2.
    Production Environment

1. Sandbox Environment

For testing, it is recommended to always use the sandbox environment. To create an account, contact our sales representative.
For API requests to the sandbox environment, use the below information.
Sandbox accepts ONLY some specific GSTIN as seller, receiver, and consignee. Please do not use other GSTINs. See the list of accepted GSTINs.

1.1 API URLs to be used/whitelisted

For API requests to the sandbox environment, use the below information.
API Type
Hostname
IP
EINV GSP
https://api-sandbox.clear.in
75.2.104.91 AND 99.83.130.139
For implementations done prior to 1st May 2022, the following hostname is used and listed here for reference only.
API Type
Hostname
IP
EINV GSP
https://einv-gsp-sandbox.internal.cleartax.co
Not available
Port: 443

1.2 SSL/TLS Certificate to be downloaded and installed

For detailed information on how to download the host, intermediate, and root certificates, you can always refer to How to get SSL Certificate. Alternatively, you can also download the certificates directly from the below links.
API Type
Certificate(s)
EINV GSP
wildcard.clear.in.cer
go-daddy-intermediate.cer
go-daddy-root.cer
For implementations done prior to 1st May 2022, the following SSL certificates may be required and are listed here for reference only.
API Type
Certificate(s)
EINV GSP
wildcard.internal.cleartax.co.cer
amazon intermediate.cer
amazon root.cer
Sandbox Public Key
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArxd93uLDs8HTPqcSPpxZ
rf0Dc29r3iPp0a8filjAyeX4RAH6lWm9qFt26CcE8ESYtmo1sVtswvs7VH4Bjg/F
DlRpd+MnAlXuxChij8/vjyAwE71ucMrmZhxM8rOSfPML8fniZ8trr3I4R2o4xWh6
no/xTUtZ02/yUEXbphw3DEuefzHEQnEF+quGji9pvGnPO6Krmnri9H4WPY0ysPQQ
Qd82bUZCk9XdhSZcW/am8wBulYokITRMVHlbRXqu1pOFmQMO5oSpyZU3pXbsx+Ox
IOc4EDX0WMa9aH4+snt18WAXVGwF2B4fmBk7AtmkFzrTmbpmyVqA3KO2IjzMZPw0
hQIDAQAB
-----END PUBLIC KEY-----

2. Production Environment

Once you have completed testing, you can move to production. To create an account, contact our sales representative.
For API requests to the production environment, use the below information.

2.1 API URLs to be used/whitelisted

For API requests to the production environment, use the below information.
API Type
Hostname
IP
EINV GSP
https://api.clear.in
13.248.191.113 AND 76.223.59.133
For implementations done prior to 1st May 2022, the following hostname is used and listed here for reference only.
API Type
Hostname
IP
EINV GSP
https://einv-gsp.cleartax.in
Not available
Port: 443

2.2 SSL/TLS Certificate to be downloaded and installed

For detailed information on how to download the host, intermediate, and root certificates, you can always refer to How to get SSL Certificate. Alternatively, you can also download the certificates directly from the below links.
API Type
Certificate(s)
EINV GSP
wildcard.clear.in.cer
go-daddy-intermediate.cer
go-daddy-root.cer
For implementations done prior to 1st May 2022, the following SSL certificates may be required and are listed here for reference only.
API Type
Certificate(s)
EINV GSP
wildcard.cleartax.in.cer
amazon intermediate.cer
amazon root.cer
Copy link
Outline
Environments
1. Sandbox Environment
1.1 API URLs to be used/whitelisted
1.2 SSL/TLS Certificate to be downloaded and installed
2. Production Environment
2.1 API URLs to be used/whitelisted
2.2 SSL/TLS Certificate to be downloaded and installed