Dokumentasi API

URL
http://../api/main/login
Method
POST or GET
Parameters
  • username : (Required) Username akun
  • password : (Required) Password akun
{"success":true,"results":{"otp":"","id":"1234","name":"My Name","username":"kimnoon","balance":"10000","token":"1234:xM3pN0FdotaTinGbLwhz7v8RfKC4SYgU"}}
<?php{N}{N}$parameters = array({N}{T}"username" => "",{N}{T}"password" => "",{N}{T});{N}{N}$ch = curl_init();{N}curl_setopt($ch, CURLOPT_URL, "http://../api/main/login");{N}curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);{N}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);{N}curl_setopt($ch, CURLOPT_POST, true);{N}curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));{N}$response = curl_exec($ch);{N}curl_close($ch);
URL
http://../api/main/account
Method
POST or GET
Parameters
  • auth_username : (Required) Username akun
  • auth_token : (Required) Token yang didapat ketika berhasil login
{"success":true,"results":{"id":1234,"username":"kimnoon","name":"My Name","email":"[email protected]","gender":"Laki-laki","address":"Tangerang","phone":"081213141516","balance":10000,"balance_str":"Rp 10.000","status":"Terverifikasi","type":"Member","data":{"phone_verified":true,"email_verified":true,"otp":"","login_notify":false,"order_verify_password":true},"total_trx":"0","reg_date":"21\/01\/2019 02:41"}}
<?php{N}{N}$parameters = array({N}{T}"auth_username" => "kimnoon",{N}{T}"auth_token" => "1234:xM3pN0FdotaTinGbLwhz7v8RfKC4SYgU",{N}{T});{N}{N}$ch = curl_init();{N}curl_setopt($ch, CURLOPT_URL, "http://.../api/main/account");{N}curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);{N}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);{N}curl_setopt($ch, CURLOPT_POST, true);{N}curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));{N}$response = curl_exec($ch);{N}curl_close($ch);
URL
http://../api/main/get-vouchers
Method
POST or GET
Parameters
  • auth_username : (Required) Username akun
  • auth_token : (Required) Token yang didapat ketika berhasil login
{"success":true,"results":[{"id":71,"nominal":"BRONET 300MB 7Hr","keterangan":"","harga":7625,"harga_str":"Rp 7.625","provider":{"id":10,"nama":"AXIS DATA BRONET"},"produk":{"id":"paket_internet","nama":"Paket Internet"}},{"id":72,"nominal":"BRONET 1GB 30Hr","keterangan":"","harga":18650,"harga_str":"Rp 18.650","provider":{"id":10,"nama":"AXIS DATA BRONET"},"produk":{"id":"paket_internet","nama":"Paket Internet"}},{"id":137,"nominal":"HotRod 24Jam, 30hr, 800MB","keterangan":"","harga":30550,"harga_str":"Rp 30.550","provider":{"id":22,"nama":"XL INTERNET HOTROD"},"produk":{"id":"paket_internet","nama":"Paket Internet"}},{"id":138,"nominal":"HotRod 24Jam, 30hr, 3GB","keterangan":"","harga":55775,"harga_str":"Rp 55.775","provider":{"id":22,"nama":"XL INTERNET HOTROD"},"produk":{"id":"paket_internet","nama":"Paket Internet"}},{"id":1,"nominal":"AXIS 5000","keterangan":"","harga":6100,"harga_str":"Rp 6.100","provider":{"id":1,"nama":"AXIS"},"produk":{"id":"pulsa","nama":"Pulsa"}},{"id":64,"nominal":"AXIS 10000","keterangan":"","harga":11200,"harga_str":"Rp 11.200","provider":{"id":1,"nama":"AXIS"},"produk":{"id":"pulsa","nama":"Pulsa"}},{"id":33,"nominal":"TELKOMSEL 1000","keterangan":"","harga":2100,"harga_str":"Rp 2.100","provider":{"id":4,"nama":"TELKOMSEL"},"produk":{"id":"pulsa","nama":"Pulsa"}},{"id":24,"nominal":"TELKOMSEL 5000","keterangan":"","harga":5825,"harga_str":"Rp 5.825","provider":{"id":4,"nama":"TELKOMSEL"},"produk":{"id":"pulsa","nama":"Pulsa"}}]}
<?php{N}{N}$parameters = array({N}{T}"auth_username" => "kimnoon",{N}{T}"auth_token" => "1234:xM3pN0FdotaTinGbLwhz7v8RfKC4SYgU",{N}{T});{N}{N}$ch = curl_init();{N}curl_setopt($ch, CURLOPT_URL, "http://.../api/main/get-vouchers");{N}curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);{N}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);{N}curl_setopt($ch, CURLOPT_POST, true);{N}curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));{N}$response = curl_exec($ch);{N}curl_close($ch);
URL
http://../api/main/order
Method
POST or GET
Parameters
  • auth_username : (Required) Username akun
  • auth_token : (Required) Token yang didapat ketika berhasil login
  • voucher_id : (Required) ID Voucher lihat di daftar harga (id)
  • phone : (Required) Nomor HP pembeli atau nomor HP yang akan diisi ulang
  • id_plgn : (Optional) ID Pelanggan untuk order token PLN / Tagihan
  • payment : (Required) Static=balance
{"success":true,"status":true,"results":{"id":240,"no_hp":"083812345678","id_plgn":"","harga":7625,"harga_str":"Rp 7.625","pembayaran":"Saldo Akun","status":"240","tanggal":"12\/02\/2019 00:50","produk":{"id":"paket_internet","nama":"Paket Internet"},"provider":{"id":10,"nama":"AXIS DATA BRONET"},"voucher":{"id":71,"nominal":"BRONET 300MB 7Hr"}}}
<?php{N}{N}$parameters = array({N}{T}"auth_username" => "kimnoon",{N}{T}"auth_token" => "1234:xM3pN0FdotaTinGbLwhz7v8RfKC4SYgU",{N}{T}"voucher_id" => "71",{N}{T}"phone" => "083812345678",{N}{T}"id_plgn" => "",{N}{T}"payment" => "balance",{N}{T});{N}{N}$ch = curl_init();{N}curl_setopt($ch, CURLOPT_URL, "http://.../api/main/order");{N}curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);{N}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);{N}curl_setopt($ch, CURLOPT_POST, true);{N}curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));{N}$response = curl_exec($ch);{N}curl_close($ch);
URL
http://../api/main/transaction-details
Method
POST or GET
Parameters
  • auth_username : (Required) Username akun
  • auth_token : (Required) Token yang didapat ketika berhasil login
  • id : (Required) ID Transaksi yang didapat ketika pembelian (results.id)
{"success":true,"results":{"id":240,"phone":"083812345678","id_plgn":"","harga":"Rp 7.625","kode_unik":"Rp 0","pembayaran":{"id":"balance","invoice_id":"inv907447","nama":"Saldo Akun","expired":true,"expired_date":"12\/02\/2019 08:50","tanggal":"","logo":"","rekening":null},"status":{"code":"IP","pembayaran":"Sukses","pengisian":"Pending"},"batalkan":false,"sn":"","tanggal":"12\/02\/2019 00:50","voucher":{"id":71,"nominal":"BRONET 300MB 7Hr"},"provider":{"id":10,"nama":"AXIS DATA BRONET"},"produk":{"id":"paket_internet","nama":"Paket Internet","labels":{"provider":"Provider","voucher":"Voucher2"}},"testimonial":null}}
<?php{N}{N}$parameters = array({N}{T}"auth_username" => "kimnoon",{N}{T}"auth_token" => "1234:xM3pN0FdotaTinGbLwhz7v8RfKC4SYgU",{N}{T}"id" => "240",{N}{T});{N}{N}$ch = curl_init();{N}curl_setopt($ch, CURLOPT_URL, "http://.../api/main/transaction-details");{N}curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);{N}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);{N}curl_setopt($ch, CURLOPT_POST, true);{N}curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($parameters));{N}$response = curl_exec($ch);{N}curl_close($ch);