---
title: Food License
slug: api-marketplace/food-license
createdAt: 2024-12-26T06:19:24.740Z
---

## Introduction

This API allows users to extract the information from Food License like business name, license number, bussiness nature,license category etc.&#x20;

## API details

### Endpoint

```curl
POST https://api.signzy.app/api/v3/extraction/food-license
```

:::CodeblockTabs
curl

```curl
POST https://api-preproduction.signzy.app/api/v3/extraction/food-license
```
:::

### Request headers&#x20;

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body&#x20;


Code samples

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/extraction/food-license' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth_token>' \
--data '{"file":"https://persist.signzy.tech/api/files/546507583/download/8b072e986f2c437f9e6220cf4248ae4450ad5dc00bcc48798aff6sdfgcfa11795.jpg"}'
```

### Response body parameters

| Parameter                 | Data Type | Description                                                          |
| ------------------------- | --------- | -------------------------------------------------------------------- |
| result                    | Object    | The main object that contains the result of the API call.            |
| result.licenseNumber      | String    | The license number of the individual mentioned for the food license. |
| result.businessName       | String    | Business name mentioned in food license.                             |
| result.businessNature     | String    | Business  nature mentioned.                                          |
| result.operatorAddress    | String    | Operator Address mentioned.                                          |
| result.licenseCategory    | String    | The category of the license as specified in the food license.        |
| result.authorizedPremises | String    | Authorized Premises mentioned in food license.                       |
| result.issueDate          | String    | The date on which the license was issued.                            |
| result.validityFrom       | String    | The start date of the license validity period.                       |
| result.validUpTo          | String    | The end date of the license validity period.                         |

### Response body parameters

:::CodeblockTabs
200

```json
{
    "licenseNumber": "CRL3327038",
    "businessName": "ELECTION COMMISSION OF INDIA",
    "businessNature": "NA",
    "operatorAddress": "NA",
    "licenseCategory": "IDENTITY CARD",
    "authorizedPremises": "NA",
    "issueDate": "NA",
    "validityFrom": "NA",
    "validUpTo": "NA"
}
```

422

```json
{
    "error": {
        "status": 422,
        "msg": "Unable to download file",
        "responseCode": "fail"
    }
}
```

401

```json
// When API key is not passed
{
    "message": "No API key found in request"
}

// when wrong API Key is passed
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "reason": "Error From upstream",
        "status": 409,
        "type": "Conflict",
        "message": "Upstream Down",
        "statusCode": 409,
        "name": "error"
    }
}

```

404

```json
{
    "error": {
        "statusCode": 404,
        "status": 404,
        "message": "Not Found"
    }
}
```

400

```json
//when empty file provided
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "FIle should not be an empty string"
    }
}
```
:::

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!

