Architecture · ops.tradeit.gg
This document provides a comprehensive list of all API endpoints in the Tradeit platform, grouped by functionality, along with the full application flow.
/api/v2//oauth2/v1//api/steam/v1Base: /api/v2/steam
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /login | No | Steam OAuth login - redirects to Steam |
| POST | /login-code | No | Generate login code via trade URL |
| POST | /attempt-login-code | No | Attempt login with code |
| GET | /offer-id | No | Get trade offer ID for login |
Base: /api/v2/user
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /data | Yes | Get user profile data |
| GET | /transactions | Yes | Get user transaction history |
| PUT | /trade-url | Yes | Set/update trade URL |
| PUT | /email | Yes | Set/update user email |
| PUT | /tradeUrlAndEmail | Yes | Set both trade URL and email |
| PUT | /verify-email | Yes | Request email verification |
| PUT | /confirm-email | No | Confirm email with token |
| POST | /logout | Yes | Logout user |
| POST | /check-steam-guard | Yes | Check Steam Guard status |
| POST | /like | Yes | Like an item |
| PUT | /like | Yes | Unlike an item |
| POST | /set-analytics-attributes | Yes | Save analytics attributes |
| GET | /get-intercom-hash | Yes | Get Intercom hash for user |
| POST | /log-first-transaction | Yes | Log first transaction event |
| GET | /countries | Yes | Get list of countries |
Base: /api/v2/user
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| PUT | /affiliate-code | Yes | Set affiliate code |
| POST | /affiliate | Yes | Update affiliate slug |
| POST | /affiliate/claim-bonus | Yes | Claim affiliate balance |
| GET | /affiliate/statistics | Yes | Get affiliate statistics |
| GET | /affiliate/histories | Yes | Get affiliate revenue history |
Base: /api/v2/user
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /first-trade | Yes | Initialize first trade bonus |
| POST | /first-trade-bonus | Yes | Claim first trade bonus |
Base: /api/v2/user
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /stripe | Yes | Get Stripe account info |
| POST | /stripe | Yes | Create Stripe account |
| DELETE | /stripe | Yes | Remove Stripe account |
| GET | /stripe-link | Yes | Get Stripe login link |
Base: /api/v2/trade
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | Yes | Create a new trade |
| POST | /reserved | Yes | Create trade with reserved items |
| POST | /continue-resolved | Yes | Continue a resolved trade |
| POST | /virtual | Yes | Accept virtual trade |
| GET | /lastTrades | No | Get last completed trades |
| POST | /checkBalance | Yes | Check balance limit for trade |
| POST | /checkTrade | Yes | Validate trade before creation |
| POST | /purchase | Yes | Purchase items from trade |
Flow:
/checkBalance, /checkTrade)POST /)Base: /api/v2/inventory
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /data | No | Get public inventory data |
| GET | /csgo-items | No | Get CS:GO items data |
| GET | /my/data | Yes | Get user's inventory |
| POST | /check-available | Yes | Check if assets are available |
| POST | /search-trade | No | Search items for trade |
| GET | /my/reserved | Yes | Get user's reserved items |
| GET | /reserve-items | No | Get available reserve items |
| GET | /items-prices | No | Get prices for items |
| GET | /search | No | Search inventory for user |
| GET | /stickers | No | Get sticker data |
| GET | /csgo-full-img | No | Get full CS:GO item image |
| GET | /inventory-reserve-items | Yes | Get inventory reserve items |
| GET | /withdraw-reserve-items | Yes | Get withdrawable reserve items |
| GET | /has-lootbear | Yes | Check if user has Lootbear items |
Flow:
/my/data)Base: /api/v2/sell
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /listing | Yes | List item for sale |
| POST | /withdraw | Yes | Withdraw sale offer (crypto payout) |
| GET | /offers | Yes | Get user's sale offers |
| GET | /statistics | Yes | Get selling statistics |
| GET | /soldItems | Yes | Get sold items history |
| GET | /payoutHistories | Yes | Get payout history |
| GET | /payoutStatistic | Yes | Get payout statistics |
| POST | /edit-sale-price | Yes | Edit sale item price |
| POST | /delist-sale-item | Yes | Remove item from sale |
| POST | /sell-reserved-items | Yes | Sell reserved items |
| POST | /trade-reserved-items | Yes | Trade reserved items |
Flow:
POST /listing)POST /withdraw)Base: /api/v2/payment
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /token | No | Get payment token (PayPal) |
Base: /api/v2/stripe
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /topup-transaction/:orderId | Yes | Get topup transaction status |
| POST | /create-session | Yes | Create Stripe checkout session |
| POST | /payment-intent | Yes | Create payment intent |
| POST | /payment-method-configs | Yes | Get payment method configs |
Base: /api/v2/nowpayment
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /payouts | No | IPN webhook for payouts |
| POST | /payments | No | IPN webhook for payments |
| POST | /create-charge | Yes | Create crypto payment charge |
Base: /api/v2/monnect
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /create-signature | Yes | Create payment signature |
| POST | /authorize-transaction | No | Authorize transaction |
| POST | /wh | No | Webhook handler |
Base: /api/v2/crypto
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /cryptopayment | No | Crypto payment webhook |
| GET | /cryptopaymentstatus | No | Check crypto payment status |
Flow:
balance_transactionsBase: /api/v2/store
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /purchase | Yes | Purchase from store |
| POST | /orders | Yes | Get Halo offer information |
| POST | /stripe-webhook | No | Stripe webhook handler |
Flow:
Base: /api/v2/invest
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /enter | Yes | Enter investment (deposit) |
| POST | /exit | Yes | Exit investment (withdraw) |
| GET | /non-logged-in | No | Get investment data (public) |
| GET | /logged-in | Yes | Get investment data (user) |
Flow:
Base: /api/v2/giveaway
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get active giveaways |
| GET | /winners | No | Get giveaway winners |
| GET | /my/entries | Yes | Get user's giveaway entries |
| POST | /join | Yes | Join a giveaway |
| GET | /cron/scheduleGiveaways | No | Schedule giveaways (cron) |
| POST | /cron/chooseWinners | No | Choose winners (cron) |
Flow:
Base: /api/v2/guess-game
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /:id | No | Get game board |
| GET | /:id/leaderboard | No | Get leaderboard |
| POST | /:id/start-game | Yes | Start a game |
| POST | /:id/answer | Yes | Submit answer |
Flow:
Base: /api/v2/challenges
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get available challenges |
| POST | /init | Yes | Initialize challenge |
| POST | /claim | Yes | Claim challenge reward |
Flow:
Base: /api/v2/insights
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /chart/:gameId/container | No | Get container chart data |
| GET | /chart/:gameId/container/:slug | No | Get item in container chart |
| GET | /chart/:gameId/collection/:slug? | No | Get collection chart data |
| GET | /chart/:gameId/item/:itemId | No | Get item chart data |
| GET | /chart/:gameId/:slug? | No | Get category chart data |
| GET | /items/:gameId/container | No | Get container items |
| GET | /items/:gameId/container/:slug? | No | Get items in container |
| GET | /items/:gameId/collection/:slug? | No | Get items in collection |
| GET | /items/:gameId/:slug? | No | Get category items |
| GET | /category/:gameId/:slug? | No | Get category data |
| GET | /stock-data/:gameId/:itemId | No | Get item stock data |
| GET | /generate-contents/:gameId | No | Generate market insight content |
| GET | /graffiti-multi-skins | No | Get sealed graffiti multi skins map |
Base: /api/v2/categories
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get all categories |
| GET | /skins-count | No | Get skins count |
| GET | /:gameId | No | Get categories by game ID |
| GET | /by-parents/:parentIds | No | Get categories by parent IDs |
| GET | /tree/:appId | No | Get categories tree |
| GET | /slug/:slug | No | Get category by slug |
Base: /api/v2/meta
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /item | No | Get item metadata |
| GET | /type | No | Get type metadata |
| GET | /parent-type | No | Get parent type metadata |
| GET | /collection | No | Get collection metadata |
| GET | /container | No | Get container metadata |
| GET | /wiki/urls | No | Get wiki URLs |
| GET | /top-items | No | Get top items |
| GET | /items | No | Get meta items by app ID |
| GET | /player | No | Get pro player data |
| GET | /players | No | Get players by team |
| GET | /seo-items | No | Get meta items by slug (SEO) |
| GET | /landing-page-items | No | Get items for landing page |
| GET | /item-search | No | Search items |
| POST | /track-item-search | No | Track item search |
Base: /api/v2/skinCollections
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | Yes | Create skin collection |
| GET | / | No | Get all collections |
| GET | /items | Yes | Get collection items |
| GET | /tags | No | Get collection tags |
| GET | /meta | No | Get collection metadata |
| GET | /:id | No | Get collection by ID |
| POST | /:id | Yes | Update collection |
| DELETE | /:id | Yes | Delete collection |
| POST | /:id/vote | Yes | Upvote collection |
| DELETE | /:id/vote | Yes | Downvote collection |
Base: /api/v2/coupons
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | No | Apply coupon |
| DELETE | / | No | Remove coupon |
| GET | /:id/check | No | Check coupon validity |
| POST | /validate | Yes | Validate coupon (logged in) |
Base: /api/v2/configurations
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get site configuration |
| GET | /stats | No | Get site statistics |
| GET | /csgo-collections | No | Get CS:GO collections |
Base: /api/v2/settings
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | Yes | Get user settings |
| POST | / | Yes | Update user settings |
Base: /api/v2/deposit-details
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | Yes | Get deposit details |
| GET | /convert-rate | Yes | Get conversion rate |
Base: /api/v2/exchange-rate
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get exchange rates |
Base: /api/v2/server-status
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /steam-powered | No | Check Steam Powered status |
| GET | /stats | No | Get server statistics |
| POST | /report-issue | No | Report server issue |
Base: /api/v2/seo
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /page-contents | No | Get SEO page content |
Base: /api/v2/blogs
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | / | No | Get latest blogs |
Base: /api/v2/contact-us
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | No | Submit contact form |
Base: /api/v2/card
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /verify | Yes | Verify card |
| GET | /card-verifications | Yes | Get card verification data |
| POST | /card-verifications/remove | Yes | Remove card verification |
Base: /api/v2/oauth2
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /request-code | Yes | Request OAuth2 code |
| POST | /notification-reward | Yes | Claim notification reward |
Base: /api/v2/lootbear
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /items/stocks | No | Get items stock details |
| GET | /invest/:steamId | No | Get Lootbear investment |
| POST | /invest | No | Process Lootbear investment |
Base: /api/v2/nft
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | No | NFT placeholder endpoint |
Base: /api/v2/termly
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | / | No | Save cookie consent |
Base: /api/v2/commands
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /verify-card | No | Verify card (admin) |
| POST | /change-limit | No | Change user limit |
| POST | /ban-user | No | Ban user |
| POST | /unban-user | No | Unban user |
| POST | /add-balance | No | Add balance to user |
| POST | /add-store-balance | No | Add store balance |
| POST | /delete-reserved-item | No | Delete reserved item |
| POST | /create-reserved-item | No | Create reserved item |
| POST | /clear-reserved-items | No | Clear reserved items |
| POST | /add-ticket | No | Add giveaway ticket |
| POST | /set-site-disable | No | Set site disable flag |
| POST | /restart-pm2 | No | Restart PM2 |
| POST | /force-unstore-from-bot | No | Force unstore from bot |
| POST | /disable-user | No | Disable user |
| POST | /restart-servers | No | Restart servers |
| GET | /restart-servers-status | No | Get restart status |
| POST | /update-deposit-item-status | No | Update deposit item status |
| GET | /update-guess-game-score/:id | No | Update guess game score |
| POST | /ban-guess-game-user/:id | No | Ban guess game user |
| POST | /verify-payment-id-verification | No | Verify payment ID |
Base: /api/v2/cron
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /cleanBadPurchase | No | Clean bad purchases |
| POST | /refundBlockIds | No | Refund blocked IDs |
| POST | /cleanReservedItems | No | Clean reserved items |
| GET | /rollback3DayFailedPurchases | No | Rollback failed purchases |
| GET | /migrateMailchimp/:start/:end/:batch | No | Migrate Mailchimp |
| GET | /inventoryDailyTracking | No | Daily inventory tracking |
| GET | /checkInventoryValue | No | Check inventory value |
| GET | /checkLastFinishedTrade | No | Check last finished trade |
| GET | /clearBadSales | No | Clear bad sales |
| GET | /checkBotValue | No | Check bot value |
| POST | /updateProPlayersItems | No | Update pro players items |
| POST | /fixStuckDopplerPrices | No | Fix stuck Doppler prices |
| GET | /generateTrendingTags | No | Generate trending tags |
| GET | /generateListingHack | No | Generate listing hack |
| GET | /addInvestInterest | No | Add investment interest |
| GET | /checkMaxPrepareStatement | No | Check max prepare statement |
| GET | /updateTradeLockCount | No | Update trade lock count |
| GET | /updateReserveAndSaleCount | No | Update reserve and sale count |
| GET | /syncItemPrices | No | Sync item prices |
| GET | /syncNewPriceItemFromPricingDb | No | Sync new prices from pricing DB |
| GET | /getSeoPageContentURIs | No | Get SEO page content URIs |
| GET | /cleanBadNowpaymentPayment | No | Clean bad NowPayments |
| GET | /updateHaloOrder | No | Update Halo order |
| POST | /:gameId/market | No | Update market index |
| GET | /trimOutValueInHourRedisKey | No | Trim Redis keys |
| GET | /tradeSurge | No | Trade surge check |
| GET | /checkRevertIssue | No | Check revert issue |
| GET | /update-bots-levels | No | Update bots levels |
| GET | /checkRevertTrade | No | Check revert trade |
| GET | /sendBotCheckRevertTrade | No | Send bot check revert trade |
| GET | /instantSellCheck | No | Instant sell check |
| GET | /:gameId/market-trends | No | Trigger CS2 market trends |
| GET | /handleReservedItemsRefund | No | Handle reserved items refund |
| GET | /cleanupContainer | No | Cleanup container |
Base: /api/v2/internal
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /checkTradeLimit | No | Check trade limit |
| POST | /check-block-trade | No | Check blocked trade |
| POST | /checkSendTradeLimit | No | Check send trade limit |
| POST | /sendNewsletter | No | Send newsletter |
| GET | /sendSteamDownMessage | No | Send Steam down message |
| POST | /loadImage | No | Load image |
| POST | /validate-csgo-items | No | Validate CS:GO items |
| GET | /queueInfo | No | Get queue info |
| POST | /processWithdrawSell | No | Process withdraw sell |
| POST | /nowpayment2faCode | No | NowPayments 2FA code |
| POST | /declineWithdrawSell/:id | No | Decline withdraw sell |
| POST | /faceit/event | No | Send Faceit event |
| POST | /faceit/code-apply | No | Redeem Faceit challenge |
| POST | /oauth2-consume-balance | No | OAuth2 consume balance |
| GET | /cleanup-orphaned-container-items | No | Cleanup orphaned items |
| GET | /:gameId/deleteInsightKeys | No | Delete insight keys |
| GET | /clearReservedTables | No | Clear reserved tables |
| GET | /checkLostLootbearItem | No | Check lost Lootbear item |
| GET | /checkMissingPaymentOnStore | No | Check missing payment |
1. User visits site
2. Clicks "Login with Steam"
3. Redirected to Steam OAuth
4. Steam redirects back with auth token
5. Backend validates token
6. Creates/updates user in database
7. Sets session cookie
8. User logged in
1. User logs in
2. Connects Steam inventory (fetches via Steam API)
3. Inventory cached in Redis
4. User selects items to trade
5. System checks:
- Item availability
- User balance limits
- Trade restrictions
6. User creates trade offer
7. System:
- Reserves items
- Calculates prices
- Selects bot
- Creates Steam trade offer
8. User accepts trade on Steam
9. Bot accepts trade
10. Trade completed:
- Items transferred
- Balance updated
- Transaction logged
1. User selects item from inventory
2. Sets sale price
3. Item listed in marketplace
4. Buyer purchases item
5. System:
- Removes item from sale
- Adds balance to seller
- Logs transaction
6. Seller can:
- Keep balance
- Request payout (crypto/Stripe)
1. User adds items to cart
2. Proceeds to checkout
3. Selects payment method:
- Stripe (card)
- Crypto (NowPayments)
- Monnect
4. Payment processed:
- Stripe: Create session → Webhook → Update balance
- Crypto: Create charge → IPN webhook → Update balance
5. Balance added to user account
6. Transaction logged
1. User deposits balance into investment
2. System tracks position
3. Daily cron job:
- Calculates interest
- Updates investment value
4. User can withdraw:
- Calculates returns
- Updates balance
- Closes position
Core User Tables:
bot_users - User accounts (Steam ID, balance, email, settings)banned_users - Banned user listwhitelisted_users - Whitelisted usersuser_settings - User preferencesuser_favorite_items - User liked itemsuser_liked_items - User item likesuser_inventory_value - User inventory value trackinguser_daily_tracker - Daily user activity trackinguser_item_sales - User sales statisticsTrading Tables:
bot_trades - Completed trade transactionsbot_trades_sent - Trade offers sent to usersbalance_transactions - All balance changes (credits/debits)reserved_items - Items reserved for tradesreserved_transactions - Reserved item transactionstrade_bonus - Trade bonus trackingfirst_transaction - First transaction trackingSelling Tables:
sale_offers - Items listed for salesold_offers - Completed salessale_offer_logs - Sale offer activity logssaleoffer_trades - Sales converted to tradessale_revenue_payout - Payout requests from salessell_offers - Active sell offersInventory & Items:
items - Item catalog (prices, metadata)items_meta - Item metadataitems_meta_items - Item meta relationshipsitems_meta_collections - Collection metadataitems_meta_containers - Container metadataitems_meta_pro_players - Pro player itemsitem_prices - Item pricing dataitem_img_full - Full item imagesitem_deposit_lock - Deposit locksprice_history - Historical pricesprice_updates - Price update logsbot_inventory_tracker - Bot inventory trackingPayment Tables:
topup_transactions - Top-up/payment transactionspayment_transactions - Payment processing logspayment_process_log - Payment process trackingpayment_blocked - Blocked paymentspayment_nonce - Payment noncescard_verification - Card verification datacoinbase_charges - Coinbase chargesnowpayment_charge - NowPayments chargescrypto_adresses - Crypto addressescrypto_balance - Crypto balancescashout_request - Cashout requestsAffiliate System:
affiliates - Affiliate accountsaffiliate_users - Users referred by affiliatesaffiliates_revenues - Affiliate revenue trackingInvestment System:
invest_payouts - Investment payoutsinvest_position_history - Investment position historyGiveaway System:
giveaway_config - Giveaway configurationgiveaway_list - Giveaway itemstickets - Giveaway ticketsChallenges:
challenge_config - Challenge configurationchallenge_bonus - Challenge bonusesCategories & Meta:
category - Item categoriescsgo_classes - CS:GO classescsgo_collections - CS:GO collectionscsgo_containers - CS:GO containerscsgo_types - CS:GO typescsgo_skin_colors - CS:GO skin colorspro_players - Professional playerspro_teams - Professional teamscsgo_professional_players - CS:GO pro playersStore & Purchases:
purchases - Store purchaseshaloskin_order - Halo skin ordersCoupons:
coupons - Coupon codescoupon_registers - Coupon registrationsConfiguration:
configurations - Site configurationitem_configurations - Item configurationsbot_balance - Bot balance trackingbot_pricechanges - Bot price changesOther Tables:
admins - Admin accountsadmin_activities - Admin activity logsemail_verification - Email verification tokensverification - General verificationapi_keys - API keysdaily_tracker - Daily tracking datadistribution_queue - Distribution queuekpi_log - KPI loggingmods - Modificationsnft_placeholder - NFT placeholdersreferers - Referrer trackingrelist_reasons - Relist reasonsscam_offer_logs - Scam offer logsserver_downtime_reports - Server downtimejunk_items - Junk itemscontainer_item - Container itemscontainer_item_transactions - Container transactionsBackend:
Frontend:
Services:
Most endpoints use [loggedIn] middleware which:
All endpoints return:
{
"success": true/false,
"data": {...} or "message": "..."
}
Status codes:
ops.tradeit.gg — Internal Engineering Docs