Skip to content

e-Invoice Applicability

Check whether a GSTIN is liable to generate e-invoices under Indian GST law. Returns the IRN generation status, government mandate date, taxpayer type, and state information.

Endpoint

GET /vas-api/e-invoice-applicability-v1

Authentication

Requires OAuth2 Bearer token. Get your credentials →

Request

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer YOUR_ACCESS_TOKEN

Query parameters

ParameterTypeRequiredDescriptionExample
gstinstringYes15-character GSTIN29ABCDE1234F1Z5

Example request

bash
curl -X GET "https://api.api4business.com/vas-api/e-invoice-applicability-v1?gstin=29ABCDE1234F1Z5" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
python
import requests

response = requests.get(
  "https://api.api4business.com/vas-api/e-invoice-applicability-v1",
  params={"gstin": "29ABCDE1234F1Z5"},
  headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
)
print(response.json())
javascript
const response = await fetch(
  "https://api.api4business.com/vas-api/e-invoice-applicability-v1?gstin=29ABCDE1234F1Z5",
  { headers: { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } }
);
console.log(await response.json());
java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
  .uri(URI.create("https://api.api4business.com/vas-api/e-invoice-applicability-v1?gstin=29ABCDE1234F1Z5"))
  .header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
  .GET().build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

Response

Success (200)

FieldTypeDescription
okbooleantrue if successful
responseCodeintegerHTTP status code
messagestringStatus message
body.gstinstringThe GSTIN queried
body.panNostringPAN linked to this GSTIN
body.companyNamestringLegal name of the entity
body.companyTypestringTax type (Regular, Composition)
body.stateCodeintegerState code number
body.statenamestringState name
body.irnStatusstringIRN generation status (Generated, Not Generated)
body.irnGenerationDatestring/nullDate of first IRN generation, or null
body.irnGovreleasedatestringGovernment mandate date for e-invoicing
body.turnovernumber/nullReported turnover, or null if unavailable

Example response

json
{
  "ok": true,
  "responseCode": 200,
  "message": "Transmission OK",
  "body": {
    "gstin": "29ABCDE1234F1Z5",
    "panNo": "ABCDE1234F",
    "companyName": "SAMPLE TRADING COMPANY",
    "companyType": "Regular",
    "stateCode": 29,
    "statename": "Karnataka",
    "irnStatus": "Not Generated",
    "irnGenerationDate": null,
    "irnGovreleasedate": "2021-11-14T00:00:00+05:30",
    "turnover": null,
    "tradeName": null,
    "status": null
  }
}

Response headers

HeaderDescription
x-request-idUnique request identifier — log this for debugging and support

Error responses

StatusError CodeMessageResolution
400400Invalid GSTINCheck 15-character GSTIN format
400400Invalid RequestVerify the gstin query parameter is present
401401Invalid CredentialsAccess token expired — request a new one
429429Quota ViolationRate limit exceeded — retry with backoff
500500Internal Server ErrorRetry after delay
503503Service Not AvailableGSTN service temporarily down — retry

Released under the API4Business Terms of Service