Référence de l'API SkinsGateway

Chaque endpoint, paramètre, objet et événement, générés depuis la même description que notre fichier OpenAPI. Filtre, copie les requêtes ou importe-les dans tes outils.

Authentification

URL de base https://skinsgateway.com/api/v1. Chaque requête porte l'identifiant client et le secret de votre projet.

ModeEn-têtes
En ligneX-Client-Id: sg_… X-Client-Secret: sk_live_…
Mode testX-Client-Id: sg_… X-Client-Secret: sk_test_…

Les erreurs reviennent sous la forme {"error": {"code", "message", "param"}} avec le statut HTTP correspondant. Les temps sont en secondes unix, les montants en _usd en dollars US.

General

Project, balance, currencies and the payment network status.

Payment network status

GET/v1/status

Whether deposits can be taken right now. Check it before offering skins at checkout. Test mode: always available.

Demande
curl "https://skinsgateway.com/api/v1/status" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Status · Erreurs: 401, 429, 500

Your project

GET/v1/project

The project the credentials belong to: status, defaults, fees and balance.

Demande
curl "https://skinsgateway.com/api/v1/project" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Project · Erreurs: 401, 429, 500

Balance

GET/v1/balance

Available and reserved balance in USD (reserved = held for purchases and payouts in progress). Test mode: the test balance.

ParamètreTypoDescription
currency query string Also return the balance converted to this display currency, e.g. eur.
Demande
curl "https://skinsgateway.com/api/v1/balance" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Balance · Erreurs: 401, 429, 500, 422

Balance history

GET/v1/balance/history

Every movement on the project balance, newest first.

ParamètreTypoDescription
type query string Only entries of this type. deposit, deposit_reversal, reserve, release, purchase, purchase_refund, adjustment, payout, referral, referral_reversal, topup
from query integer Created at or after (unix seconds).
to query integer Created at or before (unix seconds).
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/balance/history" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Currencies

GET/v1/currencies

Currencies accepted in currency fields, with their rate per 1 USD. Balances are always kept in USD.

Demande
curl "https://skinsgateway.com/api/v1/currencies" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500

Update risk settings

POST/v1/project/settings

Automatic early release rules and the withdrawal approval switch. Every key is optional. An early-released credit stays reserved until the original Trade Protection end, then joins your available balance.

Champ du corpsTypoDescription
early_releaserequiredEarlyReleaseRules
withdrawalsrequiredobject
Demande
curl -X POST "https://skinsgateway.com/api/v1/project/settings" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"early_release":{"auto":true,"min_trust":"high","max_amount_usd":100,"max_open_usd":1000},"withdrawals":{"require_approval":true}}'

Renvoie 200 Project · Erreurs: 401, 429, 500, 422

Deposits

Accept skins: hosted checkout, embedded checkout or your own item picker.

Create a deposit (hosted checkout)

POST/v1/deposits

Creates a payment and returns a checkout link: send the customer to pay_url or load embed_url in an iframe. Idempotent by order_id: repeating the call with the same order_id and the same parameters returns the first deposit with HTTP 200 and the header Idempotent-Replayed: true (safe to retry after a timeout); the same order_id with other parameters returns 409 duplicate_order_id.

Champ du corpsTypoDescription
order_idrequiredstringYour reference, unique per project and mode (1–128 printable characters; no spaces, quotes or < >).
currencystringDisplay and amount currency. Default: project setting.
gamestringInventory opened first. Default: project setting. One of: cs2, dota2, rust.
trade_urlstringThe customer's trade link, when you have it (skips that step).
steam_idstringSteamID64, instead of trade_url.
trade_tokenstringWith steam_id.
min_amountnumberLowest total the customer may send (in currency).
max_amountnumberHighest total the customer may send (in currency).
success_urlstringhttps URL after paying. Default: project setting.
fail_urlstringhttps URL after a failed or cancelled payment.
result_urlstringhttps URL for this deposit's webhooks. Default: project webhook URL.
metadataobjectUp to 20 flat key/value pairs, returned in every response and webhook.
expires_inintegerSeconds until an unused link expires (300–604800).
customerstringcus_… of one of your customers: the net goes to their wallet once the trade is final. Their trade link fills in when you send none.
test_outcomestringTest mode only: ignored with a live secret.
Demande
curl -X POST "https://skinsgateway.com/api/v1/deposits" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"order_id":"order-10293","currency":"usd","min_amount":5,"success_url":"https://shop.example/orders/10293","metadata":{"user_id":"42"}}'

Renvoie 201 Deposit · Erreurs: 401, 429, 500, 409, 422

Create a direct deposit

POST/v1/deposits/direct

For your own item picker: load the inventory (GET /inventory), let the customer choose, send the asset ids. The trade offer is sent at once. A repeat with the same order_id and parameters returns the first deposit with HTTP 200 and Idempotent-Replayed: true (asset_ids are not compared); other parameters return 409 duplicate_order_id. While the deposit has no trade offer yet (the first attempt was refused), the same order_id starts a new attempt with the items of the new call. An item that is not in the inventory returns 422 items_not_accepted.

Champ du corpsTypoDescription
order_idrequiredstringYour unique reference.
gamerequiredstringOne of: cs2, dota2, rust.
trade_urlstringThe customer's trade link (or steam_id + trade_token).
steam_idstring
trade_tokenstring
asset_idsrequiredstring[]Asset ids from GET /inventory.
currencystring
result_urlstring
metadataobject
customerstringcus_…: credit the net to this customer's wallet once the trade is final.
Demande
curl -X POST "https://skinsgateway.com/api/v1/deposits/direct" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"order_id":"order-10294","game":"cs2","trade_url":"https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12","asset_ids":["38291029381"]}'

Renvoie 201 Deposit · Erreurs: 401, 429, 500, 409, 422, 502, 503

List deposits

GET/v1/deposits

Deposits of this project and mode, newest first.

ParamètreTypoDescription
status query string Only deposits in this status. created, pending, in_hold, hold_approved, success, fail, hold_returned, expired
order_id query string Find a deposit by your order id.
steam_id query string Deposits from one Steam account.
from query integer Created at or after (unix seconds).
to query integer Created at or before (unix seconds).
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/deposits" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a deposit

GET/v1/deposits/{id}

One deposit by its dep_… id. Deposits still in flight are refreshed when you read them.

ParamètreTypoDescription
idrequired path string The deposit id.
Demande
curl "https://skinsgateway.com/api/v1/deposits/dep_5f0c2a9e7b1d4c3a8e6f0b12" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Deposit · Erreurs: 401, 429, 500, 404

Release a held deposit

POST/v1/deposits/{id}/approve

Credits an in_hold deposit now instead of after Steam Trade Protection. You take the risk: a reversed trade is taken back from your balance (deposit.hold_returned).

ParamètreTypoDescription
idrequired path string The deposit id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/deposits/dep_5f0c2a9e7b1d4c3a8e6f0b12/approve" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Deposit · Erreurs: 401, 429, 500, 404, 409

Customer inventory

GET/v1/inventory

A customer's inventory with prices, for direct deposits. price_with_bonus includes your project's bonus multiplier. Test mode: a simulated inventory of real items.

ParamètreTypoDescription
trade_url query string The customer's Steam trade link (or steam_id + trade_token).
steam_id query string SteamID64, with trade_token instead of trade_url.
trade_token query string The 8-character token from the trade link.
game query string Default: project setting. cs2, dota2, rust
currency query string Default: project setting.
Demande
curl "https://skinsgateway.com/api/v1/inventory" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Inventory · Erreurs: 401, 429, 500, 422, 502, 503

Market

Buy skins with your balance and send them to your customers.

Market price list

GET/v1/market/items

Every skin available to buy, grouped by name with the lowest price and the number of offers. Cached for 2 minutes.

ParamètreTypoDescription
game query string Default cs2. cs2, dota2, rust
Demande
curl "https://skinsgateway.com/api/v1/market/items" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 MarketItemList · Erreurs: 401, 429, 500, 422

Search the market

GET/v1/market/search

Individual items to buy, by (partial) name or with filters. Buy one with POST /market/purchases and its item_id.

ParamètreTypoDescription
gamerequired query string cs2, dota2 or rust. cs2, dota2, rust
name query string At least 3 characters, words in any order.
names[] query string[] Exact market hash names, up to 100.
price_from query number USD (filter mode).
price_to query number USD (filter mode).
float_from query number CS2 float (filter mode).
float_to query number CS2 float (filter mode).
only_unlocked query integer 1 = only items without a trade lock (filter mode). 0, 1
sort_by query string Filter mode sorting. price, -price, float, -float
delivery_types[] query integer[] 1 instant, 2 slow (default both).
limit query integer Name mode paging.
offset query integer Name mode paging.
cursor query string Filter mode paging: next_cursor of the previous page.
Demande
curl "https://skinsgateway.com/api/v1/market/search?game=cs2" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 MarketOfferList · Erreurs: 401, 429, 500, 422, 502, 503

Buy a skin

POST/v1/market/purchases

Buys one skin with your project balance and sends it to a trade link. max_price (plus the market fee) is held, the real price charged, the rest released; failed deliveries are refunded. A repeated custom_id returns the existing purchase (200).

Champ du corpsTypoDescription
custom_idrequiredstringYour unique reference; repeating it returns the same purchase.
trade_urlrequiredstringThe customer's trade link.
max_pricerequirednumberThe most you pay, USD.
item_idintegerAn exact item from /market/search.
namestringInstead of item_id: buy the cheapest offer with this market hash name.
gamestringWith name. One of: cs2, dota2, rust.
delivery_typesinteger[]With name: [1] instant, [2] slow, [1,2] both.
test_outcomestringTest mode only. One of: accepted, waiting_accept, failed, unknown.
Demande
curl -X POST "https://skinsgateway.com/api/v1/market/purchases" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"custom_id":"withdraw-5512","trade_url":"https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12","max_price":45,"item_id":482910233}'

Renvoie 201 Purchase · Erreurs: 401, 429, 500, 402, 422, 502, 503

Buy several skins

POST/v1/market/purchases/batch

Up to 50 items (by item_id) for one trade link in one call.

Champ du corpsTypoDescription
trade_urlrequiredstring
itemsrequiredobject[]
Demande
curl -X POST "https://skinsgateway.com/api/v1/market/purchases/batch" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"trade_url":"https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12","items":[{"item_id":482910233,"max_price":45,"custom_id":"r-1"}]}'

Renvoie 201 PurchaseBatch · Erreurs: 401, 429, 500, 402, 422

Cancel purchases

POST/v1/market/purchases/cancel

Cancels purchases still waiting for a trade and at least 30 minutes old. Cancelled purchases are refunded.

Champ du corpsTypoDescription
idsrequiredstring[]
custom_idsrequiredstring[]
Demande
curl -X POST "https://skinsgateway.com/api/v1/market/purchases/cancel" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"custom_ids":["withdraw-5512"]}'

Renvoie 200 PurchaseCancel · Erreurs: 401, 429, 500, 422

List purchases

GET/v1/market/purchases

Purchases of this project and mode, newest first.

ParamètreTypoDescription
status query string Only purchases in this status. pending, unknown, creating_trade, waiting_accept, accepted, canceled, timeout, invalid_trade_token, user_not_tradable, trade_create_error, rollback_user, rollback_supplier, failed
custom_id query string Find a purchase by your custom id.
from query integer Created at or after (unix seconds).
to query integer Created at or before (unix seconds).
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/market/purchases" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a purchase

GET/v1/market/purchases/{id}

One purchase by its pur_… id, refreshed while still in progress.

ParamètreTypoDescription
idrequired path string The purchase id.
Demande
curl "https://skinsgateway.com/api/v1/market/purchases/pur_8a2b4c6d8e0f1a2b3c4d5e6f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Purchase · Erreurs: 401, 429, 500, 404

Payouts

Read the payouts requested in the dashboard.

List payouts

GET/v1/payouts

Payouts from this project, newest first. Payouts are requested in the dashboard (two-factor code each time); the API is read-only.

ParamètreTypoDescription
status query string pending, paid or rejected. pending, paid, rejected
from query integer Created at or after (unix seconds).
to query integer Created at or before (unix seconds).
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/payouts" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a payout

GET/v1/payouts/{id}

One payout by its po_… id.

ParamètreTypoDescription
idrequired path string The payout id.
Demande
curl "https://skinsgateway.com/api/v1/payouts/po_3c9d1e7a5b2f4a6c8e0d2b4f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Payout · Erreurs: 401, 429, 500, 404

Withdrawals

Let your users cash out in skins on a hosted page: you set the budget, they pick, we deliver.

Create a skin withdrawal

POST/v1/withdrawals

Holds budget_usd on your balance and returns a link where your user picks skins up to that budget. With approval on, we call your webhook (withdrawal.approval_requested) before buying. Unspent budget comes back when it completes, fails, expires or is canceled.

Champ du corpsTypoDescription
custom_idrequiredstringYour unique reference; repeating it returns the same withdrawal.
budget_usdrequirednumberMost the user may spend; held on your balance now.
user_referencestringYour user id, shown on the dashboard.
gamestringOne of: cs2, dota2, rust.
trade_urlstringOptional; the user can enter it on the page.
return_urlstring
expires_inintegerSeconds the link stays open.
metadataobject
customerstringcus_…: take the budget from this customer's wallet (402 insufficient_customer_funds); everything unspent goes back to it.
Demande
curl -X POST "https://skinsgateway.com/api/v1/withdrawals" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"custom_id":"cashout-5531","budget_usd":25,"user_reference":"user-42","game":"cs2","return_url":"https://shop.example/account"}'

Renvoie 201 Withdrawal · Erreurs: 401, 429, 500, 402, 409, 422

List withdrawals

GET/v1/withdrawals

Withdrawals of this project and mode, newest first.

ParamètreTypoDescription
status query string Only this status. created, processing, delivering, completed, failed, expired, canceled
custom_id query string Find by your reference or user reference.
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/withdrawals" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a withdrawal

GET/v1/withdrawals/{id}

One withdrawal with every purchase it made.

ParamètreTypoDescription
idrequired path string The withdrawal id.
Demande
curl "https://skinsgateway.com/api/v1/withdrawals/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Withdrawal · Erreurs: 401, 429, 500, 404

Cancel a withdrawal

POST/v1/withdrawals/{id}/cancel

Before the user confirmed: closes the link and releases the budget.

ParamètreTypoDescription
idrequired path string The withdrawal id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/withdrawals/whd_1a2b3c4d5e6f7a8b9c0d1e2f/cancel" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Withdrawal · Erreurs: 401, 429, 500, 404, 409

Prize codes

Codes that turn into skins (tournaments, giveaways): the value is held on your balance when you create them.

Create a batch of prize codes

POST/v1/codes

Creates quantity codes worth value_usd each (kind value), or for one skin (kind skin with game + name). The batch total is held on your balance at once; 402 insufficient_funds when it does not fit. The plain codes are in this answer only (store them now). Send an Idempotency-Key to make retries safe.

Champ du corpsTypoDescription
quantityrequiredintegerHow many codes (1 to PRIZE_CODE_MAX_PER_BATCH).
kindstringvalue = the winner picks any skin up to value_usd; skin = one named skin. One of: value, skin.
value_usdnumberValue per code in USD (kind value).
gamestringkind skin: the game. One of: cs2, dota2, rust.
namestringkind skin: the market name of the skin.
expires_in_daysintegerHow long the codes work (default and maximum in your project settings).
labelstringYour own name for the batch.
Demande
curl -X POST "https://skinsgateway.com/api/v1/codes" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"quantity":50,"value_usd":10,"expires_in_days":90,"label":"Spring cup 2027"}'

Renvoie 201 PrizeCodeBatch · Erreurs: 401, 429, 500, 402, 422

List batches

GET/v1/codes

Prize code batches of this project and mode, newest first, without the codes.

ParamètreTypoDescription
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/codes" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a batch

GET/v1/codes/{id}

One batch with every code masked to its last 4 characters, its status and the purchase it became.

ParamètreTypoDescription
idrequired path string The batch id.
Demande
curl "https://skinsgateway.com/api/v1/codes/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 PrizeCodeBatch · Erreurs: 401, 429, 500, 404

Void a batch

POST/v1/codes/{id}/void

Stops every unused code of the batch and releases what is still held back to your available balance. Codes already redeemed are not affected.

ParamètreTypoDescription
idrequired path string The batch id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/codes/whd_1a2b3c4d5e6f7a8b9c0d1e2f/void" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 PrizeCodeBatch · Erreurs: 401, 429, 500, 404, 409

Customers

Wallets for your own users: a USD balance per user, filled with skins, spent on your site, cashed out in skins. Always held for them on your balance.

Create a customer

POST/v1/customers

One of your users with a USD wallet. reference is your own user id, unique per project and mode: repeating it returns the existing customer (200). The trade link is used for their deposits and skin withdrawals.

Champ du corpsTypoDescription
referencerequiredstringYour own id for this user, unique per project and mode (1–128 printable characters; no spaces, quotes or < >).
trade_urlstringTheir Steam trade link (used for deposits and skin withdrawals).
steam_idstringSteamID64, when you have no trade link yet.
metadataobjectUp to 20 flat key/value pairs.
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"user-42","trade_url":"https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12","metadata":{"tier":"vip"}}'

Renvoie 201 Customer · Erreurs: 401, 429, 500, 403, 409, 422

List customers

GET/v1/customers

Customers of this project and mode, newest first.

ParamètreTypoDescription
reference query string Find a customer by your reference (or their cus_… id).
steam_id query string Customers with this SteamID64.
status query string active or frozen. active, frozen
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/customers" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Retrieve a customer

GET/v1/customers/{id}

One customer with their wallet balance (balance_usd) and deposits still waiting for Steam Trade Protection to end (pending_usd, not spendable yet).

ParamètreTypoDescription
idrequired path string The customer id.
Demande
curl "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Customer · Erreurs: 401, 429, 500, 404

Update a customer

POST/v1/customers/{id}

Change the reference, the trade link (an empty trade_url removes it) or the metadata (replaced as a whole). Keys you leave out stay as they are.

ParamètreTypoDescription
idrequired path string The customer id.
Champ du corpsTypoDescription
referencerequiredstring
trade_urlrequiredstringEmpty string removes it.
steam_idrequiredstring
metadatarequiredobjectReplaces the metadata.
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"trade_url":"https://steamcommunity.com/tradeoffer/new/?partner=39734272&token=AbCdEf12"}'

Renvoie 200 Customer · Erreurs: 401, 429, 500, 404, 409, 422

Freeze a wallet

POST/v1/customers/{id}/freeze

Money still comes in (deposits, credits); debits and skin withdrawals are refused until you unfreeze it. A wallet that goes below zero (a returned deposit) is frozen automatically (customer.frozen).

ParamètreTypoDescription
idrequired path string The customer id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/freeze" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Customer · Erreurs: 401, 429, 500, 404

Unfreeze a wallet

POST/v1/customers/{id}/unfreeze

Lifts your freeze. A wallet below zero stays frozen until a credit brings it back to zero or more (409 below_zero).

ParamètreTypoDescription
idrequired path string The customer id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/unfreeze" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Customer · Erreurs: 401, 429, 500, 404, 409

Move money in or out of a wallet

POST/v1/customers/{id}/transfers

credit moves amount_usd from your available balance into the wallet (a win, a refund, a bonus; 402 insufficient_funds when your balance is short). debit moves it from the wallet to your available balance (a bet, a purchase on your site; 402 insufficient_customer_funds, 409 customer_frozen). reference is your unique id for the movement: repeating it returns the same transaction (200), never a second one.

ParamètreTypoDescription
idrequired path string The customer id.
Champ du corpsTypoDescription
directionrequiredstringcredit = your balance → the wallet, debit = the wallet → your balance. One of: credit, debit.
amount_usdrequirednumber0.01 or more.
referencerequiredstringYour unique id for this movement (1–128 printable characters); repeating it is safe.
descriptionstringShown in the wallet history (up to 255 characters).
metadataobject
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/transfers" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"direction":"debit","amount_usd":2.5,"reference":"bet-99812","description":"Case: Spring Collection"}'

Renvoie 201 CustomerTransaction · Erreurs: 401, 429, 500, 402, 404, 409, 422

Wallet history

GET/v1/customers/{id}/transactions

Every movement of one wallet, newest first: deposits, returned deposits, credits, debits, skin withdrawals and what came back from them.

ParamètreTypoDescription
idrequired path string The customer id.
type query string Only this type. deposit, deposit_reversal, credit, debit, withdrawal, withdrawal_return, adjustment
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/transactions" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 404, 422

Open the hosted wallet page

POST/v1/customers/{id}/session

A short-lived link to a wallet page with your name on it (skinsgateway.com/pay/c/…, embeddable with ?embed=1): balance, deposit skins, withdraw skins, history. Create a new one each time your user opens their wallet.

ParamètreTypoDescription
idrequired path string The customer id.
Champ du corpsTypoDescription
return_urlrequiredstringhttps URL of the "Back" button.
expires_inrequiredintegerSeconds the link works (300–86400, default 3600).
allow_depositrequiredbooleanShow "Deposit skins" (default true).
allow_withdrawrequiredbooleanShow "Withdraw skins" (default true).
Demande
curl -X POST "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/session" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"return_url":"https://shop.example/account","expires_in":3600}'

Renvoie 201 CustomerSession · Erreurs: 401, 429, 500, 404, 422

Webhooks

Deliveries we sent to your webhook URL: list, failed ones, test, resend.

List deliveries

GET/v1/webhooks

Webhook deliveries we sent to this project, newest first.

ParamètreTypoDescription
status query string Only deliveries in this status. pending, delivered, failed
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/webhooks" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

List failed deliveries

GET/v1/webhooks/failed

Deliveries that gave up after every retry (about two days), newest first. Fix your endpoint, then resend them.

ParamètreTypoDescription
page query integer Page number, from 1.
limit query integer Items per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/webhooks/failed" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 object · Erreurs: 401, 429, 500, 422

Send a test event

POST/v1/webhooks/test

Sends a signed test.ping to the project webhook URL and returns the delivery.

Demande
curl -X POST "https://skinsgateway.com/api/v1/webhooks/test" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 WebhookDelivery · Erreurs: 401, 429, 500, 422

Resend a delivery

POST/v1/webhooks/{id}/resend

Sends a delivery again right away.

ParamètreTypoDescription
idrequired path string The delivery id.
Demande
curl -X POST "https://skinsgateway.com/api/v1/webhooks/whd_1a2b3c4d5e6f7a8b9c0d1e2f/resend" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 WebhookDelivery · Erreurs: 401, 429, 500, 404

Events

The event log behind the webhooks: catch up, poll or stream live (Server-Sent Events).

List events

GET/v1/events

Every event of this project and mode, oldest first after a cursor: the same events and data the webhooks carry, also when no webhook URL is set. Kept 30 days. Pass the last id you processed as after (next_after of the previous page) to catch up.

ParamètreTypoDescription
after query string Only events after this event id (exclusive).
since query integer Only events created at or after this unix time.
type query string Only these event types, comma separated (deposit.success,purchase.accepted).
limit query integer Events per page, 1–100.
Demande
curl "https://skinsgateway.com/api/v1/events" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 EventList · Erreurs: 401, 429, 500, 404, 422

Stream events live

GET/v1/events/streamtext/event-stream

Server-Sent Events: every new event as it happens (id: evt_…, event: <type>, data: the event object). One connection stays open about 25 seconds with heartbeat comments, then closes; reconnect with the Last-Event-ID header (EventSource does this for you) and nothing is missed. Without a cursor the stream starts with the next new event.

ParamètreTypoDescription
Last-Event-ID header string Resume after this event id (sent by EventSource on reconnect).
after query string Resume after this event id (when you cannot set headers).
type query string Only these event types, comma separated.
Demande
curl -N "https://skinsgateway.com/api/v1/events/stream" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Accept: text/event-stream"

Renvoie 200 text/event-stream · Erreurs: 401, 429, 500, 404, 422

Retrieve an event

GET/v1/events/{id}

One event by its evt_… id.

ParamètreTypoDescription
idrequired path string The event id.
Demande
curl "https://skinsgateway.com/api/v1/events/evt_0b1c2d3e4f5a6b7c8d9e0f1a" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"

Renvoie 200 Event · Erreurs: 401, 429, 500, 404

Test mode

Move test deposits and purchases to any outcome (test secret only).

Simulate a deposit outcome

POST/v1/test/deposits/{id}/simulate

Test secret only (403 test_mode_only with a live secret). Moves a test deposit as if the customer and Steam acted: a created deposit first gets sample items sent, then the outcome runs through the live status code (same webhooks and events, test balance).

ParamètreTypoDescription
idrequired path string The test deposit id.
Champ du corpsTypoDescription
outcomerequiredstringOne of: pending, in_hold, hold_approved, success, fail, hold_returned, expired.
Demande
curl -X POST "https://skinsgateway.com/api/v1/test/deposits/dep_5f0c2a9e7b1d4c3a8e6f0b12/simulate" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"success"}'

Renvoie 200 Deposit · Erreurs: 401, 429, 500, 403, 404, 409, 422

Simulate a purchase outcome

POST/v1/test/purchases/{id}/simulate

Test secret only. Moves a test purchase to an outcome through the live settle / fail / refund code.

ParamètreTypoDescription
idrequired path string The test purchase id.
Champ du corpsTypoDescription
outcomerequiredstringOne of: waiting_accept, accepted, canceled, timeout, trade_create_error, rollback_user, rollback_supplier, failed, reconcile.
Demande
curl -X POST "https://skinsgateway.com/api/v1/test/purchases/pur_8a2b4c6d8e0f1a2b3c4d5e6f/simulate" \
  -H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
  -H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"outcome":"accepted"}'

Renvoie 200 Purchase · Erreurs: 401, 429, 500, 403, 404, 409, 422

Événements webhook

Chaque événement est signé, envoyé à ton URL de webhook et conservé dans ton journal d'événements. Les données sont l'objet concerné.

ÉvénementQuand
deposit.pendingA trade offer was sent to the customer.
deposit.in_holdThe customer accepted; Steam Trade Protection applies. Not credited yet.
deposit.hold_approvedA held deposit was released early and credited.
deposit.successThe deposit completed and was credited.
deposit.failThe trade failed, was declined or timed out.
deposit.hold_returnedItems were returned during protection; any early credit was reversed.
deposit.expiredThe checkout link expired unused.
purchase.creating_tradeA market purchase was made; the trade is being created.
purchase.waiting_acceptThe trade offer was sent to the customer.
purchase.acceptedThe skin was delivered.
purchase.failedThe purchase failed or was cancelled; the money was refunded.
purchase.rolled_backThe delivered skin was returned; the money was refunded.
payout.pendingA payout was requested; the amount moved from available to reserved.
payout.paidThe payout was sent.
payout.rejectedThe payout was not sent; the amount is back on your available balance.
balance.topup_creditedA crypto top-up arrived and was added to your balance (data: the top-up).
withdrawal.approval_requestedSynchronous, only with approval on: answer 200 {"approve": true} within the timeout to buy the picked skins.
withdrawal.completedAt least one skin was delivered; unspent budget is back on your balance.
withdrawal.failedNothing was delivered; the whole budget is back.
withdrawal.expiredThe link was never used; the budget is back.
withdrawal.canceledYou canceled it before the user confirmed; the budget is back.
customer.balance_updatedA customer wallet changed (data: the customer and the transaction): a final deposit, a returned deposit, a transfer, a skin withdrawal or what came back from it.
customer.frozenA customer wallet was frozen (by you, by us, or automatically when a returned deposit took it below zero).
test.pingSent by POST /webhooks/test and the dashboard test button.
Livraison
POST https://your-site.example/webhooks/skinsgateway
SkinsGateway-Event: deposit.success
SkinsGateway-Delivery: whd_1a2b3c4d5e6f7a8b9c0d1e2f
SkinsGateway-Signature: t=1793635200,v1=5f2b…

{"id":"whd_1a2b3c4d5e6f7a8b9c0d1e2f","event":"deposit.success","event_id":"evt_0b1c2d3e4f5a6b7c8d9e0f1a","created":1793635200,"livemode":true,"data":{"id":"dep_…","object":"deposit","status":"success"}}

Objets

Error

ChampTypoDescription
errorobject

Status

ChampTypoDescription
objectstringOne of: status.
livemodeboolean
deposits_availableboolean
reasonstring | nullWhy deposits are unavailable. One of: maintenance, no_capacity, null.
checked_atinteger

Project

ChampTypoDescription
objectstringOne of: project.
livemodeboolean
idstringprj_…
namestring
statusstring
livebooleanCan take live payments.
websitestring | null
default_currencystring
default_gamestringOne of: cs2, dota2, rust.
bonus_multipliernumber
webhook_urlstring | null
success_urlstring | null
fail_urlstring | null
feesobject
balanceobject
early_releaseEarlyReleaseRules
withdrawalsobject

EarlyReleaseRules

ChampTypoDescription
autobooleanRelease held deposits automatically when they match the rules.
min_truststringOne of: medium, high.
max_amount_usdnumberLargest single deposit released automatically.
max_open_usdnumberMost early-released value waiting for its hold end at once.

ProjectSettings

ChampTypoDescription
early_releaseEarlyReleaseRules
withdrawalsobject

CreateWithdrawal

ChampTypoDescription
custom_idstringYour unique reference; repeating it returns the same withdrawal.
budget_usdnumberMost the user may spend; held on your balance now.
user_referencestringYour user id, shown on the dashboard.
gamestringOne of: cs2, dota2, rust.
trade_urlstringOptional; the user can enter it on the page.
return_urlstring
expires_inintegerSeconds the link stays open.
metadataobject
customerstringcus_…: take the budget from this customer's wallet (402 insufficient_customer_funds); everything unspent goes back to it.

Withdrawal

ChampTypoDescription
idstringwdr_…
objectstringOne of: withdrawal.
livemodeboolean
custom_idstring
user_referencestring | null
customer_idstring | nullcus_… when paid from a customer wallet.
statusstringOne of: created, processing, delivering, completed, failed, expired, canceled.
urlstringSend your user here.
embed_urlstringFor an iframe or the pay button script.
gamestring | null
steam_idstring | null
budget_usdnumber
spent_usdnumber
held_usdnumber
fail_reasonstring | null
pickedobject[]
itemsobject[]
return_urlstring | null
metadataobject
expires_atinteger | null
created_atinteger
updated_atinteger
completed_atinteger | null

CreateCustomer

ChampTypoDescription
referencestringYour own id for this user, unique per project and mode (1–128 printable characters; no spaces, quotes or < >).
trade_urlstringTheir Steam trade link (used for deposits and skin withdrawals).
steam_idstringSteamID64, when you have no trade link yet.
metadataobjectUp to 20 flat key/value pairs.

UpdateCustomer

ChampTypoDescription
referencestring
trade_urlstringEmpty string removes it.
steam_idstring
metadataobjectReplaces the metadata.

Customer

ChampTypoDescription
idstringcus_…
objectstringOne of: customer.
livemodeboolean
referencestringYour id for this user.
steam_idstring | null
trade_urlstring | null
statusstringOne of: active, frozen.
frozen_reasonstring | nullWhy it is frozen. One of: negative, merchant, staff, null.
balance_usdnumberWallet balance (can be below zero only after a returned deposit).
pending_usdnumberDeposits released early that join the wallet once Steam Trade Protection is over.
metadataobject
created_atinteger
updated_atinteger

CreateCustomerTransfer

ChampTypoDescription
directionstringcredit = your balance → the wallet, debit = the wallet → your balance. One of: credit, debit.
amount_usdnumber0.01 or more.
referencestringYour unique id for this movement (1–128 printable characters); repeating it is safe.
descriptionstringShown in the wallet history (up to 255 characters).
metadataobject

CustomerTransaction

ChampTypoDescription
idstringctx_…
objectstringOne of: customer_transaction.
livemodeboolean
customerstringcus_…
typestringOne of: deposit, deposit_reversal, credit, debit, withdrawal, withdrawal_return, adjustment.
amount_usdnumberChange to the wallet (+ in, − out).
balance_after_usdnumber
referencestring | nullYour transfer reference.
descriptionstring
depositstring | nulldep_… behind a deposit / returned deposit.
withdrawalstring | nullwdr_… behind a skin withdrawal.
metadataobject
created_atinteger

CreateCustomerSession

ChampTypoDescription
return_urlstringhttps URL of the "Back" button.
expires_inintegerSeconds the link works (300–86400, default 3600).
allow_depositbooleanShow "Deposit skins" (default true).
allow_withdrawbooleanShow "Withdraw skins" (default true).

CustomerSession

ChampTypoDescription
idstringcss_…
objectstringOne of: customer_session.
livemodeboolean
customerstringcus_…
urlstringSend your user here.
embed_urlstringFor an iframe or the pay button script.
return_urlstring | null
allowobject
expires_atinteger
created_atinteger

CustomerEvent

ChampTypoDescription
customerCustomer
transactionanyThe movement behind customer.balance_updated (null for customer.frozen).

Balance

ChampTypoDescription
objectstringOne of: balance.
livemodeboolean
currencystringOne of: usd.
availablenumber
reservednumber
totalnumber
convertedobject | nullThe balance in the requested display currency.

BalanceEntry

ChampTypoDescription
idinteger
objectstringOne of: balance_entry.
livemodeboolean
typestringOne of: deposit, deposit_reversal, reserve, release, purchase, purchase_refund, adjustment, payout, referral, referral_reversal, topup.
amount_usdnumberSigned change of the available balance.
balance_after_usdnumber
reserved_after_usdnumber
referenceobject | nullThe object behind the entry.
descriptionstring | null
created_atinteger

Currency

ChampTypoDescription
codestring
per_usdnumber | null

CreateDeposit

ChampTypoDescription
order_idstringYour reference, unique per project and mode (1–128 printable characters; no spaces, quotes or < >).
currencystringDisplay and amount currency. Default: project setting.
gamestringInventory opened first. Default: project setting. One of: cs2, dota2, rust.
trade_urlstringThe customer's trade link, when you have it (skips that step).
steam_idstringSteamID64, instead of trade_url.
trade_tokenstringWith steam_id.
min_amountnumberLowest total the customer may send (in currency).
max_amountnumberHighest total the customer may send (in currency).
success_urlstringhttps URL after paying. Default: project setting.
fail_urlstringhttps URL after a failed or cancelled payment.
result_urlstringhttps URL for this deposit's webhooks. Default: project webhook URL.
metadataobjectUp to 20 flat key/value pairs, returned in every response and webhook.
expires_inintegerSeconds until an unused link expires (300–604800).
customerstringcus_… of one of your customers: the net goes to their wallet once the trade is final. Their trade link fills in when you send none.
test_outcomestringTest mode only: ignored with a live secret.

CreateDirectDeposit

ChampTypoDescription
order_idstringYour unique reference.
gamestringOne of: cs2, dota2, rust.
trade_urlstringThe customer's trade link (or steam_id + trade_token).
steam_idstring
trade_tokenstring
asset_idsstring[]Asset ids from GET /inventory.
currencystring
result_urlstring
metadataobject
customerstringcus_…: credit the net to this customer's wallet once the trade is final.

Deposit

ChampTypoDescription
idstringdep_…
objectstringOne of: deposit.
livemodeboolean
order_idstring
statusstringOne of: created, pending, in_hold, hold_approved, success, fail, hold_returned, expired.
flowstringOne of: hosted, direct.
pay_urlstring | nullHosted checkout link (hosted flow).
embed_urlstring | nullThe checkout for an iframe.
gamestring | null
steam_idstring | null
currencystring
amountnumber | nullValue of the items in currency.
amount_with_bonusnumber | nullWhat the customer is shown, with your bonus multiplier.
bonus_multipliernumber
amount_usdnumber | null
fee_usdnumber | null
net_usdnumber | nullCredited to your balance.
creditedboolean
min_amountnumber | null
max_amountnumber | null
required_amountnumber | nullThe amount you asked for (min_amount, in currency), or null when there is no minimum.
overpayment_usdnumber | nullValue received above required_amount, in USD. 0 when the customer sent exactly the minimum, null without a minimum or before the items are valued.
fulfillment_allowedbooleanTrue only when the deposit is final (success) and credited. Never true while Steam Trade Protection can still return the items: deliver the order when this is true.
trade_offer_idstring | null
trade_offer_urlstring | null
trade_offer_expires_atinteger | nullWhen the Steam trade offer runs out.
sender_namestring | nullName of the Steam account the offer comes from. Show it so the customer can check the offer.
sender_steam_idstring | null
fail_reasonstring | null
hold_untilinteger | nullEnd of Steam Trade Protection (in_hold).
user_riskobject | nullRisk signals of the customer while in_hold.
customerobject | nullThe paying Steam account and its trust level across SkinsGateway.
customer_idstring | nullcus_… when the deposit goes to one of your customers' wallets.
early_releaseobject | nullSet when the deposit was released before Trade Protection ended. The credit stays reserved until available_at.
itemsobject[]
metadataobject
expires_atinteger | null
created_atinteger
updated_atinteger
completed_atinteger | null

Inventory

ChampTypoDescription
objectstringOne of: inventory.
livemodeboolean
gamestringOne of: cs2, dota2, rust.
currencystring
steam_idstring
itemsobject[]
total_availablenumber

MarketItemList

ChampTypoDescription
objectstringOne of: list.
livemodeboolean
gamestringOne of: cs2, dota2, rust.
updated_atinteger
dataobject[]

MarketOffer

ChampTypoDescription
item_idinteger | null
namestring
price_usdnumber
classidstring | null
delivery_typeinteger | null1 instant, 2 slow.
floatstring | null
paint_indexinteger | null
paint_seedinteger | null
name_tagstring | null
stickersobject[]
inspect_linkstring | null

MarketOfferList

ChampTypoDescription
objectstringOne of: list.
livemodeboolean
dataMarketOffer[]
has_moreboolean
next_cursorstring | null

CreatePurchase

ChampTypoDescription
custom_idstringYour unique reference; repeating it returns the same purchase.
trade_urlstringThe customer's trade link.
max_pricenumberThe most you pay, USD.
item_idintegerAn exact item from /market/search.
namestringInstead of item_id: buy the cheapest offer with this market hash name.
gamestringWith name. One of: cs2, dota2, rust.
delivery_typesinteger[]With name: [1] instant, [2] slow, [1,2] both.
test_outcomestringTest mode only. One of: accepted, waiting_accept, failed, unknown.

CreatePurchaseBatch

ChampTypoDescription
trade_urlstring
itemsobject[]

CancelPurchases

ChampTypoDescription
idsstring[]
custom_idsstring[]

Purchase

ChampTypoDescription
idstringpur_…
objectstringOne of: purchase.
livemodeboolean
custom_idstring
statusstringOne of: pending, unknown, creating_trade, waiting_accept, accepted, canceled, timeout, invalid_trade_token, user_not_tradable, trade_create_error, rollback_user, rollback_supplier, failed.
gamestring
item_namestring | null
item_idinteger | null
classidstring | null
delivery_typeinteger | null
steam_idstring | null
max_price_usdnumber
price_usdnumber | null
fee_usdnumber | null
charged_usdnumber | null
refunded_usdnumber
trade_offer_idstring | null
error_reasonstring | null
in_holdboolean
in_hold_untilinteger | null
created_atinteger
updated_atinteger
withdrawalstring | nullwdr_… when the purchase belongs to a hosted skin withdrawal.

PurchaseBatch

ChampTypoDescription
objectstringOne of: batch.
livemodeboolean
purchasesPurchase[]
unavailableobject[]

PurchaseCancel

ChampTypoDescription
objectstringOne of: cancel.
livemodeboolean
purchasesPurchase[]
unavailableobjectPurchase id => reason it could not be cancelled.

Payout

ChampTypoDescription
idstringpo_…
objectstringOne of: payout.
statusstringOne of: pending, paid, rejected.
projectstring | null
methodstringOne of: crypto_link, crypto, sepa, ach, paypal, revolut, skrill, payoneer, blik, zen.
destinationobject
amount_usdnumber
fee_usdnumber
net_usdnumber
referencestring | nullPaid only: bank reference or transaction hash.
claimablebooleanCrypto payout link only: true while the claim link is open. Claim it from the email or the dashboard.
reasonstring | nullRejected only.
created_atinteger
completed_atinteger | null

CreatePrizeCodes

ChampTypoDescription
quantityintegerHow many codes (1 to PRIZE_CODE_MAX_PER_BATCH).
kindstringvalue = the winner picks any skin up to value_usd; skin = one named skin. One of: value, skin.
value_usdnumberValue per code in USD (kind value).
gamestringkind skin: the game. One of: cs2, dota2, rust.
namestringkind skin: the market name of the skin.
expires_in_daysintegerHow long the codes work (default and maximum in your project settings).
labelstringYour own name for the batch.

PrizeCodeBatch

ChampTypoDescription
objectstringOne of: prize_code_batch.
idstringpcb_…
livemodeboolean
projectstring
labelstring | null
kindstringOne of: value, skin.
value_usdnumber
skinobject | nullkind skin only: game and name.
quantityinteger
statusstringactive, voided or expired.
countsobjectCodes per status (unused, reserved, redeemed, expired, voided).
held_usdnumberStill held on your balance for unused codes.
expires_atinteger
createdinteger
codesany[]Create answer: the plain codes (only time they are shown). Retrieve: each code masked with id, last4, status, purchase, redeemed_at.

Topup

ChampTypoDescription
objectstringOne of: topup.
idstringmtp_…
livemodeboolean
projectstring
statusstringpending, credited or expired.
amount_usdnumber
paid_usdnumber | null
credited_usdnumber | null
coinstring | null
createdinteger
paid_atinteger | null

WebhookDelivery

ChampTypoDescription
idstringwhd_…
objectstringOne of: webhook_delivery.
livemodeboolean
eventstringOne of: deposit.pending, deposit.in_hold, deposit.hold_approved, deposit.success, deposit.fail, deposit.hold_returned, deposit.expired, purchase.creating_trade, purchase.waiting_accept, purchase.accepted, purchase.failed, purchase.rolled_back, payout.pending, payout.paid, payout.rejected, balance.topup_credited, withdrawal.approval_requested, withdrawal.completed, withdrawal.failed, withdrawal.expired, withdrawal.canceled, customer.balance_updated, customer.frozen, test.ping.
urlstring
statusstringOne of: pending, delivered, failed.
attemptsinteger
last_http_codeinteger | null
last_errorstring | null
next_attempt_atinteger | null
delivered_atinteger | null
created_atinteger

Event

ChampTypoDescription
idstringevt_…
objectstringOne of: event.
livemodeboolean
typestringOne of: deposit.pending, deposit.in_hold, deposit.hold_approved, deposit.success, deposit.fail, deposit.hold_returned, deposit.expired, purchase.creating_trade, purchase.waiting_accept, purchase.accepted, purchase.failed, purchase.rolled_back, payout.pending, payout.paid, payout.rejected, balance.topup_credited, withdrawal.approval_requested, withdrawal.completed, withdrawal.failed, withdrawal.expired, withdrawal.canceled, customer.balance_updated, customer.frozen, test.ping.
createdinteger
dataobjectThe object the event is about (deposit, purchase, payout), the same as the webhook's data.
webhookobject | nullThe webhook delivery that carried it (none without a webhook URL).

EventList

ChampTypoDescription
objectstringOne of: list.
livemodeboolean
dataEvent[]
has_moreboolean
next_afterstring | nullPass as after to read on (the last id of this page).

WebhookEnvelope

ChampTypoDescription
idstringThe delivery id, whd_….
eventstringOne of: deposit.pending, deposit.in_hold, deposit.hold_approved, deposit.success, deposit.fail, deposit.hold_returned, deposit.expired, purchase.creating_trade, purchase.waiting_accept, purchase.accepted, purchase.failed, purchase.rolled_back, payout.pending, payout.paid, payout.rejected, balance.topup_credited, withdrawal.approval_requested, withdrawal.completed, withdrawal.failed, withdrawal.expired, withdrawal.canceled, customer.balance_updated, customer.frozen, test.ping.
event_idstringThe event id, evt_… (GET /events/{id}); use it to de-duplicate with the event log.
createdinteger
livemodeboolean
dataobjectDeposit, Purchase or Payout object (test.ping: {message, project}).