CS2DT饰品开放平台
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
首页商户中心
首页商户中心
🇺🇸 English
  • 🇨🇳简体中文
  • 🇺🇸 English
  1. 首页
  • Response codes
  • CS2DT Open Platform Access Guide
  • v1
    • user related interface
      • Steam account status query Copy
      • User balance query
      • Create Steam account status check
      • Steam account status query
    • market prodcut related interface
      • CS2 Style Data
      • get full Items
      • Market Search
      • item price query
      • all the filters query
      • item for sale list query
      • Get the sales status of the product
      • Batch query of products on sale by product ID
      • Get the sales details of a product
    • purchase related interface
      • buy item
      • quick buy item
    • order related interface
      • buyer order list v2
      • buyer order list
      • buyer order detail
      • buyer cancel order
    • callback related
      • Callback Notification Service Description
    • exchange rate
      • USD/CNY exchange rate
    • websocket
      • How to Use WebSocket
      • Get WSS Address
  1. 首页

CS2DT Open Platform Access Guide

Update Notes#

20240430#

First Edition
Merchant access backend address
https://admin.cs2dt.com

Prerequisites#

The access party needs to prepare the following information:
Get CS2DT account: If you iterate the purchase function later, you need to pre-charge your account balance to complete the purchase of accessories. You need to check the balance and recharge through the interface to ensure that the account balance is sufficient to avoid affecting the use.
app-key: All interfaces require you to fill in your app-key in the query parameter. You can view the app-key in the personal center-api management.
Usage example: https://openapi.cs2dt.com/v1/user/v1/t-coin/balance?app-key=appkey-example

Request#

When calling the open platform interface, it means sending a request to our service address. The request needs to be constructed according to the interface address, request method, and request parameters. Otherwise, the call will not be successful. An example of a request to query the balance is as follows:

Service Address#

The existing service access addresses of the CS2DT open platform are as follows
Service Areadomain nameRemark
Domestic and overseashttps://openapi.cs2dt.comOpen platform OpenAPI access address

Communication#

All interfaces provided communicate through HTTPS, providing a highly secure communication channel.

Request method#

According to the specific requirements of each interface, select GET or POST to initiate the request.

Request param#

When initiating a request, the request body may contain two types of parameters: common request parameters and interface-specific business parameters.
The common request parameter is what each interface needs to include, which is currently the app-key in the query parameter.
The interface-specific service parameters are specific to each interface. For details, refer to the parameter description of each interface.

Character Encoding#

The request and return results are encoded using the UTF-8 character set.

Signature Mechanism#

Currently None

Returning#

The API request returns the following result:
Successful call:
{
    "success": true,
    "data": {
        "userId": 0000000000000000000,
        "name": "usdt_money",
        "data": "0.02"
    },
    "errorCode": 0,
    "errorMsg": null,
    "errorData": null
}
Call failed:
{
    "success": false,
    "data": null,
    "errorCode": 140020,
    "errorMsg": "请求需要参数app-key",
    "errorData": null
}
Fieldstyperequiredillustrate
successBooleantrueWhether the request is successful. If it is not true, it means that the server process is completed without exception. If it is false, you need to check the error code in the errorCode field and handle it according to the business.
errorCodeInt32trueError code. When success is true, errorCode must be 0; when success is false, errorCode must not be 0
errorMsgStringtrueError message. When success is true, errorMsg is an empty string. When success is false, errorMsg is an error description.
errorDataObjectfalseReturn data when an error occurs. This structure type is uncertain and different types are returned according to different interfaces.
errorCodeStrStringfalseA brief English description of the error. A non-empty string may be returned only when success is false.
dataObjectfalseThe business data returned when the request is successful, the structure varies according to each interface.

Glossary#

nameexplain
Service domain nameThe domain name we provide services for, the production environment is https://openapi.cs2dt.com
app-keyThe key we use for authentication represents your credentials on our platform. Please keep it properly. If it is leaked, others can also use this key to perform key operations.
appIdSteam's official unique identifier for the game. DOTA2 -> 570, CSGO -> 730, TF2 -> 440, PayDay2->218620, CSOL -> 2504460

How to debug#

How to use the debugging function provided by the interface documentation
1.
Select any interface and click the debug button
image.png
2.
For the first debugging, you will be guided to set the environment variables. Currently, the environment variable that needs to be set is app-key. Please refer to the Prerequisites section for how to obtain it.
image.png
3.
Fill in your app-key
image.png
4.
After setting, click Send to get the response parameters
image.png
修改于 2025-03-06 06:34:38
上一页
Response codes
下一页
Steam account status query Copy
Built with