Background supergraphic

Surat Tanda Nomor Kendaraan (STNK)

Surat Tanda Nomor Kendaraan (STNK).

STNK 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 of halaman_pajak_tahunan and halaman_stnk.

  • Name
    halaman_pajak_tahunan
    Type
    object
    Description

    Contains the reading for each halaman_pajak_tahunan fields. Each field contains:

    • confidence (number): Overall confidence score in percentage
    • value (string): The processed/extracted value
    • value_original (string): The original text as read from the document
    • confidence_text (number): Text recognition confidence in percentage
    • polygon (array): Array of coordinate pairs [x, y] representing the bounding box of the field
    • page_index (number): Page number where the field was found (0-indexed)
    • Name
      alamat
      Type
      object
      Description

      Address.

    • Name
      bahan_bakar
      Type
      object
      Description

      Fuel type.

    • Name
      berlaku_sampai
      Type
      object
      Description

      Expiration date.

    • Name
      ditetapkan_tanggal
      Type
      object
      Description

      Approval date.

    • Name
      ident
      Type
      object
      Description

      Ident.

    • Name
      isi_silinder
      Type
      object
      Description

      Cylinder content.

    • Name
      jenis
      Type
      object
      Description

      Type.

    • Name
      jumlah_sumbu
      Type
      object
      Description

      Number of axes.

    • Name
      kepemilikan_ke
      Type
      object
      Description

      Possession number.

    • Name
      kode_njkb
      Type
      object
      Description

      NJKB code.

    • Name
      merk
      Type
      object
      Description

      Brand name.

    • Name
      model
      Type
      object
      Description

      Model.

    • Name
      nama_pemilik
      Type
      object
      Description

      Owner's name.

    • Name
      nomor_bpkb
      Type
      object
      Description

      Number of BPKB.

    • Name
      nomor_identitas_pemilik
      Type
      object
      Description

      Owner's ID number.

    • Name
      nomor_mesin
      Type
      object
      Description

      Machine number.

    • Name
      nomor_pajak_tahunan
      Type
      object
      Description

      Annual tax number.

    • Name
      nomor_rangka
      Type
      object
      Description

      Chassis number.

    • Name
      nomor_registrasi
      Type
      object
      Description

      Registration number.

    • Name
      nomor_registrasi_lama
      Type
      object
      Description

      Old registration number.

    • Name
      samsat_provinsi
      Type
      object
      Description

      Provincial Samsat.

    • Name
      tahun_pembuatan
      Type
      object
      Description

      Manufacture year.

    • Name
      tahun_registrasi
      Type
      object
      Description

      Registration year.

    • Name
      tipe
      Type
      object
      Description

      Type.

    • Name
      warna
      Type
      object
      Description

      Color.

    • Name
      warna_tnkb
      Type
      object
      Description

      TNKB (Tanda Nomor Kendaraan Bermotor) number.

    • Name
      table
      Type
      array
      Description

      Table containing payment details. Only returned by the /stnk-with-table endpoint. Each item in the array contains:

      • Name
        jenis_biaya
        Type
        object
        Description

        Cost type.

      • Name
        pokok
        Type
        object
        Description

        Base amount.

      • Name
        sanksi_administratif
        Type
        object
        Description

        Administrative sanctions.

      • Name
        jumlah
        Type
        object
        Description

        Total amount.

  • Name
    halaman_stnk
    Type
    object
    Description

    Contains the reading for each halaman_stnk fields. Each field contains:

    • confidence (number): Overall confidence score in percentage
    • value (string): The processed/extracted value
    • value_original (string): The original text as read from the document
    • confidence_text (number): Text recognition confidence in percentage
    • polygon (array): Array of coordinate pairs [x, y] representing the bounding box of the field
    • page_index (number): Page number where the field was found (0-indexed)
    • Name
      alamat
      Type
      object
      Description

      Address.

    • Name
      bahan_bakar
      Type
      object
      Description

      Fuel type.

    • Name
      berlaku_sampai
      Type
      object
      Description

      Expiration date.

    • Name
      isi_silinder
      Type
      object
      Description

      Cylinder content.

    • Name
      jenis
      Type
      object
      Description

      Type.

    • Name
      kode_lokasi
      Type
      object
      Description

      Location code.

    • Name
      merk
      Type
      object
      Description

      Brand name.

    • Name
      model
      Type
      object
      Description

      Model.

    • Name
      nama_pemilik
      Type
      object
      Description

      Owner's name.

    • Name
      nomor_bpkb
      Type
      object
      Description

      Number of BPKB.

    • Name
      nomor_identitas_pemilik
      Type
      object
      Description

      Owner's ID number.

    • Name
      nomor_mesin
      Type
      object
      Description

      Machine number.

    • Name
      nomor_rangka
      Type
      object
      Description

      Chassis number.

    • Name
      nomor_registrasi
      Type
      object
      Description

      Registration number.

    • Name
      nomor_stnk
      Type
      object
      Description

      STNK number.

    • Name
      nomor_urut_pendaftaran
      Type
      object
      Description

      Registration serial number.

    • Name
      polda_penerbitan
      Type
      object
      Description

      Provincial police publisher.

    • Name
      tahun_pembuatan
      Type
      object
      Description

      Manufacture year.

    • Name
      tahun_registrasi
      Type
      object
      Description

      Registration year.

    • Name
      tanggal_penerbitan
      Type
      object
      Description

      Publishing date.

    • Name
      tempat_penerbitan
      Type
      object
      Description

      Publishing place.

    • Name
      tipe
      Type
      object
      Description

      Type.

    • Name
      warna
      Type
      object
      Description

      Color.

    • Name
      warna_tnkb
      Type
      object
      Description

      TNKB (Tanda Nomor Kendaraan Bermotor) number.


POST/ocr/v1/stnk

Read STNK

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

Required parameter

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

    The image file for the STNK.

Sample Request

POST
/ocr/v1/stnk
1
2
3
4
5
import { Vision } from '@glair/vision'; const vision = new Vision({ apiKey: 'api-key', username: 'username', password: 'password' }); await vision.ocr.stnk({ image: '/path/to/image/STNK.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
{ "status": "SUCCESS", "reason": "File Successfully Read", "read": { "halaman_pajak_tahunan": { "nomor_pajak_tahunan": { "confidence": 71, "polygon": [[2139, 30], [2750, 30], [2750, 133], [2139, 133]], "value": "0217188", "page_index": 0, "confidence_text": 99.95, "value_original": "0217188" }, "samsat_provinsi": { "confidence": 89.45, "polygon": [[3029, 99], [3520, 99], [3520, 154], [3029, 154]], "value": "KALIMANTAN TIMUR", "page_index": 0, "confidence_text": 99.98, "value_original": "KALIMANTAN TIMUR" }, "nomor_registrasi": { "confidence": 89.23, "polygon": [[435, 262], [851, 262], [851, 333], [435, 333]], "value": "KT 8180 YF", "page_index": 0, "confidence_text": 98.62, "value_original": "KT 8180 YF" }, "nama_pemilik": { "confidence": 89.57, "polygon": [[440, 331], [1685, 331], [1685, 401], [440, 401]], "value": "PT. MITRA PINASTHIKA MUSTIKA RENT", "page_index": 0, "confidence_text": 99.51, "value_original": "PT.MITRA PINASTHIKA MUSTIKA RENT" }, "alamat": { "confidence": 89.27, "polygon": [[442, 410], [1809, 410], [1809, 564], [442, 564]], "value": "JL.MT.HARYONO DALAM NO.48 RT.40 KEL GN. BAHAGIA BPP", "page_index": 0, "confidence_text": 97.81, "value_original": "JL.MT.HARYONO DALAM NO.48 RT.40 KEL GN. BAHAGIA BPP" }, "merk": { "confidence": 92.69, "polygon": [[440, 568], [842, 568], [842, 641], [440, 641]], "value": "MITSUBISHI", "page_index": 0, "confidence_text": 99.95, "value_original": "MITSUBISHI" }, "tipe": { "confidence": 89.64, "polygon": [[443, 637], [1505, 637], [1505, 712], [443, 712]], "value": "TRITON 2.5L DC HDX-H 4X4 MT", "page_index": 0, "confidence_text": 99.87, "value_original": "TRITON 2.5L DC HDX-H 4X4 MT" }, "jenis": { "confidence": 86.35, "polygon": [[444, 721], [808, 721], [808, 783], [444, 783]], "value": "MBL-BEBAN", "page_index": 0, "confidence_text": 99.88, "value_original": "MBL-BEBAN" }, "model": { "confidence": 90.4, "polygon": [[833, 716], [1309, 716], [1309, 789], [833, 789]], "value": "DOUBLE CABIN", "page_index": 0, "confidence_text": 99.71, "value_original": "DOUBLE CABIN" }, "warna_tnkb": { "confidence": 89.61, "polygon": [[1400, 714], [1617, 714], [1617, 784], [1400, 784]], "value": "HITAM", "page_index": 0, "confidence_text": 99.93, "value_original": "HITAM" }, "tahun_pembuatan": { "confidence": 89.27, "polygon": [[599, 798], [760, 798], [760, 867], [599, 867]], "value": "2017", "page_index": 0, "confidence_text": 99.98, "value_original": "2017" }, "isi_silinder": { "confidence": 84.1, "polygon": [[483, 873], [691, 873], [691, 945], [483, 945]], "value": "2,477", "page_index": 0, "confidence_text": 99.86, "value_original": "2.477" }, "bahan_bakar": { "confidence": 91.23, "polygon": [[1402, 935], [1402, 868], [1611, 868], [1611, 935]], "value": "SOLAR", "page_index": 0, "confidence_text": 100, "value_original": "SOLAR" }, "warna": { "confidence": 92.57, "polygon": [[448, 961], [883, 961], [883, 1028], [448, 1028]], "value": "PUTIH SOLID", "page_index": 0, "confidence_text": 99.96, "value_original": "PUTIH SOLID" }, "nomor_rangka": { "confidence": 90.38, "polygon": [[445, 1027], [1116, 1027], [1116, 1094], [445, 1094]], "value": "MMBJNKL30HH031552", "page_index": 0, "confidence_text": 99.92, "value_original": "MMBJNKL30HH031552" }, "nomor_mesin": { "confidence": 93.36, "polygon": [[446, 1103], [875, 1103], [875, 1172], [446, 1172]], "value": "4D56UAL5365", "page_index": 0, "confidence_text": 99.94, "value_original": "4D56UAL5365" }, "ditetapkan_tanggal": { "confidence": 91.36, "polygon": [[1934, 1090], [2323, 1090], [2323, 1163], [1934, 1163]], "value": "21-07-2020", "page_index": 0, "confidence_text": 99.29, "value_original": "21-07-2020" }, "nomor_bpkb": { "confidence": 94.23, "polygon": [[445, 1177], [843, 1174], [843, 1238], [446, 1240]], "value": "M11312676N", "page_index": 0, "confidence_text": 98.89, "value_original": "M11312676N" }, "berlaku_sampai": { "confidence": 86.52, "polygon": [[524, 1321], [524, 1251], [984, 1251], [984, 1321]], "value": "08-08-2021", "page_index": 0, "confidence_text": 95.72, "value_original": "08 AGST 2021" }, "ident": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "jumlah_sumbu": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "kepemilikan_ke": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "kode_njkb": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "nomor_identitas_pemilik": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "nomor_registrasi_lama": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "tahun_registrasi": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" } }, "halaman_stnk": { "nomor_stnk": { "confidence": 88.94, "polygon": [[2005, 157], [2510, 157], [2510, 256], [2005, 256]], "value": "13503496", "page_index": 0, "confidence_text": 99.97, "value_original": "13503496" }, "polda_penerbitan": { "confidence": 86.86, "polygon": [[3013, 163], [3637, 163], [3637, 239], [3013, 239]], "value": "KALIMANTAN TIMUR", "page_index": 0, "confidence_text": 94.18, "value_original": "KALIMANTAN TI" }, "nomor_registrasi": { "confidence": 89.58, "polygon": [[749, 407], [1150, 407], [1150, 477], [749, 477]], "value": "KT 8180 YF", "page_index": 0, "confidence_text": 96.98, "value_original": "KT 8180 YF" }, "nama_pemilik": { "confidence": 85.48, "polygon": [[752, 491], [1961, 477], [1962, 547], [752, 561]], "value": "PT. MITRA PINASTHIKA MUSTIKA RENT", "page_index": 0, "confidence_text": 99.93, "value_original": "PT.MITRA PINASTHIKA MUSTIKA RENT" }, "merk": { "confidence": 91.49, "polygon": [[753, 709], [1146, 709], [1146, 780], [753, 780]], "value": "MITSUBISHI", "page_index": 0, "confidence_text": 99.91, "value_original": "MITSUBISHI" }, "warna": { "confidence": 90.79, "polygon": [[2058, 701], [2478, 701], [2478, 767], [2058, 767]], "value": "PUTIH SOLID", "page_index": 0, "confidence_text": 95.13, "value_original": "PUTIH SOLID" }, "tipe": { "confidence": 86.59, "polygon": [[758, 778], [1783, 778], [1783, 856], [758, 856]], "value": "TRITON 2.5L DC HDX-H", "page_index": 0, "confidence_text": 98.12, "value_original": "TRITON 2.5L DC HDX-H" }, "bahan_bakar": { "confidence": 87.5, "polygon": [[2060, 776], [2262, 776], [2262, 841], [2060, 841]], "value": "SOLAR", "page_index": 0, "confidence_text": 100, "value_original": "SOLAR" }, "jenis": { "confidence": 86, "polygon": [[757, 860], [1109, 860], [1109, 927], [757, 927]], "value": "MBL-BEBAN", "page_index": 0, "confidence_text": 96.49, "value_original": "MBL-BEBAN" }, "warna_tnkb": { "confidence": 88.29, "polygon": [[2059, 850], [2264, 850], [2264, 915], [2059, 915]], "value": "HITAM", "page_index": 0, "confidence_text": 99.82, "value_original": "HITAM" }, "model": { "confidence": 89.89, "polygon": [[761, 930], [1229, 930], [1229, 995], [761, 995]], "value": "DOUBLE CABIN", "page_index": 0, "confidence_text": 99.91, "value_original": "DOUBLE CABIN" }, "tahun_registrasi": { "confidence": 88.66, "polygon": [[2062, 922], [2224, 922], [2224, 989], [2062, 989]], "value": "2017", "page_index": 0, "confidence_text": 99.98, "value_original": "2017" }, "tahun_pembuatan": { "confidence": 89.28, "polygon": [[762, 1006], [915, 1006], [915, 1073], [762, 1073]], "value": "2017", "page_index": 0, "confidence_text": 99.95, "value_original": "2017" }, "nomor_bpkb": { "confidence": 91.66, "polygon": [[2059, 992], [2445, 992], [2445, 1065], [2059, 1065]], "value": "M11312676N", "page_index": 0, "confidence_text": 99.72, "value_original": "M11312676N" }, "isi_silinder": { "confidence": 92.6, "polygon": [[764, 1076], [1083, 1076], [1083, 1148], [764, 1148]], "value": "2,477 CC", "page_index": 0, "confidence_text": 99.97, "value_original": "2.477 CC" }, "nomor_rangka": { "confidence": 90.59, "polygon": [[759, 1149], [1417, 1149], [1417, 1223], [759, 1223]], "value": "MMBJNKL30HH031552", "page_index": 0, "confidence_text": 99.98, "value_original": "MMBJNKL30HH031552" }, "nomor_mesin": { "confidence": 89.47, "polygon": [[759, 1224], [1191, 1224], [1191, 1294], [759, 1294]], "value": "4D56UAL5365", "page_index": 0, "confidence_text": 99.94, "value_original": "4D56UAL5365" }, "berlaku_sampai": { "confidence": 92.16, "polygon": [[2098, 1212], [2479, 1212], [2479, 1282], [2098, 1282]], "value": "08-08-2022", "page_index": 0, "confidence_text": 99.99, "value_original": "08-08-2022" }, "tempat_penerbitan": { "confidence": 84.44, "polygon": [[2456, 85], [3365, 85], [3365, 160], [2456, 160]], "value": "BALIKPAPAN", "page_index": 0, "confidence_text": 97.58, "value_original": "BALIKPARAN, 12 AGST 2017" }, "tanggal_penerbitan": { "confidence": 84.44, "polygon": [[2456, 85], [3365, 85], [3365, 160], [2456, 160]], "value": "12-08-2017", "page_index": 0, "confidence_text": 97.58, "value_original": "BALIKPARAN, 12 AGST 2017" }, "alamat": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "kode_lokasi": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "nomor_identitas_pemilik": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" }, "nomor_urut_pendaftaran": { "confidence": 0, "polygon": [], "value": "", "page_index": 0, "confidence_text": 0, "value_original": "" } } } }

POST/ocr/v1/stnk-with-table

Read STNK with Table

Same as standard OCR STNK, but this endpoint also identifies and reads data from STNK Pajak Tahunan table (halaman_pajak_tahunan).

Required parameter

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

    The image file for the STNK.

Sample Request

POST
/ocr/v1/stnk
1
2
3
4
curl -v -L -X POST 'https://api.vision.glair.ai/ocr/v1/stnk-with-table' \ -H "Authorization: Basic $(printf "%s" "USERNAME:PASSWORD" | base64)" \ -H 'x-api-key: API_KEY' \ -F 'image=@"/path/to/image/STNK.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{ "status": "SUCCESS", "reason": "File Successfully Read", "read": { "halaman_pajak_tahunan": { ... "table": [ { "pokok": { "confidence": 64.1, "polygon": [[39, 51], [396, 51], [396, 130], [39, 130]], "value": null, "page_index": 0, "confidence_text": 89.47, "value_original": "" }, "sanksi_administratif": { "confidence": 38.51, "polygon": [[497, 51], [821, 51], [821, 130], [497, 130]], "value": null, "page_index": 0, "confidence_text": 90.48, "value_original": "Sariksi" }, "jumlah": { "confidence": 61.42, "polygon": [[949, 51], [1305, 51], [1305, 130], [949, 130]], "value": null, "page_index": 0, "confidence_text": 92.9, "value_original": "Jumlah" }, "jenis_biaya": { "confidence": 68.34, "polygon": [[1337, 51], [1656, 51], [1656, 130], [1337, 130]], "value": "", "page_index": 0, "confidence_text": 82.28, "value_original": "" } }, { "pokok": { "confidence": 84.49, "polygon": [[39, 126], [396, 126], [396, 217], [39, 217]], "value": 0, "page_index": 0, "confidence_text": 99.41, "value_original": "0" }, "sanksi_administratif": { "confidence": 60.27, "polygon": [[497, 126], [821, 126], [821, 217], [497, 217]], "value": 0, "page_index": 0, "confidence_text": 97.62, "value_original": "0" }, "jumlah": { "confidence": 62.33, "polygon": [[949, 126], [1305, 126], [1305, 217], [949, 217]], "value": 0, "page_index": 0, "confidence_text": 99.16, "value_original": "0" }, "jenis_biaya": { "confidence": 25.42, "polygon": [[1337, 126], [1656, 126], [1656, 217], [1337, 217]], "value": "BBNKB", "page_index": 0, "confidence_text": 99.99, "value_original": "BBNKB" } }, { "pokok": { "confidence": 87.9, "polygon": [[39, 197], [396, 197], [396, 287], [39, 287]], "value": 3657060, "page_index": 0, "confidence_text": 99.29, "value_original": "3.657.060" }, "sanksi_administratif": { "confidence": 40.87, "polygon": [[497, 197], [821, 197], [821, 287], [497, 287]], "value": 0, "page_index": 0, "confidence_text": 98.48, "value_original": "0" }, "jumlah": { "confidence": 79.47, "polygon": [[949, 197], [1305, 197], [1305, 287], [949, 287]], "value": 1657060, "page_index": 0, "confidence_text": 97.67, "value_original": "1.657.060" }, "jenis_biaya": { "confidence": 48.44, "polygon": [[1337, 197], [1656, 197], [1656, 287], [1337, 287]], "value": "PKB", "page_index": 0, "confidence_text": 83.32, "value_original": "PKB" } }, { "pokok": { "confidence": 56.62, "polygon": [[39, 266], [396, 266], [396, 359], [39, 359]], "value": 163000, "page_index": 0, "confidence_text": 94.26, "value_original": "163.000" }, "sanksi_administratif": { "confidence": 53.75, "polygon": [[497, 266], [821, 266], [821, 359], [497, 359]], "value": 0, "page_index": 0, "confidence_text": 92.9, "value_original": "0" }, "jumlah": { "confidence": 61.24, "polygon": [[949, 266], [1305, 266], [1305, 359], [949, 359]], "value": 163000, "page_index": 0, "confidence_text": 84.25, "value_original": "163.000" }, "jenis_biaya": { "confidence": 60.07, "polygon": [[1337, 266], [1656, 266], [1656, 359], [1337, 359]], "value": "SWDKLLJ", "page_index": 0, "confidence_text": 93.86, "value_original": "SWDKLLJ" } }, { "pokok": { "confidence": 23.26, "polygon": [[39, 341], [396, 341], [396, 435], [39, 435]], "value": 0, "page_index": 0, "confidence_text": 81.61, "value_original": "0" }, "sanksi_administratif": { "confidence": 41.71, "polygon": [[497, 341], [821, 341], [821, 435], [497, 435]], "value": 0, "page_index": 0, "confidence_text": 93.23, "value_original": "0" }, "jumlah": { "confidence": 0, "polygon": [[949, 341], [1305, 341], [1305, 435], [949, 435]], "value": 0, "page_index": 0, "confidence_text": 0, "value_original": "0" }, "jenis_biaya": { "confidence": 54.16, "polygon": [[1337, 341], [1656, 341], [1656, 435], [1337, 435]], "value": "BIAYA ADMINISTRASI STNK", "page_index": 0, "confidence_text": 93.23, "value_original": "BIAYA ADMINISTRASI STNK" } }, { "pokok": { "confidence": 41.44, "polygon": [[39, 414], [396, 414], [396, 511], [39, 511]], "value": 0, "page_index": 0, "confidence_text": 93.17, "value_original": "0" }, "sanksi_administratif": { "confidence": 35.58, "polygon": [[497, 414], [821, 414], [821, 511], [497, 511]], "value": 0, "page_index": 0, "confidence_text": 95.2, "value_original": "0" }, "jumlah": { "confidence": 0, "polygon": [[949, 414], [1305, 414], [1305, 511], [949, 511]], "value": null, "page_index": 0, "confidence_text": 0, "value_original": "" }, "jenis_biaya": { "confidence": 55.2, "polygon": [[1337, 414], [1656, 414], [1656, 511], [1337, 511]], "value": "BIAYA ADMINISTRASI TNKB", "page_index": 0, "confidence_text": 95.55, "value_original": "BIAYA ADMINISTRASI TNKB" } }, { "pokok": { "confidence": 0, "polygon": [[39, 488], [396, 488], [396, 547], [39, 547]], "value": 0, "page_index": 0, "confidence_text": 0, "value_original": "0" }, "sanksi_administratif": { "confidence": 0, "polygon": [[497, 488], [821, 488], [821, 547], [497, 547]], "value": 0, "page_index": 0, "confidence_text": 0, "value_original": "0" }, "jumlah": { "confidence": 0, "polygon": [[949, 488], [1305, 488], [1305, 547], [949, 547]], "value": null, "page_index": 0, "confidence_text": 0, "value_original": "" }, "jenis_biaya": { "confidence": 51.29, "polygon": [[1337, 488], [1656, 488], [1656, 547], [1337, 547]], "value": "BIAYA ADMINISTRASI TNKB", "page_index": 0, "confidence_text": 85.7, "value_original": "BIAYA ADMINISTRASI TNKB" } }, { "pokok": { "confidence": 0, "polygon": [], "value": null, "page_index": 0, "confidence_text": 0, "value_original": "" }, "sanksi_administratif": { "confidence": 0, "polygon": [], "value": null, "page_index": 0, "confidence_text": 0, "value_original": "" }, "jumlah": { "confidence": 0, "polygon": [], "value": null, "page_index": 0, "confidence_text": 0, "value_original": "" }, "jenis_biaya": { "confidence": 0, "polygon": [], "value": "JUMLAH", "page_index": 0, "confidence_text": 0, "value_original": "JUMLAH" } } ], ... }, "halaman_stnk": { ... } } }

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 with readable STNK image

Response

1
2
3
4
5
{ "status": "SUCCESS", "reason": "File Successfully Read", //..., }

200 - OK

Request with non STNK 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", //..., }