Cashout Skin for Business

API documentation

Accept CS2 skins from your users and get paid in USD. Your server opens deposits with one call; we route every skin to the buyer paying the most for it, credit your balance once the trade is final, and tell your server at every step with a signed webhook. Keys, webhooks and withdrawals live in your merchant dashboard.

How it works

  1. Your user gives you their SteamID64 and trade URL (or you use the hosted page and we collect them).
  2. You quote their inventory — each item comes with the amount you would be credited.
  3. You create deposits for the items they pick, under your own reference (custom_id). Steam sends them a trade offer.
  4. They accept. Steam's trade protection holds the trade for up to ~8 days; you get deposit.hold.
  5. When the trade is final we credit your balance and send deposit.completed. You withdraw in crypto from the dashboard.

A held trade can still be reversed by Steam, which is why your balance is credited only at the end of the hold. Crediting your own user earlier, on deposit.hold, is your decision and your risk.

Authentication

Create a key under API keys in the dashboard and send it as a Bearer token. Keys are secret — call the API from your backend only.

Every request
curl https://cashout.skin/api/v1/me \
  -H "Authorization: Bearer cs_live_…"
LimitValue
Requests per key120 per minute
GET /inventory, POST /deposits30 per minute per key (they query the buyers live)
IP allowlistOptional, per merchant — ask us to enable it

Over the limit you get 429 with RateLimit-* headers.

Conventions

Base URLhttps://cashout.skin/api/v1
FormatJSON in, JSON out. Send Content-Type: application/json.
MoneyStrings with two decimals, USD — "41.17". Never floats.
Your referencescustom_id: 1–64 characters, letters, digits and _ . : -.
PaginationLists are newest first. Pass limit (1–100, default 50) and before=<next_before> from the previous page; next_before is null on the last page.
Errors{ "error": "<human message>", "code": "<machine code>" } — see Errors.

GET /me

Your account and balances.

Response
{
  "merchant": { "id": 12, "name": "Acme Skins", "status": "active" },
  "currency": "USD",
  "balance": "1520.40",        // withdrawable now
  "on_hold": "312.75",         // accepted trades waiting for Steam's hold to end
  "awaiting_trade": "48.10",   // trade offers not accepted yet
  "rate": 0.95                 // you receive 95% of each item's market value
}

GET /inventory

Quotes a Steam inventory at your rate. Query parameters: steam_id (SteamID64) and trade_url. The trade URL must belong to the same Steam account.

Request
curl -G https://cashout.skin/api/v1/inventory \
  -H "Authorization: Bearer cs_live_…" \
  --data-urlencode "steam_id=76561198000000000" \
  --data-urlencode "trade_url=https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12"
Response
{
  "steam_id": "76561198000000000",
  "rate": 0.95,
  "currency": "USD",
  "items": [
    {
      "asset_id": "38214907532",
      "name": "AK-47 | Redline (Field-Tested)",
      "image": "https://community.akamai.steamstatic.com/economy/image/…",
      "float": 0.2481,
      "stickers": [],
      "tradable": true,
      "amount": "41.17"          // what you'd be credited
    }
  ]
}

Items are sorted by amount. Only items with tradable: true can be deposited. A private inventory answers 409 user_inventory_is_hidden.

POST /deposits

Creates one deposit per asset — each is its own Steam trade offer, status and credit. Up to 50 assets per call. Prices are always taken from the live inventory, never from your request.

Request
curl https://cashout.skin/api/v1/deposits \
  -H "Authorization: Bearer cs_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "steam_id": "76561198000000000",
    "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12",
    "asset_ids": ["38214907532", "38214907533"],
    "custom_id": "user-4821"
  }'
Response — 200 if at least one deposit exists, 400 if none
{
  "custom_id": "user-4821",
  "results": [
    { "asset_id": "38214907532", "ok": true, "deposit": { "id": 812, "status": "pending", "amount": "41.17", "offer_url": "https://steamcommunity.com/tradeoffer/…", … } },
    { "asset_id": "38214907533", "ok": false, "error": { "code": "item_not_tradable", "message": "This item is not tradable right now (trade hold or unavailable)." } }
  ]
}

Idempotent: custom_id + asset_id identifies a deposit. Repeating a request — after a timeout, say — returns the existing deposit with existing: true and never sends your user a second trade offer. To deposit the same item again later, use a new custom_id.

A result with deposit_unconfirmed means the buyer didn't confirm the trade offer in time. It may still have been sent — don't retry it under a new reference; its real status arrives by webhook.

GET /deposits · GET /deposits/:id

Filters: custom_id, status (pending · hold · completed · failed), plus pagination.

Request
curl "https://cashout.skin/api/v1/deposits?custom_id=user-4821&limit=20" -H "Authorization: Bearer cs_live_…"
Response
{ "deposits": [ { …deposit… } ], "next_before": 790 }

The deposit object

{
  "id": 812,
  "custom_id": "user-4821",
  "session_id": null,              // set when created through a hosted session
  "steam_id": "76561198000000000",
  "asset_id": "38214907532",
  "name": "AK-47 | Redline (Field-Tested)",
  "image": "https://…",
  "amount": "41.17",
  "currency": "USD",
  "status": "hold",
  "unconfirmed": false,
  "trade_offer_id": "6812736112",
  "offer_url": "https://steamcommunity.com/tradeoffer/6812736112/",
  "hold_until": "2026-12-08T14:02:11.000Z",
  "fail_reason": null,
  "created_at": "2026-11-30T14:02:11.000Z",
  "credited_at": null
}
StatusMeaningWebhook
pendingTrade offer sent, not accepted yet.deposit.created
holdAccepted; Steam trade protection is running until hold_until. Not credited yet.deposit.hold
completedFinal. amount was added to your balance at credited_at.deposit.completed
failedDeclined, expired, cancelled, or reversed by Steam during the hold. Nothing credited.deposit.failed

Hosted deposit page

No frontend work: open a session, send your user to its url. They pick items on our page and accept the trade offers; the deposits carry the session's custom_id and arrive by webhook. One session creates one batch of deposits.

Skip the Steam sign-in: your users already signed in with Steam on your site, so pass their steam_id and trade_url and they land straight on their inventory — the same trust as POST /deposits, which never involves a sign-in. Without a trade_url, they sign in with Steam on our page (remembered for 7 days in that browser). Treat the link as personal: whoever opens it can send deposit offers to that Steam account — which still only go through when the account's owner accepts them in Steam.

POST /sessions
curl https://cashout.skin/api/v1/sessions \
  -H "Authorization: Bearer cs_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "custom_id": "user-4821",
    "steam_id": "76561198000000000",
    "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12",
    "return_url": "https://example.com/wallet",
    "expires_in_minutes": 60
  }'

// 201
{ "session": { "id": "0d6f…", "custom_id": "user-4821", "status": "open", "steam_login_required": false,
               "url": "https://cashout.skin/business/deposit/0d6f…", "expires_at": "…", … }, "existing": false }
Field
custom_idRequired. Asking again with the same value while the session is open returns that session.
steam_idOptional. Only this Steam account may use the link.
trade_urlOptional, needs steam_id (same account). Skips the Steam sign-in — see above.
return_urlOptional https URL for the "Back to …" button when they're done.
expires_in_minutes5–1440, default 60.

GET /sessions/:id returns the session and the deposits it created.

GET /transactions

Your ledger: every credit and debit, with the balance after it. Your balance always equals the sum of this list.

{ "transactions": [
    { "id": 3051, "type": "deposit", "amount": "41.17", "balance_after": "1520.40",
      "ref_type": "merchant_deposit", "ref_id": "812", "note": "AK-47 | Redline (Field-Tested)", "created_at": "…" }
  ], "next_before": null }

Types: deposit, withdrawal, withdrawal_reversal (a withdrawal rejected, cancelled or failed), adjustment.

Webhooks

Set your endpoint under Webhooks in the dashboard. Each event is a POST with this body:

{
  "id": "deposit.completed:812",   // unique per event — dedupe on it
  "event": "deposit.completed",
  "created_at": "2026-12-08T14:05:02.311Z",
  "data": { …the deposit or withdrawal object… }
}
EventWhen
deposit.createdA trade offer was sent to your user.
deposit.holdThey accepted; Steam's hold started. Not credited yet.
deposit.completedCredited to your balance.
deposit.failedDeclined, expired or reversed. Nothing credited.
withdrawal.completedYour withdrawal was sent (chain_tx_id when the network has one).
withdrawal.rejectedWe declined the withdrawal; the amount is back on your balance.
withdrawal.failedThe transfer failed; the amount is back on your balance.
testSent by the dashboard's "Send test event" button.
Header
X-Cashout-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>
X-Cashout-EventThe event name.
X-Cashout-Event-IdSame as the body's id.

Answer with any 2xx within 10 seconds. Anything else — or no answer — is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h, then marked failed; you can redeliver failed events from the dashboard. Redirects are not followed, and the URL must be public https. Delivery is at-least-once and events can arrive out of order, so treat the deposit's status as the truth and ignore event ids you've seen.

Verifying signatures

Always verify before trusting a webhook. Use the raw request body — parsing and re-serialising the JSON changes the bytes and breaks the signature.

Node.js
import crypto from 'node:crypto';

// rawBody: the request body EXACTLY as received (a string / Buffer), not re-serialised JSON.
export function verifyCashoutSignature(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(String(header).split(',').map(p => p.trim().split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;   // stale / replayed
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
  const received = Buffer.from(parts.v1 ?? '', 'hex');
  return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}

// Express: mount with express.raw() so the bytes stay untouched.
app.post('/cashout/webhook', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verifyCashoutSignature(req.body.toString('utf8'), req.get('X-Cashout-Signature'), process.env.CASHOUT_WEBHOOK_SECRET)) {
    return res.sendStatus(401);
  }
  const event = JSON.parse(req.body.toString('utf8'));
  // Dedupe on event.id (also sent as X-Cashout-Event-Id) — deliveries are at-least-once.
  res.sendStatus(200);
});
PHP
<?php
function verify_cashout_signature(string $rawBody, string $header, string $secret, int $tolerance = 300): bool {
    parse_str(str_replace(',', '&', $header), $p);
    $t = (int)($p['t'] ?? 0);
    if (!$t || abs(time() - $t) > $tolerance) return false;
    $expected = hash_hmac('sha256', $t . '.' . $rawBody, $secret);
    return hash_equals($expected, (string)($p['v1'] ?? ''));
}

$raw = file_get_contents('php://input');
if (!verify_cashout_signature($raw, $_SERVER['HTTP_X_CASHOUT_SIGNATURE'] ?? '', getenv('CASHOUT_WEBHOOK_SECRET'))) {
    http_response_code(401); exit;
}
$event = json_decode($raw, true);
http_response_code(200);

Errors

HTTPcodeMeaning
400invalid_requestThe body or query failed validation (details says which field).
400invalid_steam_id · invalid_trade_urlNot a SteamID64 / not a steamcommunity.com trade offer link.
400trade_url_mismatchThe trade URL belongs to a different Steam account than steam_id.
401unauthenticatedMissing, malformed or revoked API key.
403merchant_suspended · ip_not_allowedAccount suspended / request from an IP not on your allowlist.
404not_foundNo such deposit, session or route.
409user_inventory_is_hiddenThe user's Steam inventory is private. The message tells them how to fix it.
409user_not_tradableThe Steam account can't trade right now (trade ban, Steam Guard, new device).
400invalid_trade_tokenThe trade URL is outdated — the user must copy a fresh one from Steam.
429—Rate limit.
503supplier_unavailable · user_inventory_is_unavailable · under_maintenanceTemporary — retry shortly.
502supplier_errorSomething failed on our side. We're alerted; retry later.

Per-item codes inside results[]: item_not_found, item_not_tradable, item_not_accepted (no buyer for it right now), deposit_unconfirmed, plus any of the codes above.

The error text is written to be shown to your user as-is.