API Documentation
Dokumentasi API untuk integrasi dengan aplikasi Anda
Informasi API
| Base URL | https://vtechsmm.biz.id |
| HTTP Method | POST |
| Endpoint URL | /api |
| Response Format | JSON |
| Authentication | API Key (Header: Authorization: Bearer YOUR_API_KEY) atau Parameter: key |
Tips: Anda bisa menemukan API Key Anda di halaman Profil > API Key.
Actions
1. Add Order
Membuat order baru untuk layanan
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | add |
service |
String | Yes | Service ID |
link |
String | Yes | Target link |
quantity |
Integer | Yes | Amount to order |
Example Response:
{
"success": true,
"order": "VEGA123ABC"
}
2. Get Order Status
Mendapatkan status order
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | status |
order |
String | Yes | Order ID |
Example Response:
{
"charge": "15000",
"start_count": "1000",
"status": "Completed",
"remains": "0",
"currency": "IDR"
}
3. Get Services
Mendapatkan daftar layanan yang tersedia
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | services |
Example Response:
[
{
"service": "64a1b2c3d4e5f6g7h8i9j0k1",
"name": "Instagram Followers",
"category": "Instagram",
"type": "Default",
"rate": "15000",
"min": "100",
"max": "10000",
"refill": true,
"cancel": true
}
]
4. Get Balance
Mendapatkan saldo akun
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
String | Yes | balance |
Example Response:
{
"balance": "500000.00",
"currency": "IDR"
}
Order Status
| Status | Description |
|---|---|
| Pending | Order sedang menunggu diproses |
| Processing | Order sedang diproses |
| In progress | Order sedang berjalan |
| Completed | Order selesai |
| Partial | Order sebagian selesai |
| Canceled | Order dibatalkan |
| Error | Terjadi error pada order |
| Refunded | Order di-refund |
Contoh Kode
PHP
<?php
$api_key = 'YOUR_API_KEY';
$api_url = 'https://yourdomain.com/api';
$post_data = [
'key' => $api_key,
'action' => 'add',
'service' => 'SERVICE_ID',
'link' => 'https://instagram.com/username',
'quantity' => 100
];
$ch = curl_init($api_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
?>
JavaScript (Fetch)
const apiKey = 'YOUR_API_KEY';
const apiUrl = 'https://yourdomain.com/api';
const data = new URLSearchParams({
key: apiKey,
action: 'add',
service: 'SERVICE_ID',
link: 'https://instagram.com/username',
quantity: 100
});
fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: data
})
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.error('Error:', error));