Skip to main content

Get Balance History

GET /user/getBalanceHistory

Retrieves the user’s balance change history with pagination. Excludes cashout-related entries.
GET /user/getBalanceHistory
GET /user/getBalanceHistory/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
limit
integer
default:"10"
Number of results per page (max 50).
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "value": 5000,
        "type": "Item Sale",
        "state": 0,
        "time": 1706745600
      }
    ],
    "count": 150
  }
}
The count field is only returned on the first page (page=0).

Get Purchase History

GET /user/getPurchaseHistory

Retrieves the user’s item purchase history with pagination.
GET /user/getPurchaseHistory
GET /user/getPurchaseHistory/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
limit
integer
default:"10"
Number of results per page (max 50).
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "value": 2500,
        "type": "Item Purchase",
        "state": 0,
        "time": 1706745600
      }
    ],
    "count": 75
  }
}

Get Sales History

GET /user/getSalesHistory

Retrieves the user’s buy/sale history with date filtering and search.
GET /user/getSalesHistory
GET /user/getSalesHistory/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
perpage
integer
default:"10"
Number of results per page (max 50).
range
string
default:"1W"
Date range filter. Values: 1W (1 week), 1M (1 month), 1Y (1 year), All (no filter).
Search filter (minimum 3 characters).
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "item_name": "Unusual Hat",
        "value": 5000,
        "type": "sale",
        "time": 1706745600
      }
    ],
    "count": 42
  }
}

Get Cashout History

GET /user/getCashoutHistory

Retrieves the user’s cashout history with pagination.
GET /user/getCashoutHistory
GET /user/getCashoutHistory/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
limit
integer
default:"10"
Number of results per page (max 50).
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "amount": 10000,
        "type": "PayPal",
        "status": "completed",
        "time": 1706745600
      }
    ],
    "count": 5
  }
}

Get Transaction History

GET /user/getTransactionHistory

Retrieves the user’s transaction history with pagination and search.
GET /user/getTransactionHistory
GET /user/getTransactionHistory/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
limit
integer
default:"10"
Number of results per page (max 50).
search
string
Search filter for transaction items.
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "item_name": "Unusual Hat",
        "value": 5000,
        "type": "buy",
        "time": 1706745600
      }
    ],
    "count": 120
  }
}

Get Transaction Details

GET /user/getTransactionDetails

Retrieves detailed information about a specific transaction.
GET /user/getTransactionDetails
GET /user/getTransactionDetails/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
transactionId
string
required
The transaction ID to look up.
Response
{
  "status": "success",
  "data": {
    "transaction": {
      "id": "txn_abc123",
      "items": [],
      "totalPrice": 5000,
      "status": "completed",
      "time": 1706745600
    }
  }
}
Errors
StatusMessage
errortransactionId parameter is required
errorTransaction not found or access denied

Get User Buy Orders

GET /user/getBuyorder

Retrieves the user’s active buy orders with pagination and search.
GET /user/getBuyorder
GET /user/getBuyorder/{userid}   (admin)
Authentication: connected (admin for other users) Query Parameters
page
integer
default:"0"
Page number (0-indexed).
count
integer
default:"10"
Number of results per page (max 50, min 1).
search
string
Search filter for items.
Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "item_id": 5678,
        "item_name": "Unusual Hat",
        "amount": 5,
        "value": 1500,
        "user": "76561198000000000"
      }
    ],
    "count": 10
  }
}

Support: Get All Incomes

GET /support/getAllIncomes

Retrieves the user’s complete income history (used in support context).
GET /support/getAllIncomes
Authentication: connected Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "value": 5000,
        "type": "Item Sale",
        "time": 1706745600
      }
    ]
  }
}

Support: Get All Outcomes

GET /support/getAllOutcomes

Retrieves the user’s complete outcome/expense history (used in support context).
GET /support/getAllOutcomes
Authentication: connected Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "value": 2000,
        "type": "Item Purchase",
        "time": 1706745600
      }
    ]
  }
}

Support: Get All Cashouts

GET /support/getAllCashouts

Retrieves the user’s complete cashout history (used in support context).
GET /support/getAllCashouts
Authentication: connected Response
{
  "status": "success",
  "data": {
    "values": [
      {
        "id": 1,
        "user": "76561198000000000",
        "amount": 10000,
        "type": "PayPal",
        "status": "completed",
        "time": 1706745600
      }
    ]
  }
}