Run in Apifox
If you only want to buy skins through item or steam MarketHashName, you can use this endpoint. if you don't set lowPrice and delivery, the default action is choose the price below your maxPrice, if exists auto deliver skin, it will purchase the lowest auto deliver skin, if not, it will choose the lowest price one
Request Add parameter in query app-key
Example: app-key: ********************
Body Params application/json
outTradeNo, must unique per request
the trade url to receive the steam offer
steam item id in c5 platform
marketHashName
string | null
optional The maximum acceptable purchase price.
deliver method, 1 manual, 2 auto
buy item for lowest price
{
"outTradeNo" : "string" ,
"tradeUrl" : "string" ,
"device" : 0 ,
"itemId" : "string" ,
"appId" : 0 ,
"marketHashName" : "string" ,
"maxPrice" : 0 ,
"delivery" : 0 ,
"lowPrice" : 0
}
Request samples curl --location --request POST 'http://openapi.c5game.com//merchant/trade/v2/quick-buy?app-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"outTradeNo": "string",
"tradeUrl": "string",
"device": 0,
"itemId": "string",
"appId": 0,
"marketHashName": "string",
"maxPrice": 0,
"delivery": 0,
"lowPrice": 0
}'
Responses application/json Generate Code
com.xingchao.steam.trade.api.dto.buy.OpenBuyV2ResultDTO
orderAssetId
integer | null
optional
pay status: 0:paying 1: pay success 2: pay failed
orderStatus
integer | null
optional errorCodeStr
string | null
optional like the errorCode,but this property is string
{
"success" : false ,
"data" : {
"actualPay" : 0.0 ,
"delivery" : 0 ,
"orderAssetId" : 0 ,
"orderId" : 0 ,
"payStatus" : 0 ,
"orderStatus" : 0 ,
"requestId" : 0 ,
"offerId" : ""
} ,
"errorCode" : 0 ,
"errorMsg" : "" ,
"errorData" : { } ,
"errorCodeStr" : ""
}
Modified at 2023-11-14 12:14:28