API Documentation
Browse the CS2 skin marketplace, purchase items, manage orders, and check wallet balance programmatically. All endpoints require API Token authentication.
Getting Started
Overview
The TradeStation Open API provides programmatic access to the CS2 skin marketplace. You can browse available inventory, execute purchases, track order status, manage your wallet, and receive order status events on your own endpoint through a RESTful JSON API.
Market
Browse skins & inventory
Catalog aggregates, then list in-stock items by hash name and filters.
Trade
Purchase items
Standard buy and quick-buy; optional price checks and idempotent keys.
Orders
Track order status
List orders with status filters and fetch a single order by number.
Payment
Accept skin deposits
Quote a Steam inventory, then create one offer for the selected items.
Wallet
Balance & transactions
Snapshot of balances plus paginated history of wallet movements.
Webhook
Receive events
Signed HTTPS delivery to your endpoint. Today: Payment order status changes.
Webhook deliveries share one set of rules — see Delivery Rules for keys, signature, and retries, and Webhook → Payment for which events we send, what triggers them, and what they carry.
Authentication
All requests must include your API token in the Authorization header. Tokens can be generated from your account dashboard.
Authorization: Token sst_a1b2c3d4e5f6...Token format: sst_ prefix followed by 48 hex characters. The full token is only shown once at creation time — store it securely.
Base URL
https://api.tradestation.gg/api/v1All endpoint paths in this documentation are relative to this base URL.
Conventions
Response Format
Every response is wrapped in a standard envelope. The top-level code field uses TradeStation business status codes (not HTTP status codes).
{
"code": 1000,
"message": "ok",
"data": { ... }
}{
"code": 3001,
"message": "Item is not available",
"data": null
}For failed/cancelled/reversed orders, the response includes both the error code and the order data:
{
"code": 5201,
"message": "Item unavailable",
"data": {
"order_no": "T20260407143022849132",
"status": "failed",
"fail_code": 5201,
...
}
}Pagination
List endpoints use page-based pagination. Control with page and page_size query parameters.
{
"code": 1000,
"message": "ok",
"count": 142,
"page": 1,
"page_size": 10,
"total_pages": 15,
"next": 2,
"previous": null,
"data": [ ... ]
}page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 10, max: 100) |
next | integer | null | Next page number, null if last page |
previous | integer | null | Previous page number, null if first page |
Rate Limiting
Requests are rate limited per user. Exceeding the limit returns HTTP 429 with code 9003. List and detail order endpoints share one limit; buy and quick-buy share another.
| Endpoint | Limit |
|---|---|
GET /market/catalog | 5 / minute |
GET /market/items | 300 / minute |
POST /market/items/batch | 60 / minute |
GET /market/items/json | 5 / minute |
POST /market/orders/buy | 300 / minute |
POST /market/orders/quick-buy | 300 / minute |
GET /market/orders | 300 / minute |
GET /market/orders/{order_no} | 300 / minute |
POST /market/orders/{order_no}/cancel | 60 / minute |
POST /payment/inventory | 10 / second |
POST /payment/inventory/list | 10 / second |
POST /payment/orders | 10 / second |
GET /payment/orders | 10 / second |
GET /payment/orders/{order_no} | 10 / second |
GET /wallet | 60 / minute |
GET /wallet/transactions | 60 / minute |
Status Codes
Business status codes are segmented by range. HTTP status codes are used conventionally (200, 201, 400, 401, 403, 404, 405, 429, 500, 503).
1xxx — Success
1000 | ok |
1001 | Order already exists |
3xxx — Buy Pre-validation
3001 | Item is not available |
3006 | Too many active orders |
3007 | Order is being processed, please try again |
3008 | This external_order_no has already been used |
3009 | Insufficient balance |
3010 | Item price exceeds the specified max_price |
3011 | This item requires manual-delivery purchase permission |
3012 | trade_url is not registered in your manual-delivery whitelist |
4xxx — Quick Buy Pre-validation
4001 | Quick buy is currently disabled |
4002 | No available inventory for this item |
4003 | No available items found within the price limit |
5xxx — Order Lifecycle
5001 | Order not found |
5002 | Order status does not allow this operation |
5101 | Order cancelled |
5102 | Trade offer expired |
5201 | Item unavailable |
5202 | Trade failed |
5301 | Trade offer creation failed |
5303 | Trade offer declined |
5304 | Steam unavailable |
5401 | Invalid trade URL |
5402 | Steam account trade restricted |
5403 | Steam inventory is private |
5501 | Trade reversed on Steam |
6xxx — Payment
6001 | Order not found |
6002 | Invalid steam id format |
6003 | Invalid trade token format |
6004 | Invalid item format |
6005 | Steam inventory is private |
6006 | Steam account trade restricted |
6007 | Item unavailable |
6008 | Total is below the minimum |
6009 | Invalid trade offer |
6010 | Trade offer expired |
6011 | Trade offer declined |
6012 | Trade failed |
6013 | Trade reversed on Steam |
6014 | Inventory is outdated, fetch it again |
9xxx — System
9001 | Authentication required |
9002 | Permission denied |
9003 | Rate limit exceeded |
9004 | Invalid request body |
9005 | Missing required parameter |
9006 | Invalid parameter value |
9008 | Method not allowed |
9503 | Service temporarily unavailable, please retry shortly |
9999 | Internal server error |
Best Practices
Use external_order_no for idempotency
Always pass your own unique order reference. If a network error occurs mid-request, retrying with the same external_order_no will return the existing order (code 1001) instead of creating a duplicate.
Use max_price for price protection
Pass the listing price as max_price on buy or quick-buy if you want to reject repricing.
Poll order status for async fulfillment
Orders transition from created → pending → completed asynchronously. Poll GET /market/orders/{order_no} to track progress. Use exponential backoff starting from 5 seconds.
Reconcile in batches with external_order_no
To check many orders at once, pass a comma-separated list to GET /market/orders?external_order_no=a,b,c (up to 50 per request, with page_size=50). The response data holds the matched orders and a top-level not_found array lists references with no matching order — diff it against your input to reconcile efficiently instead of polling each order individually.
Handle 5xxx codes in order responses
Terminal order responses (failed/cancelled/reversed) return 5xxx codes at the top level. Check the code field before parsing data to handle failures gracefully.
Respect rate limits
If you receive code 9003, back off and retry after the indicated period. Persistent rate limiting violations may result in token revocation.
Bot
Auth Methods
The platform supports three bot authentication methods for establishing a Steam session. Choose one when creating or editing a bot. Submitted credentials do not appear in the list or detail views.
Cookies
~24 hoursRead steamLoginSecure from the browser developer tools.
Refresh Token
~200 daysObtain via Auto Fetch, or read it from an SDA maFile.
Credentials
Long-livedSteam account, password, and the full maFile exported from SDA.
| Method | How to obtain | Lifetime | After expiry |
|---|---|---|---|
| Cookies | Browser developer tools | ~24 hours | Read and submit again |
| Refresh Token | Auto Fetch or SDA maFile | ~200 days | Obtain and submit again |
| Credentials | Account, password, and SDA maFile | Long-lived | Sign in again if the session expires |
Cookies
Sign in to https://steamcommunity.com with the target Steam account, then read steamLoginSecure from the browser developer tools. Cookies from store.steampowered.com cannot be used for binding.
Chrome
- 1Open
https://steamcommunity.comand sign in with the target account. - 2Open Developer Tools and select
Network. Shortcut:F12(macOS:⌥⌘I). You can also open it from the menu: top-right⋮→ More tools → Developer tools. On macOS, View → Developer → Developer Tools. Edge uses the same path; the menu is⋯→ More tools → Developer tools. - 3Reload the page so steamcommunity.com requests appear in the list.
- 4Select that document request and open
Headers. - 5In Request Headers, locate
Cookie. Copy the full value, or copy onlysteamLoginSecure=and its value. - 6When adding or editing a bot, select Cookies and paste the content. If you copied only the value, use this format:
steamLoginSecure=<Value>
Firefox: Shortcut F12 (macOS: ⌥⌘I), or top-right ☰ → More tools → Web Developer Tools. On macOS, Tools → Browser Tools → Web Developer Tools. After it opens, read the Cookie from the Network panel the same way.
Safari: First enable Show features for web developers in Safari → Settings → Advanced, then press ⌥⌘I, or use Develop → Show Web Inspector. After it opens, read the Cookie from the Network panel the same way.
Cookies last about 24 hours. After they expire, submit a new value using the same steps.
Refresh Token
A refresh token establishes a renewable Steam session and lasts about 200 days. Obtain it via Auto Fetch, or read it from an SDA maFile.
Obtain via Auto Fetch
The account and password are used only to exchange a refresh token on the spot. The platform does not store them. Transmission is encrypted.
- 1When adding or editing a bot, select Refresh Token and switch to Auto Fetch. The proxy must already pass the connectivity test.
- 2Enter the Steam account and password, then click
Continue. - 3Enter the current Steam Guard code, then click
Connect. - 4After a successful sign-in, the page shows "Signed in as …". The text below it is the refresh token and can be submitted as-is.
Read from an SDA maFile
If this account has completed Login again in Steam Desktop Authenticator, Session.RefreshToken in the maFile is a usable refresh token.
- 1Open the matching
{steamid}.maFilein themaFilesfolder under the SDA directory. - 2Copy the
Session.RefreshTokenvalue (usually starts witheyJ). - 3When adding or editing a bot, select Refresh Token → Paste Token and enter the value.
If the field is missing, run Login again for that account in SDA, then reopen the file.
Credentials
Credentials require the Steam account, password, and a complete .maFile. The maFile is exported from Steam Desktop Authenticator (SDA). Download: SteamDesktopAuthenticator
- 1Follow the repository README and install SDA with git or GitHub Desktop (Windows).
- 2Add the account in SDA or import an existing authenticator. Record the revocation code and back up the
maFilesfolder. - 3Open
maFiles/{steamid}.maFilein a text editor and copy the entire contents. - 4When adding or editing a bot, select Credentials, enter the account and password, and paste the full JSON into mafile. The file must include
shared_secret.
The official Steam mobile authenticator cannot export a maFile. Credentials require the authenticator file generated by SDA.
Market
Overview
Market Endpoints Overview
Three complementary endpoints serve different use cases:
| Endpoint | Purpose | Data freshness |
|---|---|---|
/catalog | Full-sync: aggregated min_price + count per skin | ~3–4 min snapshot |
/items | Single skin: paginated item list with full details | Real-time |
/items/batch | Multi-skin: top 5 cheapest items per skin | Real-time |
/items/json | Bulk download: full item list file. Scope required | Periodic refresh |
Order Status Flow
createdpendingcompletedcreatedfailedPre-execution failure (item unavailable, insufficient balance, etc.)pendingcancelledTrade offer expired or order cancelledpendingfailedBuyer declined trade offer or technical failurecompletedreversedCompleted trade reversed on SteamOrders that are still waiting on buyer-side action (e.g. trade offer acceptance) will be automatically cancelled after 40 minutes. Make sure to accept the Steam trade offer within this window to avoid cancellation.
createdOrder accepted, processing
pendingTrade offer sent, awaiting acceptance
completedTrade completed successfully
failedTrade failed permanently
cancelledCancelled (timeout or system)
reversedCompleted trade reversed on Steam
/market/catalogReturns the aggregated overview of every skin with available inventory in a single response. Supports gzip compression and ETag revalidation for efficient full sync.
Response semantics
Unlike other Open API endpoints, this response is not wrapped in the standard envelope. The body is a gzip-compressed JSON object containing only the data array.
Response headers
Content-Encoding | string | Always gzip. Decompress before parsing JSON. Standard HTTP clients (curl --compressed, fetch, requests) handle this transparently. |
ETag | string | Weak ETag of the current snapshot, e.g. W/"a1b2c3...". Send back as If-None-Match on the next request to revalidate. |
X-Snapshot-Built-At | string | UTC timestamp (seconds, ISO 8601, no timezone suffix) of when the snapshot was last rebuilt, e.g. 2026-04-25T10:30:00. |
X-Snapshot-Rows | integer | Number of rows contained in the snapshot. |
Cache-Control | string | private, max-age=30, must-revalidate — clients should hit the endpoint at most every 30 s and always revalidate via ETag. |
Response fields (per item, after gzip decompress)
hash_name | string | Steam market hash name |
phase | string | Phase variant (e.g. "Phase 2", "Ruby"). Empty for non-Doppler items. |
min_price | decimal | Lowest available price |
count | integer | Number of items currently on sale for this skin |
{
"data": [
{
"hash_name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"min_price": "28.5000",
"count": 12
},
{
"hash_name": "★ Karambit | Doppler (Factory New)",
"phase": "Phase 2",
"min_price": "1523.0000",
"count": 3
}
]
}ETag revalidation (recommended)
Cache the ETag from the last successful response and send it as If-None-Match on subsequent calls. When the snapshot is unchanged, the server returns HTTP 304 Not Modified with no body — keeping bandwidth flat and your local copy fresh.
/market/itemsReturns all available listings sorted by price (lowest first), allowing you to compare and select the exact item to buy.
Query parameters
hash_namerequired | string | Steam market hash name (exact match) |
phase | string | Filter by phase (e.g. "Phase 1", "Sapphire") |
price_max | decimal | Maximum price filter |
float_max | decimal | Maximum float, from 0 to 1, at most 3 decimal places. Listings above this value are omitted. Listings with no float value are omitted too. Results stay sorted by price, lowest first. |
delivery_type | string | Filter by delivery type: auto (instant) or manual. Default returns both. Manual listings only appear if your account has manual-delivery access. |
page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 10, max: 100) |
Response fields (per item)
id | integer | Inventory item ID (use for purchase) |
asset_id | string | null | Steam asset ID. 64-bit number returned as a string to preserve precision (exceeds JS Number.MAX_SAFE_INTEGER); may be null if not available for this item. |
hash_name | string | Steam market hash name |
name_zh | string | Chinese name |
phase | string | Phase variant |
price | decimal | Selling price (USD, 4 decimal places) |
delivery_type | string | auto (instant delivery) or manual (slower, manual delivery) |
float_value | decimal | null | Float value (up to 18 decimal places) |
paint_seed | integer | null | Paint seed |
paint_index | integer | null | Paint index |
name_tag | string | Applied name tag |
stickers | array | Applied stickers |
charm | array | Attached charms (keychain slot) |
GET /api/v1/market/items?hash_name=Souvenir+Galil+AR+%7C+Green+Apple+(Factory+New)&float_max=0.07&page_size=2Example rows are illustrative; IDs and stock change over time. stickers and charm entries do not include skin_id. Attachment objects use market_hash_name (English Steam name), slot/wear fields, and optional placement offsets depending on the item.
{
"code": 1000,
"message": "ok",
"count": 11,
"page": 1,
"page_size": 2,
"total_pages": 6,
"next": 2,
"previous": null,
"data": [
{
"id": 40310,
"asset_id": "47543634523534789",
"hash_name": "Souvenir Galil AR | Green Apple (Factory New)",
"name_zh": "加利尔AR(纪念品) | 绿苹果 (崭新出厂)",
"phase": "",
"price": "10.2500",
"float_value": "0.034173440188169479",
"paint_seed": 780,
"paint_index": 294,
"name_tag": "",
"stickers": [
{
"market_hash_name": "Sticker | StarLadder (Gold) | Budapest 2025",
"slot": 0,
"wear": 0
},
{
"market_hash_name": "Sticker | Train (Gold)",
"slot": 2,
"wear": 0
},
{
"market_hash_name": "Sticker | Natus Vincere (Gold) | Budapest 2025",
"slot": 1,
"wear": 0
},
{
"market_hash_name": "Sticker | FURIA (Gold) | Budapest 2025",
"slot": 3,
"wear": 0
}
],
"charm": [
{
"market_hash_name": "Souvenir Charm | Budapest 2025 Highlight | YEKINDAR vs Natus Vincere",
"pattern": null
}
]
},
{
"id": 40311,
"asset_id": "47543634523534812",
"hash_name": "Souvenir Galil AR | Green Apple (Factory New)",
"name_zh": "加利尔AR(纪念品) | 绿苹果 (崭新出厂)",
"phase": "",
"price": "10.2500",
"float_value": "0.060612890869379043",
"paint_seed": 803,
"paint_index": 294,
"name_tag": "",
"stickers": [ ... ],
"charm": [ ... ]
}
]
}/market/items/batchBatch query multiple skins at once. Returns up to 5 lowest-priced items per skin. Useful for checking availability and pricing across many skins in a single request.
When to use
Use this endpoint when you need real-time prices for multiple skins simultaneously (e.g. refreshing a watchlist, comparing prices, or pre-checking stock before bulk purchases). Results reflect current listings.
Request body
itemsrequired | array | Array of query objects (1–50 entries) |
items[].hash_namerequired | string | Steam market hash name (exact match) |
items[].phase | string | Optional phase filter (e.g. "Phase 2", "Sapphire") |
Optional query parameter delivery_type (auto / manual) filters all results by delivery type, same as List Items.
Response format
The data field is an object keyed by skin identifier. Each value is an array of up to 5 items sorted by price ascending. Skins not found or with no available stock return an empty array. Response key is hash_name when no phase is specified, or hash_name + phase (concatenated directly, no separator) when phase is present.
Item fields are identical to List Items: id, asset_id, hash_name, name_zh, phase, price, delivery_type, float_value, paint_seed, paint_index, name_tag, stickers, charm.
POST /api/v1/market/items/batch
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"items": [
{"hash_name": "AK-47 | Redline (Field-Tested)"},
{"hash_name": "★ Karambit | Doppler (Factory New)", "phase": "Phase 2"},
{"hash_name": "Non-Existent Skin"}
]
}{
"code": 1000,
"message": "ok",
"data": {
"AK-47 | Redline (Field-Tested)": [
{
"id": 12001,
"asset_id": "47543634523534789",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"price": "28.5000",
"float_value": "0.256312847137451170",
"paint_seed": 661,
"paint_index": 282,
"name_tag": "",
"stickers": [],
"charm": []
},
{
"id": 12042,
"asset_id": "47543634523534820",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"price": "29.1200",
"float_value": "0.180000000000000000",
"paint_seed": 123,
"paint_index": 282,
"name_tag": "",
"stickers": [ ... ],
"charm": []
}
],
"★ Karambit | Doppler (Factory New)Phase 2": [
{
"id": 8821,
"asset_id": "47543634523534931",
"hash_name": "★ Karambit | Doppler (Factory New)",
"name_zh": "★ 爪子刀 | 多普勒 (崭新出厂)",
"phase": "Phase 2",
"price": "1523.0000",
"float_value": "0.008221340179443359",
"paint_seed": 420,
"paint_index": 418,
"name_tag": "",
"stickers": [],
"charm": []
}
],
"Non-Existent Skin": []
}
}/market/items/jsonReturns a download URL for the full available item list (gzip-compressed NDJSON, one JSON object per line).
Special permission required — contact an administrator to apply.
Response fields
download_url | string | URL to download the file. No auth header on this request. |
expires_at | string | When download_url expires (ISO 8601). Call this endpoint again for a new URL. |
File line format
Decompress gzip, then read one JSON object per line. Fields match List Items (item_id instead of id; keychains instead of charm).
item_id | integer | Item ID (use for purchase) |
hash_name | string | Steam market hash name |
price | decimal | Selling price (USD) |
phase | string | Phase variant |
float_value | decimal | null | Float value |
stickers | array | null | Applied stickers |
keychains | array | null | Applied charms |
GET /api/v1/market/items/json
Authorization: Token sst_a1b2c3d4e5f6...{
"code": 1000,
"message": "ok",
"data": {
"download_url": "https://cdn.example.com/items/export.ndjson.gz?token=...",
"expires_at": "2026-05-18T00:45:00"
}
}{"item_id":12001,"hash_name":"AK-47 | Redline (Field-Tested)","phase":"","price":"28.5000","float_value":"0.256312847137451170","stickers":[],"keychains":[]}If the file is not ready yet, the API returns 503 with Retry-After — wait and retry.
import gzip, json, requests
API = "https://api.tradestation.gg/api/v1"
AUTH = {"Authorization": "Token sst_a1b2c3d4e5f6..."}
r = requests.get(f"{API}/market/items/json", headers=AUTH, timeout=30)
r.raise_for_status()
url = r.json()["data"]["download_url"]
with requests.get(url, stream=True, timeout=300) as resp:
resp.raise_for_status()
with gzip.GzipFile(fileobj=resp.raw) as gz:
for line in gz:
item = json.loads(line)
# ...
Important: Asynchronous Fulfillment
Both buy and quick-buy are asynchronous operations. A successful response (code: 1000, status: "created") means the order has been accepted and the order amount is reserved — it does not mean the Steam trade offer has been sent yet. The system will attempt to send the trade offer in the background; the order will transition to pending once the offer is dispatched successfully.
Poll GET /market/orders/{order_no} to track fulfillment progress. Orders that remain unaccepted will be automatically cancelled after 40 minutes (default timeout).
/market/orders/buyPurchase a specific inventory item by ID. The item will be delivered to your Steam trade URL.
Request body
item_idrequired | integer | Inventory item ID (from market listing) |
trade_urlrequired | string | Steam trade URL (https://steamcommunity.com/tradeoffer/new/?partner=...&token=...) |
external_order_no | string | Your order reference (max 64 chars, unique per user) |
max_price | decimal | Max acceptable price; returns 3010 if exceeded |
Buying a manual delivery item requires manual-delivery access on your account; otherwise the request returns 3011. If your account has any manual-delivery trade URLs registered, the trade_url must be one of them, or it returns 3012. If none are registered, any trade URL is accepted. Auto items are unaffected.
Idempotency
If a request with the same item_id (or same external_order_no) finds an existing active order, the API returns that order with code 1001 instead of creating a duplicate.
POST /api/v1/market/orders/buy
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"item_id": 4821,
"trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=123456&token=AbCdEf",
"external_order_no": "my-order-001",
"max_price": "28.5000"
}{
"code": 1000,
"message": "ok",
"data": {
"order_no": "T20260407143022849132",
"external_order_no": "my-order-001",
"status": "created",
"price": "28.5000",
"delivery_type": "auto",
"steam_offer_id": "",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"float_value": "0.256312847137451170",
"paint_seed": 661,
"paint_index": 282,
"name_tag": "",
"stickers": [...],
"charm": [],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-04-07T14:30:22.849132Z",
"completed_at": null,
"reversible_until": null,
"is_reversible": false
}
}{
"code": 3010,
"message": "Item price exceeds the specified max_price",
"data": null
}/market/orders/quick-buyPurchase the lowest-priced available item for a given skin. Automatically selects the cheapest item.
Request body
hash_namerequired | string | Steam market hash name |
trade_urlrequired | string | Steam trade URL |
phase | string | Limit to a specific phase |
max_price | decimal | Max acceptable price; returns 4003 if no match |
delivery_type | string | Narrow selection: auto / manual / all (default all). Manual is only selected if your account has manual-delivery access. If manual-delivery trade URLs are registered, the trade_url must be one of them; if none are registered, any trade URL is accepted. |
external_order_no | string | Your order reference (max 64 chars) |
POST /api/v1/market/orders/quick-buy
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"hash_name": "AK-47 | Redline (Field-Tested)",
"trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=123456&token=AbCdEf",
"max_price": "30.0000"
}Response format is identical to the Buy Item endpoint.
/market/ordersLists your orders with optional filtering by status, external order number, and date range. Ordered by creation time descending. Each row uses the same order object shape as GET /market/orders/{order_no} (nested skin metadata plus instance fields).
Query parameters
status | string | Filter by order status: created pending completed failed cancelled reversed |
external_order_no | string | Filter by your order reference. Comma-separated, up to 50. Multi-value queries include a not_found array for missing refs. |
start_date | string | Start date inclusive (ISO 8601 format: YYYY-MM-DD) |
end_date | string | End date inclusive (ISO 8601 format: YYYY-MM-DD) |
page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 10, max: 100) |
Date range cannot exceed 90 days. Both start_date and end_date are optional and can be used independently.
Response fields (per order)
order_no | string | TradeStation order number |
external_order_no | string | Your external reference |
status | string | Order status |
price | decimal | Transaction price |
steam_offer_id | string | Steam trade offer ID returned by the supplier on delivery. Present on successful orders; empty ("") for failed / not-yet-shipped orders. Distinct from the internal purchase order number. |
hash_name | string | Skin market hash name |
name_zh | string | Chinese name |
phase | string | Phase variant |
float_value | decimal | null | Item float (this instance) |
paint_seed | integer | null | Item paint seed |
paint_index | integer | null | Item paint index |
name_tag | string | Applied name tag on the item |
stickers | array | Applied stickers (same format as market listings) |
charm | array | Charms / keychain slot JSON |
fail_code | integer | null | Failure code (5xxx) if applicable |
fail_reason_display | string | Human-readable failure reason |
created_at | datetime | ISO 8601 timestamp |
completed_at | datetime | null | Completion time |
reversible_until | datetime | null | Reverse window cutoff (UTC). null if not completed. |
is_reversible | boolean | Whether the order is currently within the reverse window. |
GET /api/v1/market/orders?status=completed&page=1&page_size=10{
"code": 1000,
"message": "ok",
"count": 24,
"page": 1,
"page_size": 10,
"total_pages": 3,
"next": 2,
"previous": null,
"data": [
{
"order_no": "T20260415120000123456",
"external_order_no": "inv-2026-0415-001",
"status": "completed",
"price": "28.5000",
"delivery_type": "auto",
"steam_offer_id": "7654321098",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"float_value": "0.256312847137451170",
"paint_seed": 661,
"paint_index": 282,
"name_tag": "",
"stickers": [
{
"slot": 0,
"wear": null,
"market_hash_name": "Sticker | iBUYPOWER (Holo) | Katowice 2014",
"offset_x": -0.08,
"offset_y": 0.02,
"rotation": null
}
],
"charm": [],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-04-15T10:12:03.123456Z",
"completed_at": "2026-04-15T10:18:44.987654Z",
"reversible_until": "2026-04-23T07:00:00Z",
"is_reversible": true
},
{
"order_no": "T20260415104500987654",
"external_order_no": "",
"status": "pending",
"price": "120.7143",
"steam_offer_id": "",
"hash_name": "AWP | Chrome Cannon (Factory New)",
"name_zh": "AWP | 镀铬大炮 (崭新出厂)",
"phase": "",
"float_value": "0.069282613694667820",
"paint_seed": 946,
"paint_index": 1170,
"name_tag": "",
"stickers": [ ... ],
"charm": [ ... ],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-04-15T09:45:22.100000Z",
"completed_at": null,
"reversible_until": null,
"is_reversible": false
}
]
}GET /api/v1/market/orders?external_order_no=inv-001,inv-002,inv-404&page_size=50{
"code": 1000,
"message": "ok",
"count": 2,
"page": 1,
"page_size": 50,
"total_pages": 1,
"next": null,
"previous": null,
"data": [
{ "order_no": "T20260415120000123456", "external_order_no": "inv-002", "status": "completed", ... },
{ "order_no": "T20260415104500987654", "external_order_no": "inv-001", "status": "pending", ... }
],
"not_found": ["inv-404"]
}/market/orders/{order_no}Retrieve a single order. Response body matches one element from GET /market/orders (same fields and nesting).
Path parameters
order_norequired | string | Order number or your external_order_no |
Field list is identical to each object in the order list — same flat skin fields (hash_name, name_zh, phase) plus instance attributes (float_value, paint_*, name_tag, stickers, charm), and delivery_type (auto / manual).
For orders in terminal states (failed, cancelled, reversed), the top-level code will be the fail_code (5xxx) instead of 1000.
GET /api/v1/market/orders/T20260415120000123456GET /api/v1/market/orders/inv-2026-0415-001{
"code": 1000,
"message": "ok",
"data": {
"order_no": "T20260415120000123456",
"external_order_no": "inv-2026-0415-001",
"status": "completed",
"price": "28.5000",
"delivery_type": "auto",
"steam_offer_id": "7654321098",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"float_value": "0.256312847137451170",
"paint_seed": 661,
"paint_index": 282,
"name_tag": "",
"stickers": [
{
"slot": 0,
"wear": null,
"market_hash_name": "Sticker | iBUYPOWER (Holo) | Katowice 2014",
"offset_x": -0.08,
"offset_y": 0.02,
"rotation": null
}
],
"charm": [],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-04-15T10:12:03.123456Z",
"completed_at": "2026-04-15T10:18:44.987654Z",
"reversible_until": "2026-04-23T07:00:00Z",
"is_reversible": true
}
}stickers / charm mirror the stored attachment JSON (same shapes as in List Items); empty arrays when none.
{
"code": 5201,
"message": "Item unavailable",
"data": {
"order_no": "T20260414083000555666",
"external_order_no": "",
"status": "failed",
"price": "15.0000",
"steam_offer_id": "",
"hash_name": "M4A4 | Howl (Field-Tested)",
"name_zh": "M4A4 | 咆哮 (久经沙场)",
"phase": "",
"float_value": "0.180000000000000000",
"paint_seed": 100,
"paint_index": 419,
"name_tag": "",
"stickers": [],
"charm": [],
"fail_code": 5201,
"fail_reason_display": "Item unavailable",
"created_at": "2026-04-14T08:30:00.000000Z",
"completed_at": null,
"reversible_until": null,
"is_reversible": false
}
}/market/orders/{order_no}/cancelRequest cancellation of a manual-delivery order that the seller has not shipped yet. The order stays pending until cancellation is confirmed.
Special permission required — contact an administrator to apply.
Path parameters
order_norequired | string | Order number or your external_order_no |
Only delivery_type=manual orders in pending status can be cancelled, no earlier than 30 minutes after creation and only before the seller ships. An accepted request returns 1000 with the order still pending; poll GET /market/orders/{order_no} for the final result. The order object matches Order Detail. Once confirmed the order becomes cancelled and the full amount is returned to your wallet. The confirmation code is fail_code=5101 (Order cancelled), except AssetPay orders, which confirm as fail_code=5102 (Trade offer expired) with the same full refund. If the seller ships first, the order completes normally. Repeating the request is safe; calling it on an already cancelled order returns that order with its fail_code.
A rejected request returns 5002. message is one of This order does not support cancellation, Order status does not allow this operation, Order can be cancelled 30 minutes after creation, or Order has been shipped and cannot be cancelled. Missing orders return 5001. A temporary failure returns 9503 and is safe to retry.
POST /api/v1/market/orders/T20260415120000123456/cancel
Authorization: Token sst_a1b2c3d4e5f6...{
"code": 1000,
"message": "ok",
"data": {
"order_no": "T20260415120000123456",
"external_order_no": "inv-2026-0415-001",
"status": "pending",
"price": "28.5000",
"delivery_type": "manual",
"steam_offer_id": "",
"hash_name": "AK-47 | Redline (Field-Tested)",
"name_zh": "AK-47 | 红线 (久经沙场)",
"phase": "",
"float_value": "0.256312847137451170",
"paint_seed": 661,
"paint_index": 282,
"name_tag": "",
"stickers": [],
"charm": [],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-04-15T10:12:03.123456Z",
"completed_at": null,
"reversible_until": null,
"is_reversible": false
}
}{
"code": 5002,
"message": "Order has been shipped and cannot be cancelled",
"data": null
}Payment
Overview
Payment reads a user's CS2 inventory and sends one Steam trade offer for the items you select. Amounts are USD strings with 4 decimal places. Times are UTC, second precision, with no timezone suffix. trade_token is never returned.
Special permission required — contact an administrator to apply.
Payment Endpoints Overview
| Endpoint | Purpose | Limit |
|---|---|---|
POST /payment/inventory | Quote a user's CS2 inventory in USD | 10 / second |
POST /payment/inventory/list | Quote a list of items you send, without reading the inventory | 10 / second |
POST /payment/orders | Create an order and send one Steam offer | 10 / second |
GET /payment/orders | List your payment orders | 10 / second |
GET /payment/orders/{order_no} | Read one of your orders | 10 / second |
Order Status Flow
createdpendingheldsuccesscreatedfailedOffer could not be sent, or retries were exhaustedpendingcancelledWe cancelled the offer after the 10-minute accept windowpendingfailedThe offer was declined, canceled, countered, or expired on SteamheldreversedThe accepted trade was reversed on SteamA successful create often returns pending immediately, because the offer is sent in the same request. created means the offer is not out yet. Offers still open at offer_expires_at are cancelled after 10 minutes. After the user accepts, release_at is that time plus 7 days and 15 minutes. The amount stays in wallet held until success, then moves to available.
createdOrder saved, offer not sent yet
pendingOffer sent, waiting for acceptance
heldAccepted. Amount stays in wallet held until release_at
successReleased from held to available
cancelledWe cancelled the offer after the accept window
failedOffer failed before it was accepted
reversedAccepted trade reversed on Steam
/payment/inventoryRead a user's CS2 inventory and return a USD price for each item, in one response. Items we accept come first, then tradable items, then higher prices. Skins we do not accept are omitted unless show_disabled is 1. 10 requests per second.
Request body
steam_idrequired | string | SteamID64 |
trade_tokenrequired | string | The 8-character token from the user's trade URL |
show_disabled | integer | 0 by default: omit skins we do not accept. 1 includes them, with disabled set to 1. Not-tradable skins we do accept are always returned |
Response fields
currency | string | Always usd |
excluded_count | integer | How many items in this response cannot be ordered now. Counted when disabled is 1, or when tradable is 0 |
inventory | array | The whole trade window in one array. Skins we do not accept are included only when show_disabled is 1. Order is accepted, then tradable, then price descending |
inventory[].asset_id | string | Steam asset id. A decimal string, because the value can exceed a JavaScript safe integer |
inventory[].name | string | Steam market hash name |
inventory[].phase | string | Phase we matched. Empty when the skin has no phase, or when we could not match one |
inventory[].icon_url | string | Steam icon hash |
inventory[].price | decimal | null | USD price with 4 decimal places. null when we do not accept the skin. A not-tradable item can still have a price |
inventory[].tradable | integer | 1 when Steam will trade the item now, 0 otherwise |
inventory[].disabled | integer | 1 when we do not accept the skin (unmatched, switched off, or no positive price). 0 when it has a price, even if it is not tradable yet |
inventory[].stickers | array | Applied stickers. Each object has name and image |
inventory[].keychains | array | Applied charms. Same shape as stickers |
6002, 6003, and 6004 are format errors: Steam ID, trade token, and items. 6003 is also returned when Steam rejects the trade link. 6005 is a private inventory. 6007 means the inventory is empty. Create Order uses the result of the latest successful call for 1 hour; a failed call clears it. 6006 means the account cannot trade. 6012 means we could not read the inventory. These return HTTP 400 and data: null.
POST /api/v1/payment/inventory
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"steam_id": "76561198117742847",
"trade_token": "AbCdEf12",
"show_disabled": 1
}{
"code": 1000,
"message": "ok",
"data": {
"currency": "usd",
"excluded_count": 1,
"inventory": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"icon_url": "iconhash",
"price": "10.0000",
"tradable": 1,
"disabled": 0,
"stickers": [
{
"name": "OG | Paris 2023",
"image": "https://cdn.example/sticker.png"
}
],
"keychains": []
},
{
"asset_id": "4284666526576951870",
"name": "AWP | Asiimov (Field-Tested)",
"phase": "",
"icon_url": "iconhash",
"price": null,
"tradable": 1,
"disabled": 1,
"stickers": [],
"keychains": []
}
]
}
}{
"code": 6005,
"message": "Steam inventory is private",
"data": null
}/payment/inventory/listPrice a list of items you send, without reading the user's Steam inventory. Same response as Inventory. 10 requests per second, counted separately from Inventory.
Special permission required — contact an administrator to apply.
Each item is priced from the market_hash_name and phase you send. We do not open the user's inventory, and we do not check that an asset_id is really that skin or that it can be traded now. The order is settled at the price returned here, so send accurate data. Create Order uses the latest successful Inventory or Inventory List call for this steam_id, for 1 hour. A later call of either endpoint replaces the earlier prices.
Request body
steam_idrequired | string | SteamID64 of the account that holds the items |
itemsrequired | array | 1–1000 objects. asset_id values must be unique in the request |
items[].asset_idrequired | string | Steam asset id, as a decimal string with no leading zero |
items[].market_hash_namerequired | string | Steam market hash name |
items[].phase | string | Required for phased skins such as Doppler and Gamma Doppler, for example Phase 2, Ruby, Sapphire, Black Pearl, or Emerald. Omit it, or send "", when the skin has no phase. A phased skin sent without its phase is not priced |
show_disabled | integer | Same as Inventory. 0 by default: omit items we do not accept. 1 includes them, with disabled set to 1 |
Response fields
Same fields, order, and filtering as Inventory. Because we do not read the inventory, name is the market_hash_name you sent, tradable is always 1, and stickers and keychains are always empty. icon_url is empty when we could not match the skin. An item is disabled when its name or phase did not match, or when we do not buy that skin; that is still HTTP 200.
A bad Steam ID returns 6002. An empty list, more than 1000 items, a duplicate asset_id, or a bad item returns 6004 and prices nothing. A bad show_disabled returns 9006. These return HTTP 400 and data: null.
POST /api/v1/payment/inventory/list
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"steam_id": "76561198117742847",
"items": [
{
"asset_id": "4284666526576951869",
"market_hash_name": "AK-47 | Redline (Field-Tested)"
},
{
"asset_id": "4284666526576951871",
"market_hash_name": "★ Karambit | Doppler (Factory New)",
"phase": "Phase 2"
},
{
"asset_id": "4284666526576951873",
"market_hash_name": "★ Karambit | Doppler (Factory New)"
}
],
"show_disabled": 1
}{
"code": 1000,
"message": "ok",
"data": {
"currency": "usd",
"excluded_count": 1,
"inventory": [
{
"asset_id": "4284666526576951871",
"name": "★ Karambit | Doppler (Factory New)",
"phase": "Phase 2",
"icon_url": "iconhash",
"price": "812.5000",
"tradable": 1,
"disabled": 0,
"stickers": [],
"keychains": []
},
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"icon_url": "iconhash",
"price": "10.0000",
"tradable": 1,
"disabled": 0,
"stickers": [],
"keychains": []
},
{
"asset_id": "4284666526576951873",
"name": "★ Karambit | Doppler (Factory New)",
"phase": "",
"icon_url": "",
"price": null,
"tradable": 1,
"disabled": 1,
"stickers": [],
"keychains": []
}
]
}
}/payment/ordersCreate an order and send one Steam offer for every selected item in the same request. 10 requests per second. There is no separate offer endpoint.
Request body
steam_idrequired | string | SteamID64 of the account that holds the items |
trade_tokenrequired | string | 8-character trade token. Stored encrypted, never echoed |
asset_idsrequired | array | 1–100 asset_id values, as decimal strings, unique in the order. Each item must have a price on the latest Inventory or Inventory List call for this steam_id, and that call must be less than 1 hour old. Items from Inventory also need tradable set to 1. The order uses the price from that latest call. After the hour, quote again |
external_order_no | string | Your reference, max 64 characters, no comma. Omit it or send "" when you do not need idempotency |
min_total | decimal | Positive, at most 4 decimal places. If the priced total is below this value, nothing is created and the API returns 6008 |
Idempotency
A repeated non-empty external_order_no for the same user returns the existing order with code 1001 and does not send another offer. The items in the new request are not compared. This still applies when that order is already failed or reversed. An empty reference does not deduplicate. If any asset_id is still on an item with status pending, the request returns 6007 and creates no order. After that item is removed or stocked, the same asset_id can be submitted again. 1001 still wins when the reference already exists.
Response fields
order_no | string | Payment order number. Starts with P |
external_order_no | string | Your reference, or "" |
status | string | created pending held success cancelled failed reversed. Create returns created, pending, or failed |
steam_id | string | SteamID64 from the request |
amount | decimal | Sum of item prices, 4 decimal places |
currency | string | Always usd |
trade_offer_id | string | null | Steam trade offer id, once the offer has been sent |
offer_expires_at | datetime | null | Set only while pending. This is when we cancel the offer if it is still open (10 minutes after created_at by default). It is not Steam's own expiry |
release_at | datetime | null | null until the offer is accepted. Then the accept time plus 7 days and 15 minutes. See Get Order |
items | array | asset_id, name, phase, price, status (pending / stocked / removed) |
fail_code | integer | null | Failure code (6xxx) when the order is failed, cancelled, or reversed. null for created, pending, held, and success. The list envelope stays 1000; read this field on each row |
fail_reason_display | string | Message for fail_code. Empty string when there is no failure code |
created_at | datetime | UTC, second precision |
1000 with pending means the offer was sent. The same 1000 with created means the offer is not out yet; poll Get Order. A validation error that creates no row returns HTTP 400 and data: null: 6002, 6003, 6004, 6007, 6008, or 6014. 6014 means there is no Inventory result for this steam_id in the last hour. 6007 also covers an asset_id that the latest Inventory call did not return with a price, or returned as not tradable. A permanent offer failure also returns HTTP 400, with the failed order in data: 6003, 6005, 6006, 6007, or 6012 after retries are exhausted.
POST /api/v1/payment/orders
Content-Type: application/json
Authorization: Token sst_a1b2c3d4e5f6...
{
"steam_id": "76561198117742847",
"trade_token": "AbCdEf12",
"external_order_no": "merchant-1001",
"min_total": "1.0000",
"asset_ids": ["4284666526576951869"]
}{
"code": 1000,
"message": "ok",
"data": {
"order_no": "P20261018154400123456",
"external_order_no": "merchant-1001",
"status": "pending",
"steam_id": "76561198117742847",
"amount": "10.0000",
"currency": "usd",
"trade_offer_id": "6828703963",
"offer_expires_at": "2026-10-18T07:54:00",
"release_at": null,
"items": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"price": "10.0000",
"status": "pending"
}
],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-10-18T07:44:00"
}
}{
"code": 6007,
"message": "Item unavailable",
"data": null
}/payment/ordersLists your payment orders, newest first. Each row uses the same object as Get Order, including items, fail_code, and fail_reason_display. The envelope code stays 1000. 10 requests per second.
Query parameters
status | string | created pending held success failed cancelled reversed |
external_order_no | string | Your reference. Comma-separated, up to 50. When more than one is sent, the response includes not_found for references this account does not have |
start_date | string | Inclusive UTC date, YYYY-MM-DD |
end_date | string | Inclusive UTC date, YYYY-MM-DD. The span cannot exceed 90 days |
page | integer | Page number, default 1 |
page_size | integer | Default 10, maximum 100 |
An unknown status, a bad date, or more than 50 references returns HTTP 400 and 9006. The list does not change orders or reprice them.
GET /api/v1/payment/orders?status=held&page=1&page_size=10
Authorization: Token sst_a1b2c3d4e5f6...{
"code": 1000,
"message": "ok",
"count": 1,
"page": 1,
"page_size": 10,
"total_pages": 1,
"next": null,
"previous": null,
"data": [
{
"order_no": "P20261018074400123456",
"external_order_no": "merchant-1001",
"status": "held",
"steam_id": "76561198117742847",
"amount": "10.0000",
"currency": "usd",
"trade_offer_id": "8687761234",
"offer_expires_at": null,
"release_at": "2026-10-25T07:59:00",
"items": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"price": "10.0000",
"status": "pending"
}
],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-10-18T07:44:00"
}
]
}/payment/orders/{order_no}Read one of your payment orders. The path accepts order_no, or your external_order_no when it is not an order number. Reading an order does not change it or reprice it. 10 requests per second.
Path parameters
order_norequired | string | Order number, or your external_order_no. The order number is tried first |
The data object matches Create Order. created, pending, held, and success return 1000. A missing order, including another user's order, is HTTP 404 and 6001.
When the user accepts the offer, status becomes held and amount is added to wallet held. release_at is that accept time plus 7 days and 15 minutes. Item status stays pending until the order succeeds. At release_at, if the trade was not reversed and the items were received, the order becomes success, items become stocked, and the amount moves from held to available.
A failed, cancelled, or reversed order returns HTTP 200 and the stored code, with the order in data. 6010 with cancelled means the offer expired: we cancelled it at offer_expires_at, or Steam had already ended it. 6011 means the offer was declined, including a counter-offer and a cancel from mobile or email confirmation. 6009 means the offer ended invalid, including items that were no longer valid. 6013 with reversed means the accepted trade was reversed on Steam. 6003, 6005, 6006, 6007, and 6012 mean the offer was never accepted. Item status is removed on failed, cancelled, and reversed.
GET /api/v1/payment/orders/P20261018154400123456
Authorization: Token sst_a1b2c3d4e5f6...GET /api/v1/payment/orders/merchant-1001
Authorization: Token sst_a1b2c3d4e5f6...{
"code": 1000,
"message": "ok",
"data": {
"order_no": "P20261018154400123456",
"external_order_no": "merchant-1001",
"status": "held",
"steam_id": "76561198117742847",
"amount": "10.0000",
"currency": "usd",
"trade_offer_id": "6828703963",
"offer_expires_at": null,
"release_at": "2026-10-25T07:59:00",
"items": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"price": "10.0000",
"status": "pending"
}
],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-10-18T07:44:00"
}
}{
"code": 6010,
"message": "Trade offer expired",
"data": {
"order_no": "P20261018154400123456",
"external_order_no": "merchant-1001",
"status": "cancelled",
"steam_id": "76561198117742847",
"amount": "10.0000",
"currency": "usd",
"trade_offer_id": "6828703963",
"offer_expires_at": null,
"release_at": null,
"items": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"price": "10.0000",
"status": "removed"
}
],
"fail_code": 6010,
"fail_reason_display": "Trade offer expired",
"created_at": "2026-10-18T07:44:00"
}
}{
"code": 6001,
"message": "Order not found",
"data": null
}Wallet
/walletReturns your current wallet balance.
Response fields
currency | string | Wallet currency (always USD) |
available | decimal | Available balance — can be used for trading and withdrawal |
held | decimal | Balance included in tradable total but not yet withdrawable |
frozen | decimal | Balance reserved for active orders |
total | decimal | Total balance (available + held + frozen) |
tradable | decimal | Tradable balance (available + held) |
withdrawable | decimal | Withdrawable balance (available only) |
status | string | Wallet status: active or frozen |
updated_at | datetime | Last balance update time (ISO 8601) |
{
"code": 1000,
"message": "ok",
"data": {
"currency": "USD",
"available": "8997.868000",
"held": "0.000000",
"frozen": "1.066000",
"total": "8998.934000",
"tradable": "8997.868000",
"withdrawable": "8997.868000",
"status": "active",
"updated_at": "2026-04-14T16:18:46.915184Z"
}
}/wallet/transactionsLists your wallet transactions in reverse chronological order. Supports filtering by type and date range.
Query parameters
tx_type | string | Filter by transaction type: deposit withdraw trade_freeze trade_unfreeze trade_pay trade_income adjustment transfer_in transfer_out etc. |
start_date | string | Start date inclusive (ISO 8601 format: YYYY-MM-DD) |
end_date | string | End date inclusive (ISO 8601 format: YYYY-MM-DD) |
page | integer | Page number (default: 1) |
page_size | integer | Items per page (default: 100, max: 100) |
Date range cannot exceed 31 days. If only start_date is provided, end date defaults to start + 31 days (or today). If only end_date is provided, start date defaults to end − 31 days.
Response fields (per transaction)
tx_no | string | Transaction reference number |
tx_type | string | Transaction type |
amount | decimal | Change amount (positive = credit, negative = debit) |
balance_before | decimal | Available balance before this transaction |
held_before | decimal | Held balance before this transaction |
frozen_before | decimal | Frozen balance before this transaction |
balance_after | decimal | Available balance after this transaction |
held_after | decimal | Held balance after this transaction |
frozen_after | decimal | Frozen balance after this transaction |
biz_type | string | Business type (e.g. trade_freeze, adjustment) |
biz_id | string | Related business reference (e.g. order number) |
created_at | datetime | Transaction time (ISO 8601) |
GET /api/v1/wallet/transactions?start_date=2026-04-01&end_date=2026-04-14&page_size=2{
"code": 1000,
"message": "ok",
"count": 15,
"page": 1,
"page_size": 2,
"total_pages": 8,
"next": 2,
"previous": null,
"data": [
{
"tx_no": "WT2026041479108331",
"tx_type": "trade_unfreeze",
"amount": "1.660500",
"balance_before": "8996.207500",
"held_before": "0.000000",
"frozen_before": "2.726500",
"balance_after": "8997.868000",
"held_after": "0.000000",
"frozen_after": "1.066000",
"biz_type": "trade_unfreeze",
"biz_id": "T20260414154317644080",
"created_at": "2026-04-14T16:18:46.917017Z"
},
{
"tx_no": "WT2026041433429418",
"tx_type": "trade_freeze",
"amount": "-1.660500",
"balance_before": "8997.868000",
"held_before": "0.000000",
"frozen_before": "1.066000",
"balance_after": "8996.207500",
"held_after": "0.000000",
"frozen_after": "2.726500",
"biz_type": "trade_freeze",
"biz_id": "T20260414154317644080",
"created_at": "2026-04-14T15:43:17.378123Z"
}
]
}Webhook
Overview
Webhook pushes events to a URL you own, so you do not have to poll. You register one HTTPS endpoint per account on Settings → Webhook, and every delivery is a signed JSON POST.
Delivery Rules is the contract shared by every event: keys, signature, envelope, retries, and the Settings card. Events are then grouped by product. Today only Payment sends events; other products will get their own group here.
Pages
| Page | Covers |
|---|---|
| Delivery Rules | Endpoint registration, keys, signature, envelope, retries |
| Payment | Payment order events, what triggers each one, and payload |
Delivery Rules
Register one HTTPS endpoint per account on Settings → Webhook. Saving, changing, removing, and sending a test ask for a 2FA code when 2FA is on. Every delivery is a signed JSON POST, and this page covers what is common to all of them: keys, signature, envelope, and retries. Which events each product sends, and what payload holds, is in that product's group, for example Payment.
Keys
Platform public key | PEM | Shown on the Settings card. Use it to verify every delivery. The matching private key stays on our side. You do not need any key of your own |
Signature
Algorithm is RSA-SHA256 (SHA256withRSA). The signature is Base64. The signed text is the X-Webhook-Timestamp header, a newline, then the raw body bytes. Reject a request whose timestamp is more than 5 minutes from your clock. A changed body or signature must fail verification.
X-Webhook-Id | header | Delivery id. Retries of the same event reuse it. Deduplicate on this value |
X-Webhook-Timestamp | header | Unix time in seconds, UTC |
X-Webhook-Signature | header | Base64 RSA-SHA256 signature of timestamp + newline + raw body, made with the platform private key |
Envelope
Every delivery has these four top-level fields, whatever the event.
delivery_id | string | Same value as X-Webhook-Id |
event_type | string | Event name, prefixed with the product, for example payment.order.held. The Settings test sends webhook.test. Ignore names you do not handle |
occurred_at | string | When the event happened, UTC. If events arrive out of order, keep the newer occurred_at, or read the resource again |
payload | object | Event data. Its shape is set by the event, see Payment Payload |
Delivery
HTTP 2xx means delivered. Anything else, including a timeout, is retried after 10 seconds, 30 seconds, 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, 8 hours, and 12 hours. That is 12 attempts including the first. After that we stop and alert our operators. A failed delivery does not change the resource it describes or the wallet. Return 2xx only after you have stored the event.
Settings card
The card matches the Settings prototype: empty state with a URL field, saved state with the URL and the platform public key. Actions are Save, Send test, and Remove. HTTPS only. Credentials in the URL, and local or private addresses, are rejected. Send test posts webhook.test once, shows the status code or the error, and does not retry. At most 6 tests per minute.
Payment
Payment sends one event each time a Payment order enters a new status. Keys and signing, the envelope, and retries are on Delivery Rules.
Order Events
| event_type | status | Triggered when |
|---|---|---|
payment.order.offer_sent | pending | Our bot has sent the Steam trade offer. trade_offer_id and offer_expires_at are set |
payment.order.held | held | The user accepted the offer. The amount is added to your wallet as held until release_at |
payment.order.completed | success | release_at has passed, the trade was not rolled back, and the items are on our bot. The held amount moves to your available balance |
payment.order.failed | failed | The offer could not be sent after retries, or the user declined or countered it, or Steam marked it invalid (for example the items left the inventory). A counter-offer is declined for you. See fail_code |
payment.order.cancelled | cancelled | The offer expired or was cancelled on Steam, or it was not accepted in time and we cancelled it |
payment.order.reversed | reversed | The user rolled the trade back before release_at. The held amount is taken back and nothing is credited |
- A new order in
createdis not sent. - Status changes on Steam are picked up by our periodic checks, so an event can arrive some time after the user acts on Steam.
- An order that fails right after create is sent as
failed, and that POST can arrive before the create response. Match it onexternal_order_no. - Events from before you saved a URL are not replayed. Order of arrival is not guaranteed.
Payload
payload is the same order object as Get Order, captured at the moment of the status change. All six events use this same shape; tell them apart by event_type or status. It carries no trade token and no receiving account.
POST https://your-domain.com/webhooks/tradestation
Content-Type: application/json
X-Webhook-Id: 6f1c0b7e-2a4d-4e1a-9c3b-8d5e7f1a2b30
X-Webhook-Timestamp: 1763000000
X-Webhook-Signature: <base64 RSA-SHA256>
{
"delivery_id": "6f1c0b7e-2a4d-4e1a-9c3b-8d5e7f1a2b30",
"event_type": "payment.order.held",
"occurred_at": "2026-11-13T03:00:00Z",
"payload": {
"order_no": "P20261113030000123456",
"external_order_no": "merchant-1001",
"status": "held",
"steam_id": "76561198117742847",
"amount": "10.0000",
"currency": "usd",
"trade_offer_id": "6828703963",
"offer_expires_at": null,
"release_at": "2026-11-20T03:15:00",
"items": [
{
"asset_id": "4284666526576951869",
"name": "AK-47 | Redline (Field-Tested)",
"phase": "",
"price": "10.0000",
"status": "pending"
}
],
"fail_code": null,
"fail_reason_display": "",
"created_at": "2026-11-13T02:55:00"
}
}