Skip to content

GSTIN Rating

Get the monthly GST compliance rating for a GSTIN, including filing pattern and return type history.

Endpoint

POST /vas-api/v1/gstin-rating

Request

Body parameters

FieldTypeRequiredDescriptionExample
gstinstringYes15-character GSTIN29ABCDE1234F1Z5

Example request

bash
curl -X POST https://api.api4business.com/vas-api/v1/gstin-rating \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"gstin": "29ABCDE1234F1Z5"}'
python
import requests

response = requests.post(
  "https://api.api4business.com/vas-api/v1/gstin-rating",
  headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN", "Content-Type": "application/json"},
  json={"gstin": "29ABCDE1234F1Z5"}
)
print(response.json())
javascript
const response = await fetch("https://api.api4business.com/vas-api/v1/gstin-rating", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_ACCESS_TOKEN", "Content-Type": "application/json" },
  body: JSON.stringify({ gstin: "29ABCDE1234F1Z5" })
});
console.log(await response.json());
java
HttpRequest request = HttpRequest.newBuilder()
  .uri(URI.create("https://api.api4business.com/vas-api/v1/gstin-rating"))
  .header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
  .header("Content-Type", "application/json")
  .POST(HttpRequest.BodyPublishers.ofString("{\"gstin\": \"29ABCDE1234F1Z5\"}"))
  .build();

Response

Success (200)

FieldTypeDescription
body.gstinstringThe GSTIN checked
body.patternstringFiling pattern (monthly, quarterly)
body.return_type_listarrayReturn types filed (e.g., GSTR1, GSTR3B, CMP08)
body.visual_data.ratingobjectMonthly rating scores (1-5 scale per month)
body.visual_data.fin_yrstringFinancial year for the rating

Example response

json
{
  "ok": true,
  "responseCode": 200,
  "message": "Transmission OK",
  "body": {
    "gstin": "29ABCDE1234F1Z5",
    "pattern": "monthly",
    "return_type_list": ["GSTR1", "GSTR3B"],
    "visual_data": {
      "gstin": "29ABCDE1234F1Z5",
      "fin_yr": "2024-2025",
      "rating": {
        "Apr": 4.5, "May": 4, "Jun": 5, "Jul": 4,
        "Aug": 4, "Sep": 5, "Oct": 4, "Nov": 4,
        "Dec": 5, "Jan": 4, "Feb": 4, "Mar": 0
      }
    }
  }
}

Response headers

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

Error responses

StatusMessageResolution
400Invalid GSTINCheck 15-character format
401Invalid CredentialsRefresh access token
429Quota ViolationRetry with backoff
500Internal Server ErrorRetry after delay

Rating scale

Monthly ratings are on a 1-5 scale. A score of 5 indicates perfect compliance for that month. A score of 0 typically means the return for that month has not yet been filed or the data is not yet available from GSTN.

Released under the API4Business Terms of Service