API documentation

Version 1.0.0

Everything you need to integrate: authentication, the stock and prices, buying, orders, balance and webhooks — each endpoint with its parameters and a request and response example. The full OpenAPI file is one click away.

Base URL https://api.supplyskins.com

Introduction

Buy CS2 items from SupplySkins stock over a small REST API: see live stock with your final price, place an order, and the item is delivered by a Steam trade offer to the trade URL you give.

  • Base URL https://api.supplyskins.com, every path starts with /v1. HTTPS only, JSON in and out.
  • Money is USD, a number with up to two decimals: "price": 82.3 = $82.30 — in responses and in what you send.
  • Time is ISO 8601 UTC with Z; every id is a string.
  • Lists are paged by cursor: pass next_cursor back as cursor until it is null.

Authentication

Send your key in the Authorization header on every request. A key is bound to the IP addresses of your servers and to scopes — items:read, orders:write, orders:read, balance:read.

curl -H "Authorization: Bearer smk_<prefix>_<secret>" "https://api.supplyskins.com/v1/balance"

The full key is shown once — store it as a secret. Requests from other IPs get 403 IP_NOT_ALLOWED. Limits: 120 requests a minute for items and prices, 30 for orders, 60 for the rest.

Quickstart

Get the price, buy at that price, follow the order. Or buy by name with max_price in one request.

KEY='smk_…'                                   # your key: keep it secret
API=https://api.supplyskins.com

# 1. The cheapest price of a skin
curl -s -H "Authorization: Bearer $KEY" \
  "$API/v1/items/cheapest?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)"
# → {"items": [{"min_price": 15.5, "count": 12, "cheapest_item_id": "184233", …}]}

# 2. Buy it at that price (custom_id: no answer? repeat the same request — never a second purchase)
curl -s -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  "$API/v1/orders" -d '{"item_id": "184233", "price": 15.50, "custom_id": "shop-7781", "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=AbCdEfGh"}'

# 3. Follow the order (or wait for the webhook)
curl -s -H "Authorization: Bearer $KEY" "$API/v1/orders/<order_id>"

Items

Cheapest items

GET /v1/items/cheapest items:read

The cheapest item of every name: one row per name and phase with your lowest price, how many items are available and the item_id to buy. One name — market_hash_name, part of a name — search. JSON, or CSV with format=csv.

Query parameters
NameTypeDescription
market_hash_name string Exact name: the price of one skin.
search string Part of the name, case-insensitive.
price_from / price_to number Price bounds, USD: 10, 49.99.
sources string Only items of these stock sources, comma-separated source_ids: 1,2.
exclude_sources string Items of every stock source but these: 3.
format string json (default) or csv.

Request

curl -H "Authorization: Bearer $KEY" \
  "https://api.supplyskins.com/v1/items/cheapest?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)"

Response 200

{
  "items": [
    {
      "market_hash_name": "AK-47 | Redline (Field-Tested)",
      "phase": null,
      "min_price": 15.5,
      "count": 12,
      "cheapest_item_id": "184233",
      "cheapest_float": 0.2661
    }
  ],
  "generated_at": "2026-10-25T09:41:00Z",
  "count": 1
}

Then buy it: POST /v1/orders with cheapest_item_id and min_price as price — or skip this step and buy by name with max_price.

Items

List items

GET /v1/items items:read

Every concrete item available to you with its own price, float and stock source, page by page.

Query parameters
NameTypeDescription
market_hash_name string Exact name.
search string Part of the name, case-insensitive.
phase string Doppler phase: Phase 1–Phase 4, Ruby, Sapphire, Black Pearl, Emerald.
price_from / price_to number Price bounds, USD: 10, 49.99.
float_min / float_max number Float bounds, 0–1.
sources string Only items of these stock sources, comma-separated source_ids: 1,2.
exclude_sources string Items of every stock source but these: 3.
sort string updated_desc (default), price_asc, price_desc.
limit integer Page size, 1–200 (default 100).
cursor string next_cursor of the previous page.
updated_since datetime Only items changed since — server_time of your previous response. Gone items come back with available: false.

Request

curl -H "Authorization: Bearer $KEY" \
  "https://api.supplyskins.com/v1/items?search=redline&sort=price_asc&limit=50"

Response 200

{
  "items": [
    {
      "item_id": "184233",
      "source_id": 1,
      "app_id": 730,
      "market_hash_name": "AK-47 | Redline (Field-Tested)",
      "price": 15.5,
      "currency": "USD",
      "float": 0.2661,
      "paint_seed": 661,
      "phase": null,
      "asset_id": "48807865915",
      "class_id": "519987180",
      "instance_id": "519977179",
      "steam_id": "76561199274521258",
      "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812",
      "image_url": "https://community.cloudflare.steamstatic.com/economy/image/…/360fx360f",
      "available": true,
      "updated_at": "2026-10-25T09:40:12Z",
      "delivery_type": "instant",
      "delivery_minutes": null
    }
  ],
  "next_cursor": "eyJzIjoicHJpY2VfYXNjIiwiayI6MTU1MCwiaSI6MTg0MjMzfQ",
  "server_time": "2026-10-25T09:40:15Z"
}

Keep following next_cursor until it is null. source_id is the number of the item's stock source; filter with sources / exclude_sources. app_id is the item's game (730 CS2, 570 Dota 2, 252490 Rust). delivery_type is instant or manual. Steam fields of every item: asset_id, class_id, instance_id, steam_id (SteamID64 of the inventory the offer comes from), inspect_link, paint_seed — null when the stock does not report them. asset_id is the id before the trade; it changes in the recipient's inventory.

Items

The whole stock

GET /v1/items/full items:read

Every item available to you in one response — the same rows as /v1/items. Rebuilt at most once a minute; send the ETag back in If-None-Match to get 304 when nothing changed.

Query parameters
NameTypeDescription
sources string Only items of these stock sources, comma-separated source_ids: 1,2.
exclude_sources string Items of every stock source but these: 3.

Request

curl -H "Authorization: Bearer $KEY" -H "Accept-Encoding: gzip" --compressed \
  "https://api.supplyskins.com/v1/items/full"

Response 200

{
  "items": [
    {
      "item_id": "184233",
      "source_id": 1,
      "app_id": 730,
      "market_hash_name": "AK-47 | Redline (Field-Tested)",
      "price": 15.5,
      "currency": "USD",
      "float": 0.2661,
      "paint_seed": 661,
      "phase": null,
      "asset_id": "48807865915",
      "class_id": "519987180",
      "instance_id": "519977179",
      "steam_id": "76561199274521258",
      "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812",
      "image_url": "https://community.cloudflare.steamstatic.com/economy/image/…/360fx360f",
      "available": true,
      "updated_at": "2026-10-25T09:40:12Z",
      "delivery_type": "instant",
      "delivery_minutes": null
    }
  ],
  "count": 1,
  "generated_at": "2026-10-25T09:41:00Z",
  "server_time": "2026-10-25T09:40:00Z"
}

Items

Get an item

GET /v1/items/{item_id} items:read

One item with your current price — check it right before buying. Gone or in a trade — available: false; not available to you — 404.

Request

curl -H "Authorization: Bearer $KEY" "https://api.supplyskins.com/v1/items/184233"

Response 200

{
  "item_id": "184233",
  "source_id": 1,
  "app_id": 730,
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "price": 15.5,
  "currency": "USD",
  "float": 0.2661,
  "paint_seed": 661,
  "phase": null,
  "asset_id": "48807865915",
  "class_id": "519987180",
  "instance_id": "519977179",
  "steam_id": "76561199274521258",
  "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812",
  "image_url": "https://community.cloudflare.steamstatic.com/economy/image/…/360fx360f",
  "available": true,
  "updated_at": "2026-10-25T09:40:12Z",
  "delivery_type": "instant",
  "delivery_minutes": null
}

Orders

Buy

POST /v1/orders orders:write

One request, two ways. A specific item — item_id with the price you got (if the price changed: 409 PRICE_CHANGED with current_price) or a max_price ceiling. The cheapest by name — market_hash_name with max_price: the cheapest item at or below it is bought, price check and purchase in one call. The price is reserved on your balance and a Steam trade offer goes to trade_url within seconds.

Body
NameTypeDescription
trade_urlrequired string Steam trade URL of the recipient.
item_id string A specific item — from /v1/items or cheapest_item_id.
price number With item_id: the price you got, USD.
market_hash_name string Instead of item_id: buy the cheapest item with this name.
phase string With market_hash_name: Doppler phase.
max_price number Price ceiling, USD — required by name, or instead of price. You pay the actual price.
sources / exclude_sources integer[] With market_hash_name: only these / all but these stock sources.
custom_id string Your own order number — send it always. Retrying with it never buys twice.

Request

curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  "https://api.supplyskins.com/v1/orders" -d '{
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "max_price": 16.00,
    "custom_id": "shop-7781",
    "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=AbCdEfGh"
  }'

# or a specific item at the price you got
curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  "https://api.supplyskins.com/v1/orders" -d '{"item_id": "184233", "price": 15.50, "trade_url": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=AbCdEfGh"}'

Response 201

{
  "order_id": "6d734b447e1346b4afd750087b120045",
  "custom_id": "shop-7781",
  "status": "active",
  "cancel_reason": null,
  "item": {
    "item_id": "184233",
    "app_id": 730,
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "float": 0.2661,
    "paint_seed": 661,
    "phase": null,
    "asset_id": "48807865915",
    "class_id": "519987180",
    "instance_id": "519977179",
    "steam_id": "76561199274521258",
    "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812"
  },
  "price": 15.5,
  "currency": "USD",
  "trade": null,
  "penalty_pct": 0,
  "created_at": "2026-10-25T09:41:03Z",
  "deadline_at": "2026-10-25T10:11:03Z",
  "finished_at": null
}

How long the offer waits for acceptance is set by SupplySkins (deadline_at). With custom_id: the same id and body again — 200 with the existing order; the same id with another body — 409 DUPLICATE_CUSTOM_ID. No JSON answer (a timeout, a dropped connection, a 502 / 504 page)? The order may already be placed: repeat the same request with the same custom_id — you get the order, never a second purchase.

Orders

Cancel

POST /v1/orders/{order_id}/cancel orders:write

Changed your mind before the offer is accepted? Cancel your active order: within about a minute it becomes cancelled with cancel_reason: by_buyer, an offer already sent is withdrawn in Steam, and the price returns to your balance (webhook order.cancelled). A final order or an accepted offer — 409 ORDER_NOT_CANCELLABLE. Repeating is safe.

Request

curl -X POST -H "Authorization: Bearer $KEY" \
  "https://api.supplyskins.com/v1/orders/6d734b447e1346b4afd750087b120045/cancel"

Response 202

{
  "order_id": "6d734b447e1346b4afd750087b120045",
  "status": "active",
  "cancel": "requested"
}

Orders

Get an order

GET /v1/orders/{order_id} orders:read

One order with its trade. Poll at most once every 10 seconds — webhooks are better. By your own number: GET /v1/orders/by-custom-id/{custom_id}. item carries the Steam fields of the bought item at order time (asset_id, class_id, instance_id, steam_id, inspect_link).

Request

curl -H "Authorization: Bearer $KEY" "https://api.supplyskins.com/v1/orders/6d734b447e1346b4afd750087b120045"

Response 200

{
  "order_id": "6d734b447e1346b4afd750087b120045",
  "custom_id": "shop-7781",
  "status": "success",
  "cancel_reason": null,
  "item": {
    "item_id": "184233",
    "app_id": 730,
    "market_hash_name": "AK-47 | Redline (Field-Tested)",
    "float": 0.2661,
    "paint_seed": 661,
    "phase": null,
    "asset_id": "48807865915",
    "class_id": "519987180",
    "instance_id": "519977179",
    "steam_id": "76561199274521258",
    "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812"
  },
  "price": 15.5,
  "currency": "USD",
  "trade": {
    "offer_id": "7418529630",
    "status": "accepted",
    "sent_at": "2026-10-25T09:41:12Z",
    "accepted_at": "2026-10-25T09:43:10Z",
    "protected_until": "2026-11-02T09:43:10Z"
  },
  "penalty_pct": 0,
  "created_at": "2026-10-25T09:41:03Z",
  "deadline_at": "2026-10-25T10:11:03Z",
  "finished_at": null
}

Orders

List orders

GET /v1/orders orders:read

Your orders, newest first. To sync, pass updated_since = server_time of the previous response.

Query parameters
NameTypeDescription
status string active, success, completed, reversed, cancelled; repeat for several.
updated_since datetime Orders whose status or trade changed since.
created_from / created_to datetime Creation window.
custom_id string Your order number.
limit / cursor Paging, as in /v1/items.

Request

curl -H "Authorization: Bearer $KEY" "https://api.supplyskins.com/v1/orders?status=success&limit=20"

Response 200

{
  "orders": [
    {
      "order_id": "6d734b447e1346b4afd750087b120045",
      "custom_id": "shop-7781",
      "status": "success",
      "cancel_reason": null,
      "item": {
        "item_id": "184233",
        "app_id": 730,
        "market_hash_name": "AK-47 | Redline (Field-Tested)",
        "float": 0.2661,
        "paint_seed": 661,
        "phase": null,
        "asset_id": "48807865915",
        "class_id": "519987180",
        "instance_id": "519977179",
        "steam_id": "76561199274521258",
        "inspect_link": "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561199274521258A48807865915D5089074789179053812"
      },
      "price": 15.5,
      "currency": "USD",
      "trade": {
        "offer_id": "7418529630",
        "status": "accepted",
        "sent_at": "2026-10-25T09:41:12Z",
        "accepted_at": "2026-10-25T09:43:10Z",
        "protected_until": "2026-11-02T09:43:10Z"
      },
      "penalty_pct": 0,
      "created_at": "2026-10-25T09:41:03Z",
      "deadline_at": "2026-10-25T10:11:03Z",
      "finished_at": null
    }
  ],
  "next_cursor": null,
  "server_time": "2026-10-25T09:44:00Z"
}

Account

Balance

GET /v1/balance balance:read

In USD: available — what you can spend; reserved — held by your active orders.

Request

curl -H "Authorization: Bearer $KEY" "https://api.supplyskins.com/v1/balance"

Response 200

{
  "available": 2500,
  "reserved": 15.5,
  "hold": 0,
  "currency": "USD",
  "as_of": "2026-10-25T09:41:09Z"
}

Account

Balance history

GET /v1/balance/history balance:read

Every movement of your balance, newest first: deposits, order reserves, charges and releases — each with the balance before and after, in USD.

Query parameters
NameTypeDescription
type string deposit, order_reserve, order_charge, order_release, rollback_refund, adjustment…; repeat for several.
order_id string Movements of one order.
from / to datetime Time window.
limit / cursor Paging.

Request

curl -H "Authorization: Bearer $KEY" "https://api.supplyskins.com/v1/balance/history?limit=50"

Response 200

{
  "transactions": [
    {
      "id": "5521",
      "type": "order_reserve",
      "amount": -15.5,
      "balance_before": 2515.5,
      "balance_after": 2500,
      "order_id": "6d734b447e1346b4afd750087b120045",
      "custom_id": "shop-7781",
      "created_at": "2026-10-25T09:41:03Z"
    }
  ],
  "next_cursor": null,
  "server_time": "2026-10-25T09:41:09Z"
}

Order statuses

  • activeThe price is reserved; the trade offer is being sent or waits for acceptance until deadline_at.
  • successOffer accepted. The item is under Steam trade protection until trade.protected_until (8 days) — not final yet.
  • completedProtection ended. Final.
  • cancelledThe trade did not happen (or you cancelled it); the full price is back on your balance. Reason in cancel_reason. Final.
  • reversedRolled back during protection: refunded returned, penalty withheld (penalty_pct — % of the price, currently 0). trade.rollback_by: buyer — you, seller — SupplySkins. Final.

Trade status: queued → sent → accepted → confirmed; failed offers end as declined, cancelled or expired. A cancelled order is never retried — place a new one.

Errors

Every error is {"error": {"code": "...", "message": "..."}}. Branch on code; the message may change.

HTTPCodeWhen
401UNAUTHORIZEDMissing, invalid or revoked key.
402INSUFFICIENT_BALANCEAvailable balance is below the price (available, required).
403IP_NOT_ALLOWEDThe request IP is not in the key's allowlist.
404NOT_FOUNDNo such item or order, or it is not available to you.
409PRICE_CHANGEDThe price differs from price or exceeds max_price; see current_price.
409ITEM_UNAVAILABLESold, in a trade, or nothing at or below max_price.
409DUPLICATE_CUSTOM_IDThe custom_id was used with a different body.
409ORDER_NOT_CANCELLABLEThe order is final or its offer was already accepted (order_status).
422INVALID_PARAMETERInvalid parameter or body; fields says which.
422INVALID_TRADE_URLMalformed trade URL.
429RATE_LIMITEDToo many requests; wait Retry-After seconds.
429TOO_MANY_ACTIVE_ORDERSToo many of your orders are active at once; wait until some finish.
429RECIPIENT_BUSYToo many active orders to this trade URL recipient; wait until some finish.

Webhooks

We POST an event to your HTTPS endpoint on every order change: order.created, order.trade_sent, order.success, order.completed, order.reversed, order.cancelled, and balance.deposited on a top-up. The endpoint and its signing secret are set up by SupplySkins support.

Payload

{
  "event": "order.success",
  "event_id": "4f0c9a1e2b7d4c8e9a0b1c2d3e4f5a6b",
  "occurred_at": "2026-10-25T09:43:10Z",
  "data": {
    "order_id": "6d734b447e1346b4afd750087b120045",
    "custom_id": "shop-7781",
    "status": "success",
    "price": 15.5,
    "…": "the same object as GET /v1/orders/{order_id}"
  }
}

Verify the signature (Python)

import hashlib, hmac, time

def verify(secret: str, headers, raw_body: bytes) -> bool:
    ts, sig = headers.get("X-SS-Timestamp", ""), headers.get("X-SS-Signature", "")
    if not ts.isdigit() or abs(time.time() - int(ts)) > 300:
        return False
    expected = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, sig)
  • X-SS-Signature = hex HMAC-SHA256(secret, X-SS-Timestamp + "." + raw_body). Verify the raw body before parsing; reject events older than 300 seconds.
  • Answer any 2xx within 10 seconds, otherwise we retry after 1 min, 10 min, 1 h and 24 h.
  • event_id is stable across retries — deduplicate by it.