Skip to main content

FSSAI Verification API

This document outlines the details of the FSSAI Verification API.

API Description

Objective

The FSSAI Verification API retrieves details about a food business, including the validity of its FSSAI license, the registered name, address, and other related information.

Did you know?
The Food Safety and Standards Authority of India (FSSAI) is a statutory body under the administration of the Ministry of Health and Family Welfare, Government of India. It regulates the manufacture, storage, distribution, sale, and import of food articles, while also establishing standards to ensure food safety.
InputOutput
The 14-digit FSSAI license numberThe details of the food business associated with the license. The complete list of output fields is available in the Success Response Details section.

API URL

https://ind.thomas.hyperverge.co/v1/verifyFSSAILicense

API Endpoint

verifyFSSAILicense

Overview

The FSSAI Verification API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format, and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID (appId) and application key (appKey) from HyperVerge to verify your identity for accessing the FSSAI Verification API.

API Request Details

Method - POST

Headers

HeaderMandatory / OptionalDescriptionInput Format
content-typeMandatoryThis parameter defines the media type for the request payloadapplication/json
appIdMandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
appKeyMandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.Not Applicable - this is a unique value
transactionIdMandatoryA unique identifier for tracking a user journeyNot Applicable - this should be both unique and easily associated with the user's journey in your application(s)

Input

The following table provides the details of the parameters required for the FSSAI Verification API's request body:

ParameterMandatory / OptionalTypeDescriptionInput FormatDefault Value
licenseNumberMandatorystringThe license number of the food businessA 14-digit numeric value entered as a stringNot Applicable
consentMandatorystringThe consent flag indicating the permission to perform verificationY or NNot Applicable
includeProductsMandatorybooleanThe flag to include the list of products associated with the license in the responsetrue or falseNot Applicable

Request

The following code snippet demonstrates a standard curl request for the FSSAI Verification API:

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/verifyFSSAILicense' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"licenseNumber": "<Enter_the_14_digit_license_number>",
"consent": "<Enter_Y_or_N>",
"includeProducts": "<true_or_false>"
}'

Success Response

The following code snippet demonstrates a success response from the FSSAI Verification API:

{
"status": "success",
"statusCode": 200,
"result": {
"name": "<License_Holder_Name>",
"address": "<Address>",
"taluk": "<Taluk>",
"district": "<District>",
"state": "<State>",
"pincode": "<Pincode>",
"type": "<License_Type>",
"active": true,
"products": [
{
"kind_of_business_id": "<Kind_Of_Business_ID>",
"kind_of_business_name": "<Kind_Of_Business_Name>",
"product_name": "<Product_Name>"
},
{
"kind_of_business_id": "<Kind_Of_Business_ID>",
"kind_of_business_name": "<Kind_Of_Business_Name>",
"product_name": "<Product_Name>"
}
]
},
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the FSSAI Verification API:

ParameterTypeDescription
statusstringThe status of the FSSAI Verification API response
statusCodeintegerThe HTTP status code returned by the FSSAI Verification API
resultobjectThe object containing the details of the food business
namestringThe name of the FSSAI license holder
addressstringThe address of the FSSAI license holder
talukstringThe taluk associated with the license holder
districtstringThe district associated with the license holder
statestringThe state in which the license is issued
pincodestringThe postal code of the license holder's address
typestringThe type of FSSAI license issued
activebooleanIndicates whether the FSSAI license is currently active
productsarrayA list of products registered under the FSSAI license
kind_of_business_idstringThe ID representing the kind of business
kind_of_business_namestringThe name describing the kind of business
product_namestringThe name of the product registered under the license
requestIdstringThe unique identifier associated with the API request
transactionIdstringThe transaction identifier sent in the request

Failure Response

The following code snippet displays a failure response from the FSSAI Verification API:

{
"status": "failure",
"statusCode": 404,
"error": "FSSAI license number does not exist.",
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Responses

The following are some error responses from the FSSAI Verification API:

{
"status": "failure",
"statusCode": 400,
"error": "FSSAI license number invalid.",
"metaData": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Response Details

A failure or error response from the FSSAI Verification API contains a failure status with a relevant status code and error message. The following table lists all error responses:

Status CodeError MessageError DescriptionError Resolution
400FSSAI license number invalid.The provided FSSAI license number is invalid, possibly because it contains special characters or is not 14 digitsProvide a valid 14-digit numeric FSSAI license number in the request
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid valuesProvide valid appId and appKey in the request headers. Check the dashboard's credentials tab
403Access DeniedThe provided credentials do not have access to this APIContact the HyperVerge team for resolution
404FSSAI license number does not existThe provided FSSAI license number does not exist in the data sourceVerify that the license number is correct and corresponds to a registered food business
500Internal Server ErrorThere is an issue with the service. Kindly contact the HyperVerge Team for support.Contact the HyperVerge team for investigation and resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: