Background supergraphic

Buku Pemilik Kendaraan Bermotor (BPKB)

Buku Pemilik Kendaraan Bermotor (BPKB).

BPKB Object

  • Name
    status
    Type
    string
    Description

    Enum code indicating the status of the reading result.

    1. SUCCESS
    2. NO_FILE
    3. FILE_INVALID_FORMAT
    4. FAILED
  • Name
    reason
    Type
    string
    Description

    A human-readable message providing more details about the reading result.

  • Name
    read
    Type
    object
    Description

    Contains the reading for each BPKB pages. Each fields has confidence (in percentage) and value (the reading).

    • Name
      identitas_pemilik
      Type
      object
      Description
      • Name
        alamat
        Type
        object
        Description

        Address.

      • Name
        alamat_email
        Type
        object
        Description

        Email address.

      • Name
        dikeluarkan
        Type
        object
        Description

        Issued at.

      • Name
        nama_pemilik
        Type
        object
        Description

        Owner's name.

      • Name
        nomor_bpkb
        Type
        object
        Description

        BPKB number.

      • Name
        no_ktp_tdp
        Type
        object
        Description

        KTP number.

      • Name
        no_telepon
        Type
        object
        Description

        Phone number.

      • Name
        pada_tanggal
        Type
        object
        Description

        Issued date in dd-mm-yyyy format.

      • Name
        pekerjaan
        Type
        object
        Description

        Job.

    • Name
      identitas_kendaraan
      Type
      object
      Description
      • Name
        bahan_bakar
        Type
        object
        Description

        Fuel type.

      • Name
        isi_silinder
        Type
        object
        Description

        Cylinder type.

      • Name
        jenis
        Type
        object
        Description

        Type.

      • Name
        jumlah_roda
        Type
        object
        Description

        Tyres count.

      • Name
        jumlah_sumbu
        Type
        object
        Description

        Axis count.

      • Name
        merk
        Type
        object
        Description

        Brand name.

      • Name
        model
        Type
        object
        Description

        Model.

      • Name
        nomor_mesin
        Type
        object
        Description

        Machine's number.

      • Name
        nomor_rangka
        Type
        object
        Description

        Skeleton number.

      • Name
        nomor_registrasi
        Type
        object
        Description

        Registration number.

      • Name
        tahun_pembuatan
        Type
        object
        Description

        Manufacturing year.

      • Name
        type
        Type
        object
        Description

        Type.

      • Name
        warna
        Type
        object
        Description

        Color.

      • Name
        warna_tnkb
        Type
        object
        Description

        Plate Color.

    • Name
      dokumen_registrasi_pertama
      Type
      object
      Description
      • Name
        nama_apm
        Type
        object
        Description

        APM name.

      • Name
        nomor_faktur
        Type
        object
        Description

        Invoice's number.

      • Name
        nomor_form_abc
        Type
        object
        Description

        ABC form's number.

      • Name
        tanggal_faktur
        Type
        object
        Description

        Invoice's date in dd-mm-yyyy format.

    • Name
      halaman_terakhir
      Type
      object
      Description
      • Name
        diterbitkan_oleh
        Type
        object
        Description

        Issued by.

      • Name
        no_register
        Type
        object
        Description

        Register's number.


POST/ocr/v1/bpkb

Read BPKB

Detects a valid BPKB image and returns the information as text.

Required parameter

  • Name
    image
    Type
    file (.png, .jpg, .jpeg, .tiff, .pdf)
    Description

    The image file for the BPKB.

Optional parameter

  • Name
    page
    Type
    number (1-4)
    Description

    If you only require a specific page number (1-4) of the BPKB, please include this parameter. If you need all pages, you can omit this parameter.

Sample Request

POST
/ocr/v1/bpkb
1
2
3
4
5
import { Vision } from '@glair/vision'; const vision = new Vision({ apiKey: 'api-key', username: 'username', password: 'password' }); await vision.ocr.bpkb({ image: '/path/to/image/BPKB.jpg' });

Sample Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "dokumen_registrasi_pertama": { "nama_apm": { "confidence": 98, "value": "PT MOBIL MOTOR" }, "nomor_faktur": { "confidence": 99, "value": "WZ111456" }, "nomor_form_abc": { "confidence": 0, "value": "" }, "tanggal_faktur": { "confidence": 99, "value": "01-02-2023" } }, "halaman_terakhir": { "diterbitkan_oleh": { "confidence": 98, "value": "DIREKTORAT LALU LINTAS POLDA METRO JAYA" }, "no_register": { "confidence": 98, "value": "R/H012345/1/2011/DITLLPMTJ" } }, "identitas_kendaraan": { "bahan_bakar": { "confidence": 99, "value": "BENSIN" }, "isi_silinder": { "confidence": 99, "value": "1.000 CC" }, "jenis": { "confidence": 98, "value": "MB. PENUMPANG" }, "jumlah_roda": { "confidence": 94, "value": "4 (EMPAT)" }, "jumlah_sumbu": { "confidence": 99, "value": "2 (DUA)" }, "merk": { "confidence": 99, "value": "DAIHATSU" }, "model": { "confidence": 99, "value": "PICK UP" }, "nomor_mesin": { "confidence": 99, "value": "ABCDE1234567" }, "nomor_rangka": { "confidence": 99, "value": "MNOPQRSTU1234567" }, "nomor_registrasi": { "confidence": 99, "value": "B 1234 AI" }, "tahun_pembuatan": { "confidence": 99, "value": "2023" }, "type": { "confidence": 97, "value": "LUX 10 1.5 AT" }, "warna": { "confidence": 99, "value": "HITAM" }, "warna_tnkb": { "confidence": 91, "value": "PUTIH" } }, "identitas_pemilik": { "alamat": { "confidence": 97, "value": "JL. JALAN RT 001 RW 001 KEL. KELURAHAN KEC KECAMATAN JAKARTA PUSAT" }, "alamat_email": { "confidence": 99, "value": "" }, "dikeluarkan": { "confidence": 99, "value": "JAKARTA" }, "nama_pemilik": { "confidence": 99, "value": "NAMA PEMILIK" }, "no_ktp_tdp": { "confidence": 99, "value": "1234567890123456" }, "no_telepon": { "confidence": 99, "value": "01234567890" }, "nomor_bpkb": { "confidence": 99, "value": "T-01234567" }, "pada_tanggal": { "confidence": 99, "value": "01-02-2023" }, "pekerjaan": { "confidence": 0, "value": "" } } } }

Request ID

An associated request identifier is generated for every request made to this endpoint. This value can be found in the response headers under Request-Id


Responses

Various responses for this endpoint, in addition to general responses specified in Errors.

200 - OK

Request without parameter page

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "identitas_pemilik": { //... }, "identitas_kendaraan": { //... }, "dokumen_registrasi_pertama": { //... }, "halaman_terakhir": { // ... } } }

200 - OK

Request with parameter page=1

Response

1
2
3
4
5
6
7
8
9
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "identitas_pemilik": { //... } } }

200 - OK

Request with parameter page=2

Response

1
2
3
4
5
6
7
8
9
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "identitas_kendaraan": { //... } } }

200 - OK

Request with parameter page=3

Response

1
2
3
4
5
6
7
8
9
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "dokumen_registrasi_pertama": { //... } } }

200 - OK

Request with parameter page=4

Response

1
2
3
4
5
6
7
8
9
{ "status": "SUCCESS", "reason": "File successfully read.", "read": { "halaman_terakhir": { // ... } } }

200 - OK

Request with non BPKB image

Response

1
2
3
4
5
{ "status": "SUCCESS", "reason": "File successfully read. Some fields are invalid.", //..., }

400 - Bad Request

Request without form-data image

Response

1
2
3
4
5
{ "status": "NO_FILE", "reason": "No file in request body", //..., }

415 - Unsupported Media Type

Request with non-image file format

Response

1
2
3
4
5
{ "status": "FILE_INVALID_FORMAT", "reason": "Failed to process invalid file format. Please upload the correct file format", //..., }