🏢 Company Registration Certificate OCR
Welcome to the Company Registration Certificate OCR API, part of iApp Any Documents OCR by iApp Technology Co., Ltd. Extracts registration data from Department of Business Development company documents: both หนังสือรับรองการจดทะเบียนห้างหุ้นส่วนบริษัท and ใบสำคัญแสดงการจดทะเบียนห้างหุ้นส่วนบริษัท, in paper and e-certificate formats.
Try Demo!
Try Our AI Demo
Login or create a free account to use this AI service demo and explore our powerful APIs.
Get 100 Free Credits (IC) when you sign up!
Offer ends December 31, 2025
Getting Started
-
Prerequisites
- An API key from iApp Technology
- Document file: Company Registration Certificate (หนังสือรับรอง / ใบสำคัญแสดงการจดทะเบียนบริษัท)
- Supported file formats: PDF, JPG, JPEG, PNG, WEBP
- Maximum file size: 50MB
-
Quick Start
- Single
POSTwithmultipart/form-data - Structured JSON out, with a per-field confidence score
- Each input page returns its own entry in
docs, so a batch of documents can be sent in one request.
- Single
-
Key Features
- Field-level extraction with confidence scoring
- Thai and English output via
target_lang - Optional raw OCR text via
return_ocr - Handles photographs and scanned PDFs
-
Security & Compliance
- GDPR and PDPA compliant
- Secure API endpoints
- No data retention after processing
Please visit API Key Management page to view your existing API key or request a new one.
API Endpoints
| Endpoint | Method | Description | Cost |
|---|---|---|---|
/ocr/v3/company-certificate/file/v3/store/ocr/company-certificate | POST | Extract registration data from Thai company certificates issued by the DBD | 1 IC per page |
Both forms are equivalent. There is no base64 variant for this endpoint — file upload only.
Request
Request Headers
| Header | Value | Required |
|---|---|---|
apikey | Your iApp API key | Yes |
Request Body (multipart/form-data)
| Parameter | Type | Default | Description |
|---|---|---|---|
file | File (repeatable) | — | Required. Document file. PDF pages are processed automatically. |
return_ocr | Boolean | false | Include the raw OCR text in the response. |
target_lang | String | th | Language of extracted values: th or en. |
include_confidence | Boolean | true | Include a per-field confidence score (0.00–1.00). |
cURL
curl -X POST "https://api.iapp.co.th/ocr/v3/company-certificate/file" \
-H "apikey: YOUR_API_KEY" \
-F "file=@/path/to/document.pdf" \
-F "target_lang=th" \
-F "include_confidence=true"
Response
{
"docs": [
{
"message": "success",
"raw": {},
"processed": {
"document_type": "หนังสือรับรองการจดทะเบียนห้างหุ้นส่วนบริษัท",
"form_code": "สจ.5 000001",
"department": "สำนักงานทะเบียนหุ้นส่วนบริษัทกรุงเทพมหานคร กรมพัฒนาธุรกิจการค้า กระทรวงพาณิชย์",
"company_name": "บริษัท เอ บี ซี จำกัด",
"registration_number": "0105550000123",
"registration_date": "13 สิงหาคม 2556",
"issue_date": "21 เดือน พฤษภาคม พ.ศ. 2562",
"legal_status": "ได้จดทะเบียนเป็นนิติบุคคลตามประมวลกฎหมายแพ่งและพาณิชย์",
"registration_office": "สำนักงานทะเบียนหุ้นส่วนบริษัทกรุงเทพมหานคร",
"registrar_name": "นางสาวชลิดา ตัวอย่าง"
},
"confidence": {
"document_type": 0.95,
"form_code": 0.95,
"department": 0.95,
"company_name": 0.95,
"registration_number": 0.95,
"registration_date": 0.95
},
"process_ms": 4120
}
],
"docs_count": 1,
"process_ms": 4300
}
The iapp-input-pages response header reports the number of billed pages.
Supported Fields
| Field | Type | Description |
|---|---|---|
| document_type | String | Document type (certificate of registration / registration certificate) |
| form_code | String | Form code or document number, e.g. พค. 0401 |
| department | String | Issuing authority |
| company_name | String | Juristic person name |
| registration_number | String | 13-digit juristic person registration number |
| registration_date | String | Date of registration |
| issue_date | String | Date the document was issued |
| legal_status | String | Legal status statement |
| registration_office | String | Registrar office that recorded the registration |
| registrar_name | String | Name of the signing registrar |
Error Handling
| Status | Meaning |
|---|---|
| 400 | Unsupported file extension, or file larger than 50MB |
| 401 | Missing or invalid apikey |
| 402 | Insufficient credit balance |
| 404 | Unknown document type in the URL |
| 422 | No file attached to the request |
| 500 | Processing error — the response contains an error code to quote to support |
Code Examples
Python
import requests
url = "https://api.iapp.co.th/ocr/v3/company-certificate/file"
headers = {"apikey": "YOUR_API_KEY"}
files = {"file": open("document.pdf", "rb")}
data = {"target_lang": "th", "include_confidence": "true"}
response = requests.post(url, headers=headers, files=files, data=data)
result = response.json()
print(result["docs"][0]["processed"])
print(result["docs"][0]["confidence"])
JavaScript
const form = new FormData();
form.append("file", fileInput.files[0]);
form.append("target_lang", "th");
form.append("include_confidence", "true");
const res = await fetch("https://api.iapp.co.th/ocr/v3/company-certificate/file", {
method: "POST",
headers: { apikey: "YOUR_API_KEY" },
body: form,
});
const result = await res.json();
console.log(result.docs[0].processed);
PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.iapp.co.th/ocr/v3/company-certificate/file");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["apikey: YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
"file" => new CURLFile("/path/to/document.pdf"),
"target_lang" => "th",
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Java
OkHttpClient client = new OkHttpClient();
RequestBody body = new MultipartBody.Builder()
.setType(MultipartBody.FORM)
.addFormDataPart("file", "document.pdf",
RequestBody.create(new File("/path/to/document.pdf"),
MediaType.parse("application/pdf")))
.addFormDataPart("target_lang", "th")
.build();
Request request = new Request.Builder()
.url("https://api.iapp.co.th/ocr/v3/company-certificate/file")
.addHeader("apikey", "YOUR_API_KEY")
.post(body)
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println(response.body().string());
}
Swift
let url = URL(string: "https://api.iapp.co.th/ocr/v3/company-certificate/file")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("YOUR_API_KEY", forHTTPHeaderField: "apikey")
let boundary = UUID().uuidString
request.setValue("multipart/form-data; boundary=\(boundary)",
forHTTPHeaderField: "Content-Type")
var data = Data()
let fileData = try Data(contentsOf: URL(fileURLWithPath: "/path/to/document.pdf"))
data.append("--\(boundary)\r\n".data(using: .utf8)!)
data.append("Content-Disposition: form-data; name=\"file\"; filename=\"document.pdf\"\r\n\r\n".data(using: .utf8)!)
data.append(fileData)
data.append("\r\n--\(boundary)--\r\n".data(using: .utf8)!)
URLSession.shared.uploadTask(with: request, from: data) { responseData, _, _ in
if let responseData, let json = String(data: responseData, encoding: .utf8) {
print(json)
}
}.resume()
Kotlin
val client = OkHttpClient()
val body = MultipartBody.Builder()
.setType(MultipartBody.FORM)
.addFormDataPart(
"file", "document.pdf",
File("/path/to/document.pdf").asRequestBody("application/pdf".toMediaType())
)
.addFormDataPart("target_lang", "th")
.build()
val request = Request.Builder()
.url("https://api.iapp.co.th/ocr/v3/company-certificate/file")
.addHeader("apikey", "YOUR_API_KEY")
.post(body)
.build()
client.newCall(request).execute().use { response ->
println(response.body?.string())
}
Dart
import 'package:http/http.dart' as http;
final request = http.MultipartRequest(
'POST',
Uri.parse('https://api.iapp.co.th/ocr/v3/company-certificate/file'),
);
request.headers['apikey'] = 'YOUR_API_KEY';
request.fields['target_lang'] = 'th';
request.files.add(
await http.MultipartFile.fromPath('file', '/path/to/document.pdf'),
);
final response = await request.send();
print(await response.stream.bytesToString());
Limitations & Best Practices
Limitations
- Maximum file size 50MB per request
- Supported formats: PDF, JPG, JPEG, PNG, WEBP
- Accuracy depends on image quality — heavily degraded scans, glare and handwriting over printed values reduce field-level accuracy
- Extraction is limited to the fields listed above
Best Practices
- Prefer the original PDF over a photograph where you have one
- Photograph the whole document, square-on and in even lighting
- Use at least 300 DPI for scans
- Check the
confidencescore per field and route low-confidence values to manual review - Send multiple documents in one request where supported to reduce round trips
Accuracy & Performance
Field-level extraction accuracy measured on the internal ChindaOCR-M3 golden evaluation set — visually re-verified labels over real Thai documents, including low-resolution photographs and bills partly obscured by handwriting.
| Document Type | Docs | Fields | Accuracy |
|---|---|---|---|
| Company Registration Certificate | 6 | 35 | 100% |
| Overall, all six document types | 25 | 147 | 98.6% |
Support
Need help? Contact us:
- Email: sale@iapp.co.th
- Phone: 086-322-5858
- Discord: iApp Technology