API Documentation
ELITE TOOLS STORE runs on one API that both the website and the Telegram bot talk to.
Base URL
https://api.elitetoolz.store/apiAuthentication
Protected endpoints require the header x-storefront-key with the shared storefront secret. Requests without it are rejected.
Format
All requests and responses are JSON. Successful responses include ok: true.
Catalogue
Public product data. The bot is the single source of truth for products, prices and stock.
/storefront/productspublicFull product list in bot row order: id, name, price, stock, inStock, description, warranty, buyUrl.
Payments
Wallet top-ups and order payments are verified on-chain or through Binance Pay before anything is delivered.
/storefront/payment-configkey requiredActive wallet addresses: BEP-20, TRC-20, Binance Pay and bank transfer details.
/storefront/verify-paymentkey requiredVerifies a transaction. Returns verified, amount, received, alreadyUsed and a reason on failure.
{ "network": "bep20" | "trc20" | "binance", "txHash": "0x…", "amount": 12.5 }/storefront/pay-sessionkey requiredCreates a card checkout session and returns the payment URL.
{ "reference": "ETS-1234", "email": "…", "name": "…", "amountUsd": 10, "successUrl": "…", "cancelUrl": "…" }/storefront/pay-session/:sessionIdkey requiredReads a card session back: ok, paid, amount, reference.
Delivery & activations
Credentials leave the bot only after a payment is confirmed.
/storefront/deliverkey requiredPulls credentials from bot stock for a paid order. Returns items, productName, warranty, deliveryNote.
{ "productId": "ABF0431B", "quantity": 1, "reference": "ETS-1234", "priceUsd": 9.99 }/storefront/activationkey requiredQueues a Canva or Surfshark activation for a website purchase.
{ "request_id": "…", "reference": "ETS-1234", "type": "canva" | "surfshark", "value": "user@gmail.com" }Wallet bridge
While a Telegram account is linked, the bot wallet and the website wallet spend as one pot. Nothing is ever merged.
/storefront/wallet?telegram_id=123key requiredCurrent bot wallet balance for a linked customer.
/storefront/wallet/debitkey requiredTakes money out of the bot wallet for a website purchase.
{ "telegram_id": 123, "amount": 5, "note": "Order ETS-1234" }Orders
So website order history shows bot purchases too.
/storefront/orders?telegram_id=123key requiredAll purchases a linked Telegram customer made inside the bot.
/storefront/order-lookup?reference=ETS-1234key requiredLooks one order up by reference for public order tracking.
/storefront/notifykey requiredSends a live admin notification into Telegram with optional approve / reject / deliver buttons.
{ "title": "…", "body": "…", "action": { "kind": "order", "id": "…", "actions": ["approve"] } }Errors
401— missing or wrongx-storefront-key.404— unknown product, order or session.409— transaction already used for another payment.503— supplier or payment provider temporarily unavailable.
