Skip to main content

Business Registration Certificate.

API Documentation for Business Registration Certificate.

Description

Business Registration Certificate is an API service to extrct information from the Certificate of Business Registration issued by DBD.

Response Schema

KeyTypeDescription
statusstrThe API processing status. "success or error"
errorlist[Dict of error details]Error details.
datalist[Data-Object]The extracted data from each page.

Data Object Schema

KeyTypeDescription
head_company_addressObjFieldHeadqualter fully address.
head_house_building_numberObjFieldHeadqualter House/Building address No.
head_street_addressObjFieldHeadqualter Street.
head_sub_districtObjFieldHeadqualter Sub-district.
head_districtObjFieldHeadqualter district.
head_provinceObjFieldHeadqualter provience.
head_postcodeObjFieldHeadqualter zip code.
branch_company_addressObjFieldListBranch fully addresses.
branch_house_building_numberObjFieldListBranch house/building address No.
branch_street_addressObjFieldListBranch street.
branch_sub_districtObjFieldListBranch sub-district.
branch_districtObjFieldListBranch district.
branch_provinceObjFieldListBranch provience.
branch_postcodeObjFieldListBranch zip code
committee_nameObjFieldListThe list of committee names.
company_nameObjFieldThe name of company.
legal_entity_idObjFieldThe registered ID No.
registered_capObjFieldThe registration capitals amount.
registration_dateObjFieldThe date of register.
registration_objectiveObjFieldListThe list of registration objective.
issued_dateObjFieldThe documetn issued date

ObjField Schema

KeyTypeDescription
valuestrThe designed field extracted from document.
bboxesList[List[List[int]]]The list of four point bboxes.
bboxes_normList[List[List[float]]]The list of four point normalized bboxes.
confidencefloatThe confidence value.

ObjFieldList Schema

KeyTypeDescription
valueList[str]The designed field extracted from document.
bboxesList[List[List[int]]]The list of four point bboxes.
bboxes_normList[List[List[float]]]The list of four point normalized bboxes.
confidencefloatThe confidence value.

Response Definition

HTTP StatusCodeMessageDescription
success200successIDcard Fraud Detection API works successfully.
Bad Request400Bad RequestNot a valid base64 image request (must be .jpg, .jpeg, .png, .pdf) or invalid size, request schema. The api can not retrieve information on any image.
Unprocessable Content422Unprocessable ContentThe request body is not valid.
Request Body too large413Request entity too largeThe request image base64 size is larger than the specified image size.
Error500Internal server errorThere is some error in the internal servers.

Requests My-Template

POST https://apis.aigen.online/aiscript/business-registration-certificate/v3

Requests Body

NameTypeDescription
image*StringBase64 image encoded string

API Response Examples.

View Response
{'status': 'success',
'error': [],
'data':[
{
"committee_name": {
"value": [
"xxx",
"xxx",
"xxx"
],
"bboxes": [
[
[
196,
860
],
[
588,
860
],
[
588,
916
],
[
196,
916
]
],
[
[
201,
930
],
[
540,
930
],
[
540,
968
],
[
201,
968
]
],
[
[
866,
867
],
[
1142,
867
],
[
1142,
914
],
[
866,
914
]
]
],
"bboxes_norm": [
[
[
0.1185,
0.3677
],
[
0.3555,
0.3677
],
[
0.3555,
0.3916
],
[
0.1185,
0.3916
]
],
[
[
0.1215,
0.3976
],
[
0.3265,
0.3976
],
[
0.3265,
0.4139
],
[
0.1215,
0.4139
]
],
[
[
0.5236,
0.3707
],
[
0.6904,
0.3707
],
[
0.6904,
0.3908
],
[
0.5236,
0.3908
]
]
],
"confidence": [
0.9887,
0.9599,
0.9982
]
},
"head_company_address": {
"value": "xxx",
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"confidence": 0.9396,
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"branch_company_address": {},
"company_name": {
"value": "xxx",
"bboxes": [
[
[
162,
748
],
[
684,
748
],
[
684,
790
],
[
162,
790
]
]
],
"bboxes_norm": [
[
[
0.0979,
0.3198
],
[
0.4135,
0.3198
],
[
0.4135,
0.3378
],
[
0.0979,
0.3378
]
]
],
"confidence": 0.9254
},
"legal_entity_id": {
"value": "xxx",
"bboxes": [
[
[
110,
626
],
[
886,
626
],
[
886,
675
],
[
110,
675
]
]
],
"bboxes_norm": [
[
[
0.0665,
0.2676
],
[
0.5357,
0.2676
],
[
0.5357,
0.2886
],
[
0.0665,
0.2886
]
]
],
"confidence": 0.9904
},
"registered_cap": {
"value": "xxx",
"bboxes": [
[
[
387,
1045
],
[
841,
1045
],
[
841,
1089
],
[
387,
1089
]
]
],
"bboxes_norm": [
[
[
0.234,
0.4468
],
[
0.5085,
0.4468
],
[
0.5085,
0.4656
],
[
0.234,
0.4656
]
]
],
"confidence": 0.9982
},
"registration_date": {
"value": "10 กันยายน 2563",
"bboxes": [
[
[
110,
626
],
[
886,
626
],
[
886,
675
],
[
110,
675
]
]
],
"bboxes_norm": [
[
[
0.0665,
0.2676
],
[
0.5357,
0.2676
],
[
0.5357,
0.2886
],
[
0.0665,
0.2886
]
]
],
"confidence": 0.9903999999999998
},
"issued_date": {
"value": "30 กันยายน 2565",
"bboxes": [
[
[
922,
1342
],
[
1429,
1342
],
[
1429,
1391
],
[
922,
1391
]
]
],
"bboxes_norm": [
[
[
0.5574,
0.5737
],
[
0.864,
0.5737
],
[
0.864,
0.5947
],
[
0.5574,
0.5947
]
]
],
"confidence": 0.9847
},
"registration_objective": {},
"head_full_address": {
"value": "xxxx",
"confidence": 0.9999491638177401,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_house_building_number": {
"value": "xxxx",
"confidence": 0.9999078710873922,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_street_address": {
"value": "xxx",
"confidence": 0.9999642173449199,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_sub_district": {
"value": "xxxx",
"confidence": 0.9999763114111764,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_district": {
"value": "xxxx",
"confidence": 0.999899705251058,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_province": {
"value": "xxxxx",
"confidence": 0.9999826604669745,
"bboxes": [
[
[
157,
1106
],
[
1301,
1106
],
[
1301,
1155
],
[
157,
1155
]
]
],
"bboxes_norm": [
[
[
0.0949,
0.4729
],
[
0.7866,
0.4729
],
[
0.7866,
0.4938
],
[
0.0949,
0.4938
]
]
]
},
"head_postcode": {},
"branch_house_building_number": {},
"branch_street_address": {},
"branch_sub_district": {},
"branch_district": {},
"branch_province": {},
"branch_postcode": {}
}
]
}

API Request Examples.

import requests

api = "https://apis.aigen.online/aiscript/business-registration-certificate/v3"
headers = {"x-aigen-key": "<key>"}
data = {'image':imgb64}
res = requests.post(api, json=data, headers=headers)
print(res.json())