Dokumentasi
BAPENDA Open API adalah Application Programming Interfaces (APIs) yang dikembangkan oleh BAPENDA untuk memungkinkan integrasi antara aplikasi Anda dan layanan kami.
Buat Kode Bayar
Parameter di bawah ini harus disertakan dalam header request di setiap panggilan API :
| Key | Value |
|---|---|
Authentication
|
Bearer {{token}}
|
HTTP Request
showInfoPkb
POSThttps://retribusi.sumutprov.go.id/app-api/api/pajak/info/pkb
Request Header
| Key | Value | Mandatory |
|---|---|---|
Content-Type
|
application/x-www-form-urlencoded
|
Yes
|
Request Body
| Field | Data Type | Mandatory | Description |
|---|---|---|---|
no_polisi
|
string
|
Yes
|
Nomor Polisi
|
plat
|
string
|
Yes
|
Plat
|
status_hitung_pajak
|
integer
|
Yes
|
Status Hitung Pajak
|
Contoh Request
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://retribusi.sumutprov.go.id/app-api/api/pajak/info/pkb',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'no_polisi=BK1111XXX&plat=01&status_hitung_pajak=0',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded',
'Authorization: Bearer {{tokenClientApp}}',
'Cookie: XSRF-TOKEN=XXXXXXX'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;