ArthaVolt Reseller API

White-label REST API untuk menjual produk Script, Apps Premium, dan Panel di website kamu sendiri. Berbasis API Key — tanpa JWT, tanpa OAuth. Cukup satu key untuk semua endpoint.

Overview

Base URL:

BASE

Semua endpoint mengembalikan JSON. Response konsisten:

{
  "success": true,
  "data": { ... }
}

Kalau gagal:

{
  "success": false,
  "message": "Invalid API Key"
}

Authentication

Setiap request wajib menyertakan API Key kamu di salah satu header berikut:

Authorization: Bearer arv_live_xxxxxxxxxxxxxxxxxxx
X-API-Key: arv_live_xxxxxxxxxxxxxxxxxxx

Ambil API Key di halaman Profile → Developer API. Key disimpan sebagai SHA-256 hash — plaintext hanya tampil sekali saat generate.

Rate Limit

EndpointLimit
/products, /categories100 req / menit
/profile60 req / menit
/balance20 req / menit
/order (POST)30 req / menit
/orders, /order/{id}60 req / menit

Response header: X-RateLimit-Remaining, X-RateLimit-Reset

Error Codes

HTTPArti
400Input tidak valid
401API key hilang / salah
402Saldo tidak cukup
403API key di-suspend
404Produk / order tidak ditemukan
409Stok tidak cukup
429Rate limit terlampaui
500Server error

Products

GET/api/v1/products Auth

Response

{
  "success": true,
  "data": [
    {
      "id": "pterodactyl-theme",
      "category": "Script",
      "name": "Pterodactyl Theme",
      "price": 50000,
      "stock": 999,
      "status": "active",
      "updated_at": "2026-07-06T..."
    }
  ]
}
GET/api/v1/categories Auth

Mengembalikan daftar kategori: Script, Apps Premium, Panel.

Profile & Balance

GET/api/v1/profile Auth
{
  "success": true,
  "data": {
    "user_id": "uuid",
    "username": "reseller01",
    "email": "you@mail.com",
    "balance": 250000,
    "created_at": "..."
  }
}
GET/api/v1/balance Auth
{ "success": true, "data": { "balance": 250000, "currency": "IDR" } }

Order

POST/api/v1/order Auth

Body

{ "product_id": "pterodactyl-theme", "quantity": 1 }

Response

{
  "success": true,
  "data": {
    "order_id": "API-1720261234-a1b2c3",
    "product_id": "pterodactyl-theme",
    "product_name": "Pterodactyl Theme",
    "category": "Script",
    "quantity": 1,
    "price": 50000,
    "total": 50000,
    "status": "success",
    "result": { "type": "script", "download_url": "https://..." }
  }
}

Server memakai harga dari database (bukan dari client). Saldo dipotong secara atomik. Kalau panel gagal dibuat, saldo di-refund otomatis.

GET/api/v1/order/{order_id} Auth
GET/api/v1/orders?limit=50 Auth

Riwayat order (maks 100 per request).

Example Code

curl -X POST https://YOUR-DOMAIN/api/v1/order \
  -H "Authorization: Bearer arv_live_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"pterodactyl-theme","quantity":1}'

© ArthaVolt Reseller API v1 · Butuh bantuan? Hubungi admin.