Dokumentasi API Toko Voucher

Deposit

Deposit

Untuk menerbitkan tiket deposit

Endpoint

GET
https://api.tokovoucher.net/v1/deposit?member_code=[YOUR_MEMBER_CODE]&secret=[YOUR_SECRET_KEY]&nominal=[NOMINAL]&kode=[KODE_BAYAR]

Deskripsi

Berikut ini parameter / payload yang di harapkan :

ParameterDeskripsiTipe DataWajib
member_codeMember code andaStringYa
secretSecret Key, bisa dilihat pada member area Lihat DisiniStringYa
nominalNominal Deposit yang di inginkanIntYa
kodeKode dari Metode Pembayaran yang di gunakan Lihat DisiniStringYa

Sampel Response Sukses

Metode QRIS

{
"status": 1,
"rc": 200,
"message": "Success Create Topup",
"data": {
"status": "SUKSES",
"metode": "QRIS All Payment",
"pay": "https://assets.tokopay.id/2024/04/TP240418WBNQ010530.png",
"pay_name": "",
"nominal": 10000,
"total_transfer": 10000,
"kode_unik": 0,
"biaya_admin": 0,
"created": "2024-04-18",
"expired_at": "2024-04-19 00:00:00"
},
"ts": 1713410814
}

Metode Bank Transfer

{
"status": 1,
"rc": 200,
"message": "Success Create Topup",
"data": {
"status": "SUKSES",
"metode": "Bank Bri",
"pay": "8455922905",
"pay_name": "PT Toko Voucher Nusantara",
"nominal": 10000,
"total_transfer": 10034,
"kode_unik": 34,
"biaya_admin": 0,
"created": "2024-04-18",
"expired_at": "2024-04-19 00:00:00"
},
"ts": 1713409535
}

Metode Virtual Akun

{
"status": 1,
"rc": 200,
"message": "Success Create Topup",
"data": {
"status": "SUKSES",
"metode": "BNI Virtual Account",
"pay": "8189354257698184",
"pay_name": "",
"nominal": 10000,
"total_transfer": 10000,
"kode_unik": 0,
"biaya_admin": 0,
"created": "2024-04-18",
"expired_at": "2024-04-19 00:00:00"
},
"ts": 1713409777
}

Sampel Response Gagal

{
"status": 0,
"rc": 500,
"error_msg": "Member tidak ditemukan !!"
}