How to generate E-invoice
Process of e-Invoicing :
Create Credentials
After signing up, the user needs to apply credentials for E-Invoice where client_id and client_secret_id will be given in sandbox, but if the user is already in the production domain, they need a product key.
Authenticate API
With sandbox credentials, the first step is authentication, where the user enters the invoicing data (username, GSTIN, Client_Id, Client_Secret etc.) into the system. The data goes to the access point, generating an auth token.
Generate IRN
The second step is to generate IRN by giving the exact previous details (username, GSTIN, Client_ID, Client_Secret etc.), and the domain body will be the same as in the JSON corresponding to the “Data” element of Generate E-Invoice Request above. If the second step succeeds, then IRN will get generated.
Get E-Invoice Detail
The Final step “get e-invoice details” requires all detail (username, GSTIN client_id, client_secret,param1,auth-token etc.). The generated IRN is the param1.
Cancel IRN
The same goes for Cancel IRN, a user enters all data (username, GSTIN, client_id, client_secret,param1,auth-token etc.), and the JSON code for the body parameter is given in the box located on the left side. But the IRN needs to be changed according.