Skip to main content
POST

Request body schema

View request body schema

Prerequisites: You must have API credentials to hit E-Invoice APIs. If not, create API credentials.

Headers

authorization
string
required

JWT access token

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

Query Parameters

force
string
required

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

Example:

"true"

Body

application/json
password
string
required
username
string
required
gstin
string
required
Required string length: 15
Pattern: ^([0-9]{2}[0-9A-Z]{13})$

Response

200 - application/json

1015 Invalid GSTIN for user / 200 Authenticated / 1019 Incorrect password / 1017 Incorrect user id / GEN5008 GSTN Server Error

Authentication success, NIC business error, or platform error. These variants use HTTP 200.

code
enum<integer>
required

HTTP-compatible Sandbox response code.

Available options:
200
timestamp
integer<int64>
required

Unix timestamp in milliseconds.

transaction_id
string
required

Request transaction identifier.

data
object
required