Developers · API v1 · no login required

Keys on tap,
from your own code.

The AIM Playr reseller API spends your reseller wallet at the same price as the panel. Bearer auth, JSON in and out, polling for the key — or signed webhooks pushed to your own server.

Bearer auth USD pricing Polling Signed webhooks
01 / Quick start

Four calls cover the whole flow.

Every request is JSON over HTTPS. Send your key in the Authorization header, place an order, then read the key back from the order. Nothing on your server has to be public.

1

Check the wallet

Confirm the key works and see the balance and the limits attached to it.

curl
curl https://aimplayr.com/api/v1/me \
  -H "Authorization: Bearer aim_live_…"
2

Pick a plan

List what is sellable right now and copy a duration_plan_id.

curl
curl https://aimplayr.com/api/v1/catalogue \
  -H "Authorization: Bearer aim_live_…"
3

Buy the key

The wallet is charged when the order is accepted. Send an Idempotency-Key so a network retry can never buy twice. Add "quantity": 3 to buy several keys in one order.

curl
curl -X POST https://aimplayr.com/api/v1/orders \
  -H "Authorization: Bearer aim_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: shopbot-order-8f2c1a" \
  -d '{"duration_plan_id": 4}'
4

Read the key back

201 means the key is already in the response. 202 means the supplier is still working — poll this until delivery_status settles.

curl
curl https://aimplayr.com/api/v1/orders/RZX-8F2C1A \
  -H "Authorization: Bearer aim_live_…"
Prefer push? Polling always works and needs nothing public. If your server can take HTTPS calls, register a webhook in the panel and we POST the delivery to you instead.
02 / Authentication

One bearer token per key.

Every call needs a key issued from the reseller panel or by the owner. Keys start with aim_live_ and are stored hashed — the full value is shown exactly once, at creation.

Header
Authorization: Bearer aim_live_…
  • A key belongs to one reseller and can only spend that reseller's wallet.
  • Deleting a key in the panel kills it instantly — the next request returns 401 invalid_key.
  • No cookies, no CSRF token and no browser session is involved. Plain HTTP calls only.
  • Never ship a key in client-side code, a mobile app bundle or a public repository.
03 / Reference

Endpoints.

All responses are JSON. Errors always use the shape { "error": { "code": "…", "message": "…" } }.

GET /me Wallet, limits and orders used today

Use this as your health check. balance is the spendable reseller balance in USD; key repeats the limits this key is running under.

200 response
{
  "reseller": { "id": 1, "name": "wavvy.pk", "email": "you@example.com" },
  "balance": 50,
  "currency": "USD",
  "key": {
    "label": "Shop bot",
    "prefix": "aim_live_1a2b3c4d",
    "rate_limit_per_min": 200,
    "daily_order_cap": 100,
    "orders_today": 3
  }
}
GET /catalogue Tools, plans and live availability

Only sellable plans are listed — anything without a reseller price is hidden. availability is supplier (fulfilled live upstream), stock (local keys) or out_of_stock.

200 response
{
  "currency": "USD",
  "tools": [
    {
      "tool_id": 1,
      "name": "8 Ball Pool",
      "game": "8 Ball Pool",
      "platform": "Android",
      "plans": [
        {
          "duration_plan_id": 4,
          "name": "7 days",
          "duration_days": 7,
          "price": 5,
          "availability": "supplier"
        }
      ]
    }
  ]
}
GET /orders Paginated order history for this reseller

Newest first. Query params: page (default 1) and page_size (1–50, default 25).

200 response
{
  "page": 1,
  "page_size": 25,
  "total": 42,
  "orders": [
    {
      "code": "RZX-8F2C1A",
      "status": "delivered",
      "delivery_status": null,
      "tool": "8 Ball Pool",
      "duration_days": 7,
      "amount_charged": 5,
      "currency": "USD",
      "key": "XXXX-XXXX-XXXX-XXXX",
      "deliveries": [],
      "created_at": "2026-10-29T12:00:00.000Z"
    }
  ]
}
GET /orders/:code One order, with its key and deliveries

Only orders belonging to the key's reseller are visible. Unknown or foreign codes return 404 order_not_found.

200 response
{
  "order": {
    "code": "RZX-8F2C1A",
    "status": "delivered",
    "delivery_status": "supplier_delivered",
    "tool": "8 Ball Pool",
    "game": "8 Ball Pool",
    "platform": "Android",
    "duration_days": 7,
    "amount_charged": 5,
    "currency": "USD",
    "key": "XXXX-XXXX-XXXX-XXXX",
    "deliveries": [
      { "type": "key", "key": "XXXX-XXXX-XXXX-XXXX" }
    ],
    "created_at": "2026-10-29T12:00:00.000Z",
    "expires_at": null
  }
}
POST /orders Buy a key from the reseller wallet

Send duration_plan_id (or its alias plan_id). The reseller price is debited from the wallet as soon as the order is accepted; if the supplier cannot deliver, the charge is refunded automatically.

Field / headerRequiredNotes
duration_plan_idYesInteger from GET /catalogue.
quantityNoHow many keys, 1–25. Defaults to 1 and is charged as price × quantity in one wallet debit. The order returns every key in keys and deliveries. Account and device-activation plans stay at 1.
Idempotency-KeyNo16–96 chars of A-Z a-z 0-9 . _ : -. Replays return the original order with status 200 and header Idempotent-Replay: true.
201 response — delivered now
{
  "order": {
    "code": "RZX-8F2C1A",
    "status": "delivered",
    "delivery_status": null,
    "tool": "8 Ball Pool",
    "game": "8 Ball Pool",
    "platform": "Android",
    "duration_days": 7,
    "quantity": 1,
    "amount_charged": 5,
    "currency": "USD",
    "key": "XXXX-XXXX-XXXX-XXXX",
    "keys": ["XXXX-XXXX-XXXX-XXXX"],
    "deliveries": [],
    "created_at": "2026-10-29T12:00:00.000Z",
    "expires_at": null
  }
}
202 response — supplier is working
{
  "order": {
    "code": "RZX-5D9E21",
    "status": "pending_payment",
    "delivery_status": "supplier_pending",
    "tool": "Free Fire",
    "game": "Free Fire",
    "platform": "Android",
    "duration_days": 30,
    "quantity": 1,
    "amount_charged": 20,
    "currency": "USD",
    "key": null,
    "keys": [],
    "deliveries": [],
    "created_at": "2026-10-29T12:05:00.000Z",
    "expires_at": null
  }
}
04 / Delivery

Poll until it settles.

A key can come from local stock (instant) or from the live supplier (usually seconds, sometimes longer). delivery_status tells you which state you are in.

delivery_statusMeaningWhat to do
null or supplier_deliveredDone — the key is in key and deliveries.Deliver to your customer.
supplier_pendingThe supplier accepted the order and is still fulfilling it.Poll GET /orders/:code with a short backoff (5–30s).
supplier_failedThe supplier could not deliver; the wallet charge was refunded.Stop polling and place a new order later.
Deliveries array. Besides key, a supplier can hand back an { "type": "account", "username": …, "password": … } or { "type": "activation", "device_id": … } entry. Store every entry you receive.
05 / Webhooks

Or let us call you.

Register up to three HTTPS endpoints under Reseller panel → API → Webhooks. Every state change on one of your orders is POSTed as JSON to each endpoint that subscribes to that event. Polling keeps working — webhooks are an extra signal, not a replacement.

EventSent when
order.createdThe purchase was accepted and the wallet was charged.
order.fulfilledThe order is complete and data.order.deliveries holds every key, including supplier keys that landed after a 202.
order.failedThe supplier could not deliver; the wallet charge was refunded.

Verify the signature

Each request carries four headers. Sign the timestamp and the raw body with the endpoint secret shown once at registration (rotate it any time in the panel):

  • X-Aim-Event — the event name.
  • X-Aim-Delivery — a unique delivery id.
  • X-Aim-Timestamp — Unix seconds.
  • X-Aim-Signature — sha256= + HMAC-SHA256 of <timestamp>.<raw body>.
node — Express
const crypto = require('crypto');

app.post('/aim-webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const ts = req.get('x-aim-timestamp');
  const got = req.get('x-aim-signature');
  const raw = req.body.toString('utf8');
  const want = 'sha256=' + crypto
    .createHmac('sha256', process.env.AIM_WEBHOOK_SECRET)
    .update(`${ts}.${raw}`).digest('hex');

  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return res.sendStatus(400);
  if (got.length !== want.length) return res.sendStatus(401);
  if (!crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want))) return res.sendStatus(401);

  const event = JSON.parse(raw);
  // event.id, event.event, event.data.order.keys
  res.sendStatus(200);
});
payload
{
  "id": "evt_5f1c0a9d3b7e4c88a1d2",
  "event": "order.fulfilled",
  "created_at": "2026-11-03T12:00:04.000Z",
  "data": {
    "order": {
      "code": "RZX-8F2C1A",
      "status": "delivered",
      "delivery_status": "supplier_delivered",
      "tool": "8 Ball Pool",
      "game": "8 Ball Pool",
      "platform": "Android",
      "duration_days": 7,
      "quantity": 2,
      "amount_charged": 10,
      "currency": "USD",
      "key": "XXXX-XXXX-XXXX-XXXX",
      "keys": ["XXXX-XXXX-XXXX-XXXX", "YYYY-YYYY-YYYY-YYYY"],
      "deliveries": [
        { "type": "key", "key": "XXXX-XXXX-XXXX-XXXX" },
        { "type": "key", "key": "YYYY-YYYY-YYYY-YYYY" }
      ]
    }
  }
}
Delivery rules. Answer with a 2xx within 10 seconds. Anything else — non-2xx, timeout, DNS or TLS failure — is retried 8 times over about 8 hours with backoff, then marked failed in your panel. The same event can arrive more than once, so dedupe on the payload id. Disable or delete an endpoint in the panel to stop it immediately.
06 / Limits

Rate limit and daily order cap.

Both limits are set on your reseller account by AIM Playr, and every key you create runs at them — there is nothing to configure per key. New accounts start at 200 requests a minute and 100 orders a day; the owner can raise or lower that at any time and the change applies immediately. GET /me always shows the limits your keys are currently running at.

  • Authenticated responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds).
  • 429 rate_limited also sends Retry-After — wait that many seconds before retrying.
  • 429 daily_cap_reached includes cap and used in the error body. The cap resets at midnight server time.
  • Rate limiting is per key and per minute, and it is checked before an order is priced or charged.
07 / Errors

What can go wrong.

Every error is JSON with a stable machine code. Branch on error.code, not on the message text.

HTTPCodeWhen
400invalid_planduration_plan_id missing or not a positive integer.
400invalid_idempotency_keyHeader is not 16–96 characters of A-Z a-z 0-9 . _ : -.
401missing_keyNo Authorization: Bearer header.
401invalid_keyThe key is unknown or was deleted.
402insufficient_balanceThe wallet holds less than the plan price.
403reseller_inactiveThe reseller account is not active.
404order_not_foundNo order with that code on this reseller account.
404not_foundThat API route does not exist.
409out_of_stockThe plan has no stock and no live supplier availability.
409plan_unavailableThe plan, tool or game is inactive.
422price_missingThe plan has no reseller price configured.
429rate_limitedRequests-per-minute limit hit. Retry after Retry-After.
429daily_cap_reachedOrders-per-day limit hit for this key.
500server_errorUnexpected failure. Retry with the same Idempotency-Key if you were placing an order.
Partial charge safety. If an order request fails before the order is created, nothing is charged. If the supplier fails after acceptance, the wallet debit is reversed automatically — check the order's delivery_status.
08 / Access

Need a key?

Reseller accounts create their own keys from the panel. AIM Playr sets the request rate and daily order cap on your account, and every key you create runs at those limits — ask us if you need more.