Skip to content

Create eDocument by IRN Response#

Create eDocument by IRN is used to Create an eDocument by eDocument IRN.

Route

/invx/apis/{iridessa-version}/orgs/{org-id}/invoice/by-irn-response

- active 'iridessa-version': v1
- method: POST

URL Parameters#

Name Description Type
iridessa-version version of the API
for example, v1
string
org-id theodore organisation id string
doc-id documentation id string

Headers#

All headers are mentioned in common headers

Request#

Please refer the following request body for reference-

Sample request body

[
  {
    "AckNo": "262210035304826",
    "AckDt": "2022-11-02 15:23:00",
    "Irn": "a94f214531282424aefa30ce6c17d2b49118bf91556b28733444045f1c605283",
    "SignedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkVEQzU3REUxMzU4QjMwMEJBOUY3OTM0MEE2Njk2ODMxRjNDODUwNDciLCJ0eXAiOiJKV1QiLCJ4NXQiOiI3Y1Y5NFRXTE1BdXA5NU5BcG1sb01mUElVRWMifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoyNjIyMTAwMzUzMDQ4MjYsXCJBY2tEdFwiOlwiMjAyMi0xMS0wMiAxNToyMzowMFwiLFwiSXJuXCI6XCJhOTRmMjE0NTMxMjgyNDI0YWVmYTMwY2U2YzE3ZDJiNDkxMThiZjkxNTU2YjI4NzMzNDQ0MDQ1ZjFjNjA1MjgzXCIsXCJWZXJzaW9uXCI6XCIxLjFcIixcIlRyYW5EdGxzXCI6e1wiVGF4U2NoXCI6XCJHU1RcIixcIlN1cFR5cFwiOlwiQjJCXCIsXCJSZWdSZXZcIjpcIk5cIixcIklnc3RPbkludHJhXCI6XCJOXCJ9LFwiRG9jRHRsc1wiOntcIlR5cFwiOlwiSU5WXCIsXCJOb1wiOlwiTUcwMDVcIixcIkR0XCI6XCIyMS8wNy8yMDIxXCJ9LFwiU2VsbGVyRHRsc1wiOntcIkdzdGluXCI6XCIyNEFBQVBJMzE4Mk0wMDJcIixcIkxnbE5tXCI6XCJKS0wgUHZ0LiBMdGRcIixcIlRyZE5tXCI6XCJKS0wgUHZ0LiBMdGRcIixcIkFkZHI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vcvhGzb-QvANVh_3arodq6YsYvYAk_5J_L13rHu6ZqK9-P1M-U-IpPg6JIkWl28hVvhPkqRjWKnkkBBv49HA7Yke0_8c1Zs_wy3aT0hftWF7_TI8rXVE-DDpLBWJoIfHtpQwuG7kC9ikOdhoottPV3ev-WjUYmGlP1JTG4q3806i2mpPoIPOwPsLLa99dHXg",
    "Status": "ACT",
    "EwbNo": 231009838770,
    "EwbDt": "2022-11-02 15:23:00",
    "EwbValidTill": "2022-11-02 23:59:59",
    "Remarks": null
  }
]

Response#

Successful response will have the response in “data” attribute as a json.

Sample response body

{
  "status": "1",
  "data": [
    {
      "itemStatus": "1",
      "itemData": {
        "id": "3dcf56f1-3699-41a0-8087-7dba3a6f2215",
        "irn": "08c27d85081bc1a5abd4f17a64bc16963a2d55dcba4f904375278a1b6a09a976",
        "docNumber": "PBEAC9E7463154B9",
        "docType": "100",
        "docDate": "23/01/2023",
        "sellerGstin": "27AAAPI3182M002",
        "buyerGstin": "27ACBPN2353E1ZX",
        "irdDocType":"POST",
        "registeredOn": 1674449635000,
        "ewbNo": 231009845697,
        "ewbDate": 1674449640000,
        "ewbValidTill": 1674584940000,
        "amount": 100,
        "acceptanceComments": null,
        "denialComments": null,
        "disputeComments": null,
        "cancellationComments": null,
        "cancellationReason": null,
        "status": "200",
        "createdByUserId": "3e193e19-0d70-4938-9698-287f8bd947fb",
        "createdOn": 1674449575274,
        "lastUpdatedByUserId": null,
        "lastUpdated": null,
        "annotations": [],
        "irnResponse": {
          "ackDt": "09/12/2022",
          "ewbDt": "09/12/2022",
          "signedInvoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkVEQzU3REUxMzU4QjMwMEJBOUY3OTM0MEE2Njk2ODMxRjNDODUwNDciLCJ0eXAiOiJKV1QiLCJ4NXQiOiI3Y1Y5NFRXTE1BdXA5NU5BcG1sb01mUElVRWMifQ.eyJkYXRhIjoie1wiQWNrTm9cIjoxMjIyMTAwNzMzMDQ5NTksXCJBY2tEdFwiOlwi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XTE1BdXA5NU5BcG1sb01mUElVRWMifQ.eyJkYXRhIjoie1wiU2VsbGVyR3N0aW5cIjpcIjI3QUFBUEkzMTgyTTAwMlwiLFwiQnV5ZXJHc3RpblwiOlwiMjdBQ0JQTjIzNTNFMVpYXCIsXCJEb2NOb1wiOlwiVUQ2MTIyNDJENzJCMzRGNlwiLFwiRG9jVHlwXCI6XCJJTlZcIixcIkRvY0R0XCI6XCIwOS8xMi8yMDIyXCIsXCJUb3RJbnZWYWxcIjoxMDAsXCJJdGVtQ250XCI6MSxcIk1haW5Ic25Db2RlXCI6XCIzMzA1MjAwMFwiLFwiSXJuXCI6XCJlODJkN2VkYjg5MjY0YjVmZGQxOGFmZDJhZGMzYzYzNzZhMmIzZTg3MmZmMWFkZWRlYjQ4YWRjMDQwMDMzMzdjXCIsXCJJcm5EdFwiOlwiMjAyMi0xMi0wOSAxNDozNToxMlwifSIsImlzcyI6Ik5JQyJ9.HqbLxzB4OsPSyJk0iwydm5vlSrny1drkLEPxBS2j1fRGWilPicT9LNPKXEO2Bpl0NHeFtAqLgPJ8lge1WbclM7sSAQQ-Caj8K1JPPg4I1m3GB9G5MMUk7IfEpM680doI_dz-k72qHAAX2oMbwGxh3e1j_pnxDHjeULIzKGTqBf8gHKapyc00GvHyT3wYteF6VSc5K5BwFS6dz2LnX0yBGcIgGqwy1TJKae8wQzAGAoPmsNL8dk6IlXLlR3sXQo__dBrPnetEnMPE7brzF7ox2BL3xe3XyVI01bNR03VFidH9-O0DTX_WxcyMotm-KuLn5OBK-4NXSnbMqSwJes7TaA",
          "remarks": null,
          "status": "ACT",
          "irn": "e82d7edb89264b5fdd18afd2adc3c6376a2b3e872ff1adedeb48adc04003337c",
          "ewbNo": 221009839051,
          "ewbValidTill": "10/12/2022"
        }
      },
      "itemErrors": null,
      "itemInfo": null,
      "itemKey": null
    }
  ],
  "error": null,
  "info": null
}

Note#

status field in document is the state of the Document generated. Different Document states are as bellow -

  • 100 -> DRAFT
  • 120 -> REGISTRATIONFAILED
  • 200 -> CREATED
  • 210 -> ACCEPTED
  • 220 -> DENIED
  • 230 -> DISPUTED
  • 240 -> CANCELLED
  • 250 -> FROZEN
  • 260 -> DELETE

Last update: January 30, 2023