Extract data from cheque image
curl --request POST \
--url https://bgv.konnectnxt.com/api/v2/ocr/cheque/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_url": "https://example.com/images/cheque-sample.jpg",
"micr_details": true
}
'import requests
url = "https://bgv.konnectnxt.com/api/v2/ocr/cheque/"
payload = {
"document_url": "https://example.com/images/cheque-sample.jpg",
"micr_details": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
document_url: 'https://example.com/images/cheque-sample.jpg',
micr_details: true
})
};
fetch('https://bgv.konnectnxt.com/api/v2/ocr/cheque/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://bgv.konnectnxt.com/api/v2/ocr/cheque/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document_url' => 'https://example.com/images/cheque-sample.jpg',
'micr_details' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://bgv.konnectnxt.com/api/v2/ocr/cheque/"
payload := strings.NewReader("{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://bgv.konnectnxt.com/api/v2/ocr/cheque/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/v2/ocr/cheque/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 400,
"message": "Invalid request parameters",
"data": {
"account_name": "John Doe",
"account_no": "123456789012",
"bank_name": "ICICI Bank",
"bank_address": "Mumbai Branch, Maharashtra",
"ifsc_code": "ICIC0001234",
"date_of_issue": "2024-01-15",
"is_scanned": false,
"micr_cheque_number": "000123",
"micr_code": "400240001"
},
"credits_used": 3,
"credits_left": 4040
}OCR APIs
Indian Cheque v2
Processes a cheque image and extracts structured information using OCR technology
POST
/
v2
/
ocr
/
cheque
/
Extract data from cheque image
curl --request POST \
--url https://bgv.konnectnxt.com/api/v2/ocr/cheque/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_url": "https://example.com/images/cheque-sample.jpg",
"micr_details": true
}
'import requests
url = "https://bgv.konnectnxt.com/api/v2/ocr/cheque/"
payload = {
"document_url": "https://example.com/images/cheque-sample.jpg",
"micr_details": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
document_url: 'https://example.com/images/cheque-sample.jpg',
micr_details: true
})
};
fetch('https://bgv.konnectnxt.com/api/v2/ocr/cheque/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://bgv.konnectnxt.com/api/v2/ocr/cheque/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document_url' => 'https://example.com/images/cheque-sample.jpg',
'micr_details' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://bgv.konnectnxt.com/api/v2/ocr/cheque/"
payload := strings.NewReader("{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://bgv.konnectnxt.com/api/v2/ocr/cheque/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/v2/ocr/cheque/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"document_url\": \"https://example.com/images/cheque-sample.jpg\",\n \"micr_details\": true\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 400,
"message": "Invalid request parameters",
"data": {
"account_name": "John Doe",
"account_no": "123456789012",
"bank_name": "ICICI Bank",
"bank_address": "Mumbai Branch, Maharashtra",
"ifsc_code": "ICIC0001234",
"date_of_issue": "2024-01-15",
"is_scanned": false,
"micr_cheque_number": "000123",
"micr_code": "400240001"
},
"credits_used": 3,
"credits_left": 4040
}Image Requirements:
- Clear, high-resolution image
- Cheque should be flat and well-lit
- All text should be clearly visible
- Supported formats: JPG, JPEG, PNG
Authorizations
API key issued by KonnectNXT. Pass as Authorization: Bearer <your_api_key>.
Body
application/json
Publicly accessible URL of the cheque image to be processed.
Requirements:
- Must be a valid HTTP/HTTPS URL
- Image must be publicly accessible
- Supported formats: JPG, JPEG, PNG
Example:
"https://example.com/images/cheque-front.jpg"
Fetch MICR details
Example:
true
Response
Cheque data extracted successfully
Overall status of the API
Available options:
success, error HTTP status code
Example:
400
Description of the response or error
Example:
"Invalid request parameters"
Extracted cheque information
Show child attributes
Show child attributes
Represents the total number of credits used in this request.
Example:
3
Represents the remaining credits available for use.
Example:
4040
Was this page helpful?

