Get e-Invoice Details#
Given an invoice reference number (IRN), you can get e-invoice details using this API.
Route
/basic/einv/{flynn-version}/{irp}/eicore/{e-invoice-api-version}/Invoice/irn/{irn_no}
- active ‘flynn-version’: v1.0
- method: GET
URL Parameters#
Name | Description | Type |
---|---|---|
flynn-version | version of the API for example, v1.0 |
string |
irp | IRP Provider as per GST registration for e-invoicing | enum (ni1, ni2) |
e-invoice-api-version | E-invoice API version | string |
irn_no | E-invoice number | string |
Headers#
All headers as mentioned in the Basic E-Invoice API introduction.
Apart from the common headers need to pass below headers
header | Description |
---|---|
irp | This request header is mandatory if Taxpayer wants to perform interoperability / criss-cross operations on IRN. Accepted values are NIC1 or NIC2 |
Tip
The only valid value for the header key accept
is application/json
.
Also, since no request body is sent, header key Content-type
is optional.
Response#
200
:#
Successful response will be the same payload as per the ‘E-Invoice API Documentation’ published by NIC.
Sample Response Body
{
"data": "{\"AckNo\":\"62100691702\",\"AckDt\":\"2020-06-22 19:28:00\",\"Irn\":\"00b3b4da65c879887b0166684dfcdbb0661bcabc0411f84c66e26c251eecfea5\",\"SignedInvoice\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6IjExNUY0NDI2NjE3QTc5MzhCRTFCQTA2REJFRTkxQTQyNzU4NEVEQUIiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJFVjlFSm1GNmVUaS1HNkJ0dnVrYVFuV0U3YXMifQ.eyJkYXRhIjoie1wiQWNrTm9cIjo2MjEwMDY5MTcwMixcIkFja0R0XCI6XCIyMDIwLTA2LTIyIDE5OjI4OjAwXCIsXCJJcm5cIjpcIjAwYjNiNGRhNjVjODc5ODg3YjAxNjY2ODRkZmNkYmIwNjYxYmNhYmMwNDExZjg0YzY2ZTI2YzI1MWVlY2ZlYTVcIixcIlZlcnNpb25cIjpcIjEuMDFcIixcIlRyYW5EdGxzXCI6e1wiVGF4U2NoXCI6XCJHU1RcIixcIlN1cFR5cFwiOlwiREVYUFwiLFwiUmVnUmV2XCI6XCJOXCJ9LFwiR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VvgtZDa-XvmBqvGmIiTHxDfHBOjs6b87SMOAaKQqXH5RXWBDuFjlfBCEeebPXvNKXQ6lgNkD9K8TUrSGdOWVwLslxB3cnVXjD0ej9X3LLH7Q3zIezYfA1mr_vf33Yqup3dOchSiRdWKXUQfWS6yBvGns9wr64lfa5BqFt6rsTprxXuKyDf3MS3f2Q\",\"Status\":\"ACT\",\"EwbNo\":null,\"EwbDt\":null,\"EwbValidTill\":null}"
}
404
:#
When the E-invoice isn’t found.
Sample Response Body
{
"error": {
"message": "err-resource-not-found",
"type": "ResourceNotFound",
"args": {
"irn-number": "00b3b4da65c879887b0166684dfcdbb0661bcabc0411f84c66e26c251eecfea5"
}
}
}
Other e-invoice errors are mentioned under common errors.
Notes#
IRP - nic is deprecated. Instead of it please use ni1 or ni2