Jump to content
McKay Development

In the response of API getExchangeDetails, assetid and contextid become zero


Recommended Posts

Posted (edited)

Hi MrMackay
We're trying to get items information with the API getExchangeDetails with this code like this
 

    offer.getExchangeDetails(true, (err: any, status: any, tradeInitTime: Date, receivedItems: any, sentItems: any) => {
      util.log(`[receivedItems] ${JSON.stringify(receivedItems)}`)
      ...
    })


the sample response are without assetid and contentid. I added 2 sample response

 

[
  {
    "appid": 730,
    "contextid": "0",
    "assetid": "0",
    "amount": 1,
    "classid": "4910475895",
    "instanceid": "1363818004",
    "new_assetid": "44030584524",
    "new_contextid": "2",
    "is_currency": "0",
    "icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpopbuyLgNv1fX3cih9_92hkYSEkfHLOLLChWde_sBOh-zF_Jn4xlXs80A-Zm2nINWddwNqZQ7VrlS9xOjugZ-0v5jKznQxuCB34CuPmx2pwUYbgZ31p1Q",
    "icon_url_large": "",
    "icon_drag_url": "",
    "name": "Sawed-Off | Kiss♥Love",
    "market_hash_name": "Sawed-Off | Kiss♥Love (Field-Tested)",
    "market_name": "Sawed-Off | Kiss♥Love (Field-Tested)",
    "name_color": "D2D2D2",
    "background_color": "",
    "type": "Classified Shotgun",
    "tradable": true,
    "marketable": true,
    "commodity": false,
    "market_tradable_restriction": 7,
    "market_marketable_restriction": 7,
    "descriptions": [
      {
        "type": "html",
        "value": "Exterior: Field-Tested",
        "name": "exterior_wear"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "The classic Sawed-Off deals very heavy close-range damage, but with its low accuracy, high spread and slow rate of fire, you'd better kill what you hit. It has been custom painted with a starry-eyed woman in pink and purple.\n\n<i>\"I won't take no for an answer; I have to have it!\"</i>",
        "name": "description"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "The Recoil Collection",
        "color": "9da1a9",
        "name": "itemset_name"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      }
    ],
    "owner_descriptions": [],
    "actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "market_actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "tags": [
      {
        "internal_name": "CSGO_Type_Shotgun",
        "name": "Shotgun",
        "category": "Type",
        "category_name": "Type",
        "localized_tag_name": "Shotgun",
        "color": "",
        "localized_category_name": "Type"
      },
      {
        "internal_name": "weapon_sawedoff",
        "name": "Sawed-Off",
        "category": "Weapon",
        "category_name": "Weapon",
        "localized_tag_name": "Sawed-Off",
        "color": "",
        "localized_category_name": "Weapon"
      },
      {
        "internal_name": "set_community_31",
        "name": "The Recoil Collection",
        "category": "ItemSet",
        "category_name": "Collection",
        "localized_tag_name": "The Recoil Collection",
        "color": "",
        "localized_category_name": "Collection"
      },
      {
        "internal_name": "normal",
        "name": "Normal",
        "category": "Quality",
        "category_name": "Category",
        "localized_tag_name": "Normal",
        "color": "",
        "localized_category_name": "Category"
      },
      {
        "internal_name": "Rarity_Legendary_Weapon",
        "name": "Classified",
        "category": "Rarity",
        "color": "d32ce6",
        "category_name": "Quality",
        "localized_tag_name": "Classified",
        "localized_category_name": "Quality"
      },
      {
        "internal_name": "WearCategory2",
        "name": "Field-Tested",
        "category": "Exterior",
        "category_name": "Exterior",
        "localized_tag_name": "Field-Tested",
        "color": "",
        "localized_category_name": "Exterior"
      }
    ],
    "id": "0",
    "fraudwarnings": [],
    "owner_actions": []
  }
]


 

[
  {
    "appid": 730,
    "contextid": "0",
    "assetid": "0",
    "amount": 1,
    "classid": "2735432289",
    "instanceid": "6404969024",
    "new_assetid": "44033369611",
    "new_contextid": "2",
    "icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpoo6m1FBRp3_bGcjhQ09-jq5WYh8j3Jq_um25V4dB8xLrCo9Tw3VGx80RvYTqmdYHDeg9saVmGq1m4xry7gJK56M_BwXA26Ck8pSGKD6d5YK8",
    "icon_url_large": "",
    "icon_drag_url": "",
    "name": "USP-S | Cortex",
    "market_hash_name": "USP-S | Cortex (Field-Tested)",
    "market_name": "USP-S | Cortex (Field-Tested)",
    "name_color": "D2D2D2",
    "background_color": "",
    "type": "Classified Pistol",
    "tradable": true,
    "marketable": true,
    "commodity": false,
    "market_tradable_restriction": 7,
    "market_marketable_restriction": 7,
    "descriptions": [
      {
        "type": "html",
        "value": "Exterior: Field-Tested",
        "name": "exterior_wear"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "A fan favorite from Counter-Strike Source, the Silenced USP Pistol has a detachable silencer that gives shots less recoil while suppressing attention-getting noise. It has been custom painted with pink accents over a silver and black base.\n\n<i>Keep your head</i>",
        "name": "description"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "The Clutch Collection",
        "color": "9da1a9",
        "name": "itemset_name"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "<br><div id=\"sticker_info\" class=\"sticker_info\" style=\"border: 2px solid rgb(102, 102, 102); border-radius: 6px; width=100; margin:4px; padding:8px;\"><center><img width=64 height=48 src=\"https://steamcdn-a.akamaihd.net/apps/730/icons/econ/stickers/sha2024/sig_lucky.c8ad441c8821e9f99e137b85ea374f74ee39dee4.png\" title=\"Sticker: Lucky | Shanghai 2024\"><br>Sticker: Lucky | Shanghai 2024</center></div>",
        "name": "sticker_info"
      }
    ],
    "owner_descriptions": [],
    "actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "market_actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "tags": [
      {
        "internal_name": "CSGO_Type_Pistol",
        "name": "Pistol",
        "category": "Type",
        "category_name": "Type",
        "localized_tag_name": "Pistol",
        "color": "",
        "localized_category_name": "Type"
      },
      {
        "internal_name": "weapon_usp_silencer",
        "name": "USP-S",
        "category": "Weapon",
        "category_name": "Weapon",
        "localized_tag_name": "USP-S",
        "color": "",
        "localized_category_name": "Weapon"
      },
      {
        "internal_name": "set_community_19",
        "name": "The Clutch Collection",
        "category": "ItemSet",
        "category_name": "Collection",
        "localized_tag_name": "The Clutch Collection",
        "color": "",
        "localized_category_name": "Collection"
      },
      {
        "internal_name": "normal",
        "name": "Normal",
        "category": "Quality",
        "category_name": "Category",
        "localized_tag_name": "Normal",
        "color": "",
        "localized_category_name": "Category"
      },
      {
        "internal_name": "Rarity_Legendary_Weapon",
        "name": "Classified",
        "category": "Rarity",
        "color": "d32ce6",
        "category_name": "Quality",
        "localized_tag_name": "Classified",
        "localized_category_name": "Quality"
      },
      {
        "internal_name": "WearCategory2",
        "name": "Field-Tested",
        "category": "Exterior",
        "category_name": "Exterior",
        "localized_tag_name": "Field-Tested",
        "color": "",
        "localized_category_name": "Exterior"
      },
      {
        "internal_name": "Tournament23",
        "name": "Perfect World Shanghai 2024",
        "category": "Tournament",
        "category_name": "Tournament",
        "localized_tag_name": "Perfect World Shanghai 2024",
        "color": "",
        "localized_category_name": "Tournament"
      },
      {
        "internal_name": "Team28",
        "name": "3DMAX",
        "category": "TournamentTeam",
        "category_name": "Team",
        "localized_tag_name": "3DMAX",
        "color": "",
        "localized_category_name": "Team"
      },
      {
        "internal_name": "lucky",
        "name": "Lucky (Lucas Chastang)",
        "category": "ProPlayer",
        "category_name": "Professional Player",
        "localized_tag_name": "Lucky (Lucas Chastang)",
        "color": "",
        "localized_category_name": "Professional Player"
      }
    ],
    "id": "0",
    "fraudwarnings": [],
    "owner_actions": []
  },
  {
    "appid": 730,
    "contextid": "0",
    "assetid": "0",
    "amount": 1,
    "classid": "2735432289",
    "instanceid": "1363818004",
    "new_assetid": "44033369642",
    "new_contextid": "2",
    "is_currency": "0",
    "icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpoo6m1FBRp3_bGcjhQ09-jq5WYh8j3Jq_um25V4dB8xLrCo9Tw3VGx80RvYTqmdYHDeg9saVmGq1m4xry7gJK56M_BwXA26Ck8pSGKD6d5YK8",
    "icon_url_large": "",
    "icon_drag_url": "",
    "name": "USP-S | Cortex",
    "market_hash_name": "USP-S | Cortex (Field-Tested)",
    "market_name": "USP-S | Cortex (Field-Tested)",
    "name_color": "D2D2D2",
    "background_color": "",
    "type": "Classified Pistol",
    "tradable": true,
    "marketable": true,
    "commodity": false,
    "market_tradable_restriction": 7,
    "market_marketable_restriction": 7,
    "descriptions": [
      {
        "type": "html",
        "value": "Exterior: Field-Tested",
        "name": "exterior_wear"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "A fan favorite from Counter-Strike Source, the Silenced USP Pistol has a detachable silencer that gives shots less recoil while suppressing attention-getting noise. It has been custom painted with pink accents over a silver and black base.\n\n<i>Keep your head</i>",
        "name": "description"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      },
      {
        "type": "html",
        "value": "The Clutch Collection",
        "color": "9da1a9",
        "name": "itemset_name"
      },
      {
        "type": "html",
        "value": " ",
        "name": "blank"
      }
    ],
    "owner_descriptions": [],
    "actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "market_actions": [
      {
        "type": "inspect",
        "name": "Inspect in Game...",
        "link": "..."
      }
    ],
    "tags": [
      {
        "internal_name": "CSGO_Type_Pistol",
        "name": "Pistol",
        "category": "Type",
        "category_name": "Type",
        "localized_tag_name": "Pistol",
        "color": "",
        "localized_category_name": "Type"
      },
      {
        "internal_name": "weapon_usp_silencer",
        "name": "USP-S",
        "category": "Weapon",
        "category_name": "Weapon",
        "localized_tag_name": "USP-S",
        "color": "",
        "localized_category_name": "Weapon"
      },
      {
        "internal_name": "set_community_19",
        "name": "The Clutch Collection",
        "category": "ItemSet",
        "category_name": "Collection",
        "localized_tag_name": "The Clutch Collection",
        "color": "",
        "localized_category_name": "Collection"
      },
      {
        "internal_name": "normal",
        "name": "Normal",
        "category": "Quality",
        "category_name": "Category",
        "localized_tag_name": "Normal",
        "color": "",
        "localized_category_name": "Category"
      },
      {
        "internal_name": "Rarity_Legendary_Weapon",
        "name": "Classified",
        "category": "Rarity",
        "color": "d32ce6",
        "category_name": "Quality",
        "localized_tag_name": "Classified",
        "localized_category_name": "Quality"
      },
      {
        "internal_name": "WearCategory2",
        "name": "Field-Tested",
        "category": "Exterior",
        "category_name": "Exterior",
        "localized_tag_name": "Field-Tested",
        "color": "",
        "localized_category_name": "Exterior"
      }
    ],
    "id": "0",
    "fraudwarnings": [],
    "owner_actions": []
  }
]


Please help us take a look. Thank you

Edited by Nguyen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...