Trade Offers
Get a trade offer
Read one observed Steam trade offer, including its items, partner, state and timing. The account name selects the account's own perspective when both sides of an offer belong to the workspace.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/steam.v1.Steam/GetTradeOffer" \ -H "Content-Type: application/json" \ -d '{ "accountName": "trader_bot_01", "offerId": "6483920184" }'{
"tradeOffer": {
"accountName": "string",
"createdAt": "2019-08-24T14:15:22Z",
"direction": "TRADE_OFFER_DIRECTION_UNSPECIFIED",
"escrowEndDate": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"historical": true,
"itemsToGive": [
{
"amount": "string",
"appId": 730,
"assetId": "31795888228",
"classId": "310776898",
"contextId": "2",
"iconUrl": "string",
"instanceId": "302028390",
"marketHashName": "AK-47 | Redline (Field-Tested)"
}
],
"itemsToReceive": [
{
"amount": "string",
"appId": 730,
"assetId": "31795888228",
"classId": "310776898",
"contextId": "2",
"iconUrl": "string",
"instanceId": "302028390",
"marketHashName": "AK-47 | Redline (Field-Tested)"
}
],
"message": "Thanks for the trade",
"offerId": "6483920184",
"partnerSteamId": "76561198044443322",
"settlementDate": "2019-08-24T14:15:22Z",
"state": "active",
"tradeCompletion": {
"assetsGiven": [
{
"amount": "string",
"appId": 0,
"classId": "string",
"contextId": "string",
"instanceId": "string",
"newAssetId": "string",
"oldAssetId": "string"
}
],
"assetsReceived": [
{
"amount": "string",
"appId": 0,
"classId": "string",
"contextId": "string",
"instanceId": "string",
"newAssetId": "string",
"oldAssetId": "string"
}
],
"completedAt": "2019-08-24T14:15:22Z",
"tradeId": "string"
},
"updatedAt": "2019-08-24T14:15:22Z",
"workspaceId": "string"
}
}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "not_found",
"message": "The requested resource does not exist in this workspace."
}{
"code": "internal",
"message": "An internal server error occurred."
}