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

Normal Buy

POST
/merchant/trade/v2/normal-buy
POST

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
productId
integer 
required
product id, get it from sell list
buyPrice
number  | null 
optional
buy price, if price modified the purchase will faild
Example
{
    "outTradeNo": "string",
    "tradeUrl": "string",
    "productId": 0,
    "buyPrice": 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/normal-buy?app-key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "outTradeNo": "string",
    "tradeUrl": "string",
    "productId": 0,
    "buyPrice": 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:17:02
Previous
Quick Buy
Next
Query Item Sell
Built with