resellersrs-x:get_admintransaction

Description

get_admintransaction

Query

api/admin/get_admintransaction

List Variable

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

Example

$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_admintransaction';

$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);

Example Response

Berhasil

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
  <resultData>
    <value>
      <transactionid>110</transactionid>
      <date>1367859600</date>
      <resellerid>3</resellerid>
      <domain>application3.co.id</domain>
      <note>transfer application3.co.id (1 tahun)</note>
      <type>transfer</type>
      <class>ID</class>
      <amount>77000.00</amount>
    </value>
    <value>
      <transactionid>111</transactionid>
      <date>1368378000</date>
      <resellerid>3</resellerid>
      <domain>domaincepatbanget.web.id</domain>
      <note>registrasi domaincepatbanget.web.id (1 tahun)</note>
      <type>register</type>
      <class>ID</class>
      <amount>40000.00</amount>
    </value>
    <value>
      <transactionid>112</transactionid>
      <date>1368378000</date>
      <resellerid>3</resellerid>
      <domain>cpt4.co.id</domain>
      <note>registrasi cpt4.co.id (1 tahun)</note>
      <type>register</type>
      <class>ID</class>
      <amount>77000.00</amount>
    </value>
  </resultData>
</epp>

Gagal

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