Extract data from GST certificate
curl --request POST \
--url https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_url": "https://example.com/documents/gst-certificate.pdf"
}
'import requests
url = "https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/"
payload = { "document_url": "https://example.com/documents/gst-certificate.pdf" }
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/documents/gst-certificate.pdf'})
};
fetch('https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/', 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/gst-certificate/",
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/documents/gst-certificate.pdf'
]),
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/gst-certificate/"
payload := strings.NewReader("{\n \"document_url\": \"https://example.com/documents/gst-certificate.pdf\"\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/gst-certificate/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document_url\": \"https://example.com/documents/gst-certificate.pdf\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/")
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/documents/gst-certificate.pdf\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Operation completed successfully",
"data": {
"gstin": "27AABCU9603R1ZX",
"legal_name": "SAMPLE ENTERPRISES PRIVATE LIMITED",
"trade_name": "SAMPLE ENTERPRISES",
"pan_number": "AABCU9603R",
"address": "123, Sample Street, Industrial Area, Mumbai, Maharashtra, 400001",
"constitution_of_business": "Private Limited Company",
"type_of_registration": "Regular",
"date_of_liability": null,
"valid_from": "2020-01-15",
"valid_upto": "NA",
"is_provisional": false
},
"credits_used": 10,
"credits_remaining": 5000
}OCR APIs
GST Certificate v2
Processes a GST certificate document (PDF or image) and extracts structured information using OCR technology.
POST
/
v2
/
ocr
/
gst-certificate
/
Extract data from GST certificate
curl --request POST \
--url https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_url": "https://example.com/documents/gst-certificate.pdf"
}
'import requests
url = "https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/"
payload = { "document_url": "https://example.com/documents/gst-certificate.pdf" }
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/documents/gst-certificate.pdf'})
};
fetch('https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/', 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/gst-certificate/",
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/documents/gst-certificate.pdf'
]),
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/gst-certificate/"
payload := strings.NewReader("{\n \"document_url\": \"https://example.com/documents/gst-certificate.pdf\"\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/gst-certificate/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document_url\": \"https://example.com/documents/gst-certificate.pdf\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/v2/ocr/gst-certificate/")
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/documents/gst-certificate.pdf\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Operation completed successfully",
"data": {
"gstin": "27AABCU9603R1ZX",
"legal_name": "SAMPLE ENTERPRISES PRIVATE LIMITED",
"trade_name": "SAMPLE ENTERPRISES",
"pan_number": "AABCU9603R",
"address": "123, Sample Street, Industrial Area, Mumbai, Maharashtra, 400001",
"constitution_of_business": "Private Limited Company",
"type_of_registration": "Regular",
"date_of_liability": null,
"valid_from": "2020-01-15",
"valid_upto": "NA",
"is_provisional": false
},
"credits_used": 10,
"credits_remaining": 5000
}Document Requirements:
- Clear, high-resolution document
- Valid GST certificate
- Supported formats: PDF, JPG, JPEG, PNG
- Maximum file size: 10 MB
Authorizations
API key issued by KonnectNXT. Pass as Authorization: Bearer <your_api_key>.
Body
application/json
Publicly accessible URL of the GST certificate document to be processed.
Requirements:
- Must be a valid HTTP/HTTPS URL
- Document must be publicly accessible
- Supported formats: PDF, JPG, JPEG, PNG
Example:
"https://example.com/documents/gst-certificate.pdf"
Response
GST certificate 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 GST certificate 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?

