API Services
MPN G2 Billing
Version 2.0
1. Inquiry NPWP
Hostname | To be confirm | |||||||||||||||||||||||||||||||||
Port | To be confirm | |||||||||||||||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||||||||||||||
Path | /mpng2/v2/billing/Inquiry | |||||||||||||||||||||||||||||||||
HTTP Headers
|
||||||||||||||||||||||||||||||||||
Query string parameters
|
||||||||||||||||||||||||||||||||||
Format | JSON | |||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | |||||||||||||||||||||||||||||||||
Request Definition
|
||||||||||||||||||||||||||||||||||
Response Definition
|
||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request
{ "npwpNum": "999998887776543", "mapCode": "411125", "depositType": "100", "transactionDate": "2019-01-26", "signature": "[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/billing/Inquiry?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "b048_mapCode": "411125", "b048_wpCity": null, "b048_wpAddress": "KP KECIL RT. 005/002, SUKABUMI SELATAN - KOTA ADM.", "b048_wpName": "ABDUL HARIS KURNIAWAN", "b048_mapName": "PPh Psl 25 Orang Pribadi", "b048_npwpNum": "999998887776543", "b048_depositName": "Masa", "b048_depositType": "100" }
Response (error)
{ "errorMessage": "NPWP atau KPP tidak terdaftar", "errorCode": "02" }
2. Create Billing
Hostname | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/billing/Create | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request
{ "trxAmt": "15000.00", "nop": "610306000190000161", "npwpNum": "999998887776543", "participantId": "999998887776543", "period1": "01", "period2": "01", "taxYear": "2014", "skNum": "000000000000000", "currCode": "360", "mapCode": "411125", "depositType": "100", "narasi": "test", "transactionDate": "2016-04-01", "signature": "[SIGNATURE]" }
Request Valas
{ "trxAmt": "5000.00", "nop": "000000000000000000", "npwpNum": "242340032035000", "participantId": "141000055096783", "period1": "01", "period2": "01", "taxYear": "2014", "skNum": "000000000000000", "currCode": "840", "mapCode": "411111", "depositType": "100", "narasi": "test valas", "transactionDate": "2016-04-01", "signature": "[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/billing/Create?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "billingId": "123405826962137", "npwp": "999998887776543", "skNum": "000000000000000", "nop": "610306000190000161", "billingExpiry": "2019-12-28 18:07:47", "currencyName": "IDR", "taxYear": "2014", "npwpPenyetor": "999998887776543", "narasi": "test", "period2": "01", "tanggal": "01/04/2016", "period1": "01", "trxAmt": "15000" }
Response Valas (Success)
{ "billingId": 41708770653204, "currencyName": "USD", "taxYear": 2014, "npwp": 242340032035000, "skNum": "000000000000000", "narasi": "test valas", "period2": "01", "tanggal": "01/04/2016", "period1": "01", "nop": "000000000000000000", "trxAmt": 5000 }
Response (error)
{ "errorMessage": "NPWP atau KPP tidak terdaftar", "errorCode": "02" }
3. Create Billing Non NPWP
Hostname | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/billing/NonNPWP | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request
{ "trxAmt": "2000000.00", "wpIdentity": "1234567890123456", "nop": "000000000000000000", "mapCode": "411111", "depositType": "100", "period1": "03", "period2": "03", "taxYear": "2014", "skNum": "000000000000000", "narasi": "test non npwp", "participantId": "141000055096783", "wpName": "NPWP DUMMY BADAN DUA", "wpAddress": "JL.MESJID IV NO.19", "wpCity": "JAKARTA PUSAT", "kpp": "101", "transactionDate": "2017-09-05", "signature": "[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/billing/NonNPWP?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "billingId": 32528160772727, "skNum": "000000000000000", "npwp": "000000000101000", "nop": "000000000000000000", "currencyName": "IDR", "taxYear": 2014, "wpAddress": "JL.MESJID IV NO.19", "narasi": "test non npwp", "period2": "03", "tanggal": "05/09/2017", "wpName": "NPWP DUMMY BADAN DUA", "period1": "03", "trxAmt": "2.000.000", "wpCity": "JAKARTA PUSAT" }
Response (error)
{ "errorMessage": "NPWP atau KPP tidak terdaftar", "errorCode": "02" }
4. Inquiry DJP/DJBC/DJA
Hostname | To be confirm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/Inquiry | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request DJP
{ "billingId": "115030016764839", "currency": "IDR", "signature": "[SIGNATURE]" }
Request DJBC
{ "billingId": "520131100000909", "currency": "IDR", "signature": "[SIGNATURE]" }
Request DJA
{ "billingId": "916011003876169", "currency": "IDR", "signature": "[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/Inquiry?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response DJP (Success)
{ "h_billingId": 115030016764839, "c_totalBayar": 1000000, "h_masaPajak": "03032014", "h_alamat": "JL.MESJID IV NO.19,JAKARTA UTARA", "h_currency": "IDR", "h_npwp": "021076427077000", "h_nama": "NPWP DUMMY BADAN DUA", "h_nomorSK": "000000000000000", "c_adminBank": 0, "h_akun": 411122, "h_kdJnsSetoran": 100, "h_tagihan": 1000000, "h_nop": 900019191818181800 }
Response DJBC (Success)
{ "h_billingId": 520131100000909, "h_kdKpbc": "070800", "h_npwp": 520131000001188, "h_jnsDokumen": 9, "c_totalBayar": 99999000, "h_nama": "GUDANG GARAM, PT.", "h_nmrDokumen": "001231", "c_adminBank": 0, "h_tglDokumen": "2015-05-17", "h_tagihan": 99999000, "h_currency": "IDR" }
Response DJA (Success)
{ "h_billingId": 916011003876169, "h_kdSatker": 10, "h_kodeKL": "022", "c_totalBayar": 1000000, "h_nama": "ADMINKU", "h_unitEselonI": 52, "c_adminBank": 0, "h_tagihan": 1000000, "h_currency": "IDR" }
5. Payment DJP
Hostname | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/Payment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request
{ "h_billingId":"115030016764839", "h_masaPajak":"03032014", "h_alamat":"JL.MESJID IV NO.19,JAKARTA UTARA", "h_currency":"IDR", "h_npwp":"021076427077000", "h_nama":"NPWP DUMMY BADAN DUA", "h_nomorSK":"000000000000000", "h_akun":"411122", "h_kdJnsSetoran":"100", "h_tagihan":1000000, "h_nop":"900019191818181800", "dbNomorRek":113183178, "description":"Test DJP", "signature":"[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/Payment?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "npwp": "021076427077000", "mataUang": "IDR", "nop": 900019191818181800, "jnsSetoran": 100, "waktuTrx": "04/12/17 16:41:01", "alamat": "JL.MESJID IV NO.19,JAKARTA UTARA", "noNtbNtp": "000000590178", "tglBuku": "10/06/15", "nominalAngka": "1.000.000,00", "nominalHuruf": "satu juta rupiah", "noNtpn": "0CD484CP4VQLIDK2", "nama": "NPWP DUMMY BADAN DUA", "nomorKttpn": "000000000000000", "stan": 964839, "mataAnggaran": 411122, "masaPajak": "03032014", "kdBilling": 115030016764839 }
Response (error)
{ "errorMessage": "(MPN_G2) TAGIHAN TIDAK TERSEDIA", "errorCode": "01" }
6. Payment DJBC
Hostname | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/Payment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request DJBC
{ "h_billingId":"520131100000909", "h_kdKpbc":"070800", "h_npwp":"520131000001188", "h_nama":"GUDANG GARAM, PT.", "h_jnsDokumen":"9", "h_nmrDokumen":"001231", "h_tglDokumen":"2015-05-17", "h_tagihan":99999000, "h_currency":"IDR", "dbNomorRek":113183178, "description":"Test DJBC", "signature":"[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/Payment?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "kdKpbc": "070800", "npwp": 520131000001188, "mataUang": "IDR", "waktuTrx": "04/12/17 17:25:35", "noNtbNtp": "000000590233", "tglBuku": "15/05/16", "nominalAngka": "99.999.000,00", "nominalHuruf": "sembilan puluh sembilan juta sembilan ratus sembilan puluh sembilan ribu rupiah", "noNtpn": "D1DBF0EP1PNNROE3", "tglDokumen": "2015-05-17", "nama": "GUDANG GARAM, PT.", "jnsDokumen": 9, "noDokumen": "001231", "stan": "002946", "kdBilling": 520131100000909 }
Response (error)
{ "errorMessage": "(MPN_G2) TAGIHAN TIDAK TERSEDIA", "errorCode": "01" }
7. Payment DJA
Hostname | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | ||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/Payment | ||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | ||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
|||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request
{ "h_billingId":"916011003876169", "h_kdSatker":"10", "h_kodeKL":"022", "h_nama":"ADMINKU", "h_unitEselonI":"52", "h_tagihan":1000000, "h_currency":"IDR", "dbNomorRek":113183178, "description":"Test DJA", "signature":"[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/Payment?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response (Success)
{ "kodeKL": "022", "mataUang": "IDR", "waktuTrx": "05/12/17 16:29:58", "noNtbNtp": "000000593213", "tglBuku": "19/01/17", "nominalAngka": "1.000.000,00", "nominalHuruf": "satu juta rupiah", "noNtpn": "231CA01BNIDIRQ54", "nama": "ADMINKU", "kdUnitEselonI": 52, "kdSatker": 10, "stan": "002955", "kdBilling": 916011003876169 }
Response (error)
{ "errorMessage": "(MPN_G2) TAGIHAN TIDAK TERSEDIA", "errorCode": "01" }
8. Reinquiry DJP/DJBC/DJA
Hostname | To be confirm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Port | To be confirm | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Method | POST | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Path | /mpng2/v2/Reinquiry | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTTP Headers
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Query string parameters
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format | JSON | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | OAuth 2.0 (client credential) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Definition
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Definition
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response (error) | See Response Code |
Request DJP
{ "billingId": "115030016764839", "currency": "IDR", "signature": "[SIGNATURE]" }
Request DJBC
{ "billingId": "520131100000909", "currency": "IDR", "signature": "[SIGNATURE]" }
Request DJA
{ "billingId": "916011003876169", "currency": "IDR", "signature": "[SIGNATURE]" }
Exp full url
https://{BNIServer}:{port}/mpng2/v2/Reinquiry?access_token=XUVAtlHXbjJZE69AJQXwjTzuNlYR1otNm2xLxFpcYZQiQp0Sbr5QUc
Response DJP (Success)
{ "h_billingId": "115030016764839", "h_ntb": "000000580393", "h_masaPajak": "03032014", "c_description": null, "h_alamat": "JL.MESJID IV NO.19,JAKARTA UTARA", "h_transId": "002924", "h_currency": "IDR", "h_npwp": "021076427077000", "c_waktuTrx": "2017-11-29T16:33:39.784", "c_dbNomorRek": "113183178", "h_nama": "NPWP DUMMY BADAN DUA", "h_nomorSK": "000000000000000", "c_adminBank": 0, "h_akun": "411122", "h_tglBuku": "20171130", "h_kdJnsSetoran": "100", "h_tagihan": "1000000.00", "h_ntpn": "0CD484CP4VQLIDK2", "h_nop": "900019191818181778" }
Response DJBC (Success)
{ "h_billingId": "520131100000909", "h_ntb": "000000580498", "h_jnsDokumen": "9", "h_nmrDokumen": "001231", "c_description": null, "h_transId": "002939", "h_currency": "IDR", "h_kdKpbc": "070800", "h_npwp": "520131000001188", "c_waktuTrx": "2017-11-29T19:16:11.808", "c_dbNomorRek": "113183178", "h_nama": "GUDANG GARAM, PT.", "c_adminBank": 0, "h_tglDokumen": "2015-05-17", "h_tglBuku": "20171130", "h_tagihan": "99999000.00", "h_ntpn": "D1DBF0EP1PNNROE3" }
Response DJA (Success)
{ "h_billingId": "916011003876169", "h_ntb": "000000593617", "c_description": "Test DJA", "h_transId": "002973", "h_currency": "IDR", "h_kdSatker": "10", "h_kodeKL": "022", "c_waktuTrx": "2017-12-06T11:47:39.730", "c_dbNomorRek": "113183178", "h_nama": "ADMINKU", "h_unitEselonI": "52", "c_adminBank": 0, "h_tglBuku": "20171206", "h_tagihan": "1000000", "h_ntpn": "231CA01BNIDIRQ54" }
Response (error)
{ "errorMessage": "BILLING ID BELUM PERNAH DILAKUKAN PEMBAYARAN SEBELUMNYA", "errorCode": "9941" }