e-Invoice Authentication API takes API credentials set on the e-Invoice portal (NIC) and gives the e-Invoice access token in response. If you have not created API credentials, follow the steps here to create them.
JWT access token
Specifies the source to access, either primary (NIC 1) or secondary (NIC 2)
primary, secondary "primary"
API key for identification
API version
The value of this attribute is to be set true if the client needs to refresh the token 10 minutes before expiry. Possible Values - true or false
"true"
1015 Invalid GSTIN for user / 200 Authenticated / 1019 Incorrect password / 1017 Incorrect user id / GEN5008 GSTN Server Error