CS2DT饰品开放平台
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
首页
商户中心
首页
商户中心
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. Purchase Items
  • CS2DT Open Platform Access Guide
  • Response Сodes and Errors
  • About penalty for reversed orders / rollbacks
  • About adjusting the order status for reversed orders / rollbacks
  • API
    • Merchant and Steam accounts
      • Get your account balance
      • Start a Steam account check
      • Steam account status query
    • Market and Product search
      • CS2 Style Data
      • Get price and quantity by Style
      • Get the lowest price for all items
      • Get all active listings
      • Search Market listings
      • Item price query
      • Get all the filters info
      • Get all listings of an item
      • Check items status updates
      • Batch query of active listings by product ID
      • Get listing details by product ID
    • Purchase Items
      • Buy via product ID
        POST
      • Quick buy via market hash name
        POST
    • Manage Orders
      • Purchase orders history
      • Purchase orders details
      • Cancel a delayed purchase order
      • Report a reversed order
    • Callback
      • Webhook Notifications
    • Exchange rate
      • USD/CNY exchange rate
    • Websocket
      • How to Use WebSocket
      • Get WSS Address
    • Buy orders
      • Create a buy order
      • Cancel a buy order
      • Your buy orders list
      • Reference price for buy orders
      • Your buy order details
    • Sell your items
      • Selling Guide
      • List for sale
      • Cancel sell listings
      • Sell listing details
      • Reference price for sale
      • Sell listing update
      • Update order status
      • Check items on sale list
      • Check sell orders status
  • Schemas
    • OpenBuyResultDTO
    • WebApiRes«BigDecimal»
    • Object
    • WebApiRes«OpenBuyResultDTO»
    • NormalBuyParamV2DTO
    • QuickBuyParamV2DTO
    • UserAccountOpenDTO
    • WebApiRes«UserAccountOpenDTO»
    • WebApiRes«String»
    • SteamCheckCreateDTO
    • UserSteamInfo
    • CheckStatusInfo
    • GenericCheckSteamOutPut
    • WebApiRes«GenericCheckSteamOutPut»
    • OpenPartnerInfoDTO
    • WebApiRes«OpenPartnerInfoDTO»
    • SaveCallbackUrlDTO
    • InventorySlotDTO
    • ErrorCode
    • InventorySteamAccountDTO
    • WebApiRes«List«InventorySteamAccountDTO»»
    • WebApiRes«Boolean»
    • ItemAssetGemVO
    • ItemAssetStickerVO
    • ItemAssetClassInfoStyleVO
    • ItemAssetBundleVO
    • ItemAssetInfoVO
    • ItemTagInfoVO
    • SteamOfferListItemDTO
    • SteamOfferListInfoDTO
    • OfferDetailDTO
    • WebApiRes«OfferDetailDTO»
    • SendAssetsResponseDTO
    • WebApiRes«SendAssetsResponseDTO»
    • SteamAssetInfoDTO
    • SendAssetParamDTO
    • OrderUserInfo
    • SearcherOrderAssetListDTO
    • PageList«SearcherOrderAssetListDTO»
    • WebApiRes«PageList«SearcherOrderAssetListDTO»»
    • OpenItemInfo
    • OfferInfoDTO
    • OpenBuyerOrderDetail
    • WebApiRes«OpenBuyerOrderDetail»
    • OpenSellerOrderDetail
    • WebApiRes«OpenSellerOrderDetail»
    • ConfirmOrderParamDTO
    • OrderCancelParamDTO
    • Inspect3DResponse
    • WebApiRes«Inspect3DResponse»
    • PriceInfo
    • OpenProductSearchDTO
    • PageList«OpenProductSearchDTO»
    • WebApiRes«PageList«OpenProductSearchDTO»»
    • ItemPriceInfo
    • WebApiRes«List«ItemPriceInfo»»
    • ItemPriceInfoRequest
    • OpenItemPriceInfo
    • WebApiRes«OpenItemPriceInfo»
    • ItemSearchFilterValueItem
    • ItemSearchFilterItem
    • ItemSearchFilterDTO
    • WebApiRes«ItemSearchFilterDTO»
    • DeliveryStatsItem
    • DeliveryStatsInfoVO
    • SellerUserInfoVO
    • ProductSellListDTO
    • PageList«ProductSellListDTO»
    • WebApiRes«PageList«ProductSellListDTO»»
    • ProductInfoDTO
    • ProductInfoListDTO
    • WebApiRes«ProductInfoListDTO»
    • ProductInfoRequestDTO
    • WebApiRes«ProductSellListDTO»
    • SteamItemDTO
    • PageList«SteamItemDTO»
    • WebApiRes«PageList«SteamItemDTO»»
    • SteamItemAttrValueDTO
    • PageList«SteamItemAttrValueDTO»
    • WebApiRes«PageList«SteamItemAttrValueDTO»»
    • SteamItemAttrDTO
    • PageList«SteamItemAttrDTO»
    • WebApiRes«PageList«SteamItemAttrDTO»»
    • SteamItemTagsDTO
    • PageList«SteamItemTagsDTO»
    • WebApiRes«PageList«SteamItemTagsDTO»»
    • BaseItemInfo
    • Sticker
    • AssetInfo
    • OpenInventoryItem
    • OpenInventoryResponseDTO
    • WebApiRes«OpenInventoryResponseDTO»
    • OpenSaleSteamInfoDTO
    • ItemPriceDTO
    • OpenSaleDTO
    • OrderDeliverDTO
    • SteamInventorySlotVO
    • SteamAccountVO
    • ActivityTagVO
    • SellerSellListDTO
    • PageList«SellerSellListDTO»
    • WebApiRes«PageList«SellerSellListDTO»»
    • OnSaleAssetDTO
    • OnSaleFailedItem
    • ModifySellPriceResponseDTO
    • WebApiRes«ModifySellPriceResponseDTO»
    • SellPriceDTO
    • ModifyPriceParamDTO
    • OffSaleResponseDTO
    • WebApiRes«OffSaleResponseDTO»
    • OffSaleParamDTO
  1. Purchase Items

Buy via product ID

POST
https://openapi.cs2dt.com/v2/trade/v2/buy
Buy an active listing using its productId and optionally set price.
The purchase may return one of the error codes listed under Responses below. To receive purchase failure messages in English, you need to add a parameter named "language" with the value "en_US" in the request header. If this header is not included, failure messages may be returned in Chinese.
Responces:
CodeDescription
106505The user's Steam account cannot trade.
140005The Steam trade URL format is invalid.
106509The user's Steam inventory is private.
106310The user's Steam trade URL is invalid or expired.
106516Steam Family View is enabled and prevents the user from trading.
106517The user's Steam account is locked by Steam and cannot trade.
106006The user's Steam account is VAC banned and cannot trade.
70001The account balance is insufficient.
1367This Steam account has been temporarily restricted from making purchases because it repeatedly failed or refused to receive purchase orders during the past 12 hours. The restriction will be lifted after the time indicated in the response.
140024The merchant order is currently being processed. Wait for the callback or query the order again after one minute.
140014The merchant order number already exists.
1369The Steam account was identified as fraudulent and cannot make purchases.
105001The item has already been sold or removed.
1708The supplied price parameter is invalid.
1317No listed items meet the specified criteria.
1014452The item is no longer listed for sale.
103011The Steam account status is abnormal. Check the specific reason in errorData.
1454The item price exceeds the maximum purchase price.
1403The item price has changed. Submit a new purchase using the current price.
1207The item was repriced by the seller or purchased by another user. Retry the purchase or choose another seller.
100000A system error occurred.
1363The purchase failed because of a system error.
201445A purchase exception occurred, and the payment status is unknown. Wait for the callback or query the order details again after one minute.
1010324The trade URL is invalid. Ask the buyer to update it.

Request

Query Params

Body Params application/json

Example
{
    "outTradeNo": "string",
    "tradeUrl": "string",
    "productId": 0,
    "buyPrice": 0,
    "maxPrice": 0
}

Request Code 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 --globoff 'https://openapi.cs2dt.com/v2/trade/v2/buy?app-key=' \
--header 'Content-Type: application/json' \
--data '{
    "outTradeNo": "string",
    "tradeUrl": "string",
    "productId": 0,
    "buyPrice": 0,
    "maxPrice": 0
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
  "success": false,
  "data": {
    "buyPrice": 0.0,
    "orderId": "",
    "delivery": 0,
    "offerId": ""
  },
  "errorCode": 0,
  "errorMsg": "",
  "errorData": {}
}
Modified at 2026-08-04 03:29:28
Previous
Get listing details by product ID
Next
Quick buy via market hash name
Built with