Skip to main content
GET
Get E-Invoice by IRN
Only e-Invoices generated within the last 2 days can be fetched with this API.

Response schema

For successful responses, this resource describes the NIC payload at data.Data.

View JSON schema

Headers

authorization
string
required

E-Invoice access token. For token-generation steps, refer to the Generate E-Invoice Session recipe, then pass the token in the authorization header.

x-source
enum<string>
default:primary

Specifies the source to access, either primary (NIC 1) or secondary (NIC 2)

Available options:
primary,
secondary
Example:

"primary"

x-proxy
enum<string>

Enables criss-cross operations by routing requests through the specified source (e.g., access primary via secondary if primary is unavailable)

Available options:
primary,
secondary
Example:

"secondary"

x-api-version
string
default:1.0.0

API version

x-api-key
string
required

API key for identification

Path Parameters

irn
string
required

Response

200 - application/json

2148 IRN data not available / 2283 IRN generated more than 2 days ago / 200 Get cancelled IRN / 200 Get IRN (DBN) / 200 Get IRN (CRN) / 200 Get IRN (INV)

A successful NIC response or a NIC business-error response. Both variants use HTTP 200.

code
enum<integer>
required

HTTP-compatible Sandbox response code.

Available options:
200
Example:

200

timestamp
integer<int64>
required

Unix timestamp in milliseconds.

Example:

1763446641000

transaction_id
string
required

Request transaction identifier.

Example:

"175fe134-c501-4ac0-8403-b52a4abccd0b"

data
object
required