DOCUMENT API SEPPULSA

API SEPPULSA merupakan jalur yang dapat digunakan  untuk bertransaksi pulsa murah dengan cepat dan stabil. Dapat digunakan untuk request deposit pulsa, cek deposit ,cek saldo terakhir, cek harga produk pulsa termurah, cek update status transaksi, isi pulsa murah all operator, dan isi token pln prabayar.

Parameter yang digunakan seppulsa methode GET dengan parameter wajib key dan &user_id yang ada pada menu user API, Response yang muncul dan yang dikirim berupa DATA JSON. Sehingga sistem Anda harus sudah mendukung JSON.

Cek koneksi api

url = https://seppulsa.com/api

parameter

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa

contoh request :

<?php
$api = ""; //isi api key 
$userid = ""; // isi user id 

$url = "https://seppulsa.com/api?key=$api&user_id=$userid";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"KONEKSI BERHASIL"}

contoh respon gagal

{"sts":"failed","message":"API KEY TIDAK VALID"}

Request cek saldo:

url = https://seppulsa.com/api/saldo

Parameter

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa

contoh request

<?php
$api = ""; //isi api key 
$userid = ""; // isi user id 

$url = "https://seppulsa.com/api/saldo?key=$api&user_id=$userid";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"Yth.septiancell2 Saldo anda Rp. 317210"}

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}

Request cek transaksi :

url = https://seppulsa.com/api/transaksi

Parameter

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
trxidid transaksi seppulsa

contoh request

<?php
$api = ""; //isi api key 
$userid = ""; // isi user id 
$trx   =""; isi id transaksi seppulsa

$url = "https://seppulsa.com/api/transaksi?key=$api&user_id=$userid&trxid=$trx";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"Transaksi SEP48444","data":{
"id":"SEP48444",
"produk":"VOUCHER GARENA SHELL 66 PROMO ",
"nomor":"081318204913",
"harga":"18040",
"sn":"472128881 PIN: 2712619644102743 ",
"refid":1234,
"status":"2"}} // 1. pending 2. sukses 0.gagal

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}
{"sts":"failed","message":"Transaksi tidak di temukan"}

Request cek list grup produk / id group produk /code group produk

url = https://seppulsa.com/api/group_produk

parameter

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa

contoh request

<?php
$api = ""; //isi api key 
$userid = ""; // isi user id 

$url = "https://seppulsa.com/api/group_produk?key=$api&user_id=$userid";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"koneksi sukses ","data":[
{"id":"1","group":"PULSA","code":"PUL"},
{"id":"4","group":"DATA","code":"PD"},

contoh respon Gagal

{"sts":"failed","message":"API KEY TIDAK VALID"}

Request cek list provider / id provider /code provider

url = https://seppulsa.com/api/provider

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa

Contoh request

<?php
$api = ""; //isi api key 
$userid = ""; // isi user id 

$url = "https://seppulsa.com/api/provider?key=$api&user_id=$userid";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"koneksi sukses ","data":[{"id":"1","provider":"XL","code":"XL","prefix":"0877,0818,0817,0819,0859,0878"},{"id":"4","provider":"TELKOMSEL","code":"TS","prefix":"0852,0853,0851,0811,0812,0813,0821,0822,0823"},{"id":"5","provider":"AXIS","code":"AX","prefix":"0838,0831,0839,0859"},{"id":"6","provider":"INDOSAT","code":"IS","prefix":"0815,0814,0855,0816,0856,"},{"id":"7","provider":"SMARTFREN","code":"SM","prefix":"0881,0882,0883,0884,0885,0886,0887,0889,0888"},{"id":"8","provider":"THREE","code":"TR","prefix":"0891,0892,0893,0894,0895,0896,0897,0899,0898"},{"id":"11","provider":"BY.U","code":"BYU","prefix":"0851"}]}

contoh respon Gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}

Request cek list harga / id produk /code produk

url = https://seppulsa.com/api/produk

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
group_produkkode group produk
providerkode provider

Contoh request :

<?php
$req = [
'key'=>'APIKEY', //isi dengan apikey
'user_id=>'SEP-1234', // ISI dengan user id seppulsa
'group_produk'=>'group code', // isi dengan kode grup produk
'provider'=>'provider code', // isi dengan code provider 
];
$data = http_build_query($req);
$url = "https://seppulsa.com/api/produk?$data";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"koneksi sukses ","data":[
{"id":"8",
"code":"PLN20",
"produk_name":"Token PLN 20K",
"group":"TOKEN PLN",
"provider":null,
"gr_id":"5",
"pr_id":null,
"price":"20225"
,"status":"2"},
{"id":"9",
"code":"PLN50",
"produk_name":"Token PLN 50K",
"group":"TOKEN PLN",
"provider":null,"gr_id":"5",
"pr_id":null,"price":"50222",
"status":"2"},
{"id":"11","code":"PLN100",
"produk_name":"Token PLN 100K",
"group":"TOKEN PLN",
"provider":null,
"gr_id":"5",
"pr_id":null,
"price":"100222",
"status":"2"},]}

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}

Request deposit saldo

url = https://seppulsa.com/api/depo

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
nominalNominal req isi saldo min 20000
bank_codekode Bank

Contoh request :

<?php
$req = [
'key'=>'APIKEY', //isi dengan apikey
'user_id=>'SEP-1234', // ISI dengan user id seppulsa
'nominal'=>'20000', // isi nominal isi saldo
'bank_code'=>'BCA', // isi dengan code Bank
];
$data = http_build_query($req);
$url = "https://seppulsa.com/api/depo?$data";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

kode bank DI SEPPULSA :

BCA,BRI,BNI,LINK,GOP,dan VOC

contoh respon berhasil :

{"sts":"sukses","message":"TIKET 2260 DIBUAT","data":{"tiket":2260,"rek":"BCA","nominal":20214,"no":"1040491127","an":"indra septian"}}

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}
"sts":"failed","message":"MINIMAL DEPOSIT Rp 20.000"}
{"sts":"failed","message":"KODE BANK TIDAK DI TEMUKAN"}

Request cek deposit

url = https://seppulsa.com/api/cek_tiket

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
no_tikettiket deposit

Contoh request :

<?php
$req = [
'key'=>'APIKEY', //isi dengan apikey
'user_id=>'SEP-1234', // ISI dengan user id seppulsa
'no_tiket'=>'1', // isi dengan tiket deposit
];
$data = http_build_query($req);
$url = "https://seppulsa.com/api/cek_tiket?$data";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil

{"sts":"sukses","message":"TIKET 2244","data":
{"tiket":"2244",
"nominal":"500426",
"bank":"BCA",
"status":"2" }} // 1.pending 2.sukses 3.Dibatalkan 0.Expired

contoh respon gagal

{"sts":"failed","message":"API KEY TIDAK VALID"}
{"sts":"failed","message":"TIKET tidak ditemukan"}

Request isi pulsa

url = https://seppulsa.com/api/buy

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
phonenomor tujuan
produkkode produk
reffid reffrensi user

Contoh request :

<?php
$req = [
'key'=>'APIKEY', //isi dengan apikey
'user_id=>'SEP-1234', // ISI dengan user id seppulsa
'phone'=>'083840183337', // isi tujuan isi pulsa
'produk'=>'XL10', // code produk
'reff'=>'INV123, // isi id reffrensi yang akan di kembalikan
];
$data = http_build_query($req);
$url = "https://seppulsa.com/api/buy?$data";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil

{"sts":"sukses","message":"TRANSAKSI SEP4490 DIBUAT","data":{"trxid":SEP4490,"produk":"TELKOMSEL 1K","price":"1800","reff":"1234"}}

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}
{"sts":"failed","message":"produk tidak di temukan"}
{"sts":"failed","message":"SALDO TIDAK CUKUP"}

Request Beli token listrik

url = https://seppulsa.com/api/buy_pln

PARAMETERKeterangan
keyapi key seppulsa
user_iduser id seppulsa
phonenomor tujuan
id_plnid pln tujuan
produkkode produk
reffid reffrensi user

Contoh Request :

<?php
$req = [
'key'=>'APIKEY', //isi dengan apikey
'user_id=>'SEP-1234', // ISI dengan user id seppulsa
'phone'=>'083840183337', // isi tujuan 
'id_pln'=>'5541231881', // isi dengan meter atau id pln 
'produk'=>'XL10', // code produk
'reff'=>'INV123, // isi id reffrensi yang akan di kembalikan
];
$data = http_build_query($req);
$url = "https://seppulsa.com/api/buy_pln?$data";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>

contoh respon berhasil :

{"sts":"sukses","message":"TRANSAKSI SEP4492 DIBUAT","data":{"trxid":SEP4492,"produk":"Token PLN 20K","price":"20500","reff":"1234"}}

contoh respon gagal :

{"sts":"failed","message":"API KEY TIDAK VALID"}
{"sts":"failed","message":"produk tidak di temukan"}
{"sts":"failed","message":"SALDO TIDAK CUKUP"}

SAMPLE CODE UNTUK PENERIMAAN CALLBACK

<?php 
if(isset($_SERVER['HTTP_VERIF']))){
$id=$_GET['id'];                               // id transaksi seppulsa
$id_produk=$_GET['id_produk'];                 // id produk seppulsa
$nomor=$_GET['nomor'];                         // nomor tujuan
$code=$_GET['code'];                           // kode produk
$produk=$_GET['produk'];                       // nama produk
$price=$_GET['price'];                         // harga produk
$status=$_GET['status'];                       // status transaksi
$sn=$_GET['sn'];                               // serial number
$ket=$_GET['ket'];                             // keterangan transaksi
$reff=$_GET['reff'];                           // Id refferensi user
$msg = $_GET['message'];                       // pesan transaksi bisa di ambil oleh otomax / irs
$verif = " ";                                  // ketikan kode verif yang di input di menu api seppulsa
$key = hash('sha256',$verif);
           if($_SERVER['HTTP_VERIF']==$key){
               if($status== 2){ 
                 //proses sistem anda jika status sukses
                }else if($status == 0){
                 //proses sistem anda jika status gagal
              }
            }else{
            die('not access');
         }
}

CONTOH PESAN BERHASIL :

Transaksi 52729 . Pembelian SALDO DANA 50K harga 50.395 ke 08381301234 . SUKSES. sn 220414GM11920570/DANA TOP UP ROHXXXX . Sisa saldo Rp 966.878 R#1234

CONTOH PESAN GAGAL :

Transaksi 52724 . Pembelian AXIS 10K harga 10.887 ke 08381301234 . GAGAL. saldo di kembalikan . Sisa saldo Rp 78.555 R#1234