Discussions

Ask a Question
Back to All

Steam asset id not present in the withdrawal object schema

Hi,

All of the below refers to the endpoint Get Active Trades (https://csgoempire.com/api/v2/trading/user/trades).

I've noticed that the item object in the withdrawal schema does not include the asset ID; instead, it contains an item ID (which I assume is an internal ID defined by csgoempire). Since the item object in the deposit schema does include the asset ID, why isn't it also included in the withdrawal schema ? Is there a particular reason for this ?

It would be helpful to have the asset ID in the withdrawal schema as well, as it would simplify checking whether the correct item was received from a programmatic point of view. Am I wrong ?

Should I use this object instead of checking that the asset ids match ?

"item_validation": {
  "numWrongItemDetections": 0,
  "validItemDetected": true,
  "validatedAt": 1723837840
}

Thank you.