Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Generate IRN

You can generate an IRN by sending a POST request to the E-Invoicing API with the following request headers.

Request URL

POST: {{HOST}}/einv/v1/govt/api/Invoice/

Request Headers

Parameter
Data Type
Field Validations
Description

X-Cleartax-Auth-Token

String

NA

Mandatory. The auth token generated from ClearTax user id and password.

Content-Type

String

NA

Mandatory. This will always be "application/json" for JSON

gstin

String

NA

Mandatory. GSTIN number for the user

Sample Request and Response :

{
  "Version": "1.1",
  "TranDtls": {
    "TaxSch": "GST",
    "SupTyp": "RCMIMP",
    "RegRev": "Y",
    "IgstOnIntra": "N"
  },
  "DocDtls": {
    "Typ": "INV",
    "No": "SI/2026/002",
    "Dt": "02/01/2027"
  },
  "SellerDtls": {
    "Gstin": "URP",
    "LglNm": "Global Consulting LLC",
    "Addr1": "500 Market Street",
    "Loc": "SAN FRANCISCO",
    "Pin": 999999,
    "Stcd": "96"
  },
  "BuyerDtls": {
    "Gstin": "29AWGPV7107B1Z1",
    "LglNm": "XYZ Company Pvt Ltd",
    "Pos": "29",
    "Addr1": "7th block, kuvempu layout",
    "Loc": "BENGALURU",
    "Pin": 562160,
    "Stcd": "29"
  },
  "ItemList": [
    {
      "SlNo": "1",
      "PrdDesc": "Management consulting services",
      "IsServc": "Y",
      "HsnCd": "998311",
      "Qty": 1,
      "Unit": "OTH",
      "UnitPrice": 100000,
      "TotAmt": 100000,
      "AssAmt": 100000,
      "GstRt": 18,
      "IgstAmt": 18000,
      "CgstAmt": 0,
      "SgstAmt": 0,
      "TotItemVal": 118000,
      "OrgCntry": "US"
    }
  ],
  "ValDtls": {
    "AssVal": 100000,
    "IgstVal": 18000,
    "CgstVal": 0,
    "SgstVal": 0,
    "TotInvVal": 118000
  }
}

Response:

Last updated