Description
|
For Sandbox
|
For Production
|
BaseURL
|
https://gstsandbox.charteredinfo.com
|
https://gstapi.charteredinfo.com
|
Note : Only works in Production.
API List: For more details like Request Body Json, Response Json, Json Schema, Excel Attribute List, ... , etc. refer GST Developer portal
API Details
|
Method
|
API Action
|
URL/Header Parameter
|
URL
|
Get IRN List
|
GET
|
IRNLIST
|
[Common Header Parameters], rtnprd={}, suptyp={ B2B / SEZWP / SEZWOP / DEXP / EXPWP / EXPWOP }, stin={} or rtin={}
|
BaseURL/taxpayerapi/v1.0/einvoice
|
Get File Details
|
GET
|
FILEDETL
|
[Common Header Parameters], token={}
|
BaseURL/taxpayerapi/v1.0/einvoice
|
Get IRN Details
|
GET
|
IRNDTL
|
[Common Header Parameters], irn={}
|
BaseURL/taxpayerapi/v1.0/einvoice
|
Get IRN JSON
|
GET
|
IRNJSON
|
[Common Header Parameters], rtnprd={}, suptyp={ B2B / SEZWP / SEZWOP / DEXP / EXPWP / EXPWOP }, stin={} or rtin={}
|
BaseURL/taxpayerapi/v1.0/einvoice/getIrnJson
|
Get Einvoice HSN Summary
|
GET
|
EINVHSN
|
[Common Header Parameters]
|
BaseURL/taxpayerapi/v1.0/einvoice
|
GSTN has released e-Invoice JSON download functionality which is accessible through Taxpayer APIs for all GSP partners
This functionality can be accessed through three APIs
1. Get IRN List – To get access token for a given return period, supply type and supplier/recipient.
Sample Sandbox URL:
https://gstsandbox.charteredinfo.com/taxpayerapi/dec/v1.0/einvoice?action=IRNLIST&gstin=27AANCS2882A1Z9&rtnprd=102023&username=MH_NT2.2274&suptyp=B2B&stin=27AANCS2882A1Z9&ret_period=102023
Sample Success Response:
{
"est": "30",
"token": "dfe6d4ab05aa4ec991fe7bf2fdcdafe8"
}
2. Get IRN Details – To get e-Invoice standard JSON with signed payloads for a specific IRN.
Sample Sandbox URL:
https://gstsandbox.charteredinfo.com/taxpayerapi/dec/v1.0/einvoice?action=IRNDTL&gstin=27AANCS2882A1Z9&MH_NT2.2274&irn=9a151372827d97f7496fb2ce4dc48d6ec9c48e277661cf206257e60901ef6530
Sample Success Response:
{
"RequestDate": "2023-10-18 14:18:42",
"data": {
"AckNo": 172313650118675,
"AckDt": "2023-10-14 16:58:00",
"Irn": "9a151372827d97f7496fb2ce4dc48d6ec9c48e277661cf206257e60901ef6530",
"SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkI4RDYzRUNCNThFQTVFNkY0QUFDM0Q1MjQ1NDNCMjI0NjY2OUIwRjgiLCJ4NXQiOiJ1TlkteTFqcVhtOUtyRDFTUlVPeUpHWnBzUGciLCJ0eXAiOiJKV1QifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxNzIzMTM2NTAxMTg2NzUsXCJBY2tEdFwiOlwiMjAyMy0xMC0xNCAxNjo1ODowMFwiLFwiSXJuXCI6XCI5YTE1MTM3MjgyN2Q5N2Y3NDk2ZmIyY2U0ZGM0OGQ2ZWM5YzQ4ZTI3NzY2MWNmMjA2MjU3ZTYwOTAxZWY2NTMwXCIsXCJWZXJzaW9uXCI6XCIxLjFcIixcIlRyYW5EdGxzXCI6e1wiVGF4U2NoXCI6XCJHU1RcIixcIlN1cFR5cFwiOlwiQjJCXCIsXCJSZWdSZXZcIjpcIk5cIn0sXCJEb2NEdGxzXCI6e1wiVHlwXCI6XCJJTlZcIixcIk5vXCI6XCJUS0QyMzI0MTIzM1wiLFwiRHRcIjpcIjE0LzEwLzIwMjNcIn0sXCJTZWxsZXJEdGxzXCI6e1wiR3N0aW5cIjpcIjA3QUFDQ0MxNTk2UTFaNFwiLFwiTGdsTm1cIjpcIkNoYXJ0ZXJlZCBJbmZvcm1hdGlvbiBTeXN0ZW1zIFByaXZhdGUgTGltaXRlZFwiLFwiVHJkTm1cIjpcIkNoYXJ0ZXJlZCBJbmZvcm1hdGlvbiBTeXN0ZW1zIFByaXZhdGUgTGltaXRlZFwiLFwiQWRkcjFcIjpcIjIyMi0yMjMsIER1cmdhIENoYW5iZXJzLCAxMzMzLTM0LCBcIixcI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J2w6kdHF8zSoLimqtH-OMI9rg1uFvDfzVyFtOYE0_qMeeMeAtLdAtGHlYIqorjvCiLSN7nE_WAXG88uJ06OX4CTJPm6g3Df6RHP03Wy--oZsw3Y2qxx_5AqzuyHXDFubpfLoJjWhqbKjVBcGm7NB6WgvcBB4mL26eCE5C-XbK5htqxvLjCrvg",
"Status": "ACT"
}
}
3. Get File Details - To fetch list of JSON files having IRNs and basic details without signed payloads based on token from Get IRN List API.
Sample Sandbox URL:
https://gstsandbox.charteredinfo.com/taxpayerapi/dec/v1.0/einvoice?action=FILEDETL&gstin=27AANCS2882A1Z9&token=dfe6d4ab05aa4ec991fe7bf2fdcdafe8&username=MH_NT2.2274&ret_period=102023
Sample Success Response:
{
"ek": "vFnF2punW59JbI+mYRMqUdZ40+Jsiy3ts6vyT24/Ly4=",
"urls": [
{
"ic": 5,
"ul": "https://uatfiles.gst.gov.in/einvdownloads/16122023/EXCEL/dfe6d4ab05aa4ec991fe7bf2fdcdafe8/27AANCS2882A2Z8_102023_1_Generated.tar.gz?md5=UgwIopl4siaRFfBOvEbs9A&expires=1702880898",
"hash": "9a151372827d97f7496fb2ce4dc48d6ec9c48e277661cf206257e60901ef6530"
}
],
"fc": 1
}
4. Get IRN Json – This API is to get list of IRN Jsons
Sample Sandbox URL:
https://gstsandbox.charteredinfo.com/taxpayerapi/dec/v1.0/einvoice/getIrnJson?action=IRNJSON&gstin=27AANCS2882A1Z9&rtnprd=102024&username=MH_NT2.2274&suptyp=B2B&stin=27AANCS2882A1Z9&ret_period=102024
Sample Success Response:
{"est":"30","token":"55e93db02b07489dbe8e718884d2b9ea"}
Access flow of APIs :
Get IRN List → Get File details → Get IRN details (for each IRN from file details)
Return period includes previous six months and current month. And it is to be supplied as individual month in Get IRN List API.