Skip to main content

Get active trades

GET /trades/active
GET /trades/active/{userid}
Permission: Connected (admin for {userid} variant)
userid
string
SteamID of user (admin only)
Returns all active (non-completed) trades for the user. Active trades are those where:
  • Status is not 3 (completed) and items have been sent, OR
  • Status is 0 (pending) and items haven’t been sent yet

Trade type

FieldTypeDescription
idintegerTrade ID
items_receivedstringComma-separated received asset IDs
items_sendstringComma-separated sent asset IDs
statusintegerTrade status (see below)
userstringUser SteamID
botstringBot SteamID
codestringTrade offer confirmation code
lasterrorstringLast error message (if any)
offeridstringSteam trade offer ID
timestampintegerUnix timestamp of trade creation

Trade statuses

StatusDescription
0Pending — waiting for user action
3Completed — items transferred
-1Failed — trade could not be completed
-11Hidden — removed from user view
-12Reverted — items returned by admin

Get all trades

GET /trades/all
GET /trades/all/{userid}
Permission: Connected (admin for {userid} variant)
userid
string
SteamID of user (admin only)
Returns the last 500 trades for the user (excluding hidden trades with status -11). Includes both active and completed trades.

Resend trade

GET /trade/resend
GET /trade/resend/{userid}
Permission: Connected (moderator for {userid} variant)
userid
string
SteamID of user (moderator only)
Resends a failed or pending trade offer to the user’s Steam account. Useful when the original trade offer expired or was cancelled.