NAV Navbar
Iziroam
  • Intro
  • Persiapan
  • Method
  • Versi
  • Area Developer
  • Tentang Iziroam

    Iziroam adalah sebuah layanan/jasa penyewaan device wifi internet luar negeri dan dalam negeri, yang bekerja sama dengan provider ISP lokal maupun international. Iziroam saat ini di operasikan oleh PT. Mobiloka Mitra Auto.

    API Iziroam

    Halo Developer, ini adalah dokumentasi penggunaan API IziRoam. API ini ditunjukkan untuk pengguna akun terdaftar di IziRoam dengan status akun adalah Travel Akun.

    Bringme.id, website yang telah menggunakan API Iziroam.

    iziroam-library-php, adalah library php untuk integrasi dengan iziroam.

    Pesiapan

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    #$url = 'https://iziroam.com/api-profile?time='.date('YmdHis'); 
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);  
    #curl_setopt($ch, CURLOPT_POSTFIELDS, $post); //Form Post 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
          

    Untuk mengakses penuh semua URL API, Anda diharuskan menggunakan parameter REQUEST HEADER key , mid dan parameter GET time pada setiap pemanggilan.
    Bagaimana cara mendapatkan key & mid ? key & mid tersedia di halaman dashboard member Anda. Ketentuan parameter time menggunakan value encripsi MD5 dari waktu saat pemanggilan.

    Travel Akun

    Pengguna API ini di tunjukkan untuk member Iziroam dengan memiliki atribut Travel Akun.
    Bagaimana cara membuat akun saya menjadi Travel Akun?, hubungi marketing iziroam.com untuk MOU kerjasama, melalui telepon atau email ke [email protected].

    Method

    Profile

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-profile?time='.date('YmdHis'); 
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
          

    Menampilkan data profil sesuai dengan profil Akun pengguna.

    Parameter Default Deskripsi
    time (required)

    
    {
      "status":true,
      "result": {
          "mID": "19",
          "name": "Best Travel Agent",
          "email": "[email protected]",
          "phone": "628270809920",
          "travelakun": "Y",
          "country": "INDONESIA",
          "province": "DKI JAKARTA",
          "regency": "JAKARTA SELATAN",
          "district": "SETIABUDI",
          "address": "Jl. Halimun No.30",
          "zip-code": "1280"
      }
    }
    
    
          

    Produk

    List Produk

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-product/list-product
    ?limit=2&page=1&continent=OC&time='
    .date('YmdHis'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); curl_close($ch); echo $response;
    { "status": true, "result": { "listproduct": [ { "pID": "28", "name": "Australia", "country": "Australia", "continent": "Oceania", "description": "Australia, going to the country is fun.", "price": "90000", "currency": "IDR", "picture": "asset/img/1ce1eef2e0c2428651ac42e5ba529578.jpg" } ], "totalpage": 3, "totalproduct": "5", "curentpage": "1" } }

    Manampilkan data list produk publish dari Iziroam.

    Parameter Default Deskripsi
    time (required)
    limit (optional)
    page (optional)
    continent (optional) AS=Asia
    AF=Africa
    SA=Amerika Selatan
    NA=Amerika Utara
    OC=Antartika
    EU=Eropa

    Detail Produk

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-product/detail
    ?pid=1&time='
    .date('YmdHis'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); curl_close($ch); echo $response;
    { "status": true, "result": [ { "pID": "28", "name": "Australia", "country": "Australia", "continent": "Oceania", "description": "Australia, going to the country is fun.", "price": "90000", "currency": "IDR", "picture": "asset/img/1ce1eef2e0c2428651ac42e5ba529578.jpg" } ] }

    Manampilkan data detail produk publish dari Iziroam.

    Parameter Default Deskripsi
    time (required)
    pid (required) Produk ID

    Order

    Cek Stock

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/check-stock?time='.date('YmdHis'); 
    $post = array(
      'pID' => '2',
      'qty' => '4',
      'date_delivery' => '2018-01-10 08:10:09',
      'date_return' => '2018-01-20 08:10:09',
      'date_startrent' => '2018-01-11 05:10:09',
      'date_endrent' => '2018-01-12 08:10:09'
    );
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
    
      {
        "status":true,
        "result": {"available": "true" } /* Ada stok */
        ------------------------------------------------
        "status":true,
        "result": {"available": "false" } /* Tidak ada stok*/
      }
    
    
          

    Check Stok untuk tanggal rental.
    perhatikan format date = YYYY-mm-dd HH:ii:ss
    contoh : 2017-12-01 10:22:58

    Parameter Default Deskripsi
    time (required)
    pid (required,POST)
    qty (required,POST)
    date_delivery (required,POST) Tanggal Pengiriman Device
    date_return (required,POST) Tanggal Pengembalian Device
    date_startrent (required,POST) Tanggal Awal Sewa
    date_endrent (required,POST) Tanggal Akhir Sewa

    Buat Order

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/create?time='.date('YmdHis'); 
    $post = [
      'nameuser'  => 'Michael Tano',
      'phoneuser' =>'628217069888',
      'emailuser' => '[email protected]',
      'm_getdevice' =>'0',    // for delivery
      'm_returndevice' => '1',  // for Dropoff
      'address_delivery' =>'Jl. Teuku Cik Ditiro No.37, RT.10/RW.5,
    Menteng, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10310'
    'address_return' =>'Soekarnoa Hatta Airport, Terminal 2', 'pid' =>array('60', '61'), //Dengan 2 Produk 'pid' =>array( array('pid' =>'60', 'day' =>'2'), array('pid' =>'61', 'day' =>'3') ), //Dengan 2 Produk sepesifik jumlah hari 'pid' =>'61', //Dengan 1 Produk 'deposit' =>true, //Optional 'qty' =>'4', 'date_delivery' =>'2018-01-10 08:10:09', 'date_return' =>'2018-01-20 08:10:09', 'date_startrent' =>'2018-01-11 05:10:09', 'date_endrent' =>'2018-01-12 08:10:09' ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $response = curl_exec($ch); curl_close($ch); echo $response;
    { "status":true, "result": { "oid": "809", // Id Order "otrans": "TVBT9912X20171201809", // Order Transaction "payment": "PENDING" // Status Payment "ic":[{"ic": "234","status": "NOTYET"}], // Id Konfirmasi "expired": "2017-12-01 12:00:00", // Waktu Expired } }

    Check Stok untuk tanggal rental.
    perhatikan format date = YYYY-mm-dd HH:ii:ss
    contoh : 2017-12-01 10:22:58

    Parameter Default Deskripsi
    time (required)
    nameuser (required,POST) Nama Customer
    phoneuser (required,POST) Nomor Telepon Customer
    emailuser (required,POST) Email Customer
    m_getdevice (required,POST) 0 for Delivery , 1 for Pickup
    m_returndevice (required,POST) 0 for Delivery , 1 for Dropoff
    address_delivery (required,POST) (DELIVERY)
    Alamat Pengiriman
    atau
    (PICKUP)
    • Iziroam Office, Jl. Sultan Agung No.7, Setiabudi, Jakarta Selatan, DKI Jakarta.
    • Soekarno Hatta Airport, Terminal 2. [dihapus]
    • Soekarno Hatta Airport, termianl 3.[dihapus]
    address_return (required,POST) (DELIVERY)
    Alamat Pengiriman
    atau
    (DROPOFF)
    • Iziroam Office, Jl. Sultan Agung No.7, Setiabudi, Jakarta Selatan, DKI Jakarta.
    • Soekarno Hatta Airport, Terminal 2. [dihapus]
    • Soekarno Hatta Airport, termianl 3.[dihapus]
    deposit FALSE (optional,POST)
    pid (required,POST)
    qty (required,POST)
    date_delivery (required,POST) Tanggal Pengiriman Device
    date_return (required,POST) Tanggal Pengembalian Device
    date_startrent (required,POST) Tanggal Awal Sewa
    date_endrent (required,POST) Tanggal Akhir Sewa

    List Order

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/list-order?time='.date('YmdHis'); 
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
    
          

    Manampilkan data list order yang pernah di pesan dari Iziroam.

    Parameter Default Deskripsi
    time (required)
    limit (optional)
    page (optional)

    Batal Order

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/cencel?time='.date('YmdHis'); 
    $post = array(
      'oid'=>108,
      'otrans'=> 'TVOK51X2017121917108',
    );
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
    
    {
      "status":true,
      "result": {"message": "TVOK51X2017121917108 Deleted"}
    }
    
          

    Membatalkan order yang pernah di pesan dari Iziroam.

    Parameter Default Deskripsi
    time (required)
    oid (required,POST)
    otrans (required,POST)

    Status Pembayaran

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/status-payment?time='.date('YmdHis'); 
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
    
    {
      "status":true,
      "result": {
        "oid": "108",
            "otrans": " TVOK51X2017121917108",
        "payment": "PENDING"
        "ic": [{"ic": "234","status": "NOTYET"}],
        "expired": "2017-12-01 12:00:00",
      }
    }
    
          

    Mengetahui status pembayaran order yang pernah di pesan dari Iziroam.

    Parameter Default Deskripsi
    time (required)
    oid (required)
    otrans (required)

    Menyetujui Pembayaran

    
    $headers[] ='key: #TOKENKEY' ; 
    $headers[] ='mid: #MID' ; 
    $url ='https://iziroam.com/api-order/approve-payment?time='.date('YmdHis'); 
    $post = array(
      'oid'=>108,
      'otrans'=> 'TVOK51X2017121917108',
      'ic'=> '234',
    );
    $ch = curl_init($url); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
    $response = curl_exec($ch); 
    curl_close($ch); 
    echo $response;
    
    
      {
        "status": true,
        "result": {
            "message": "Payment TVOK51X2017121917108
                        approved with data confirmation id 234"
        }
      }
    
    
          

    Mengapprove Pembayaran jika Custommer Anda sudah melakukan Pembayaran.

    Parameter Default Deskripsi
    time (required)
    oid (required,POST)
    otrans (required,POST)
    ic (required,POST) id Konfirmasi

    Error Request

    
    {
      "status":false,
      "result": {"message": "Data Not Complate/Key Not Work" }
    }
    
          

    Versi

    Versi 1.22

    Versi 1.21

    Area Developer

    Informasi

    Untuk berinteraksi dengan Developer Iziroam untuk keperluan integrasi API. Hubungi PIC Developer Iziroam.

    PHP