WAXPEER | API FOR BUY/SELL/TRADE CS:GO p2p system 2.1.2

Connect CS: GO P2P to your website using WAXPEER. Your customers can sell CS: GO skins, and you can use the API to buy CS: GO skins on any steam trade url and get a delivery report. You can also use NPM Module to interact with api here or a swagger model

Provides some data like currency, balance and your id

/user

Parametrs

api string
Your WAXPEER API

GET Responses

{ "success": true, "user": { "wallet": 1000, "id": "11d6f117-1ad2-47e1-aca1-bcasdf9e37fa", "id64": "765611983383140000", "avatar": "https://www.gravatar.com/avatar/31609d41eb6ccb405b1984967693de76?d=identicon&r=pg&s=32", "name": "WAXPEER", "sell_fees": 0.95, "can_p2p": true, "eth_wallet": "0xf0739Fe870b8425fF82aD2443dB987ae63333B2e", "btc_wallet": "3DcadHTwfiu4ZGsFvKMm5oWhehkAKcBSk8", "ltc_wallet": "MP8GCLo3xsRbnb7aADB68W1QaruWKhsXu7", "tradelink": "https://steamcommunity.com/tradeoffer/new/?partner=378049039&token=XWpC4ZTT", "expresslink": "https://trade.wax.io/t/1234567/VxSFkUKS" } }

Get buy order trigger history

​/buy-order-history

Parametrs

api string
Your WAXPEER API
skip string
By default it will return 50 trades, use skip to get others

GET Responses

{ "success": true, "history": [ { "id": 0, "item_name": "string", "price": 0, "created": "2020-03-25T07:10:03.674Z", "last_updated": "2020-03-25T07:10:03.674Z" } ], "count": 2 }

Edit buy order

/edit-buy-order

Parametrs

api string
Your WAXPEER API
price string
New price or old price
id string
Buy order id
amount string
New amount or old amount

POST Responses

{ "success": true, "msg": "string", "id": 0, "amount": 0, "price": 0 }

Remove buy orders

/remove-buy-order

Parametrs

api string
Your WAXPEER API
id string
id buy orderand you can pass it like this id=123&id=345

GET Responses

{ "success": true, "msg": "string", "removed": 0 }

Fetch your buy orders

/buy-orders

Parametrs

api string
Your WAXPEER API
skip string
We will return 100 orders, use skip to get others
name string
Item name to filter

GET Responses

{ "success": true, "offers": [ { "id": 1, "name": "MP9 | Hypnotic (Minimal Wear)", "price": 1, "amount": 5, "filled": 2 } ], "count": 0 }

Create a buy order to auto purchase items. Will only work if you're p2p status is online

/create-buy-order

Parametrs

api string
Your WAXPEER API
name string
Name of item
amount number
Amount of items
price number
Max price that you want to buy item for(1$=1000)

POST Responses

{ "success": true, "msg": "Missing name", "filled": 0, "id": 0 }

Get recent purchases

/history

Parametrs

api string
Your WAXPEER API
partner string
Partner link from tradelink that you used to purchase an item or steamid32
token string
token used to purchase an item
skip number
By default it only fetched 50 items,use skip to get other trades

GET Responses

{ "success": true, "history": [ { "item_id": "string", "trade_id": 0, "token": "string", "partner": 0, "created": "2020-01-18T07:28:12.360Z", "send_until": "2020-01-18T07:28:12.360Z", "reason": "Seller failed to accept", "id": 0, "image": "string", "price": 0, "name": "string", "status": 0 } ] }

Connect steam api and waxpeer api

/set-my-steamapi

Parametrs

api string
Waxpeer API
steam_api string
Steam api

GET Responses

{ "success": true, "msg": "string" }

Remove all buy orders

/​remove-all-orders

Parametrs

api string
Your Waxpeer API

GET Responses

{ "success": true, "msg": "string", "count": 0 }

Fetch steam average price and other steam related info about all items

/get-steam-items

Parametrs

game string
730, 570
api string
Your Waxpeer API

GET Responses

{ "success": true, "items": [ { "name": "string", "average": 0, "type": "string", "collection": "string", "ru_name": "string" } ] }

Buy CSGO item and send to specific tradelink

​/buy-one-p2p

Parametrs

api string
Your Waxpeer API
project_id string
Your unique ID (string [50]), it will be possible to track your trade
item_id string
Item id from fetching our items
token string
Token parameter from steam tradelink
price number
Item price (1$=1000)
partner string
Partner parameter from steam tradelink

GET Responses

{ "success": true, "id": "1", "msg": "buy_csgo" }

Get lowest price and amount of items

​/prices

Parametrs

game string
(csgo,dota2)
min_price number
Min price
max_price number
Max price
search string
Item price (1$=1000)
partner string
Search by name ex: 'hardened'

GET Responses

{ "success": true, "items": [ { "min": 0, "name": "string", "count": "string" } ] }

Get recent purchases

​/history

Parametrs

api string
Your Waxpeer API
partner string
Partner link from tradelink that you used to purchase an item or steamid32
token string
token used to purchase an item
skip number
By default it only fetched 50 items,use skip to get other trades

GET Responses

{ "success": true, "history": [ { "item_id": "string", "trade_id": 0, "token": "string", "partner": 0, "created": "2020-01-18T07:28:12.360Z", "send_until": "2020-01-18T07:28:12.360Z", "reason": "Seller failed to accept", "id": 0, "image": "string", "price": 0, "name": "string", "status": 0 } ] }

Buy CSGO item and send to specific tradelink

/buy-one-p2p-name

Parametrs

api string
Your Waxpeer API
project_id string
Your unique ID (string [50]), it will be possible to track your trade
name string
Name of an item you can also pass without extension which will buy the cheapest available
token string
Token parameter from steam tradelink
price number
Item price (1$=1000)
partner string
Partner parameter from steam tradelink

GET Responses

{ "success": true, "id": "1", "msg": "buy_csgo" }

Fetch trades that need to be sent, we recomend sending a trade once. You should be making this request at least every minute in order to be online

​/ready-to-transfer-p2p

Parametrs

steam_api string
Your STEAM API

GET Responses

{ "success": true, "trades": [ { "id": 0, "costum_id": "string", "trade_id": 0, "status": "string", "trade_message": "string", "tradelink": "string", "done": true, "for_steamid32": "string", "for_steamid64": "string", "created": "2019-08-04 15:58:14.112-04", "send_until": "2019-08-17 06:33:49.93126-04", "items": [ { "id": 1, "item_id": "16449372549", "give_amount": 11650, "image": "string", "price": 12264, "game": "CSGO", "name": "Five-SeveN | Monkey Business (Minimal Wear)", "status": 1 } ] } ] }

Fetches items based on the item_id passed in query

​/check-availability

Parametrs

api string
Your Waxpeer API
item_id string
item_id and you can pass multiple item_id=1&item_id=2

GET Responses

{ "success": true, "data": [ { "name": "AWP | Golden Illusion (Battle-Scarred)", "price": 6152, "selling": true, "image": "https://files.opskins.media/file/vgo-img/item/awp-golden-illusion-battle-scarred-300.png", "item_id": "11626252" } ] }

Fetches items based on the game you pass as a query

/get-items-list

Parametrs

api string
Your Waxpeer API
auto number
Either 1 or 0. If you pass 1 then it will return items that will be instantly sent.
skip number
How many items to skip, to skip previous items Default value : 0
search string
Search items by name, ex: asiimov
brand string
Item category, ex: key,rifle,knife
order string
Ex: desc or ascs
order_by string
Ex: price,profit,deals
exterior string
Exterior: (FN, MW,FT,WW,BS)
search string
Search
by string
Only fetch items from certain users by passing UUID from their profile page
limit number
How many items we would like to fetch Default value : 50
sort string
How many items we would like to fetch Available values : profit, price, date, float, deals Default value : desc
max_price number
1$=1000
min_price number
1$=1000
discount number
If you pass this parameter for example 10, then it will show items with discount 10% or higher
minified number
If you pass this you will recieve additional info like float Available values : 1, 2 Default value : 0
game string
From which category would you like to fetch items from Available values : csgo, vgo, electronics, apparel, opskins shopping spree card, gfuel Default value : csgo

GET Responses

{ "success": true, "items": [ { "name": "AWP | Golden Illusion (Battle-Scarred)", "price": 6152, "selling": true, "image": "https://files.opskins.media/file/vgo-img/item/awp-golden-illusion-battle-scarred-300.png", "item_id": "11626252" } ] }

Fetch my inventory

​/fetch-my-inventory

Parametrs

api string
Your Waxpeer API

GET Responses

{ "success": false, "msg": "Inventory is closed" }

Edit price for listed items

​/edit-item

Parametrs

items
Array of items

POST Responses

{ "items": [ { "item_id": 141414144, "price": 1000 } ] }

200 code

{ "items": [ { "item_id": 141414144, "price": 1000 } ] }

List steam items from inventory

​/list-items-steam

Parametrs

item_id
Item_id from /get-my-inventory
apistring
Item_id from /get-my-inventory

POST Responses

{ "items": [ { "item_id": 141414144, "price": 1000 } ] }

200 code

{ "items": [ { "item_id": 141414144, "price": 1000 } ] }

Get listed steam items

​/list-items-steam

Parametrs

apistring
Item_id from /get-my-inventory

GET Responses

{ "success": true, "items": [ { "item_id": "16037911576", "price": "1000", "date": "2020-01-11T07:18:50.749Z", "position": "5", "name": "M4A1-S | Nitro (Factory New)", "steam_price": { "average": 30, "current": 28, "img": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRvCh1sHHUg8kdFNot6mxOUli16eZdTgTtIiwlYLdlvHyZ7jQkmkFv5cg3OySrN-gilK1-xdlYGmhOsbLJZ1RXbBn" } } ] }

Get items that you can list for sale

​/fetch-my-inventory

Parametrs

api string
Your Waxpeer API
skip number
Skip amount of items (Pagination) since default gives only an array with a length of 30 Default value : 0
game number
AppId from steam Default value : 730

GET Responses

{ "success": true, "items": [ { "item_id": "16037911576", "color": "D2D2D2", "type": "Sniper Rifle", "name": "AWP | Asiimov", "steam_price": { "average": 30, "current": 28, "img": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRvCh1sHHUg8kdFNot6mxOUli16eZdTgTtIiwlYLdlvHyZ7jQkmkFv5cg3OySrN-gilK1-xdlYGmhOsbLJZ1RXbBn" } } ], "count": 0, "msg": "noSteamid" }

Search multiple items by name

​/search-items-by-name

Parametrs

api string
Your Waxpeer API
names string
Multiple queries of name, so you can pass it like this name=AK-47 | Aquamarine Revenge (Factory New)&name=AK-47 | Aquamarine Revenge (Factory New)

GET Responses

{ "success": true, "items": [ { "name": "AWP | Golden Illusion (Battle-Scarred)", "price": 6152, "selling": true, "image": "https://files.opskins.media/file/vgo-img/item/awp-golden-illusion-battle-scarred-300.png", "item_id": "11626252" } ] }

Remove items

​/remove-items

Parametrs

api string
Your Waxpeer API
id number
Id of the item you can pass it like this id=123&id=345 to remove multiple

GET Responses

{ "success": true, "count": 1 }

Remove all listings

​/remove-all

Parametrs

api string
Your Waxpeer API

GET Responses

{ "success": true, "msg": "string", "count": 0 }

Check many steam trades

​/check-many-project-id

Parametrs

api string
Your Waxpeer API
id string
Your unique ID passed in /buy-one-p2p

GET Responses

{ "success": true, "trades": [ { "price": 1, "reason": "We couldn't validate your trade link, either your inventory is private or you can't trade", "trade_id": "3547735377", "for_steamid64": "76561198338314XXX", "id": "1", "name": "Nova | Sand Dune (Field-Tested)", "status": 6, "done": true, "send_until": 1566796475, "last_updated": 1566796131, "counter": 0 } ] }

Check many steam trades

​/check-many-steam

Parametrs

api string
Your Waxpeer API
id string
Id query so you can pass it like this id=123&id=345 recieved by calling /v1/buy-one-p2p

GET Responses

{ "success": true, "trades": [ { "price": 1, "reason": "We couldn't validate your trade link, either your inventory is private or you can't trade", "trade_id": "3547735377", "for_steamid64": "76561198338314XXX", "id": "1", "name": "Nova | Sand Dune (Field-Tested)", "status": 6, "done": true, "send_until": 1566796475, "last_updated": 1566796131, "counter": 0 } ] }

ItemsInventory

Parametrs

name string
price number
selling boolean
image string
item_id string

Example

{ name: "AWP | Golden Illusion (Battle-Scarred)" price: "6152" selling: true image: "https://files.opskins.media/file/vgo-img/item/awp-golden-illusion-battle-scarred-300.png" item_id: "11626252" }

SendP2PTrades

Parametrs

id string
ID of the trade in our system(You can't use it for now)
costum_id string
ID which you also can't use at the moment
trade_id number
Steam trade id of this transaction
status string
Status of the trade
5->Completed
6->Declined and Refunded
4->Trade Sent
1->Send the trade here
2-> Waiting for seller to confirm
0->waiting for user to buy more items do not send items at this status
trade_message string
Trade message which you need to include in trade
tradelink string
Steam tradelink of reciever
done boolean
Weather the trade is complete
for_steamid32 string
Reciever steamid32 which is a partner in steam tradelink
for_steamid64 string
Reciever steamid64
created string
Time when the trade was created example: 2019-08-04 15:58:14.112-04
send_until string
Time when the trade will expire example: 2019-08-17 06:33:49.93126-04
items array
look at next model

SteamItemsToSend

Parametrs

id number
Id of the item
item_id string
ItemID that you need to send via steam
give_amount string
Amount you will recieve for an item
image string
Image of an item
price number
Price at which you're selling an item
game string
name string
status number
Status from the trade

Example

{ id: 1 item_id: "16449372549" give_amount: 11650 image: "https://files.opskins.media/file/vgo-img/item/awp-golden-illusion-battle-scarred-300.png" price: "12264" game: "CSGO" name: "Five-SeveN | Monkey Business (Minimal Wear)" status: 1 }

SteamItemInventory

Parametrs

item_id string
color string
type string
name string
steam_price array
look at next model

Example

{ "item_id": "16037911576", "color": "D2D2D2", "type": "Sniper Rifle", "name": "AWP | Asiimov", "steam_price": [] }

SteamPrice

Parametrs

average number
Average steam price
current number
Latest steam price
img string

Example

{ "average": "30", "current": "28", "img": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRvCh1sHHUg8kdFNot6mxOUli16eZdTgTtIiwlYLdlvHyZ7jQkmkFv5cg3OySrN-gilK1-xdlYGmhOsbLJZ1RXbBn" }

User

Parametrs

wallet number
1$=1000
id string
Your waxpeer ID
id64 string
Your steamID 64
avatar string
Your avatar
name number
Your name
sell_fees string
Your cut, (1-sell_fee)*100. An example if you sell an item for 100$ you will get 95$ (100$ * 0.95)
can_p2p boolean
Weather you can list items to sell
eth_wallet string
Your primary ETH deposit
btc_wallet string
Your primary BTC deposit
ltc_wallet string
Your primary LTC wallet
tradelink string
Your tradelink
expresslink string
Your express trade url

Example

{ wallet: 1000, id: "11d6f117-1ad2-47e1-aca1-bcasdf9e37fa", id64: 765611983383140000, avatar: "https://www.gravatar.com/avatar/31609d41eb6ccb405b1984967693de76?d=identicon&r=pg&s=32", name: "WAXPEER", sell_fees: "0.95", can_p2p: "Five-SeveN | Monkey Business (Minimal Wear)", eth_wallet: "0xf0739Fe870b8425fF82aD2443dB987ae63333B2e", btc_wallet: "3DcadHTwfiu4ZGsFvKMm5oWhehkAKcBSk8", ltc_wallet: "MP8GCLo3xsRbnb7aADB68W1QaruWKhsXu7", tradelink: "https://steamcommunity.com/tradeoffer/new/?partner=378049039&token=XWpC4ZTT", expresslink: "https://trade.wax.io/t/1234567/VxSFkUKS", }

SteamWithdrawStatus

Parametrs

price number
1$=1000
reason string
If trade faild, we provide the reason
trade_id string
for_steamid64 string
id number
name string
status number
Status of the trade
5->Completed
6->Declined and Refunded
4->Trade Sent
1->Send the trade here
2-> Waiting for seller to confirm
0->waiting for user to buy more items do not send items at this status
done boolean
send_until number
last_updated number
counter number

Example

{ "price": "1", "reason": "We couldn't validate your trade link, either your inventory is private or you can't trade", "trade_id": "3547735377", "for_steamid64": "76561198338314XXX", "id": "1", "name": "Nova | Sand Dune (Field-Tested)", "status": 6, "done": true, "send_until": "1566796475", "last_updated": "1566796131", "counter": "0", }