API docs
Read live prices, quote an amount, and place orders paid from your wallet, from your own system.
Reference
Create a key on the API keys page, then send it as Authorization: Bearer <key>. A key reads the buyer side only. It cannot sell, withdraw or change anything. Limit: 60 requests per minute per key.
GET /api/v1/prices
Live price levels and capacity. No seller names, no source ids.
curl https://buxrelay.com/api/v1/prices \ -H "Authorization: Bearer $BUXRELAY_KEY"
POST /api/v1/quote
Prices an amount under your max rate. It never fills part of an order silently: when the cap leaves less Robux than asked, complete is false and available_robux says how much is there.
curl https://buxrelay.com/api/v1/quote \
-H "Authorization: Bearer $BUXRELAY_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"COMMUNITY","amount_robux":6000,"max_rate":85000}'
# 200
{"type":"COMMUNITY","amount_robux":6000,"available_robux":5000,
"subtotal":400000,"complete":false,"max_rate":85000,"lines":[...]}GET /api/v1/orders/{id}
Status and price levels of one of your orders. Another buyer's order is a 404.
curl https://buxrelay.com/api/v1/orders/ord_123 \ -H "Authorization: Bearer $BUXRELAY_KEY"
POST /api/v1/orders
Creates an order and pays it from your IDR wallet in one step. Top up the wallet first. Send a unique Idempotency-Key header (1 to 128 characters) with every new order: a retry with the same key and body returns the same order and charges once. The same key with a different body is refused.
curl https://buxrelay.com/api/v1/orders \
-H "Authorization: Bearer $BUXRELAY_KEY" \
-H "Idempotency-Key: 5b1f0c2e-9d3a-4a7e-8f11-2c6d9e0b7a10" \
-H "Content-Type: application/json" \
-d '{"type":"COMMUNITY","amount_robux":1000,"recipient_username":"target_1","max_rate":85000}'
# 201 created and paid (200 with "replayed":true on a retry)
{"order":{"id":"ord_…","status":"PAID","price_total":80000,…},"plan":{…},"replayed":false}
# 402 wallet balance too low: nothing was created, nothing was charged
{"code":"insufficient_balance","message":"your wallet balance is below Rp 80000 …","price_total":80000}
# 409 cap_insufficient: the cap leaves less Robux than asked; nothing was created
# 422 idempotency_key_reused: this key was used for a different requestWallet orders are paid in full at creation. Check the balance on Wallet and the order on Orders.
Errors come back as JSON with a code: invalid_api_key, api_key_revoked, rate_limited.
Webhooks
Set one HTTPS URL on the Webhook page. BuxRelay then POSTs every status change of your orders to it, so you do not have to poll GET /api/v1/orders/{id}. The URL must be https:// on port 443 and reachable from the internet. Redirects are not followed.
Events
order.status_changed is sent when an order moves to PAID, DELIVERING, PARTIALLY_DELIVERED, DELIVERED, COMPLETED, FAILED, REFUNDED or another state. ping is sent by the "Send test event" button.
POST https://your-server.example/buxrelay
Content-Type: application/json
X-BuxRelay-Event: order.status_changed
X-BuxRelay-Delivery: evt_1042
X-BuxRelay-Signature: t=1795315200,v1=5f3c…
{"id":"evt_1042","event":"order.status_changed","created_at":"2026-11-22T10:30:00Z",
"data":{"status":"DELIVERED",
"order":{"id":"ord_…","status":"DELIVERED","amount_robux":1000,"price_total":80000,…}}}data.status is the state that triggered the event. data.order is the order as it is when the request is sent, so it can already be further along.
Verify the signature
Compute HMAC-SHA256 of <t>.<raw body> with your secret, compare it with v1, and reject a t older than 5 minutes. Use the raw body bytes, not re-encoded JSON.
// Node.js
import crypto from "node:crypto";
function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
const want = crypto.createHmac("sha256", secret).update(parts.t + "." + rawBody).digest("hex");
return crypto.timingSafeEqual(Buffer.from(want), Buffer.from(parts.v1 ?? ""));
}Answering and retries
Answer with any 2xx within 10 seconds. Anything else is retried after 30 s, 2 min, 10 min, 30 min, 1 h, 3 h, 6 h and 12 h, then marked failed. An event can arrive more than once and out of order: use id to drop repeats. The last 20 deliveries and their answers are on the Webhook page.
