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.
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.
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.
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/meWallet, 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.
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.
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 / header
Required
Notes
duration_plan_id
Yes
Integer from GET /catalogue.
quantity
No
How 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-Key
No
16–96 chars of A-Z a-z 0-9 . _ : -. Replays return the original order with status 200 and header Idempotent-Replay: true.
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_status
Meaning
What to do
null or supplier_delivered
Done — the key is in key and deliveries.
Deliver to your customer.
supplier_pending
The supplier accepted the order and is still fulfilling it.
Poll GET /orders/:code with a short backoff (5–30s).
supplier_failed
The 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.
Event
Sent when
order.created
The purchase was accepted and the wallet was charged.
order.fulfilled
The order is complete and data.order.deliveries holds every key, including supplier keys that landed after a 202.
order.failed
The 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>.
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.
HTTP
Code
When
400
invalid_plan
duration_plan_id missing or not a positive integer.
400
invalid_idempotency_key
Header is not 16–96 characters of A-Z a-z 0-9 . _ : -.
401
missing_key
No Authorization: Bearer header.
401
invalid_key
The key is unknown or was deleted.
402
insufficient_balance
The wallet holds less than the plan price.
403
reseller_inactive
The reseller account is not active.
404
order_not_found
No order with that code on this reseller account.
404
not_found
That API route does not exist.
409
out_of_stock
The plan has no stock and no live supplier availability.
409
plan_unavailable
The plan, tool or game is inactive.
422
price_missing
The plan has no reseller price configured.
429
rate_limited
Requests-per-minute limit hit. Retry after Retry-After.
429
daily_cap_reached
Orders-per-day limit hit for this key.
500
server_error
Unexpected 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.