---
title: Cheque Extraction
slug: api-marketplace/cheque-extraction
createdAt: 2023-11-02T11:46:52.780Z
---

## Introduction

The Cheque Extraction API is tailored to retrieve data from cheque images. By providing the URL of the cheque image, the API delivers structured and accurate data extracted from the cheque. This includes crucial information like the account holder's name, cheque number, account number, bank and branch details, MICR code, IFSC code, and other pertinent information.

**Performance metrics:**

Accuracy: 86%

95% of responses within 7.5 secs.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/cheque/extractions
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/cheque/extractions
```
:::

***

### 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** |
| ------------- | ---------------- | ----------------------------------------------------------------------------------------------------- | ------------ |
| files         | Array of Strings | An array containing the URL of the files being extracted. Only one file URL can be extracted at once. | Mandatory    |

```json
{
    "files": [
        "https://preproduction-persist.signzy.tech/api/files/39733953/download/0000000.pdf"
    ]
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/cheque/extractions' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Your access token>' \
--data '{
    "files": [
        "https://preproduction-persist.signzy.tech/api/files/39733953/download/0000000.pdf"
    ]
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "files": [
    "https://preproduction-persist.signzy.tech/api/files/39733953/download/0000000.pdf"
  ]
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.signzy.app/api/v3/cheque/extractions',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Your access 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({
  "files": [
    "https://preproduction-persist.signzy.tech/api/files/39733953/download/0000000.pdf"
  ]
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Your access token>'
}
conn.request("POST", "/api/v3/cheque/extractions", 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/cheque/extractions"
  method := "POST"

  payload := strings.NewReader(`{
    "files": [
        "https://preproduction-persist.signzy.tech/api/files/39733953/download/0000000.pdf"
    ]
}`)

  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", "<Your access 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**                                                                                  |
| --------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------ |
| files                                   | Array of Strings | URL of files being extracted.                                                                    |
| id                                      | Integer          | Unique ID for the request.                                                                       |
| result                                  | Object           | Contains the result of extraction.                                                               |
| result.address                          | String           | Address as on the cheque.                                                                        |
| result.ifsc                             | String           | IFSC code.                                                                                       |
| result.pincode                          | String           | Pincode.                                                                                         |
| result.accountNumber                    | String           | Bank account number.                                                                             |
| result.bankName                         | String           | Name of the bank.                                                                                |
| result.chequeNumber                     | String           | Cheque number.                                                                                   |
| result.accountType                      | String           | Type of bank account.If available.<br />The possible values are: Savings or<br />Current         |
| result.micrCode                         | String           | MICR code.                                                                                       |
| result.contact                          | String           | Contact number, if available.                                                                    |
| result.branch                           | String           | Branch name of the bank.                                                                         |
| result.name                             | String           | Account holder name.                                                                             |
| result.splitAddress                     | Object           | Contains the bank branch address in split format.                                                |
| result.splitAddress.district            | Array of strings | District.                                                                                        |
| result.splitAddress.state               | Array of strings | State.                                                                                           |
| result.splitAddress.city                | Array of strings | City.                                                                                            |
| result.splitAddress.pincode             | String           | Pincode.                                                                                         |
| result.splitAddress.country             | Array of Strings | Country.                                                                                         |
| result.splitAddress.addressLine         | String           | Address line.                                                                                    |
| result.summary                          | Object           | Summary of extracted details.                                                                    |
| result.summary.number                   | String           | Account number.                                                                                  |
| result.summary.name                     | String           | Account holder name.                                                                             |
| result.summary.dob                      | String           | Date of birth, if available.<br />In format DD/MM/YYYY.                                          |
| result.summary.address                  | String           | Bank branch address.                                                                             |
| result.summary.splitAddress             | Object           | Contains the Bank branch address in split format.                                                |
| result.summary.splitAddress.district    | Array of strings | District.                                                                                        |
| result.summary.splitAddress.state       | Array of strings | State.                                                                                           |
| result.summary.splitAddress.city        | Array of strings | City.                                                                                            |
| result.summary.splitAddress.pincode     | String           | Pincode.                                                                                         |
| result.summary.splitAddress.country     | Array of Strings | Country.                                                                                         |
| result.summary.splitAddress.addressLine | String           | Address line.                                                                                    |
| result.summary.gender                   | String           | Gender of the individual, If available.<br />Possible response could be:<br />Male,<br />Female. |
| result.summary.guardianName             | String           | Guardian's name, if available.                                                                   |
| result.summary.issueDate                | String           | Issue date in format DD/MM/YYYY if available.                                                    |
| result.summary.expiryDate               | String           | Expiry date in format DD/MM/YYYY if available.                                                   |

:::CodeblockTabs
200

```json
{
    "files": [
        "https://preproduction-persist.signzy.tech/api/files/39733953/download/000000.pdf"
    ],
    "id": 101,
    "result": {
        "address": "Address",
        "ifsc": "<IFSC code>",
        "pincode": "000000",
        "accountNumber": "<Account Number>",
        "bankName": "AXIS BANK",
        "chequeNumber": "",
        "accountType": "",
        "micrCode": "<MICR code>",
        "contact": "Contact number",
        "branch": "AGRA(UP)",
        "name": "<Account holder name>",
        "splitAddress": {
            "district": [
                "AGRA"
            ],
            "state": [
                [
                    "UTTAR PRADESH",
                    "UP"
                ]
            ],
            "city": [
                "AGRA"
            ],
            "pincode": "000000",
            "country": [
                "IN",
                "IND",
                "INDIA"
            ],
            "addressLine": "Address line"
        },
        "summary": {
            "number": "<Account number>",
            "name": "<Payer's name>",
            "dob": "DD/MM/YYYY",
            "address": "Address",
            "splitAddress": {
                "district": [
                    "AGRA"
                ],
                "state": [
                    [
                        "UTTAR PRADESH",
                        "UP"
                    ]
                ],
                "city": [
                    "AGRA"
                ],
                "pincode": "000000",
                "country": [
                    "IN",
                    "IND",
                    "INDIA"
                ],
                "addressLine": "Address line"
            },
            "gender": "",
            "guardianName": "",
            "issueDate": "",
            "expiryDate": ""
        }
    }
}
```

400

```json
// Invalid input URL
{
    "error": {
        "message": "File download failed. Please give valid URL or valid filetype.",
        "status": 400,
        "name": "Invalid input"
    }
}

// Empty input URL
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "\"requestBody.cheque_url\" is not allowed to be empty",
        "id": "e9fb474a-92b3-4479-bed2-cabd32c3b24f"
    }
}
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

409

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

***

### Document Related Constraints

:::hint{type="info"}
The size of the document should not exceed **7 MB**.

For best results, make sure the image you use fits tightly in the camera view and is horizontally aligned.

Supported document types:

- Image - JPEG, JPG, PNG and TIFF/TIF.
- Single page PDF
:::

***

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

