[Purchase] Buy Items Using Product ID

By passing [product id] and [maxPrice] to buy a specific item under a HashName.

Rate limit is 10 requests per second.

The seller has 12 hours to ship the item, while the buyer can cancel orders that remain in [Waiting for Seller to Confirm Shipment] status after 1 hour.

The buyer has 24 hours to receive items.

The current interface request frequency is 10 times per second

HTTP request

POST /market/open_api/request/?action=merchant.buy.product.buy HTTP/1.1
Content-Type: application/json
Content-Length: 262
Host: localhost:8080

{
  "productId" : "2024110315493001001705856",
  "apiKey" : "ft8CxQvvOGxpXVJcMhgZ",
  "externalTradeNo":"7020241105113720987465",
  "maxPrice":"1.00",
  "steamTradeUrl":"https://steamcommunity.com/tradeoffer/new/?partner=1090033018&token=ft8CxQvvOGxpXVJcMhgZ"
} 

Table 4. Request fields

Path
Type
Description

apiKey

String

api key

productId

String

product id

externalTradeNo

String

Third party merchant order number,Maximum length 30

steamTradeUrl

String

The recipient’s steam trade link.

maxPrice

String

The highest price you are willing to pay

HTTP response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 181

{
    "code": 0,
    "message": "SUCCESS",
    "data": {
        "orderId": "2020241009113451521796",
        "externalTradeNo": "2020241009113451521796",
        "payAmount": "31.00"
    }
}

Table 5. Response fields

Path
Type
Description

code

Number

Response code.

message

String

Response message

data

Object

Actual data.

data.orderId

String

Order id.

data.externalTradeNo

String

Third party merchant order number.

data.payAmount

String

Payment amount.

Last updated