STNK

This method helps you to extract text in STNK image.

🎈Endpoint

🎈Request

Headers

Key

Type

Notes

Description

App-ID

String

Required

Application ID that generated from Application Menu in Verihubs Client Dashboard. To hit in Testing and Live mode you need a Production Application ID.

API-Key

String

Required

API-Key that generated from Application Menu in Verihubs Client Dashboard that related to specific Application ID.

You can generate your Application ID and API-Key in the Application page in Verihubs Client Dashboard..

Body Parameters

Parameter

Type

Notes

Default

Description

image

file

Required


  • STNK image file - File Type JPEG, JPG, PNG and PDF - Max File size: 10MB

🎈Responses

Response Code

CodeDescription
200Successful Response
422 / 400Bad Request
401Unauthorized
500Internal Server Error

Details for 200

Key

Type

Description

message

string

Message that describe the overall response.

data

object

Shows the extraction result

id

string

Used as the identity of the extraction result.

reference_id

string

The identity of the extraction result which want to be pulled

no_polisi
nama_pemilik
alamat_pemilik
merek
tipe
jenis
model
tahun_pembuatan
warna
no_rangka
no_mesin
isi_silinder
bahan_bakar
warna_tnkb
nomor_bpkb
berlaku_sampai
tahun_registrasi
no_stnk
no_pajak
total_pajak
kode_lokasi
no_urut_pendaftaran

string

Describes the detail extracted from STNK

Error Code

Response CodeErrror codeError MessageDescription
422OCR_40001There's a problem with your JSON payloadno value in payload / incorrect payload / missing payload image / invalid image extension / image size exceeds maximum
400OCR_40004You don't have enough quota, please contact our adminInsufficient quota (applicable in testing mode only)
500OCR_50000There's a problem from our system.Internal server error

Sample Responses

Response Code

Response

Description

200

{
                                          "message": "Success Extract Data",
                                          "data": {
                                            "id": "f0cf2285-704d-4489-b011-504aab60b5ec",
                                            "reference_id": "eba032fc-7596-42c6-8efd-fe27137c5d67",
                                            "result_data": {
                                              "alamat_pemilik": "JL GATOT SUBROTO 5",
                                              "bahan_bakar": "BENSIN",
                                              "berlaku_sampai": "03-03-2029",
                                              "isi_silinder": "2500",
                                              "jenis": "SEPEDA MOTOR",
                                              "kode_lokasi": "12000",
                                              "merek": "HONDA",
                                              "model": "SEPEDA MOTOR",
                                              "nama_pemilik": "PT. ABC RENTAL",
                                              "no_mesin": "HND55V2500W2024010104A",
                                              "no_pajak": "N/A",
                                              "no_polisi": "B1111AAA",
                                              "no_rangka": "LGTAAAAA00HH000024",
                                              "no_stnk": "275410/MJ/2024",
                                              "no_urut_pendaftaran": "454/09.04.2024",
                                              "nomor_bpkb": "P00829031",
                                              "tahun_pembuatan": "2024",
                                              "tahun_registrasi": "2024",
                                              "tipe": "VARIO 175",
                                              "total_pajak": "N/A",
                                              "warna": "HITAM",
                                              "warna_tnkb": "HITAM"
                                            }
                                          }
                                        }

Request data parameter is valid.

400

{
          "message": "There's a problem with your JSON payload",
          "error_code": "OCR_40001"
          }

Invalid Payload.

401

{
                                          "message": "Authorization failed"
                                        }

Authorization Failed; Transaction that unauthorized due to Application ID or API-Key issue. To hit in Testing and Live mode you need a Production Application ID and API-Key.

400

{
                                          "message": "You don't have enough quota, please contact our admin",
                                          "error_code": "OCR_40004"
                                        }

The transaction is in Testing mode and not enough remaining quota. Please contact Verihubs Customer Support.

500

{
                                          "message": "Internal server error",
                                          "error_code": "OCR_50000"
                                        }

Internal server error.