
Sandbox Fintech SBU Digital Platform
Berikut Overview dari Fintech SBU Giro MPospay Sandbox APIs:
Silahkan coba APIs kami menggunakan Sandbox. Kami menyediakan sandbox dengan data dummy dan static.
HTTP Method
- HTTP Method yang digunakan adalah POST.
- HTTP Method harus dikirim dengan huruf capital.
User Agent
Settingan USER AGENT untuk client yang mengakses APIs webservice di set (case sensitive) : FinSBUGiroMPospay-B2B
Headers
Agar komunikasi berhasil dengan APIs Fintech SBU Giro MPospay, anda harus mengirim beberapa headers di setiap request API :
Signature
Signature digunakan oleh APIs Fintech SBU Giro MPospay untuk menjamin bahwa pesan yang ada kirim tidak diubah oleh yang tidak berhak. Pembuatan signature menggunakan enkripsi hashing MD5. Garis besar proses pembuatan Signature adalah sebagai berikut:
- Ambil nilai dari field type (ex : inquiry, payment, purchase etc..).
- Ambil nilai dari field account (ex : 0000000018).
- Ambil nilai dari field institutionCode (ex : 180309000002).
- Ambil nilai dari field product (ex : 2042).
- Ambil nilai dari field billNumber (ex : AF085713323054).
- Ambil nilai dari field trxId (ex : 00000001).
- Ambil parameter password APIs yang dibarikan oleh Fintech SBU Giro MPospay (ex : aad16aabac2b3d4e17f04a95e2a2372f).
- Ambil nilai current date, dengan format : yyyy-mm-dd (ex : 2018-03-22').
- Ambil parameter KEY APIs yang dibarikan oleh Fintech SBU Giro MPospay (ex : f1ntechSBU@2018#).
- Gabungkan semua parameter diatas kemudian lakukan enkripsi dengan hashing MD5.
Contoh Message :
{ "type":"inquiry", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "trxId":"00000001", "retrieval":"20180125003025879", "sign":"b3847e3a099979c1d96e3d186e0e05fa" }
Formula = md5(type+account+institutionCode+product+billNumber+trxId+password+current_date+key)
StringToSign = inquiry+0000000018+180309000002+2042+AF085713323054+00000001+aad16aabac2b3d4e17f04a95e2a2372f+2018-03-22+f1ntechSBU@2018#
StringToSign = MD5(inquiry00000000181803090000022042AF08571332305400000001aad16aabac2b3d4e17f04a95e2a2372f2018-03-22f1ntechSBU@2018#)
Hasil = b3847e3a099979c1d96e3d186e0e05fa
Berikut beberapa parameter yang harus anda kirim untuk API B2B :
Request
Respon
Berikut daftar API Services B2B Messaging :
POST /finsbu/h2h
Request :
POST http://103.123.39.238:7879/finsbu/h2h HTTP/1.1 Authorization: Basic Base64(client_id:client_secret) Content-Type: application/json Origin: [yourdomain.com] { "type":"inquiry", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "trxId":"00000001", "retrieval":"20180125003025879", "sign":"b3847e3a099979c1d96e3d186e0e05fa" }
Response :
{ "type":"inquiry", "service":"responseInquiry", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "resultCode":"000", "resultDesc":"SUKSES", "nominal":"304000", "admin":"1550", "trxId":"00000001", "retrieval":"20180125003025879", "paymentCode":"21b555433f8de4b86144642d29d56839", "info1":"Kode Bayar : AF085713323054|Kode Reff : 900017|ID Transaksi: TKP154821699|Nama: Eduard Budiharto|Desk.Order : Pembelian dari Tokopedia|Jml Tagihan : Rp.304.000|", "info2":"TAGIHAN TOKOPEDIA|##1", "info3":"", "jmlLembar":"1", "saldo":"", "signature":"b3847e3a099979c1d96e3d186e0e05fa" }
POST /finsbu/h2h
Request :
POST http://103.123.39.238:7879/finsbu/h2h HTTP/1.1 Authorization: Basic Base64(client_id:client_secret) Content-Type: application/json Origin: [yourdomain.com] { "type":"payment", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "trxId":"00000002", "retrieval":"20180125003025879", "paymentCode":"21b555433f8de4b86144642d29d56839", "sign":"1a3a62586844e13ca9bb64d0056d7d7c" }
Response :
{ "type":"payment", "service":"responsePayment", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "resultCode":"000", "resultDesc":"SUKSES", "nominal":"304000", "admin":"1550", "trxId":"00000001", "retrieval":"20180125003025879", "paymentCode":"21b555433f8de4b86144642d29d56839", "info1":"Kode Bayar : AF085713323054|Kode Reff : 900017|ID Transaksi: TKP154821699|Nama: Eduard Budiharto|Desk.Order : Pembelian dari Tokopedia|Jml Tagihan : Rp.304.000|", "info2":"TAGIHAN TOKOPEDIA|##1", "info3":"", "jmlLembar":"1", "saldo":"11500000", "signature":"1a3a62586844e13ca9bb64d0056d7d7c" }
POST /finsbu/h2h
Request :
POST http://103.123.39.238:7879/finsbu/h2h HTTP/1.1 Authorization: Basic Base64(client_id:client_secret) Content-Type: application/json Origin: [yourdomain.com] { "type":"purchase", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"3100", "billNumber":"08132259999", "trxId":"00000004", "retrieval":"20180222161223123", "sign":"85afd2485c7f91177d006c51ff771f8c" }
Response :
{ "type":"purchase", "service":"responsePayment", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"3100", "billNumber":"08132259999", "resultCode":"000", "resultDesc":"SUKSES", "nominal":"10050", "admin":"0", "trxId":"00000004", "retrieval":"20180222161223123", "paymentCode":"21b555433f8de4b86144642d29d56839", "info1":"NO. HANDPHONE : 0081291887774|NILAI VOUCHER : 100000|NO.REF :0041002220476240|", "info2":"PEMBELIAN PULSA TELKOMSEL|##Untukkeluhan Hub.133|Npwp TSEL:01.718.327.8.093.000", "info3":"", "jmlLembar":"1", "saldo":"11500000", "signature":"85afd2485c7f91177d006c51ff771f8c" }
POST /finsbu/h2h
Request :
POST http://103.123.39.238:7879/finsbu/h2h HTTP/1.1 Authorization: Basic Base64(client_id:client_secret) Content-Type: application/json Origin: [yourdomain.com] { "type":"advice", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "trxId":"00000002", "retrieval":"20180125003025879", "paymentCode":"21b555433f8de4b86144642d29d56839", "sign":"e88ab993f7a9ce1a9e2b78e15a485ccf" }
Response :
{ "type":"advice", "service":"responsePayment", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"2042", "billNumber":"AF085713323054", "resultCode":"000", "resultDesc":"SUKSES", "nominal":"304000", "admin":"1550", "trxId":"00000001", "retrieval":"20180125003025879", "paymentCode":"21b555433f8de4b86144642d29d56839", "info1":"Kode Bayar : AF085713323054|Kode Reff : 900017|ID Transaksi: TKP154821699|Nama : Eduard Budiharto|Desk.Order : Pembelian dari Tokopedia|Jml Tagihan : Rp.304.000|", "info2":"TAGIHAN TOKOPEDIA|##1", "info3":"", "jmlLembar":"1", "saldo":"11500000", "signature":"e88ab993f7a9ce1a9e2b78e15a485ccf" }
POST /finsbu/h2h
Request :
POST http://103.123.39.238:7879/finsbu/h2h HTTP/1.1 Authorization: Basic Base64(client_id:client_secret) Content-Type: application/json Origin: [yourdomain.com] { "type":"balanceInquiry", "accountType":"B2B", "account":"0000000018", "institutionCode":"180309000002", "product":"CBS", "billNumber":"0000000018", "trxId":"00000006", "retrieval":"20180125003025879", "sign":"2855d3b6a6eda783ab5a91b115b59186" }
Response :
{ "type":"balanceInquiry", "service":"responseBalanceInquiry", "accountType":"B2B", "account":"0000000018", "product":"CBS", "billNumber":"0000000018", "resultCode":"00", "resultDesc":"success", "nominal":"0", "admin":"0", "trxId":"00000006", "retrieval":"20180125003025879", "paymentCode":"", "info1":"Customer Name : WISNU|Product Code : WADIAH|Balance :2451000|", "info2":"01000021", "info3":"WISNU|WADIAH|2451000|", "jmlLembar":"0", "saldo":"2451000", "signature":"2855d3b6a6eda783ab5a91b115b59186" }
ErrorsAPI Fintech SBU Giro MPospay menggunakan skema error berikut :
{ "resultCode":"00", "resultDesc":"success" }