Appearance
Webhooks
Skinslink sends webhook notifications to your server when deposit or purchase statuses change. This is the recommended way to track transaction progress.
Setup
Configure your webhook URL in your merchant settings. Skinslink will send POST requests to this URL whenever a trade status changes.
You can also override the webhook URL per deposit by passing result_url when creating a deposit — that URL will take priority over the merchant-level setting.
Without a webhook URL nothing is sent and no callbacks appear in your callback history.
Prefer a socket?
The Status WebSocket delivers the same notifications without a public endpoint on your side, and replays what you missed while disconnected. It works alongside webhooks: clear the webhook URL to receive statuses over the socket only.
Deposit Webhooks
Payload
json
{
"sign": "b64EncodedSHA256Signature==",
"event": "deposit_status",
"status": "completed",
"trade_id": 178,
"trade_date": "2026-02-16T12:00:00Z",
"merchant_tx_id": "order-12345",
"steam_id": "76561198338314767",
"offer_id": "6912345678",
"amount": 36.25,
"amount_currency": "usd",
"offers": [
{
"trade_offer_id": "6912345678",
"bot_steam_id": "76561199012345678",
"bot_name": "Skinslink Bot #3",
"status": "completed",
"trade_offer_expiry_at": "2026-02-16T12:30:00Z",
"amount": 36.25
}
]
}Fields
| Field | Type | Description |
|---|---|---|
sign | string | Request signature (see Verifying Webhooks below) |
event | string | deposit_status — the deposit changed status; offer_status — one offer of a deposit with several trade offers changed status, see Offer Status Webhooks |
status | string | Trade status: hold, canceled, failed, completed, reverted |
trade_id | integer | Skinslink internal trade ID |
trade_date | string | Trade creation timestamp (ISO 8601) |
merchant_tx_id | string | Your order ID (the value you passed when creating the deposit) |
steam_id | string | User's Steam ID (64-bit, as string) |
offer_id | string | Steam trade offer ID (only present if available) |
amount | number | Trade amount in USD |
amount_currency | string | Currency code (currently always usd) |
offers | object[] | Every Steam trade offer of the deposit, once at least one was sent — several when it is split between bots. See Deposits with Several Trade Offers |
hold_end_date | string | null | ISO 8601 timestamp for when the Steam hold ends. Only present when status is hold. |
fail_reason | string | null | Failure / cancellation / reversal reason. Present when status is failed, canceled or reverted; on reverted it is user_reverted (the user rolled the trade back) or skinslink_reverted (reversed on our side). See Deposit Status Fail Reasons. |
Custom Currency in Webhooks
Custom currency fields (custom_currency, custom_currency_multiplier, custom_currency_rate, custom_currency_sum) are not yet included in webhook payloads. Use Deposit Status to retrieve custom currency data for hold/completed trades.
Deposit Status Flow
Webhooks are sent for the highlighted statuses only:
new ──→ pending ──→ active ──→ completed ✉
│ │ │
│ │ ├──→ hold ✉ ──→ completed ✉
│ │ │ │
│ │ │ └──→ reverted ✉
│ │ │
│ │ ├──→ failed ✉
│ │ │
│ │ └──→ canceled ✉
│ │
│ ├──→ failed ✉
│ │
│ └──→ canceled ✉
│
└──→ canceled ✉- hold — trade is on Steam trade hold (7-day hold)
- completed — items received, deposit credited
- failed — trade failed (user declined, items unavailable, etc.)
- canceled — trade was canceled
- reverted — a previously held trade has been reversed
TIP
Statuses new, pending, and active do not trigger webhook notifications. Use polling if you need to track early status transitions.
Several Trade Offers
A deposit split into several trade offers from different bots sends one active webhook — once every offer is sent — with the full offers list, so you can show the user all offer links. It is the only active webhook of such a deposit.
On partial acceptance the amount of the hold / completed webhook covers only the accepted offers. Credit the user with that amount, not per offer. See Deposits with Several Trade Offers.
Offer Status Webhooks
A deposit with several trade offers also sends a webhook every time one of its offers changes status — the user accepts or declines it, it expires, or it is rolled back. Use it to show the user which offers are still waiting.
json
{
"sign": "b64EncodedSHA256Signature==",
"event": "offer_status",
"status": "active",
"trade_id": 43938,
"trade_date": "2026-11-20T15:57:37Z",
"merchant_tx_id": "order-12345",
"steam_id": "76561198338314767",
"offer_id": "9498815172",
"amount": 5.25,
"amount_currency": "usd",
"offer": {
"trade_offer_id": "9498815229",
"bot_steam_id": "76561199559729514",
"bot_name": "Petra",
"status": "completed",
"trade_offer_expiry_at": "2026-11-20T16:17:53Z",
"asset_ids": ["54486543899"],
"amount": 0.19
},
"offers": [ ... ]
}| Field | Type | Description |
|---|---|---|
event | string | Always offer_status |
status | string | The deposit status, which may stay the same (active while other offers still wait) |
offer | object | The offer that changed, in the same shape as an entry of offers; offer.status is its new status |
offers | object[] | Every offer of the deposit as it is now |
amount | number | The deposit amount as it is now — final only on hold / completed |
All other fields and the sign are the same as in Deposit Webhooks and are verified the same way.
- An offer change that also moves the deposit to a new status is followed by the usual
deposit_statuswebhook. - Offer webhooks come only for deposits with several trade offers; a single-offer deposit sends
deposit_statuswebhooks only. - An offer webhook may arrive out of order with other webhooks of the deposit — rely on
offersand the depositstatus, not on the order.
WARNING
Offer webhooks are for showing progress. Never credit the user on them — credit only on the deposit_status webhook with status hold or completed, using its amount.
Verifying Webhooks
Why verify?
Your webhook endpoint is a public URL — anyone who discovers it could send fake requests pretending to be Skinslink (e.g. "deposit completed, credit the user $50"). The sign field lets you cryptographically prove the webhook actually came from us and hasn't been tampered with.
Always verify the signature before processing a webhook. Without verification, an attacker could forge deposit completions and steal funds.
How it works
The signature is a Base64-encoded SHA-256 hash of your trade_id concatenated with your merchant secret:
sign = base64( sha256( trade_id + secret ) )Your secret is known only to you and Skinslink — so only a legitimate webhook can produce the correct signature for a given trade_id.
Example (Python)
python
import hashlib, base64
expected = base64.b64encode(
hashlib.sha256((str(payload["trade_id"]) + secret).encode()).digest()
).decode()
if expected != payload["sign"]:
return 403 # reject — not from SkinslinkExample (Node.js)
javascript
const crypto = require('crypto');
const expected = crypto
.createHash('sha256')
.update(String(payload.trade_id) + secret)
.digest('base64');
if (expected !== payload.sign) {
return res.status(403).send('Invalid signature');
}Retry Behavior
If your webhook endpoint returns a non-2xx status code, Skinslink will retry delivery with exponential backoff. We recommend:
- Respond with
200 OKas quickly as possible - Process the webhook payload asynchronously
- Implement idempotency using
merchant_tx_id+statusas the deduplication key
Polling as Fallback
If webhooks are not suitable for your setup, use the Status WebSocket, read every status change from Status Events, or poll the deposit status endpoint:
bash
curl "https://api.skinslink.com/api/v1/merchant/deposit/status?merchant_tx_id=order-12345" \
-H "X-Api-Key: your-api-key" \
-H "Accept: application/json"We recommend polling no more than once per second per deposit.
Purchase Webhooks
Purchase webhooks are sent to your merchant-level webhook URL when a purchase status changes.
INFO
Purchase webhooks always use your merchant-level webhook URL. There is no per-purchase URL override (unlike deposits, which support result_url).
Payload
json
{
"sign": "b64EncodedSHA256Signature==",
"status": "completed",
"purchase_id": 178,
"trade_date": "2026-03-24T10:30:00Z",
"merchant_tx_id": "order-12345",
"steam_id": "76561198338314767",
"asset_id": "38029384123",
"offer_id": "6912345678",
"amount": 45.99,
"amount_currency": "usd"
}Fields
| Field | Type | Description |
|---|---|---|
sign | string | Request signature (see Verifying Purchase Webhooks below) |
status | string | Purchase status: active, hold, canceled, failed, completed, reverted |
fail_reason | string | null | Failure / reversal reason (present when status is failed, canceled or reverted; on reverted, user_reverted or skinslink_reverted), see Purchase Status |
purchase_id | integer | Skinslink purchase ID |
trade_date | string | Purchase creation timestamp (ISO 8601) |
merchant_tx_id | string | Your order ID (the value you passed when creating the purchase) |
steam_id | string | User's Steam ID (64-bit, as string) |
asset_id | string | Catalogue item ID — the same value as item.id in Purchase Status, not a Steam asset ID. See Available Items (only present if available) |
offer_id | string | Steam trade offer ID (only present if available) |
amount | number | Purchase amount in USD |
amount_currency | string | Currency code (currently always usd) |
hold_end_date | string | null | ISO 8601 timestamp for when the hold ends. Set once the purchase enters hold and kept on later statuses. See Hold |
Purchase Status Flow
Webhooks are sent for the highlighted statuses only:
new ──→ pending ──→ active ✉ ──→ completed ✉
│ │ │
│ │ ├──→ hold ✉ ──→ completed ✉
│ │ │ │
│ │ │ └──→ reverted ✉
│ │ │
│ │ ├──→ failed ✉
│ │ │
│ │ └──→ canceled ✉
│ │
│ ├──→ failed ✉
│ │
│ └──→ canceled ✉
│
└──→ canceled ✉- active — trade offer created and sent to the user
- hold — item delivered and under Steam trade protection until
hold_end_date(CS2: 7 days; Rust: up to 1 hour), see Hold - completed — items successfully transferred
- failed — purchase failed (see
fail_reasonfor details) - canceled — purchase was canceled
- reverted — a previously held purchase has been reversed
TIP
Statuses new and pending do not trigger webhook notifications. Use polling if you need to track early status transitions.
Verifying Purchase Webhooks
The signature is a Base64-encoded SHA-256 hash of your purchase_id concatenated with your merchant secret:
sign = base64( sha256( purchase_id + secret ) )WARNING
purchase_id is an integer — convert it to a string before hashing.
Example (Python)
python
import hashlib, base64
expected = base64.b64encode(
hashlib.sha256((str(payload["purchase_id"]) + secret).encode()).digest()
).decode()
if expected != payload["sign"]:
return 403 # reject — not from SkinslinkExample (Node.js)
javascript
const crypto = require('crypto');
const expected = crypto
.createHash('sha256')
.update(String(payload.purchase_id) + secret)
.digest('base64');
if (expected !== payload.sign) {
return res.status(403).send('Invalid signature');
}Retry & Idempotency
Same retry behavior as deposit webhooks — exponential backoff on non-2xx responses. Deduplicate using merchant_tx_id + status.
Polling as Fallback
bash
curl "https://api.skinslink.com/api/v1/merchant/purchase/status?merchant_tx_id=order-12345" \
-H "X-Api-Key: your-api-key" \
-H "Accept: application/json"