Nexus API v1 · LIVE

REST API for programmatic access to the Nexus store — list products, check balance, buy with your wallet, retrieve orders. Set your API key below to try any endpoint right from this page.

not set

Stored only in your browser (localStorage). Get your key from the Telegram bot → Reseller API → Generate API Key.

Introduction

All endpoints live under https://api.batmanai.store/v1. Requests are JSON over HTTPS. Responses are JSON with a boolean ok field. Prices and stock match your account exactly — per-user prices, reseller discounts, and deals all applied automatically.

Authentication

Every call needs a Bearer token in the Authorization header.

Authorization: Bearer nxs_YOUR_KEY_HERE
Keys never expire but can be regenerated from the bot at any time (old key is immediately revoked).

Error codes

StatusMeaning
400Malformed request (bad JSON, missing field)
401invalid_api_key — missing / wrong / revoked
402insufficient_balance — top up your wallet from the bot
403account_blocked — reach out to support
404product_not_found or order_not_found
409out_of_stock — product has zero credentials across all sources
429rate_limit — slow down (see below)
503store_offline — admin has disabled sales

Rate limits

30 requests per minute per API key. Exceeding returns 429 — try again after a short wait. Use idempotency keys on POST /v1/orders to retry safely without double-charging.

GET /v1/products

Returns every live product with your account's exact price and current stock.

Response fieldTypeNotes
products[].idstringProduct identifier
products[].namestringDisplay name
products[].descriptionstringMay be empty
products[].pricenumberYour unit price (deal / per-user / reseller already applied)
products[].currencystringAlways USDT currently
products[].stocknumberLocal + supplier combined
products[].in_stockboolConvenience flag
products[].dealboolPrice reflects an active deal
products[].durationstring|nulle.g. "1 month"
Example
curl 'https://api.batmanai.store/v1/products' \
  -H 'Authorization: Bearer nxs_YOUR_KEY'
Try it

No parameters needed.

GET /v1/products/{id}

Fetch a single product by id.

Path paramTypeNotes
idrequiredstringProduct id from the list
Example
curl 'https://api.batmanai.store/v1/products/<id>' \
  -H 'Authorization: Bearer nxs_YOUR_KEY'
Try it

GET /v1/balance

Your current wallet balance.

Response fieldTypeNotes
balancenumberAvailable balance
currencystringCurrency code
Example
curl 'https://api.batmanai.store/v1/balance' \
  -H 'Authorization: Bearer nxs_YOUR_KEY'
Try it

No parameters needed.

GET /v1/orders

Last 50 orders placed through your account (via the bot or the API).

Response fieldTypeNotes
orders[].idstringOrder id (e.g. PAY-...)
orders[].statusstringcompleted / partial / pending_delivery / pending
orders[].qtynumberRequested quantity
orders[].gotnumberActually delivered
orders[].short_bynumberHow many still owed (0 if complete)
orders[].totalnumberAmount charged (only for delivered items)
orders[].created_atnumberms epoch
Example
curl 'https://api.batmanai.store/v1/orders' \
  -H 'Authorization: Bearer nxs_YOUR_KEY'
Try it

No parameters needed.

GET /v1/orders/{id}

Full order detail including credentials array.

Path paramTypeNotes
idrequiredstringOrder id
Response fieldTypeNotes
order.credentials[]string[]Delivered items — same format as the bot sends in Telegram
Example
curl 'https://api.batmanai.store/v1/orders/<id>' \
  -H 'Authorization: Bearer nxs_YOUR_KEY'
Try it

POST /v1/orders

Place an order — credentials returned inline in the response.

Body fieldTypeNotes
product_idrequiredstringProduct id
qtyoptionalnumberDefault 1, max 100
idempotency_keyoptionalstringSame key → same order (24 h window). Safe retries.
Partial deliveries: if suppliers run short, you still get what was delivered. Response includes status: "partial", the credentials[] array, and short_by count. You are only charged for delivered items. The admin manually sends the remainder shortly.
Example
curl -X POST 'https://api.batmanai.store/v1/orders' \
  -H 'Authorization: Bearer nxs_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"product_id":"prod_xxx","qty":"1","idempotency_key":"uuid-123"}'
Try it