resellersrs-x:get_deposit

Deskripsi

get_deposit

Query

api/admin/get_deposit

List Variabel

Nama Tipe Data Required
transactionid Integer Optional in transaction (10)
limit Integer Optional Limit (10)
offset Integer Optional offset(0)

Contoh

$post["username"] = 'user@username.com'
$post["password"] = hash('password');
$post["transactionid"] = '10'
$post["limit"] = '10'
$post["offset"] = '0'
$url = http://[admin url ]/api/admin/get_transaction';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiurl);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
$response = curl_exec($ch);
curl_close($ch);

Respon Contoh

Berhasil

xikyu46@linux:~> curl http://srs-x.cq/api/admin/get_deposit -d "username=adminisasi&password=5ac4aae453037e65ef8a2f9a0c1531c18a64e3d517f8c5e3175859ab5bf17298"
<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
  <resultData>
    <value>
      <transactionid>45</transactionid>
      <resellerid>3</resellerid>
      <note>Deposit Reseller 3</note>
      <amount>18181.00</amount>
    </value>
    <value>
      <transactionid>46</transactionid>
      <resellerid>5</resellerid>
      <note>Deposit Reseller 5</note>
      <amount>3000000.00</amount>
    </value>
  </resultData>
</epp>


Gagal

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1001</resultCode>
    <resultMsg>Command Failed</resultMsg>
  </result>
</epp>