Add Subreseller Direct Fund

English version

Deskripsi

Menambahkan deposit subreseller

Query

billing/addsubresellerfund

List Variabel

Nama Tipe Data Required/Optional Deksripsi
resellerid Integer(11) Required ID Subreseller
amount Integer(11) Required Nominal FUN

Contoh

$post["username"] = 'apiusername';
$post["password"] = hash('sha256','apipassword');
$post["resellerid"] = '12'
$post["amount"] = '110000'
$url = 'http://[reseller url]/api/billing/addsubresellerfund';

$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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp>
    <result>
        <resultCode>2400</resultCode>
        <resultMsg>Deposit has been added. Invoiceid # 122499</resultMsg>
    </result>
    <resultData/>
</epp>

Gagal

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp>
    <result>
        <resultCode>2400</resultCode>
        <resultMsg>Invalid reseller</resultMsg>
    </result>
    <resultData/>
</epp>