curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/e-invoice/tax-payer/invoice/{irn} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'Fetch the e-Invoice by passing the invoice registration number (IRN). To fetch an e-Invoice, the authenticated taxpayer has to be a party in the transaction, either the seller or the buyer.
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/e-invoice/tax-payer/invoice/{irn} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'E-Invoice access token. For token-generation steps, refer to the Generate E-Invoice Session recipe, then pass the token in the Authorization header.
Specifies the source to access, either primary (NIC 1) or secondary (NIC 2)
primary, secondary "primary"
Enables criss-cross operations by routing requests through the specified source (e.g., access primary via secondary if primary is unavailable)
primary, secondary "secondary"
API version
API key for identification
"{{irn}}"
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)
Was this page helpful?