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.
Solicitudcurl "https://skinsgateway.com/api/v1/status" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Status · Errores: 401, 429, 500
Your project
GET/v1/project
The project the credentials belong to: status, defaults, fees and balance.
Solicitudcurl "https://skinsgateway.com/api/v1/project" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Project · Errores: 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.
| Parámetro | Tipografía | Descripción |
currency query |
string |
Also return the balance converted to this display currency, e.g. eur. |
Solicitudcurl "https://skinsgateway.com/api/v1/balance" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Balance · Errores: 401, 429, 500, 422
Balance history
GET/v1/balance/history
Every movement on the project balance, newest first.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/balance/history" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
Solicitudcurl "https://skinsgateway.com/api/v1/currencies" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
early_releaserequired | EarlyReleaseRules | |
withdrawalsrequired | object | |
Solicitudcurl -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}}'
Devuelve 200 Project · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
order_idrequired | string | Your reference, unique per project and mode (1–128 printable characters; no spaces, quotes or < >). |
currency | string | Display and amount currency. Default: project setting. |
game | string | Inventory opened first. Default: project setting. One of: cs2, dota2, rust. |
trade_url | string | The customer's trade link, when you have it (skips that step). |
steam_id | string | SteamID64, instead of trade_url. |
trade_token | string | With steam_id. |
min_amount | number | Lowest total the customer may send (in currency). |
max_amount | number | Highest total the customer may send (in currency). |
success_url | string | https URL after paying. Default: project setting. |
fail_url | string | https URL after a failed or cancelled payment. |
result_url | string | https URL for this deposit's webhooks. Default: project webhook URL. |
metadata | object | Up to 20 flat key/value pairs, returned in every response and webhook. |
expires_in | integer | Seconds until an unused link expires (300–604800). |
customer | string | cus_… 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_outcome | string | Test mode only: ignored with a live secret. |
Solicitudcurl -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"}}'
Devuelve 201 Deposit · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
order_idrequired | string | Your unique reference. |
gamerequired | string | One of: cs2, dota2, rust. |
trade_url | string | The customer's trade link (or steam_id + trade_token). |
steam_id | string | |
trade_token | string | |
asset_idsrequired | string[] | Asset ids from GET /inventory. |
currency | string | |
result_url | string | |
metadata | object | |
customer | string | cus_…: credit the net to this customer's wallet once the trade is final. |
Solicitudcurl -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"]}'
Devuelve 201 Deposit · Errores: 401, 429, 500, 409, 422, 502, 503
List deposits
GET/v1/deposits
Deposits of this project and mode, newest first.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/deposits" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The deposit id. |
Solicitudcurl "https://skinsgateway.com/api/v1/deposits/dep_5f0c2a9e7b1d4c3a8e6f0b12" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Deposit · Errores: 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).
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The deposit id. |
Solicitudcurl -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"
Devuelve 200 Deposit · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/inventory" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Inventory · Errores: 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.
| Parámetro | Tipografía | Descripción |
game query |
string |
Default cs2. cs2, dota2, rust |
Solicitudcurl "https://skinsgateway.com/api/v1/market/items" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 MarketItemList · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/market/search?game=cs2" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 MarketOfferList · Errores: 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).
| Campo del cuerpo | Tipografía | Descripción |
custom_idrequired | string | Your unique reference; repeating it returns the same purchase. |
trade_urlrequired | string | The customer's trade link. |
max_pricerequired | number | The most you pay, USD. |
item_id | integer | An exact item from /market/search. |
name | string | Instead of item_id: buy the cheapest offer with this market hash name. |
game | string | With name. One of: cs2, dota2, rust. |
delivery_types | integer[] | With name: [1] instant, [2] slow, [1,2] both. |
test_outcome | string | Test mode only. One of: accepted, waiting_accept, failed, unknown. |
Solicitudcurl -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}'
Devuelve 201 Purchase · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
trade_urlrequired | string | |
itemsrequired | object[] | |
Solicitudcurl -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"}]}'
Devuelve 201 PurchaseBatch · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
idsrequired | string[] | |
custom_idsrequired | string[] | |
Solicitudcurl -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"]}'
Devuelve 200 PurchaseCancel · Errores: 401, 429, 500, 422
List purchases
GET/v1/market/purchases
Purchases of this project and mode, newest first.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/market/purchases" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 401, 429, 500, 422
Retrieve a purchase
GET/v1/market/purchases/{id}
One purchase by its pur_… id, refreshed while still in progress.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The purchase id. |
Solicitudcurl "https://skinsgateway.com/api/v1/market/purchases/pur_8a2b4c6d8e0f1a2b3c4d5e6f" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Purchase · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
custom_idrequired | string | Your unique reference; repeating it returns the same withdrawal. |
budget_usdrequired | number | Most the user may spend; held on your balance now. |
user_reference | string | Your user id, shown on the dashboard. |
game | string | One of: cs2, dota2, rust. |
trade_url | string | Optional; the user can enter it on the page. |
return_url | string | |
expires_in | integer | Seconds the link stays open. |
metadata | object | |
customer | string | cus_…: take the budget from this customer's wallet (402 insufficient_customer_funds); everything unspent goes back to it. |
Solicitudcurl -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"}'
Devuelve 201 Withdrawal · Errores: 401, 429, 500, 402, 409, 422
List withdrawals
GET/v1/withdrawals
Withdrawals of this project and mode, newest first.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/withdrawals" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 401, 429, 500, 422
Retrieve a withdrawal
GET/v1/withdrawals/{id}
One withdrawal with every purchase it made.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The withdrawal id. |
Solicitudcurl "https://skinsgateway.com/api/v1/withdrawals/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Withdrawal · Errores: 401, 429, 500, 404
Cancel a withdrawal
POST/v1/withdrawals/{id}/cancel
Before the user confirmed: closes the link and releases the budget.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The withdrawal id. |
Solicitudcurl -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"
Devuelve 200 Withdrawal · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
quantityrequired | integer | How many codes (1 to PRIZE_CODE_MAX_PER_BATCH). |
kind | string | value = the winner picks any skin up to value_usd; skin = one named skin. One of: value, skin. |
value_usd | number | Value per code in USD (kind value). |
game | string | kind skin: the game. One of: cs2, dota2, rust. |
name | string | kind skin: the market name of the skin. |
expires_in_days | integer | How long the codes work (default and maximum in your project settings). |
label | string | Your own name for the batch. |
Solicitudcurl -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"}'
Devuelve 201 PrizeCodeBatch · Errores: 401, 429, 500, 402, 422
List batches
GET/v1/codes
Prize code batches of this project and mode, newest first, without the codes.
| Parámetro | Tipografía | Descripción |
page query |
integer |
Page number, from 1. |
limit query |
integer |
Items per page, 1–100. |
Solicitudcurl "https://skinsgateway.com/api/v1/codes" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The batch id. |
Solicitudcurl "https://skinsgateway.com/api/v1/codes/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 PrizeCodeBatch · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The batch id. |
Solicitudcurl -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"
Devuelve 200 PrizeCodeBatch · Errores: 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.
| Campo del cuerpo | Tipografía | Descripción |
referencerequired | string | Your own id for this user, unique per project and mode (1–128 printable characters; no spaces, quotes or < >). |
trade_url | string | Their Steam trade link (used for deposits and skin withdrawals). |
steam_id | string | SteamID64, when you have no trade link yet. |
metadata | object | Up to 20 flat key/value pairs. |
Solicitudcurl -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"}}'
Devuelve 201 Customer · Errores: 401, 429, 500, 403, 409, 422
List customers
GET/v1/customers
Customers of this project and mode, newest first.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/customers" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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).
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
Solicitudcurl "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Customer · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
| Campo del cuerpo | Tipografía | Descripción |
referencerequired | string | |
trade_urlrequired | string | Empty string removes it. |
steam_idrequired | string | |
metadatarequired | object | Replaces the metadata. |
Solicitudcurl -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"}'
Devuelve 200 Customer · Errores: 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).
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
Solicitudcurl -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"
Devuelve 200 Customer · Errores: 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).
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
Solicitudcurl -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"
Devuelve 200 Customer · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
| Campo del cuerpo | Tipografía | Descripción |
directionrequired | string | credit = your balance → the wallet, debit = the wallet → your balance. One of: credit, debit. |
amount_usdrequired | number | 0.01 or more. |
referencerequired | string | Your unique id for this movement (1–128 printable characters); repeating it is safe. |
description | string | Shown in the wallet history (up to 255 characters). |
metadata | object | |
Solicitudcurl -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"}'
Devuelve 201 CustomerTransaction · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/customers/whd_1a2b3c4d5e6f7a8b9c0d1e2f/transactions" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The customer id. |
| Campo del cuerpo | Tipografía | Descripción |
return_urlrequired | string | https URL of the "Back" button. |
expires_inrequired | integer | Seconds the link works (300–86400, default 3600). |
allow_depositrequired | boolean | Show "Deposit skins" (default true). |
allow_withdrawrequired | boolean | Show "Withdraw skins" (default true). |
Solicitudcurl -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}'
Devuelve 201 CustomerSession · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/webhooks" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
| Parámetro | Tipografía | Descripción |
page query |
integer |
Page number, from 1. |
limit query |
integer |
Items per page, 1–100. |
Solicitudcurl "https://skinsgateway.com/api/v1/webhooks/failed" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 object · Errores: 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.
Solicitudcurl -X POST "https://skinsgateway.com/api/v1/webhooks/test" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 WebhookDelivery · Errores: 401, 429, 500, 422
Resend a delivery
POST/v1/webhooks/{id}/resend
Sends a delivery again right away.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The delivery id. |
Solicitudcurl -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"
Devuelve 200 WebhookDelivery · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl "https://skinsgateway.com/api/v1/events" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 EventList · Errores: 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.
| Parámetro | Tipografía | Descripción |
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. |
Solicitudcurl -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"
Devuelve 200 text/event-stream · Errores: 401, 429, 500, 404, 422
Retrieve an event
GET/v1/events/{id}
One event by its evt_… id.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The event id. |
Solicitudcurl "https://skinsgateway.com/api/v1/events/evt_0b1c2d3e4f5a6b7c8d9e0f1a" \
-H "X-Client-Id: $SKINSGATEWAY_CLIENT_ID" \
-H "X-Client-Secret: $SKINSGATEWAY_CLIENT_SECRET"
Devuelve 200 Event · Errores: 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).
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The test deposit id. |
| Campo del cuerpo | Tipografía | Descripción |
outcomerequired | string | One of: pending, in_hold, hold_approved, success, fail, hold_returned, expired. |
Solicitudcurl -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"}'
Devuelve 200 Deposit · Errores: 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.
| Parámetro | Tipografía | Descripción |
idrequired path |
string |
The test purchase id. |
| Campo del cuerpo | Tipografía | Descripción |
outcomerequired | string | One of: waiting_accept, accepted, canceled, timeout, trade_create_error, rollback_user, rollback_supplier, failed, reconcile. |
Solicitudcurl -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"}'
Devuelve 200 Purchase · Errores: 401, 429, 500, 403, 404, 409, 422