Overview

In case where same IRN is generated with more than one IRP due to unsuccessful de-duplication check, only one of the IRN so generated at one of the IRP gets registered at the de-duplication system. The other IRNs generated at other IRPs will be marked with status as Rejected. To get the list of such rejected IRNs for a given date, this API can be used.

The format and details of Rejected IRN details API request is depicted in following table.

URL

<URL>/api/invoice/rejectedirns?date=<Rejected Date>

Content-Type

application/json

Method

GET

URL Parameters

Rejected Date (dd/mm/yyyy)

Request Payload

Request Header

Attributes Description
client_id

client id to be provided by E-Invoice System

client_secret

client secret to be provided by E-Invoice System

Gstin

GSTIN of the authenticated user

sup_gstin

(Optional) Supplier GSTIN, only in case E Comm. operator is getting IRN details

user_name

User name of the authenticated user

AuthToken

Authentication token returned by the E-Invoice system

Response Payload

Attributes Description
Status Status of the Rejected IRN details request(values 1-Success and 0- Failure)
Data If Status is ‘1’
ErrorDetails If Status is ‘0’
InfoDtls Any additional message to be conveyed would be passed.

If Status is "1"

Data Base 64 encoded string of decrypted invoice JSON using Sek.
After decrypting Data list of rejected IRNs details will be shown.

If Status is "0"

ErrorDetails Base 64 encoded string.
On decoding ErrorDetals the following attributes from JSON array are obtained as follows.
ErrorCode Unique error code
ErrorMessage Error Description

Sample Response JSON (Success)

    {
     "Status":"1",
     "Data":"Hi5wKRf72A/fBgdPNFOrMsmLhsrswvG7YzEtobgxl+TaPdF9RyZlJecM+DXk9bRgJ3JEBRrBbFMFxYgEYNcpyRtf673kaGtnDIQ/h61hKiU8iwxHvGpD4IEYhtj0lM+nN42L3TI6zPECtrcisoHMrbkS+Ydcf1S8YRct2wiime46psJolVJUlcYSlpid4Twpgk/YRe9NGiXrWCLCTnhIPj3p1F2PXN7B6jP0/mgbSzzlaphUo3cRFMyiY/ZMIc8DEvqVGEnCHkvNW1Se9BPtKNg/rX/z8GhBayI73IVGyPF3P/iC0Gf4ZTcCR/JQNPUvs1NiFC9o93jmYqoMFZLFqgK30gneiF6E3gTfixqoQks7zqowQrZTY3mwmV6Q2GEfNVxllnPy4Z5Bl71cRvQZYstpZBgJRijBPsdpJ1qaMMOLddExLM8A/6PnZXTCtmDxedGZDi8fUt34LxJCE+dySIqsCJgiqWVM9T1ZnKPis/tx80BO4jlWcxtJR8wQW1pz/IrtrDIjBKv1W/E8h2iwd7J6q0vKAl510vj7FFH86tI=",
     "ErrorDetails": null,
      "InfoDtls":""
    }  

JSON corresponds to the data element of Get Rejected IRN Details Response(Success) above
        ["4a4827a4770f5627bded029bae7d5a6083b1c35974793c85f22da305574b9d4d",
         "aea16798ad6f0e601831d3370ff6525723ff925a05572eed2898462084a9ff9e",
         "85affa252794717a459b979f25b72eecc654285bda7aa85735d6c61f01949950",
         "657b1ae0366e4e1f25105af6b071ac1abb346cc38c2c61baf2f630d99a3784c3",
         "3c71b7467b44bb60b5222b152d961c6233c7e5064c10bda9369cdb78b07eb1e6",
         "44a6902c1f281c5a30ed3ec76ea6919a590f54d765f5b2319fba3196da0d0588"]
      
        

JSON(in case of error)


"status": "0",
"Data": null,
"ErrorDetails":"<Errors JSON >",
"InfoDtls": "<alert message >"
}

Validations

    IRN details will be provided for 4 days excluding the current date.