General
General Information
Generate a signature
Deposits
Getting started
Create a deposit
Create a deposit without redirection (iframe)
Deposit notification (webhook)
Check an deposit status
Get a list of deposits
Deposits without 8-day waiting period (Steam Trade Protection)
Deposit approval with 8-day hold
Get failed webhook notifications
Deposits without SkinsBack UI
Create a deposit without SkinsBack UI (API)
Get user's inventory
Skins Withdraw
Skins price list
Skins search
Buy skin
Bulk buy skins
Get skin purchase info
Skin purchase history
Other
Get the project balance
Get the history of withdrawals and deposits of money
Get currencies and rates
Server status
Events real-time: websockets
Events real-time: webhooks
Events real-time: websockets
Getting real-time changes for purchased skins and balance changes.
To connect, you need to use WebSocket, passing the Project Client ID and Client Secret parameters via GET. The signature is constructed as follows:
signature = md5(projectClientId + clientSecret);
Example in JavaScript:
var projectClientId = '1';
var clientSecret = '123';
var signature = md5(projectClientId + clientSecret);
var ws = new WebSocket("wss://skinsback.com/ws/?shopid=" + projectClientId + "&signature=" + signature);
ws.onmessage = function(evt)
{
var jsonData = JSON.parse(evt.data);
console.log(jsonData.event); // event
console.log(jsonData.data); // data
};
setInterval(function() {
ws.send('ping');
}, 30 * 1000);
List of possible events
event
Data
Description
auth_success
--
Authorization successful
auth_failed
--
Authorization failed
buy_item
{
"event":"buy_item",
"data":{
"item":{
"id":"2516",
"name":"AK-47 | Safari Mesh (Minimal Wear)",
"price":"0.4",
"classid":"3940562910"
},
"buy_id":"65",
"offer_status":"creating_trade",
"balance_debited_sum":"29.93",
"custom_id": "123456"
}
}
Buying a skin
status_change
{
"event":"status_change",
"data":{
"item":{
"id":"2516"
},
"buy_id":"65",
"offer_status":"waiting_accept",
"error_reason":null,
"tradeofferid":"4176876858",
"custom_id": "123456"
}
}
Skin purchase status has changed
balance_change
{
"event":"buy_item",
"data":{
"item":{
"id":"2516",
"name":"AK-47 | Safari Mesh (Minimal Wear)",
"price":"0.4",
"classid":"3940562910"
},
"buy_id":"65",
"offer_status":"creating_trade",
"balance_debited_sum":"29.93",
"custom_id": "123456"
}
}
Project balance has changed