e-Invoice APIEnvironment:
API Reference
Overview
Authentication
Get GSTN Details
Get Sync GSTIN From CP
Generate IRN
Get EInvoice Details
Get IRN details by Doc Details
Get IRN details by Doc DetailsGET
Cancel IRN
Get Rejected IRNs
Generate Ewaybill
Get Ewaybill Details by IRN
Get B2C QR Code Details
e-Invoice APIGet IRN details by Doc DetailsGet IRN details by Doc Details

Get IRN details by Doc Details

GEThttps://apisandbox.whitebooks.in/einvoice/type/GETIRNBYDOCDETAILS/version/V1_03

Get IRN details by Doc Details .you can fetch only past 72 hours of invoices from the time of IRN generation

Parameters

query parameters
param1stringrequired
Document type
supplier_gstnstringoptional
Supplier GSTIN, only in case E Comm. operator is getting IRN details
irpstringoptional
e-Invoice Server Type(NIC1/NIC2),given at the time of e-Invoice generation
emailstringrequired
User Email
header parameters
docnumstringrequired
Document number
docdatestringrequired
Document date (dd/MM/YYYY)
ip_addressstringrequired
IP Address
client_idstringrequired
Client ID
client_secretstringrequired
Client Secret
usernamestringrequired
User name
auth-tokenstringrequired
Token
gstinstringrequired
GSTIN number

Response

Not Found. If requested entity is not found or if requested API is not found.
GET/einvoice/type/GETIRNBYDOCDETAILS/version/V1_03
1const response = await fetch('https://apisandbox.whitebooks.in/einvoice/type/GETIRNBYDOCDETAILS/version/V1_03?param1=value&supplier_gstn=value&irp=value&email=value', {
2 method: 'GET',
3 headers: {
4 docnum: "value",
5 docdate: "value",
6 ip_address: "value",
7 client_id: "value",
8 client_secret: "value",
9 username: "value",
10 auth-token: "value",
11 gstin: "value"
12},
13});
14
15const data = await response.json();
16console.log(data);
No example available.