Dokumentasi API
Dokumentasi API
Hubungkan panel atau aplikasi Anda. Semua permintaan memakai metode POST dan respons berformat JSON.
- Url api
https://indosmm.my.id/api/v2- Metode
- POST
- Format respons
- JSON
- API key
- Masuk lalu buka menu Pengaturan API untuk membuat API key.
Status pesanan memakai kode tetap: PENDING, PROCESSING, PROGRESS, COMPLETED, PARTIAL, CANCELED, REFUNDED. Harga (rate) berlaku per rate_unit unit dalam Rupiah. Kirim idempotency_key yang sama saat mengulang permintaan agar pesanan tidak tercatat dua kali.
Cek saldo
action=balance| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | balance |
Contoh respons
{
"status": "success",
"balance": "150000.00",
"currency": "IDR"
}
Daftar layanan
action=services| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | services |
Contoh respons
[
{
"service": 12,
"name": "Instagram Followers",
"category": "Instagram",
"rate": "18720.00",
"rate_unit": 1000,
"min": 100,
"max": 10000,
"drip_feed": 0,
"refill": 1,
"type": "Default",
"currency": "IDR"
}
]
Buat pesanan
action=add| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | add |
service | 12 |
link | https://instagram.com/akun |
quantity | 1000 |
idempotency_key | (opsional) ID unik dari sistem Anda |
runs | (opsional) drip-feed |
interval | (opsional) menit |
Contoh respons
{
"status": "success",
"order": 10452
}
Status satu pesanan
action=status| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | status |
order | 10452 |
Contoh respons
{
"status": "PROCESSING",
"charge": "18720.00",
"start_count": 3572,
"remains": 157,
"currency": "IDR"
}
Status banyak pesanan (maks. 100)
action=orders| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | orders |
orders | 10452,10453 |
Contoh respons
[
{
"order": 10452,
"status": "COMPLETED",
"charge": "18720.00",
"start_count": 3572,
"remains": 0,
"currency": "IDR"
}
]
Minta refill
action=refill| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | refill |
order | 10452 |
Contoh respons
{
"refill": 10452
}
Status refill
action=refill_status| Parameter | Keterangan |
|---|---|
key | API key Anda |
action | refill_status |
refill | 10452 |
Contoh respons
{
"status": "PENDING"
}
Respons galat
Galat dikembalikan dengan kode HTTP 4xx dan isi seperti berikut. Saldo tidak cukup memakai HTTP 402.
{"status": "error", "error": "Jumlah pesanan minimal 100 dan maksimal 10.000."}