Get SAC Hierarchy
This section explains how to retrieve the hierarchical structure of SAC codes.
What is SAC Hierarchy?
SAC hierarchy shows the classification structure of services, organized in levels: - Section (2 digits): Broad category of services - Group (4 digits): Specific group within section - Service (6 digits): Detailed service classification
Hierarchy Levels
Section Level (XX0000) - 99: Services not elsewhere specified - 98: Services of private households - 97: Services of households as employers
Group Level (XXXX00) - 9983: Domestic services - 9982: Services provided by extra-territorial organizations - 9981: Services provided by extra-territorial organizations
Service Level (XXXXXX) - 998311: Domestic services - 998312: Other domestic services - 998313: Additional domestic services
API Endpoint
GET /api/v1/sac/{sac_code}/hierarchy
Parameters
sac_code (path): The SAC code to get hierarchy for
level (query, optional): Hierarchy level to return (section, group, service, all)
Example Request
GET /api/v1/sac/998311/hierarchy?level=all
Response Format
{
"status": "success",
"sac_code": "998311",
"hierarchy": {
"section": {
"code": "99",
"description": "Services not elsewhere specified"
},
"group": {
"code": "9983",
"description": "Domestic services"
},
"service": {
"code": "998311",
"description": "Domestic services"
}
}
}