Reseller API

Sell our products on your own bot or website. Every order is charged to your wallet points balance and delivered instantly from our stock.

๐Ÿ”‘ Getting your API key

Open the bot and tap ๐Ÿ”‘ Reseller API โ†’ Generate API Key. Your key is shown only once โ€” save it immediately. It is linked to your wallet: orders are paid from your points balance, so top up with ๐Ÿ’Ž Buy Points before you start selling.

If you lose your key, generate a new one in the bot (the old one stops working). An admin can also deactivate a key at any time.

Authentication

Send your key in the X-API-Key header on every request. There is no other auth.

X-API-Key: YOUR_API_KEY_HERE

Base URL: https://telegram.toolsbydcx.com/api

Endpoints

MethodEndpointWhat it does
GET/api/productsList products with price and live stock
GET/api/categoriesList categories
GET/api/stock?product_id=NLive stock for one product
POST/api/orderBuy and get the delivery instantly
GET/api/order/{id}Order status and delivered items

GET /api/products

Lists all active products for the bot your key belongs to, with live available stock.

curl -H "X-API-Key: YOUR_API_KEY_HERE" \
  https://telegram.toolsbydcx.com/api/products
{
  "products": [
    {
      "id": 1,
      "name": "100M Credit API Codex 5 Days",
      "price_usd": 5.5,
      "description": "100M Credit API Codex 5 Days - full warranty.",
      "delivery_format": "Coupon / Redemption Code",
      "category": "Chatgpt",
      "category_id": 1,
      "stock": 12,
      "sold_count": 1,
      "status": "active"
    }
  ]
}

GET /api/categories

curl -H "X-API-Key: YOUR_API_KEY_HERE" \
  https://telegram.toolsbydcx.com/api/categories
{
  "categories": [
    { "id": 1, "name": "Chatgpt", "slug": "chatgpt", "emoji": "๐Ÿ“", "product_count": 14 },
    { "id": 6, "name": "Netflix", "slug": "netflix", "emoji": "๐Ÿ“", "product_count": 1 }
  ]
}

GET /api/stock

Check live stock before ordering. product_id is required.

curl -H "X-API-Key: YOUR_API_KEY_HERE" \
  "https://telegram.toolsbydcx.com/api/stock?product_id=1"
{
  "product_id": 1,
  "name": "100M Credit API Codex 5 Days",
  "price_usd": 5.5,
  "status": "active",
  "stock": 12
}

POST /api/order

Buys qty of a product, charges your wallet total_usd ร— points_rate points ($1 = 10 points by default), and delivers instantly. qty must be 1โ€“100.

curl -X POST -H "X-API-Key: YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"product_id": 1, "qty": 2}' \
  https://telegram.toolsbydcx.com/api/order

Response (qty โ‰ค 9 โ€” contents inline)

{
  "order_id": 42,
  "product_id": 1,
  "product": "100M Credit API Codex 5 Days",
  "qty": 2,
  "total_usd": 11.0,
  "points_charged": 110.0,
  "status": "delivered",
  "contents": [
    "CODEX-XXXX-1111",
    "CODEX-XXXX-2222"
  ]
}

Response (qty > 9 โ€” file via Telegram)

For 10 or more items the contents are not returned inline. Instead the delivery file is sent to you on Telegram by the bot, and the response says so:

{
  "order_id": 43,
  "product_id": 1,
  "product": "100M Credit API Codex 5 Days",
  "qty": 10,
  "total_usd": 55.0,
  "points_charged": 550.0,
  "status": "delivered",
  "contents": null,
  "note": "10+ items: the delivery file was sent to you on Telegram."
}
โš ๏ธ Treat delivered contents as secret. Each code/account is sold once โ€” do not share or resell the same item twice. If a code does not work, open a warranty claim in the bot with the order ID.

GET /api/order/{id}

Check an order you placed (only your own orders are visible).

curl -H "X-API-Key: YOUR_API_KEY_HERE" \
  https://telegram.toolsbydcx.com/api/order/42
{
  "order_id": 42,
  "product_id": 1,
  "product": "100M Credit API Codex 5 Days",
  "qty": 2,
  "unit_price": 5.5,
  "total_usd": 11.0,
  "status": "delivered",
  "payment_method": "points",
  "created_at": "2026-11-06 02:10:00",
  "delivered_at": "2026-11-06 02:10:00",
  "items": ["CODEX-XXXX-1111", "CODEX-XXXX-2222"]
}

Errors

Errors are always JSON {"error": "..."} with an HTTP status code:

CodeMeaning
400Bad input โ€” missing/invalid product_id, qty out of range, or invalid JSON.
401Missing, invalid, deactivated, or banned API key.
402Insufficient points โ€” top up your wallet in the bot and retry. Nothing was charged.
404Product, order, or endpoint not found (orders only return your own).
409Out of stock โ€” the product is out of stock or has fewer items than the qty requested. If points were charged, they are refunded automatically.

Tips

ToolsByDcx Reseller API ยท Docs served from /api-docs