Skip to main content
GET
Get E-Invoice by document data

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-api-key
string
required

API key for identification

x-api-version
string
default:1.0.0

API version

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"

Query Parameters

document_type
string
required

Document Type

Example:

"INV"

document_number
string
required

Document Number

Example:

"DOC/999"

document_date
string
required

Document Date

Example:

"01/01/2024"

Response

200 - application/json

200 Get IRN / 200 Get cancelled IRN / 2154 IRN not found

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:

"53e1bc69-275a-4504-b5c3-03457c7d09a9"

data
object
required