GET /search/sac/{code}
Retrieve basic information and hierarchy details for an exact SAC code.
Request
Method:
GETPath:
/search/sac/{code}Auth:
X-API-Key: <your_key>
Path Parameters
code(string, required): SAC code (6 digits)
Curl Example
curl --location 'https://api.taxlookup.fastgst.in/search/sac/997326' \
--header 'X-API-Key: ******'
Successful Response
{
"success": true,
"data": {
"sac_code": "998874",
"description": "Computer electronic and optical product manufacturing services",
"hierarchy": {
"section": {
"code": "Section 8",
"description": "Section 8 : Business and Production Services"
},
"heading": {
"code": "9988",
"description": "Manufacturing services on physical inputs (goods) owned by others"
},
"group": {
"code": "99887",
"description": "Fabricated metal product machinery and equipment manufacturing services"
},
"sub_group": {
"code": "998874",
"description": "Computer electronic and optical product manufacturing services"
}
}
},
"meta": {
"api_version": "v1",
"timestamp": "2025-12-01",
"request_id": "req_0HNHH2HQ2I0G4:00000001"
}
}
Error Responses
Invalid SAC Code Format (400)
{
"success": false,
"error": {
"code": "6_DIGIT_SAC_CODE_EXPECTED",
"message": "Ensure SAC is a 6 digit (International WCO standard) code",
"suggestion": "Use search endpoint to find the SAC code if you're unsure"
},
"meta": {
"api_version": "v1",
"timestamp": "2025-12-01",
"request_id": "req_0HNHH2HQ2I0G2:00000016"
}
}
SAC Code Not Found (404)
{
"success": false,
"error": {
"code": "SAC_NOT_FOUND",
"message": "SAC code '123456' not found",
"suggestion": null
},
"meta": {
"api_version": "v1",
"timestamp": "2025-12-01",
"request_id": "req_0HNHH2HQ2I0G2:00000017"
}
}
Notes
Use GET /search/sac to discover codes, then call this endpoint for authoritative descriptions and hierarchy.