Validate SAC ============ This section explains how to validate SAC (Services Accounting Code) codes. What is SAC Validation? ----------------------- SAC validation ensures that the provided SAC code: - Exists in the official GST database - Is properly formatted (6 digits) - Is currently active and applicable for services Validation Process ----------------- 1. **Input Validation** - Check if SAC code is numeric - Verify length (6 digits) - Validate format pattern 2. **Database Lookup** - Search in official GST SAC database - Check if code is active - Verify service description matches 3. **Response Generation** - Return validation status - Provide error details if invalid - Include SAC information if valid API Endpoint ----------- .. code-block:: bash POST /api/v1/validate/sac { "sac_code": "123456" } Response Format -------------- .. code-block:: json { "status": "success", "valid": true, "sac_code": "123456", "description": "Valid SAC code", "gst_rate": "18%" } Error Response ------------- .. code-block:: json { "status": "error", "valid": false, "error": "Invalid SAC code format", "message": "SAC code must be 6 digits" }