Reseller API

Botelex ยท beli akun Leonardo 8500 lewat API, bayar potong saldo

v1 ยท BEP-free

Ringkasan

Jual akun otomatis lewat API

Integrasikan stok produk dari bot ke sistemmu โ€” akun Leonardo, file JSON, email, link redeem, dan lainnya. Satu request, langsung dapat barangnya โ€” dibayar dari saldo bot Telegram-mu.

Base URL โ€” semua endpoint relatif terhadap domainmu: https://reseller.botelexkey.online/v1
AuthHeader X-Reseller-Key: rsk_โ€ฆ di setiap request
FormatJSON in / JSON out ยท Content-Type: application/json
ProdukBeberapa produk: akun Leonardo (leonardo_ai), file JSON Leonardo (leonardo_ai_8500_json), Outlook, Hotmail, link redeem Gemini, ChatGPT Plus, dll. Daftar & stok live di GET /v1/products. Kirim product_id saat order; default leonardo_ai.
HargaProduk Leonardo = harga bot โˆ’ Rp500; produk lain = harga bot. Selalu ikut harga bot terkini โ€” cek unit_price di GET /v1/products.
BayarPotong saldo bot. Stok kosong โ†’ saldo otomatis di-refund

Ambil API key

Self-service dari Telegram

API key kamu diterbitkan sendiri lewat bot โ€” tidak perlu minta admin.

  1. Buka bot Telegram, ketik /start atau /menu.
  2. Tekan tombol ๐Ÿ”— RESELLER API.
  3. Bot menampilkan key kamu: rsk_โ€ฆ. Simpan baik-baik โ€” ini rahasia, jangan dibagikan.
  4. Butuh key baru? Tekan ๐Ÿ”„ Reset Key โ€” key lama langsung mati.
Key terikat ke akun Telegram-mu, dan saldo yang dipotong adalah saldo akun itu. Satu reseller = satu key aktif.

Saldo & pembayaran

Top-up dulu, order instan

Tiap order memotong saldo bot sebesar harga_reseller ร— quantity. Isi saldo lewat menu Saldo di bot (QRIS, dll). Cek saldo kapan saja lewat GET /v1/me.

Kalau saldo kurang, order ditolak 402 tanpa memotong apa pun. Kalau stok habis setelah saldo terpotong, saldo otomatis dikembalikan.

Endpoint

GET/v1/me

Info akun reseller: nama, saldo, harga reseller, dan stok terkini. Pakai ini untuk cek sebelum order.

Request
curl https://reseller.botelexkey.online/v1/me \
  -H "X-Reseller-Key: rsk_xxxxxxxxxxxxxxxx"
200 ยท Response
{
  "success": true,
  "name": "tokosaya",
  "balance": 150000,      // saldo (Rp)
  "products": [ /* semua produk โ€” sama seperti GET /v1/products */ ],
  "product": "leonardo_ai",   // default
  "unit_price": 4500,    // harga default (Leonardo = harga bot โˆ’ 500)
  "stock": 1854,        // stok default
  "enabled": true
}
GET/v1/products

Daftar semua produk yang bisa dibeli via API, lengkap dengan harga reseller (unit_price) dan stok terkini. Pakai id-nya sebagai product_id saat order.

Request
curl https://reseller.botelexkey.online/v1/products \
  -H "X-Reseller-Key: rsk_xxxxxxxxxxxxxxxx"
200 ยท Response
{
  "success": true,
  "products": [
    { "id": "leonardo_ai",           "unit_price": 4500,  "stock": 1854 },
    { "id": "leonardo_ai_8500_json", "unit_price": 4500,  "stock": 230 },
    { "id": "gemini_redeem_link",    "unit_price": 20000, "stock": 37 },
    { "id": "outlook_email",         "unit_price": 2000,  "stock": 982 },
    { "id": "hotmail_email",         "unit_price": 2000,  "stock": 997 }
  ]
}
Stok 0 = produk sedang habis; order akan ditolak 409 tanpa memotong saldo. Cek dulu di sini sebelum order banyak.
POST/v1/order

Beli produk. Memotong saldo lalu mengembalikan barangnya langsung di response โ€” kredensial akun (accounts[]) atau isi file (files[] untuk produk JSON).

Body

FieldTipeKeterangan
product_id opsionalstringID produk: leonardo_ai (akun, default) atau leonardo_ai_8500_json (file JSON). Lihat daftar & stok via GET /v1/products.
quantity wajibintegerJumlah, 1โ€“100.
client_ref opsionalstringKode unik ordermu. Retry dengan nilai sama tidak akan double-charge (lihat Idempotensi).
Request
curl -X POST https://reseller.botelexkey.online/v1/order \
  -H "X-Reseller-Key: rsk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "leonardo_ai_8500_json", "quantity": 10, "client_ref": "po-1001"}'
200 ยท Response
{
  "success": true,
  "order_id": "RSLR-20260820163500-A1B2",
  "quantity": 10,
  "unit_price": 6500,
  "total": 65000,
  "accounts": [
    "email1@hotmail.com|password1",
    "email2@hotmail.com|password2"
  ],
  "balance_after": 85000
}
Simpan accounts[] dari response โ€” itu satu-satunya kali kredensial dikirim. Untuk produk JSON (leonardo_ai_8500_json), isi tiap file ada di files[] berupa { "filename", "content" } โ€” simpan tiap content sebagai berkas .json. order_id berguna untuk pencatatanmu.

Referensi

Kode error

Semua error berbentuk { "success": false, "error": "โ€ฆ" }, sebagian dengan field tambahan.

StatuserrorArti & solusi
401unauthorizedKey salah/dicabut. Cek header X-Reseller-Key, atau ambil ulang di bot.
402insufficient_balanceSaldo kurang. Response memuat balance & required. Top-up dulu.
409out_of_stockStok kurang dari quantity. Saldo tidak terpotong (auto-refund). Field available = sisa stok.
400invalid_quantityquantity di luar 1โ€“max. Field max menyertakan batasnya.
400bad_jsonBody bukan JSON valid.
500reseller_price_not_setAdmin belum menetapkan harga reseller. Hubungi admin.
503reseller_disabledFitur reseller sedang dimatikan admin.

Idempotensi

Sertakan client_ref unik di tiap POST /v1/order. Jika request diulang dengan client_ref yang sama (mis. karena timeout jaringan), server mengembalikan order yang sama โ€” akun tidak diambil dua kali dan saldo tidak terpotong dua kali. Response berisi "idempotent": true.

Praktik aman: buat client_ref dari ID order di sistemmu, dan retry pakai nilai yang sama sampai dapat balasan sukses.