# Get E-Invoice by IRN

You can get details of an invoice by sending a **`GET`** request to E-Invoicing API with the following request headers.

### Request Method

GET

### Request URL

```
{{HOST}}/einv/v2/eInvoice/get?irn={{IRN_number}}
```

### Request Headers

<table><thead><tr><th width="238">PARAMETER</th><th width="192">PARAM TYPE</th><th width="150">TYPE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>X-Cleartax-Auth-Token</td><td>Header</td><td>String</td><td>Mandatory. The auth token generated from ClearTax user id and password. <a href="https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/authentication-token">Know how.</a></td></tr><tr><td>gstin</td><td>Header</td><td>String</td><td>Mandatory. GSTIN number for the user</td></tr></tbody></table>

### Request Path Params

There are no path parameters for this API.

### Request Query Params

<table><thead><tr><th width="150">KEY</th><th width="185.69472182596292">PARAM TYPE</th><th width="150">TYPE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>irn</td><td>Query</td><td>String</td><td>Mandatory. IRN number. Multiple allowed</td></tr></tbody></table>

### Request Body

There is no request body for this API.

### Response Status Codes

| HTTP Status Code | Description                                                                  |
| ---------------- | ---------------------------------------------------------------------------- |
| 200              | For a successfully processed request (may be a success or validation error). |
| 401              | If the user is not authenticated for the operation.                          |
| 403              | If the user is not authorized for the operation.                             |
| 500              | If there are any unhandled exceptions on the Clear side.                     |

### Response Schema

| Parameter        | Data Type | Field Validations                                            | Description                            |
| ---------------- | --------- | ------------------------------------------------------------ | -------------------------------------- |
| document\_status | Status    | <p>Enum: IRN_GENERATED, NOT_CREATED,</p><p>IRN_CANCELLED</p> | Status of the IRN                      |
| govt\_response   | Object    | NA                                                           | Response containing EInvoice details.  |

#### Govt. Response Object

| Parameter     | Data Type | Field Validations | Description                           |
| ------------- | --------- | ----------------- | ------------------------------------- |
| Success       | Boolean   | ‘Y’, ‘N’          | If Success or Failure.                |
| AckNo         | Number    | NA                | Acknowledgement Number                |
| AckDt         | String    | NA                | Acknowledgement Date                  |
| IRN           | String    | 64 Digits         | Invoice Reference Number              |
| SignedInvoice | String    | NA                | Signed Invoice                        |
| SignedQRCode  | String    | NA                | QR code in JWT String.                |
| Status        | String    | <p><br>NA</p>     | <p><br>Status of the Invoice</p>      |
| EwbNo         | Number    | NA                | E-Way bill Number.                    |
| EwbDt         | String    | NA                | E-Way bill generation date and time.  |
| EwbValidTill  | String    | NA                | E-Way bill expiry date and time.      |

### Sample Request & Response&#x20;

#### Request Body

There is no request body for this API.

#### Response - **Success:**&#x20;

**HTTP Status Code: 200 OK**

{% tabs %}
{% tab title="JSON Response - Success" %}
```json
[
    {
        "custom_fields": null,
        "deleted": false,
        "document_status": "IRN_GENERATED",
        "error_response": null,
        "errors": null,
        "govt_response": {
            "Success": "Y",
            "AckNo": 112310186022618,
            "AckDt": "2023-10-18 12:23:00",
            "Irn": "833aad2dba44d53d118f79eb8f5018c6ecf1419c83bef79214ba217253e22639",
            "SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxMTIzMTAxODYwMjI2MTgsXCJBY2tEdFwiOlwiMjAyMy0xMC0xOCAxMjoyMzowMFwiLFwiSXJuXCI6XCI4MzNhYWQyZGJhNDRkNTNkMTE4Zjc5ZWI4ZjUwMThjNmVjZjE0MTljODNiZWY3OTIxNGJhMjE3MjUzZTIyNjM5XCIsXCJWZXJzaW9uXCI6XCIxLjFcIixcIlRyYW5EdGxzXCI6e1wiVGF4U2NoXCI6XCJHU1RcIixcIlN1cFR5cFwiOlwiQjJCXCIsXCJSZWdSZXZcIjpcIllcIixcIklnc3RPbkludHJhXCI6XCJOXCJ9LFwiRG9jRHRsc1wiOntcIlR5cFwiOlwiSU5WXCIsXCJOb1wiOlwiV0FSQjJCNjhcIixcIkR0XCI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4QwNdAaFNFyRepTL5lr80ik-w8NOsW4V-BjgKVyVNl4r_YzfomijfYZzYgNOfhm0GEpECD6xK2uR_r23GpHQ-qwOxwAQE0ciaZN_BKqXmqjXwrgoQeVKGm9XiqiFxydjNvged1i0Cy2PrNYMUufr4kyfHW9zaniWkURLivUPW13TQWzo6qE6nQ0Ta7Yk_lPGdG_k0O5tlHDxszoK8wtl36q4VGSd_-mvW5qkKVMp0R2Ch97gEAYbyzMW1tSR00UQ",
            "Status": "ACT",
            "EwbNo": 191010273815,
            "EwbDt": "2023-10-18 12:23:00",
            "EwbValidTill": "2023-10-19 23:59:00"
        },
        "group_id": null,
        "gstin": "29AAFCD5862R000",
        "is_deleted": false,
        "owner_id": null,
        "tag_identifier": null,
        "transaction": {
            "Version": "1.1",
            "Irn": "833aad2dba44d53d118f79eb8f5018c6ecf1419c83bef79214ba217253e22639",
            "TranDtls": {
                "TaxSch": "GST",
                "RegRev": "Y",
                "SupTyp": "B2B",
                "IgstOnIntra": "N"
            },
            "DocDtls": {
                "Typ": "INV",
                "No": "WARB2B68",
                "Dt": "10/10/2023"
            },
            "SellerDtls": {
                "Gstin": "29AAFCD5862R000",
                "LglNm": "NIC Company Pvt Ltd",
                "TrdNm": "NIC Industries",
                "Addr1": "5th block, kuvempu layout",
                "Addr2": "kuvempu layout",
                "Loc": "GANDHINAGAR",
                "Pin": 560037,
                "Stcd": "29",
                "Ph": "9000000",
                "Em": "abc@gmail.com"
            },
            "BuyerDtls": {
                "Gstin": "29AWGPV7107B1Z1",
                "LglNm": "XYZ Company Pvt Ltd",
                "TrdNm": "XYZ Industries",
                "Pos": "12",
                "Addr1": "7th block, kuvempu layout",
                "Addr2": "kuvempu layout",
                "Loc": "GANDHINAGAR",
                "Pin": 562160,
                "Stcd": "29",
                "Ph": "91111111111",
                "Em": "xyz@yahoo.com"
            },
            "DispDtls": {
                "Nm": "ABC company pvt ltd",
                "Addr1": "7th block, kuvempu layout",
                "Addr2": "kuvempu layout",
                "Loc": "Banagalore",
                "Pin": 562160,
                "Stcd": "29"
            },
            "ShipDtls": {
                "Gstin": "29AWGPV7107B1Z1",
                "LglNm": "CBE company pvt ltd",
                "TrdNm": "kuvempu layout",
                "Addr1": "7th block, kuvempu layout",
                "Addr2": "kuvempu layout",
                "Loc": "Banagalore",
                "Pin": 562160,
                "Stcd": "29"
            },
            "ItemList": [
                {
                    "SlNo": "1",
                    "PrdDesc": "Rice",
                    "IsServc": "N",
                    "HsnCd": "710692",
                    "Barcde": "123456",
                    "Qty": 0.200,
                    "Unit": "BAG",
                    "UnitPrice": 100.000,
                    "TotAmt": 20.00,
                    "AssAmt": 20.00,
                    "GstRt": 18.00,
                    "IgstAmt": 3.60,
                    "CgstAmt": 0.00,
                    "SgstAmt": 0.00,
                    "TotItemVal": 23.60
                }
            ],
            "ValDtls": {
                "AssVal": 20.00,
                "CgstVal": 0.00,
                "SgstVal": 0.00,
                "IgstVal": 3.60,
                "TotInvVal": 23.60,
                "TotInvValFc": 12897.70
            },
            "EwbDtls": {
                "TransId": "12AWGPV7107B1Z1",
                "TransName": "XYZ EXPORTS",
                "TransMode": "1",
                "Distance": 100,
                "VehNo": "ka123456",
                "VehType": "R"
            }
        },
        "transaction_id": "29AAFCD5862R000_WARB2B68_INV_2023",
        "transaction_metadata": null
    }
]
```
{% endtab %}

{% tab title="JSON Response - Failure" %}
```json
[
    {
        "custom_fields": null,
        "deleted": false,
        "document_status": "IRN_GENERATION_FAILED",
        "error_response": null,
        "errors": null,
        "govt_response": {
            "Success": "N",
            "ErrorDetails": [
                {
                    "error_code": "2148",
                    "error_message": "Requested IRN data is not available",
                    "error_source": "GOVT"
                }
            ]
        },
        "group_id": null,
        "gstin": "29AAFCD5862R000",
        "is_deleted": false,
        "owner_id": "2e74ec05-e37b-4b75-a947-add6f67540b7",
        "tag_identifier": null,
        "transaction": null,
        "transaction_id": null,
        "transaction_metadata": null
    }
]
```
{% endtab %}

{% tab title="XML Response - Success" %}
```xml
<?xml version='1.0' encoding='UTF-8'?>
<eInvoiceTransactionDTOes>
    <invoice_details>
        <deleted>false</deleted>
        <document_status>IRN_GENERATED</document_status>
        <govt_response>
            <Success>Y</Success>
            <AckNo>32500000221</AckNo>
            <AckDt>2025-06-05 19:06:09</AckDt>
            <Irn>28ff039326b40dbd6295a48416f6061177af86ba1e9263e62b75b4e8a2e03db8</Irn>
            <SignedInvoice>eyJ4NXQiOiI0NDE2YjBhMWNjZjA0MjQ3Mzg0Mzk5YmQ4OGVjZGRkOWRjMzcxZTBkIiwia2lkIjoiRURDNTdERTEzNThCMzAwQkE5Rjc5MzQwQTY2OTY4MzFGM0M4NTA0NyIsInR5cGUiOiJqd3QiLCJhbGciOiJSUzUxMiJ9.eyJkYXRhIjoie1wiQWNrTm9cIjozMjUwMDAwMDIyMSxcIkFja0R0XCI6XCIyMDI1LTA2LTA1IDE5OjA2OjA5XCIsXCJWZXJzaW9uXCI6XCIxLjFcIixcIklyblwiOlwiMjhmZjAzOTMyNmI0MGRiZDYyOTVhNDg0MTZmNjA2MTE3N2FmODZiYTFlOTI2M2U2MmI3NWI0ZThhMmUwM2RiOFwiLFwiVHJhbkR0bHNcIjp7XCJUYXhTY2hcIjpcIkdTVFwiLFwiUmVnUmV2XCI6XCJOXCIsXCJTdXBUeXBcIjpcIkIyQlwiLFwiSWdzdE9uSW50cmFcIjpcIk5cIn0sXCJEb2NEdGxzXCI6e1wiVHlwXCI6XCJJTlZcIixcIk5vXCI6XCJKZXRDaGVtaWNhbHMyXCIsXCJEdFwiOlwiMDUvMDYvMjAyNVwifSxcIlNlbGxlckR0bHNcIjp7XCJzZWxsZXJTZXpcIjpmYWxzZSxcIkdzdGluXCI6XCIyOUFBRkNENTg2MlIwMDBcIixcIkxnbE5tXCI6XCJOSUMgQ29tcGFueSBQdnQgTHRkXCIsXCJUcmRObVwiOlwiTklDIEluZHVzdHJpZXNcIixcIkFkZHIxXCI6XCI1dGggYmxvY2ssIGt1dmVtcHUgbGF5b3V0XCIsXCJBZGRyMlw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NjExNzdhZjg2YmExZTkyNjNlNjJiNzViNGU4YTJlMDNkYjhcIixcIklybkR0XCI6XCIyMDI1LTA2LTA1IDE5OjA2OjA5XCJ9IiwiaXNzIjoiQ0xFQVIgSVJQIn0.NYClEKsH0AGLSp1d09ppPMW-a0vx1yYO7OjwvrjMpGSY3SpZryBiE2tOrRKnF4svUIBra1KGwBzb9fxO477vgGJTYS4wUmymk5lWlCFXfBmT9PtvXrT1o38wQaVP-OSXcUkfNfg3UhWYyW1AIGanTJs5bTj3OD6MR7NueO7BTbHUjHngpQhQ3nODjnfTwoJRV826sDoOsEY7NcaqFWt3B4JpZJLfoNcX_RTbKaoD-ZlKB-gXjU59zg_giq-aN186-y4cRT_FLfIb1HSejCe8-kAJk_XEWI_pJzUBBFO9ClBCLfW5CPAqQ-PFADUeV7tBeEkqql2apB5vVLH0zgunxwYFBhXYDlUhdu7su_4RTesK-l6NcB2T2uNoYSSMDRuSS1a1I9WKsIg2lEmPDhYvoJyb_w0a82xWdifBNCtrbG8MxkFYdBlIgWQ1TU9L_HIDdP6L14Y2AmDfXXxHzLReA5wJjrF1jIJUYjVAqwUiB6EtTfhu510dCDs5wSI47UNNL5FHhDRPkp4WskYeL6CDSD-GbdNi5rYuvAefsfUKFBU7vLIfsehMlx-hS6whLrMH11j4N9colvW2-FNcnWvBShCVvpP8JZWDo0CyY00ifaxk3UjsBTMPHsVMhzadDk5VZzLu0adXmK8OMexjvM2_siLqMtKMDu11UJKW6XW9les</SignedQRCode>
            <Status>ACT</Status>
        </govt_response>
        <gstin>29AAFCD5862R000</gstin>
        <is_deleted>false</is_deleted>
        <transaction>
            <Version>1.1</Version>
            <Irn>28ff039326b40dbd6295a48416f6061177af86ba1e9263e62b75b4e8a2e03db8</Irn>
            <TranDtls>
                <TaxSch>GST</TaxSch>
                <RegRev>N</RegRev>
                <SupTyp>B2B</SupTyp>
                <IgstOnIntra>N</IgstOnIntra>
            </TranDtls>
            <DocDtls>
                <Typ>INV</Typ>
                <No>JetChemicals2</No>
                <Dt>05/06/2025</Dt>
            </DocDtls>
            <SellerDtls>
                <Gstin>29AAFCD5862R000</Gstin>
                <LglNm>NIC Company Pvt Ltd</LglNm>
                <TrdNm>NIC Industries</TrdNm>
                <Addr1>5th block, kuvempu layout</Addr1>
                <Addr2>kuvempu layout</Addr2>
                <Loc>GANDHINAGAR</Loc>
                <Pin>560037</Pin>
                <Stcd>29</Stcd>
                <Ph>9000000000</Ph>
                <Em>abc@gmail.com</Em>
            </SellerDtls>
            <BuyerDtls>
                <Gstin>29AWGPV7107B1Z1</Gstin>
                <LglNm>XYZ Company Pvt Ltd</LglNm>
                <TrdNm>XYZ Industries</TrdNm>
                <Pos>12</Pos>
                <Addr1>7th block, kuvempu layout</Addr1>
                <Addr2>kuvempu layout</Addr2>
                <Loc>GANDHINAGAR</Loc>
                <Pin>562160</Pin>
                <Stcd>29</Stcd>
                <Ph>91111111111</Ph>
                <Em>xyz@yahoo.com</Em>
            </BuyerDtls>
            <ItemList>
                <SlNo>1</SlNo>
                <PrdDesc>Rice</PrdDesc>
                <IsServc>N</IsServc>
                <HsnCd>10019920</HsnCd>
                <Barcde>123456</Barcde>
                <Qty>100.345</Qty>
                <FreeQty>10.000</FreeQty>
                <Unit>BAG</Unit>
                <UnitPrice>99.545</UnitPrice>
                <TotAmt>9988.84</TotAmt>
                <Discount>10.00</Discount>
                <PreTaxVal>1.00</PreTaxVal>
                <AssAmt>9978.84</AssAmt>
                <GstRt>12.00</GstRt>
                <IgstAmt>1197.46</IgstAmt>
                <CgstAmt>0.00</CgstAmt>
                <SgstAmt>0.00</SgstAmt>
                <CesRt>5.00</CesRt>
                <CesAmt>498.94</CesAmt>
                <CesNonAdvlAmt>10.00</CesNonAdvlAmt>
                <StateCesRt>12.00</StateCesRt>
                <StateCesAmt>1197.46</StateCesAmt>
                <StateCesNonAdvlAmt>5.00</StateCesNonAdvlAmt>
                <OthChrg>10.00</OthChrg>
                <TotItemVal>12897.70</TotItemVal>
                <OrdLineRef>3256</OrdLineRef>
                <OrgCntry>AG</OrgCntry>
                <PrdSlNo>12345</PrdSlNo>
                <BchDtls>
                    <Nm>123456</Nm>
                    <ExpDt>01/08/2020</ExpDt>
                    <WrDt>01/09/2020</WrDt>
                </BchDtls>
                <AttribDtls>
                    <Nm>Rice</Nm>
                    <Val>10000</Val>
                </AttribDtls>
            </ItemList>
            <ValDtls>
                <AssVal>9978.84</AssVal>
                <CgstVal>0.00</CgstVal>
                <SgstVal>0.00</SgstVal>
                <IgstVal>1197.46</IgstVal>
                <CesVal>508.94</CesVal>
                <StCesVal>1202.46</StCesVal>
                <Discount>10.00</Discount>
                <OthChrg>20.00</OthChrg>
                <RndOffAmt>0.30</RndOffAmt>
                <TotInvVal>12908.00</TotInvVal>
                <TotInvValFc>12897.70</TotInvValFc>
            </ValDtls>
            <PayDtls>
                <Nm>ABCDE</Nm>
                <AccDet>5697389713210</AccDet>
                <Mode>Cash</Mode>
                <FinInsBr>SBIN11000</FinInsBr>
                <PayTerm>100</PayTerm>
                <PayInstr>Gift</PayInstr>
                <CrTrn>test</CrTrn>
                <DirDr>test</DirDr>
                <CrDay>100</CrDay>
                <PaidAmt>10000.00</PaidAmt>
                <PaymtDue>5000.00</PaymtDue>
            </PayDtls>
            <RefDtls>
                <InvRm>TEST</InvRm>
                <DocPerdDtls>
                    <InvStDt>01/08/2020</InvStDt>
                    <InvEndDt>01/09/2020</InvEndDt>
                </DocPerdDtls>
                <PrecDocDtls>
                    <InvNo>DOC/002</InvNo>
                    <InvDt>01/08/2020</InvDt>
                    <OthRefNo>123456</OthRefNo>
                </PrecDocDtls>
                <ContrDtls>
                    <RecAdvRefr>Doc/003</RecAdvRefr>
                    <RecAdvDt>01/08/2020</RecAdvDt>
                    <TendRefr>Abc001</TendRefr>
                    <ContrRefr>Co123</ContrRefr>
                    <ExtRefr>Yo456</ExtRefr>
                    <ProjRefr>Doc-456</ProjRefr>
                    <PORefr>Doc-789</PORefr>
                    <PORefDt>01/08/2020</PORefDt>
                </ContrDtls>
            </RefDtls>
            <AddlDocDtls>
                <Url>https://einv-apisandbox.nic.in</Url>
                <Docs>Test Doc</Docs>
                <Info>Document Test</Info>
            </AddlDocDtls>
        </transaction>
        <transaction_id>29AAFCD5862R000_JetChemicals2_INV_2025</transaction_id>
    </invoice_details>
</eInvoiceTransactionDTOes>
```
{% endtab %}

{% tab title="XML Response - Failure" %}
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eInvoiceTransactionDTOes>
    <invoice_details>
        <owner_id>2e74ec05-e37b-4b75-a947-add6f67540b7</owner_id>
        <gstin>29AAFCD5862R000</gstin>
        <document_status>IRN_GENERATION_FAILED</document_status>
        <govt_response>
            <Success>N</Success>
            <ErrorDetails>
                <error_code>2148</error_code>
                <error_message>Requested IRN data is not available</error_message>
                <error_source>GOVT</error_source>
            </ErrorDetails>
        </govt_response>
        <is_deleted>false</is_deleted>
    </invoice_details>
</eInvoiceTransactionDTOes>
```
{% endtab %}
{% endtabs %}

**Response - Failure**:&#x20;

**HTTP Status Code: 200 OK**

{% tabs %}
{% tab title="JSON" %}
```json
[
    {
        "custom_fields": null,
        "deleted": false,
        "document_status": "NOT_CREATED",
        "error_response": null,
        "errors": null,
        "govt_response": {
            "Success": "N",
            "ErrorDetails": [
                {
                    "error_code": "107",
                    "error_message": "null : Invalid IRN, it must be equal to 64 characters in length. Please send a valid value of IRN and try again.",
                    "error_source": "CLEARTAX"
                }
            ]
        },
        "group_id": null,
        "gstin": null,
        "is_deleted": false,
        "owner_id": null,
        "tag_identifier": null,
        "transaction": null,
        "transaction_id": null,
        "transaction_metadata": null
    }
]
```
{% endtab %}

{% tab title="XML" %}
```xml
<?xml version='1.0' encoding='UTF-8'?>
<eInvoiceTransactionDTOes>
    <invoice_details>
        <deleted>false</deleted>
        <document_status>NOT_CREATED</document_status>
        <govt_response>
            <Success>N</Success>
            <ErrorDetails>
                <error_code>107</error_code>
                <error_message>null : Invalid IRN, it must be equal to 64 characters in length. Please send a valid value of IRN and try again.</error_message>
                <error_source>CLEARTAX</error_source>
            </ErrorDetails>
        </govt_response>
        <is_deleted>false</is_deleted>
    </invoice_details>
</eInvoiceTransactionDTOes>
```
{% endtab %}
{% endtabs %}

### API Validations

Currently there are no known validations for this API.

### API Constraints

A Maximum of 5 invoices can be fetched per API call.
