---
title: FSSAI
slug: v2/fssai
description: Learn how to search for a company's FSSAI license using the API outlined in this document. It provides a sample curl command, required input parameters, and response format. Discover detailed information such as license number, type, entity name, status, 
createdAt: 2023-04-06T11:22:01.000Z
---

## Introduction

This API allows users to search for a company's Food Safety and Standards Authority of India (FSSAI) license by providing the company's license number.

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
https://api.signzy.app/api/v3/fssai/verification
```
:::

:::CodeblockTabs
Production Endpoint

```none
https://api-preproduction.signzy.app/api/v3/fssai/verification
```
:::

## Sample Curl

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/fssai/verification' \
--header 'Authorization: <Your access token>' \
--header 'Content-Type: application/json' \
--data '{
    "licenseNumber": "00000000000000",
    "getCategorizedProductList": "true"
}'
```

Production

```curl
curl --location 'https://api.signzy.app/api/v3/fssai/verification' \
--header 'Authorization: <Your access token>' \
--header 'Content-Type: application/json' \
--data '{
    "licenseNumber": "00000000000000",
    "getCategorizedProductList": "true"
}'
```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/fssai/verification"
  method := "POST"

  payload := strings.NewReader(`{
    "licenseNumber": "00000000000000",
    "getCategorizedProductList": "true"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "<Your access token>")
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "licenseNumber": "00000000000000",
  "getCategorizedProductList": "true"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/fssai/verification',
  headers: { 
    'Authorization': '<Your access token>', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/fssai/verification"

payload = json.dumps({
  "licenseNumber": "00000000000000",
  "getCategorizedProductList": "true"
})
headers = {
  'Authorization': '<Your access token>',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```
:::

### Request body parameters

| **Parameter**             | **Data type** | **Description**                                                                                                                 | **Required** |
| ------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| licenseNumber             | String        | 14 digit FSSAI License number.                                                                                                  | Mandatory    |
| getCategorizedProductList | String        | Flag to get list of product categories under the license number.<br />**true** to get the product category list else **false**. | Optional     |

:::CodeblockTabs
json

```json
{
    "licenseNumber": "00000000000000",
    "getCategorizedProductList": "true"
}
```
:::

## Sample Response

:::CodeblockTabs
200

```json
 {
  "essentials": {
    "licenseNumber": "..licenseNumber.."
  },
  "id": "...accessToken...",
  "patronId": "...patronId...",
  "result": {
    "licenseNumber": "...licenseNumber...",
    "licenseType": "...licenseType...",
    "entityName": "...entityName...",
    "status": "...status...",
    "premissesAddress": {
      "state": "...state...",
      "district": "...district...",
      "address": "...address..."
    },
    "listOfProducts": [],
    "splitAddress": {
      "state": [
        []
      ],
      "district": [],
      "city": [],
      "pincode": "...pincode...",
      "country": [
        "IN",
        "IND",
        "INDIA"
      ],
      "addressLine": "...addressLine..."
    }
  }
 }
```

400

```none
// When license Number field is empty
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Missing data, please refer docs"
    }
}
```

404

```json
// When license Number is wrong
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "FSSAI Number not found"
    }
}
```

401

```json
// When Auth token is wrong
{
    "message": "Invalid authentication credentials"
}
// When Auth token is not given
{
    "message": "No API key found in request"
}
```
:::

### Response body parameters

| Output Parameter | Data Type | Required | Description                                                                                                    |
| ---------------- | --------- | -------- | -------------------------------------------------------------------------------------------------------------- |
| essentials       | object    | Yes      | A JSON object containing essential information about the FSSAI license, including the provided license number. |
| licenseNumber    | string    | Yes      | The FSSAI license number of the company whose information was searched for.                                    |
| id               | string    | Yes      | The access token is used to authorize the API request.                                                         |
| patronId         | string    | Yes      | The patron ID of the user making the API request.                                                              |
| result           | object    | Yes      | A JSON object containing the details of the FSSAI license was searched for.                                    |
| license type     | string    | Yes      | The type of FSSAI license held by the company.                                                                 |
| entityName       | string    | Yes      | The name of the company holding the FSSAI license.                                                             |
| status           | string    | Yes      | The status of the FSSAI license, whether it is valid or not.                                                   |
| premissesAddress | object    | Yes      | A JSON object containing the address of the premises where the company operates.                               |
| state            | string    | Yes      | The state where the premises is located.                                                                       |
| district         | string    | Yes      | The district where the premises is located.                                                                    |
| address          | string    | Yes      | The complete address of the premises.                                                                          |
| listOfProducts   | array     | Yes      | An array containing a list of products that are covered under the FSSAI license.                               |
| splitAddress     | object    | Yes      | A JSON object containing a breakdown of the company's address into individual components.                      |
| state            | array     | Yes      | An array containing the states where the company has a presence.                                               |
| district         | array     | Yes      | An array containing the districts where the company has a presence.                                            |
| city             | array     | Yes      | An array containing the cities where the company has a presence.                                               |
| pincode          | string    | Yes      | The pin code of the company's premises.                                                                        |
| country          | array     | Yes      | An array containing the country codes and names where the company has a presence.                              |
| addressLine      | string    | Yes      | The complete address of the company's premises.                                                                |

## Status Codes

| CODE | MESSAGE      |
| ---- | ------------ |
| 200  | OK           |
| 404  | Not found    |
| 400  | Invalid Data |

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!

