C5GAME OPEN
  1. Buy
C5GAME OPEN
  • Access Guide
  • Account
    • Account Balance
      GET
    • User Reala Steam List
      GET
  • Sell
    • Sell List
      GET
    • Modify Product Price
      POST
    • Off Sell
      POST
    • Sell Steam Items
      POST
    • Price Query
      POST
  • Order
    • Buyer Order Detail
      GET
    • Buyer Orders
      POST
    • Seller Orders
      POST
  • Buy
    • Quick Buy
      POST
    • Normal Buy
      POST
  • Market
    • Query Item Sell
      POST
  • inventory
  1. Buy

Quick Buy

POST
/merchant/trade/v2/quick-buy
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

Authorization
Add parameter in query
app-key
Example:
app-key: ********************
Query Params
app-key
string 
optional
Default:
{{app-key}}
Body Params application/json
outTradeNo
string 
required
outTradeNo, must unique per request
tradeUrl
string 
required
the trade url to receive the steam offer
device
integer  | null 
optional
itemId
string  | null 
optional
steam item id in c5 platform
appId
integer  | null 
optional
appId
marketHashName
string  | null 
optional
steam marketHashName
maxPrice
number 
required
The maximum acceptable purchase price.
delivery
integer  | null 
optional
deliver method, 1 manual, 2 auto
lowPrice
integer  | null 
optional
buy item for lowest price
Example
{
    "outTradeNo": "string",
    "tradeUrl": "string",
    "device": 0,
    "itemId": "string",
    "appId": 0,
    "marketHashName": "string",
    "maxPrice": 0,
    "delivery": 0,
    "lowPrice": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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

🟢200Success
application/json
Body
购买结果
success
boolean  | null 
optional
Is request successful
data
object 
optional
com.xingchao.steam.trade.api.dto.buy.OpenBuyV2ResultDTO
actualPay
number  | null 
optional
actual pay price
delivery
integer  | null 
optional
Delivery type
orderAssetId
integer  | null 
optional
The asset id in order
orderId
integer  | null 
optional
Order id
payStatus
integer  | null 
optional
pay status: 0:paying 1: pay success 2: pay failed
orderStatus
integer  | null 
optional
order Asset status
requestId
integer  | null 
optional
request id
errorCode
integer  | null 
optional
Error code
errorMsg
string  | null 
optional
Error message
errorData
object (Object) 
optional
java.lang.Object
errorCodeStr
string  | null 
optional
like the errorCode,but this property is string
Example
{
  "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
Previous
Seller Orders
Next
Normal Buy
Built with