Skip to content

Generate IRN Bulk#

Generate IRN(s) API supports creation of bulk e-invoices, as opposed to its basic counterpart. Create e-invoice in bulk is an asynchronous API, hence will give a task ID in response.

Given a task ID, you could fetch the task status using Status API. In order to download the result, you would need to use Download API.

Along with generation of IRNs, optionally you will be able to generate PDF and send emails to the either self or counter parties.

Route

/enriched/einv/{flynn-version}/{irp}/invoices

  • active ‘flynn-version’: v3.0
  • method: POST

URL Parameters#

Name Description Type
flynn-version version of the API
for example, v3.0
string
irp IRP Provider as per GST registration for e-invoicing enum (ni1, ni2)

Headers#

All headers as mentioned in the Enriched E-Invoice API introduction.

Tip

The only valid values for the header keys Content-Type and accept must have to be application/json.

Request#

Body consists of two sections, “payload” and “meta”. payload contains actual E-invoice documents (invoice, credit note or debit note) information for which IRN that has to be generated in a list. meta section of the request body consists of meta information for the call i.e., whether to generate PDF or list of email recipients to whom email will be send on successful IRN generation.

The schema of the payload is guided by the NIC portal. Please check the published documentation.

Sample Request Body - with Generate PDF as true, and a list of emails to send the PDF to

{
  "payload": [
    {
      "Version": "1.1",
      "Irn": "",
      "TranDtls": {
        "TaxSch": "GST",
        "SupTyp": "B2B",
        "RegRev": "N",
        "IgstOnIntra": "N"
      },
      "DocDtls": {
        "Typ": "INV",
        "No": "Z13F34C3906B148E",
        "Dt": "27/10/2020"
      },
      "SellerDtls": {
        "Gstin": "24AAAPI3182M002",
        "LglNm": "Acme Widgets Private Limited",
        "Addr1": "2345",
        "Loc": "Uttar Pradesh",
        "Pin": 382424,
        "Stcd": "24"
      },
      "BuyerDtls": {
        "Gstin": "27ACBPN2353E1ZX",
        "LglNm": "Long Term Enterprises LLP",
        "Pos": "27",
        "Addr1": "1234",
        "Loc": "Pune",
        "Pin": 400049,
        "Stcd": "27"
      },
      "ValDtls": {
        "AssVal": 0,
        "CgstVal": 0,
        "SgstVal": 222,
        "IgstVal": 0,
        "TotInvVal": 0
      },
      "DispDtls": {
        "Nm": "Acme Widgets Private Limited",
        "Addr1": "112",
        "Addr2": "Acme Building",
        "Loc": "ABC",
        "Pin": 382424,
        "Stcd": "24"
      },
      "ShipDtls": {
        "Gstin": "27ACBPN2353E1ZX",
        "LglNm": "Acme Widgets Private Limited",
        "TrdNm": "Acme Widgets Private Limited",
        "Addr1": "112",
        "Addr2": "Acme Building",
        "Loc": "ABC",
        "Pin": 400049,
        "Stcd": "27"
      },
      "PayDtls": {
        "Nm": "Acme Widgets Private Limited",
        "Mode": "Cash",
        "PayTerm": "100",
        "PayInstr": "100",
        "CrTrn": "100",
        "DirDr": "100",
        "CrDay": 100,
        "PaymtDue": 900,
        "PaidAmt": 100
      },
      "RefDtls": {
        "InvRm": "Remarks",
        "DocPerdDtls": {
          "InvStDt": "01/09/2020",
          "InvEndDt": "01/09/2020"
        }
      },
      "ExpDtls": {
        "ShipBNo": "shpbill123",
        "ShipBDt": "01/09/2020",
        "Port": "INYNL6",
        "RefClm": "N",
        "ForCur": "INR",
        "CntCode": "IN",
        "ExpDuty": 0
      },
      "ItemList": [
        {
          "SlNo": "1",
          "PrdDesc": "Acme product",
          "IsServc": "N",
          "HsnCd": "33052000",
          "UnitPrice": 1631.36,
          "TotAmt": 897.8,
          "AssAmt": 500.0,
          "GstRt": 18.0,
          "TotItemVal": 0.0,
          "Qty": 0,
          "FreeQty": 30.0,
          "Unit": "OTH",
          "Discount": 48940.8,
          "PreTaxVal": 0.0,
          "SgstAmt": 0.0,
          "CgstAmt": 0.0,
          "IgstAmt": 100.0,
          "CesRt": 0.0,
          "CesAmt": 0.0,
          "StateCesRt": 0,
          "StateCesAmt": 0,
          "StateCesNonAdvlAmt": 0,
          "CesNonAdvlAmt": 0.0,
          "OthChrg": 0.0
        },
        {
          "SlNo": "2",
          "PrdDesc": "Acme product",
          "IsServc": "N",
          "HsnCd": "33052000",
          "UnitPrice": 1631.36,
          "TotAmt": 897.8,
          "AssAmt": 500.0,
          "GstRt": 18.0,
          "TotItemVal": 0.0,
          "Qty": 0,
          "FreeQty": 30.0,
          "Unit": "OTH",
          "Discount": 48940.8,
          "PreTaxVal": 0.0,
          "SgstAmt": 0.0,
          "CgstAmt": 0.0,
          "IgstAmt": 100.0,
          "CesRt": 0.0,
          "CesAmt": 0.0,
          "StateCesRt": 0,
          "StateCesAmt": 0,
          "StateCesNonAdvlAmt": 0,
          "CesNonAdvlAmt": 0.0,
          "OthChrg": 0.0
        }
      ]
    }
  ],
  "meta": {
    "pdf": "Y",
    "emailRecipientList": [
      "accounts@yourcompany.com"
    ]
  }
}

Response#

200:#

Successful response will an async task-id. Using this task-id you will be able to fetch the status of the request.

Sample Response Body

{
  "status": "1",
  "data": {
    "task-id": "62cd1c61-1f10-4b50-a40d-333753802050"
  },
  "error": null,
  "info": null,
  "additionalInfo": null,
  "alert": null
}
Download API Response:#

Download API response is unique for each API.

Example

  {
    "status": "1",
    "data": [
      {
        "status": "1",
        "data": {
          "AckNo": "162310048493256",
          "AckDt": "2023-07-13 17:50:22",
          "Irn": "e1f719aa103d95e4ef77c4ac4d4c42f0b11fe4341a122cde91ff4680be0daed6",
          "SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxNjIzMTAwNDg0OTMyNTYsXCJBY2tEdFwiOlwiMjAyMy0wNy0xMyAxNzo1MDoyMlwiLFwiSXJuXCI6XCJlMWY3MTlhYTEwM2Q5NWU0ZWY3N2M0YWM0ZDRjNDJmMGIxMWZlNDM0MWExMjJjZGU5MWZmNDY4MGJlMGRhZWQ2XCIsXCJWZXJzaW9uXCI6XCIxLjFcIixcIlRyYW5EdGxzXCI6e1wiVGF4U2NoXCI6XCJHU1RcIixcIlN1cFR5cFwiOlwiQjJCXCIsXCJSZWdSZXZcIjpcIk5cIixcIklnc3RPbkludHJhXCI6XCJOXCJ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zNDFhMTIyY2RlOTFmZjQ2ODBiZTBkYWVkNlwiLFwiSXJuRHRcIjpcIjIwMjMtMDctMTMgMTc6NTA6MjJcIn0iLCJpc3MiOiJOSUMgU2FuZGJveCJ9.X-7A5aDImTcfuuk4r2Cre7ls530V2cqjgjXR4dCDifYFkCDWNvRoGAy79ut0VnVNghK2xR0FUbAYun6MINtNFExIXuXracvStJ580iYlBMi4vCNPQf8hVrKUb0wxuDnvJ5LX0B3Oee1OAMJC6tbnVE8hBrnORF-W-2fzBbus0gyunBfuYnzj2sJ2Su02UYB1hhZ9B3jOQnqPyd5bo2mIOAFfxeKrQ1Jra_bfLLngiASiKn_iB4s8DMvaF-6Ru6Rawy-4ufIF9-1ElrkHMn0PqaAcW52euoEgWgBg_OwIIAM1Nv6chaUn02FK9ruuKr5IXzWuu7wS2el0gKZzVTT7bQ",
          "Status": "ACT",
          "EwbNo": null,
          "EwbDt": null,
          "EwbValidTill": null,
          "Remarks": null
        },
        "error": null,
        "info": [
          {
            "InfCd": "EWBERR",
            "Desc": [
              {
                "ErrorCode": "4019",
                "ErrorMessage": "Provide Transporter ID in order to generate Part A of e-Way Bill"
              }
            ]
          }
        ],
        "additionalInfo": {
          "pdf": "24AAAPI3182M002__RAMIRNINV105__21-06-2021.pdf"
        },
        "alert": null
      },
      {
        "status": "1",
        "data": {
          "AckNo": "162310048493265",
          "AckDt": "2023-07-13 17:50:22",
          "Irn": "a4e5c871d0af00cf8500b57b565204ba6645bb7134efe3cf1598a924b2704854",
          "SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxNjIzMTAwNDg0OTMyNjUsXCJBY2tEdFwiOlwiMjAyMy0wNy0xMyAxNzo1MDoyMlwiLF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sXCJEb2NOb1wiOlwiUkFNSVJOSU5WMTAyXCIsXCJEb2NUeXBcIjpcIklOVlwiLFwiRG9jRHRcIjpcIjIxLzA2LzIwMjFcIixcIlRvdEludlZhbFwiOjMyMzQyLjMyLFwiSXRlbUNudFwiOjEsXCJNYWluSHNuQ29kZVwiOlwiMzQwMTMwOTBcIixcIklyblwiOlwiYTRlNWM4NzFkMGFmMDBjZjg1MDBiNTdiNTY1MjA0YmE2NjQ1YmI3MTM0ZWZlM2NmMTU5OGE5MjRiMjcwNDg1NFwiLFwiSXJuRHRcIjpcIjIwMjMtMDctMTMgMTc6NTA6MjJcIn0iLCJpc3MiOiJOSUMgU2FuZGJveCJ9.JbOqpKeJxeKKN-j7k7PLrZqNKDBzUVHFPb3Czza4WQ5RjxQJ_efTpZWc8AoMquBUAKGTMz_-dlrsew0GsRLakOBjcCWYr7Qfcz-iVUspCbV896jZ2XRJIZWfWIPk_NaUYuypFBquxw22uVQ-CJ0WAAvBPI9yB2WjZY0iZOqOy9xDtwJQgxN2lpYE_S-t4RfmmxV8Hcp6hOpqZZZ2NfkLTZtJnPunLJaLzmKINZKCqPmvi4C6bqEwCdHcNxgeLEqzOj92rEVcelj2AYajCUHprYEaf-Q6jNrZR0vSw1vUJGtLsMA6jl2ja09SLwQo3uVZcDYkzZlrctns_Qjb1-UR7Q",
          "Status": "ACT",
          "EwbNo": null,
          "EwbDt": null,
          "EwbValidTill": null,
          "Remarks": null
        },
        "error": null,
        "info": [
          {
            "InfCd": "EWBERR",
            "Desc": [
              {
                "ErrorCode": "4019",
                "ErrorMessage": "Provide Transporter ID in order to generate Part A of e-Way Bill"
              }
            ]
          }
        ],
        "additionalInfo": {
          "pdf": "24AAAPI3182M002__RAMIRNINV102__21-06-2021.pdf"
        },
        "alert": null
      }
    ],
    "error": null,
    "info": null,
    "additionalInfo": null,
    "alert": null
  }    

data key will contain the list of responses for the respective list of documents requested for generating e-invoices.

Each successful item of the list contains, two key - status and details. For successful generation of IRN status will be True and details will contain response as per the ‘E-Invoice API Documentation’ published by NIC.

In the error scenario value of the status key will be False and error will contain error details.

List order will be maintained in the json response.

Notes#

IRP - nic is deprecated. Instead of it please use ni1 or ni2