Skip to content

API Reference / Trade offers

Accept a trade offer

Accept an incoming trade offer received by the account. The offer must still be active to be accepted.

POST/steam.v1.Steam/AcceptTradeOffer

Request body

application/jsonRequired

Request to accept an active incoming trade offer received by one of the workspace's accounts.

accountNamestring

Steam account the offer was received on.

deadlineAt?string

When the market stops waiting for this accept. Pending accepts with an origin are worked earliest deadline first and retried more often as it nears. Absent when the market named none.

Format"date-time"

expectedItems?array<ExpectedTradeItem>

Items the offer must give, for an accept with an origin: it is accepted only when it takes nothing and carries every one of them. Extra items are allowed. Empty checks only that the offer takes nothing.

Show attributes
appId?integer

The Steam app the asset belongs to, compared with the asset id. 730 (Counter-Strike 2) when unset.

Format"int32"

assetId?string

The item's Steam asset id in the giver's inventory, when the market named it.

classId?string

The item's class id, compared when set.

contextId?string

The inventory context the asset belongs to, compared with the asset id. 2 when unset.

floatDecimalPlaces?integer

The number of decimal places the market cuts or rounds float_value to, for float_printing TRUNCATED or ROUNDED (Market.CSGO truncates to 14).

Format"int32"

floatPrinting?string

How the market printed float_value, so it is compared with the wear Steam shows at the market's own precision. Unspecified reads as FULL.

Value in"FLOAT_PRINTING_FULL""FLOAT_PRINTING_TRUNCATED""FLOAT_PRINTING_ROUNDED"

floatValue?number

The item's float (wear), when it has one and the market shows it. An expected item with a float and no asset id is matched only against an offered item whose float, paint seed and market hash name Steam has shown for it, never by name alone.

Format"double"

instanceId?string

The item's instance id, compared when set.

marketHashName?string

The item's market hash name, compared when set and no asset id is given.

marketReference?MarketReference

The purchase's own id on the market, as the market writes it into the Steam offer's message (CSFloat's trade id). When the offer's message carries a reference of a known market, it must be one of the expected items' market references or the accept is refused with REFERENCE_MISMATCH. A message with no known reference leaves the accept to the items. Unset: the market gives no reference to compare.

Show attributes
market?string

The market whose reference it is.

Value in"TRADE_MESSAGE_MARKET_CSFLOAT"

reference?string

The purchase's id on that market (CSFloat: the trade id).

paintSeed?string

The item's paint seed (pattern), compared with the float.

Format"int64"

purchaseReference?string

The caller's reference for the purchase this item is. Carried onto the received item record the accept creates, which pairs the item with what it became in the account after the accept, since Steam no longer reports the item's new asset id.

offerIdstring

Trade offer identifier to accept.

origin?TradeOfferOrigin

What the offer is for, recorded once the accept succeeds so the offer reads as handled automatically. Absent leaves the origin as observed.

Show attributes
contractId?string

The buying or selling contract behind the purchase or sale, when known.

Format"byte" base64

handledAutomatically?boolean

Whether the platform itself accepted or sent the offer. False for a manual trade and for an offer classified after the fact.

kind?string

What the offer is for. MANUAL for a trade the platform did not tie to a purchase or a sale.

Value in"TRADE_OFFER_ORIGIN_KIND_MANUAL""TRADE_OFFER_ORIGIN_KIND_PURCHASE_DELIVERY""TRADE_OFFER_ORIGIN_KIND_SALE_DELIVERY"

purchaseId?string

The purchase the offer delivers. Set only for PURCHASE_DELIVERY.

Format"byte" base64

saleId?string

The sale the offer delivers. Set only for SALE_DELIVERY.

Format"byte" base64

setAt?string

When the origin was recorded. Unset for a manual trade.

Format"date-time"

Response body

application/json

Success

No fields.

curl -X POST "https://api.goldmine.to/steam.v1.Steam/AcceptTradeOffer" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountName": "trader_bot_01",
    "offerId": "6483920184"
  }'
{}