curl --request POST \
--url https://leuwongrr.online/api/v1/me/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_type": "gamepass",
"roblox_username": "LeuwongUser",
"place_id": 123456789,
"roblox_pass_id": 987654321
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_type: 'gamepass',
roblox_username: 'LeuwongUser',
place_id: 123456789,
roblox_pass_id: 987654321
})
};
fetch('https://leuwongrr.online/api/v1/me/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leuwongrr.online/api/v1/me/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_type' => 'gamepass',
'roblox_username' => 'LeuwongUser',
'place_id' => 123456789,
'roblox_pass_id' => 987654321
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "OK",
"data": {}
}Create own order
Buat order baru milik akun sendiri lewat User API.
curl --request POST \
--url https://leuwongrr.online/api/v1/me/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_type": "gamepass",
"roblox_username": "LeuwongUser",
"place_id": 123456789,
"roblox_pass_id": 987654321
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
order_type: 'gamepass',
roblox_username: 'LeuwongUser',
place_id: 123456789,
roblox_pass_id: 987654321
})
};
fetch('https://leuwongrr.online/api/v1/me/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leuwongrr.online/api/v1/me/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_type' => 'gamepass',
'roblox_username' => 'LeuwongUser',
'place_id' => 123456789,
'roblox_pass_id' => 987654321
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "OK",
"data": {}
}Authorizations
Masukkan User API Token dari halaman https://leuwongrr.online/user/api-access. Gunakan tanpa prefix Bearer jika field playground sudah otomatis menambahkan Bearer.
Headers
Kunci unik dari bot/client untuk mencegah double order saat request terulang. Gunakan nilai unik per order.
"discord-123456789-order-001"
Wajib dikirim jika payment_method=balance dari Discord bot. Isinya Discord user ID yang sudah terhubung ke akun web pemilik User API Token. Tidak diperlukan untuk payment_method=invoice/gateway.
"1262024148939440249"
Body
gamepass, vip_server "gamepass"
"LeuwongUser"
123456789
987654321
Default invoice. Gunakan balance hanya dari Discord bot yang sudah link akun web dan wajib menyertakan header X-Discord-User-ID. Sandbox hanya boleh invoice.
"balance"
Referensi opsional dari bot/client kamu.
"discord-order-001"
Was this page helpful?