Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.leuwongrr.online/llms.txt

Use this file to discover all available pages before exploring further.

Sandbox & Production API Key

LeuwongRR User API mendukung dua mode API key agar integrasi bot, website, atau dashboard bisa diuji dengan lebih aman.

Mode API Key

ModePrefix tokenFungsi
Sandboxlrrs_v1_Untuk uji coba integrasi. Invoice test memakai prefix SBX- dan tidak membuat charge/gateway real.
Productionlrrp_v1_Untuk penggunaan live/production. Gunakan setelah integrasi sudah siap.

Rekomendasi Alur Integrasi

  1. Buat API key mode Sandbox.
  2. Test endpoint read-only seperti saldo, order, invoice, dan status.
  3. Test POST /api/v1/me/orders dengan payment_method: invoice.
  4. Pastikan bot menangani response sukses dan error dengan benar.
  5. Setelah aman, buat API key mode Production dan update environment bot.

Header Request

Authorization: Bearer USER_API_TOKEN
Accept: application/json
Content-Type: application/json

Catatan Keamanan

Jangan simpan Production API Key di repository publik, frontend JavaScript, screenshot, atau channel Discord/Telegram publik.
Sandbox key tetap terhubung ke akun user yang sama, tetapi dibuat untuk testing supaya tidak tertukar dengan transaksi production.