Subsribe:insert

Deskripsi

Create Subscription. Jika Anda belum membuat customer silahkan melihat referenci create customer di : http://kb.digitalregistra.co.id/?page_id=237

Query

gapps/subscribe/insert

List Variabel

Nama Tipe Data Required/Optional
domain String Required Nama Domain
email String Required Email
skuid String Required Produk Google Apps (Google-Apps-For-Business)
planname String Required ANNUAL FLEXIBLE TRIAL
maxnumberofseats Integer Required Jumlah Seats
orderid Integer Required Parameter terkait dengan order billing pihak ketiga

Contoh

$post["username"] = 'user@username.com'
$post["password"] = hash('password');
$post["domain"] = 'domain.com'
$post["email"] = 'email@domain.com'
$post["skuid"] = 'Google-Apps-For-Business'
$post["planname"] = 'TRIAL'
$post["maxnumberofseats"] = '10'
$post["orderid"] = '987'
$url = 'http://[reseller url]/api/gapps/subsribe/insert';

$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"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
</epp>

Gagal

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