Custom
API to download receipt custom.
Path
Method | Path |
---|---|
POST | api/v1/bill/download/custom |
Request Body
Attributes | Type | Description | Mandatory |
---|---|---|---|
commands | String | Value: receipt-custom | Yes |
username | String | Your registered phone number | Yes |
tr_id | String | IAK inquiry ID | Yes |
custom | Object | Custom data | Yes |
custom.header | Object | Custom header | Yes |
custom.header.company_name | String | Company name | Yes |
custom.header.company_address | String | Company address | Yes |
raw | Booelan | 0: Response pdf file 1:Response json data | Yes |
sign | String | Signature. Value: md5(username+api_key+'bc') | Yes |
{
"commands" : "receipt-custom",
"username" : "123123123",
"tr_id" : "123456",
"custom": {
"header": {
"company_name": "PT XXX XXX",
"company_address": "Jalan XXX<br>Kota XXX"
}
},
"raw": 1,
"sign" : "6bc194c0d23c18a12f5d6919aa72bc30"
}
Response
The response will be receipt in pdf format or json data.
Example Response JSON Data for PBB Product
{
"data": {
"HEADER": "STRUK PEMBAYARAN PBB KOTA CIMAHI",
"TANGGAL": "2025-07-04 11:05:51",
"NO. RESI": "12345678",
"NAMA PRODUK": "PBB KOTA CIMAHI",
"ID PELANGGAN": "329801092375990000",
"NAMA": "TESTING PBB",
"JUMLAH TAGIHAN": "Rp 203.857",
"ADMIN": "Rp 6.500",
"nop": "328073000401005610",
"nama_nop": "TESTING PBB",
"tahun_pajak": "2019",
"lokasi": "KO. GRIYA ASRI CIPAGERAN",
"kelurahan": "CIPAGERAN",
"kecamatan": "CIMAHI UTARA",
"kab_kota": "PEMKOT CIMAHI",
"luas_tanah": "113 M2",
"luas_gedung": "47 M2",
"jatuh_tempo": "0000-00-00 00:00:00",
"total_tagihan": 203857,
"denda": 0,
"admin": 6500,
"total_bayar": 210357
}
}