---
title: SNEC Extraction API
slug: api-marketplace/snec-extraction-api
description: Looking for a document that's not currently available? Don't worry, we've got you covered! Stay tuned for the upcoming release of this document, which will be provided in the near future. Stay updated with the latest information and be prepared to access 
createdAt: 2023-04-20T22:04:46.000Z
---

## Introduction

This API allows users to extract information from SNEC certificates. The API accepts an image URL containing SNEC certificate and returns a JSON response with the extracted information in a result object including Registration Number, Establishment name, address and other pertinent information.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/extraction/snec
```
:::

:::CodeblockTabs
Preproduction Environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/extraction/snec
```
:::

***

### 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 parameters

| **Parameter** | **Data type** | **Description**                                                                                                              | **Required** |
| ------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------ |
| file          | String        | A URL of the image. <br />Acceptable image format TIFF/TIF, JPEG/JPG, PNG, PDF(maximum 2 pages) containing SNEC certificate. | Mandatory    |

```json
{
    "file": "https://persist.signzy.tech/api/files/795927779/download/xxxxxxxxxxxxxxxxxxxxxxx.png"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/extraction/snec' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "file": "https://persist.signzy.tech/api/files/795927779/download/xxxxxxxxxxxxxxxxxxxxxxx.png"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "imgurl": "https://persist.signzy.tech/api/files/795927779/download/xxxxxxxxxxxxxxxxxxxxxxx.png"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.signzy.app/api/v3/extraction/snec',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Token>'
  },
  data : data
};

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

```

```python
import http.client
import json

conn = http.client.HTTPSConnection("api.signzy.app")
payload = json.dumps({
  "imgurl": "https://persist.signzy.tech/api/files/795927779/download/xxxxxxxxxxxxxxxxxxxxxxx.png"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Token>'
}
conn.request("POST", "/api/v3/extraction/snec", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

```go
package main

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

func main() {

  url := "https://api.signzy.app/api/v3/extraction/snec"
  method := "POST"

  payload := strings.NewReader(`{
    "imgurl": "https://persist.signzy.tech/api/files/795927779/download/xxxxxxxxxxxxxxxxxxxxxxx.png"
}`)

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

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

  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))
}
```
:::

***

### Response body parameters

| Parameter                 | Data Type | Description                                                              |
| ------------------------- | --------- | ------------------------------------------------------------------------ |
| result                    | Object    | Contains the result of the task.                                         |
| result.registrationNumber | String    | The registration number from Shop Establishment Act Certificate.         |
| result.establishmentName  | String    | Establishment name mentioned in Shop Establishment Act Certificate.      |
| result.employerName       | String    | Name of the employer mentioned.                                          |
| result.businessName       | String    | Name of the business mentioned.                                          |
| result.address            | String    | Address mentioned                                                        |
| result.stateName          | String    | State name from address                                                  |
| result.mobile             | String    | Mobile number mentioned                                                  |
| result.emailId            | String    | Email Id mentioned                                                       |
| result.managerName        | String    | Name of the manager mentioned.                                           |
| result.fatherName         | String    | Name of father mentioned.                                                |
| result.designation        | String    | Designation mentioned.                                                   |
| result.age                | String    | Age mentioned.<br />                                                     |
| result.managerMobile      | String    | Mobile number of the manager mentioned.                                  |
| result.managerEmail       | String    | Email id of manager mentioned.                                           |
| result.validityFrom       | String    | Validity start date of the Shop Establishment Act Certificate mentioned. |
| result.validityTo         | String    | Validity end date of the Shop Establishment Act Certificate mentioned.   |

### Response body parameters

:::CodeblockTabs
200

```json
{
  "result": {
    "registrationNumber": "7459206****",
    "establishmentName": "JAVID & CO",
    "employerName": "JAVID AHMAD D*****",
    "businessName": "HARDWARE AND PAINTS",
    "address": "MAIN CHOWK, SOPORE",
    "stateName": "JAMMU KASHMIR",
    "mobile": "NA",
    "emailId": "NA",
    "managerName": "NA",
    "fatherName": "GHULAM NABI D*****",
    "designation": "OWNER",
    "age": "NA",
    "managerMobile": "NA",
    "managerEmail": "NA",
    "validityFrom": "NA",
    "validityTo": "NA"
  }
}

```

422

```none
{
    "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"
    }
}
```
:::

**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!



