tradables
What you could put into a trade window.
Everything tradable in the backpack and every stash, equipment excluded. Gold containers are included — players do trade gold this way — with `contents` showing what a bag holds.
In Trading.
Request
POST /api/v1/sessions/{accountKey}/actions/tradables
Takes no arguments.
Response
`{ items }`, ordered by container then name.
| Field | Type | Meaning |
|---|---|---|
items[].where | string | The container's readable name — `Backpack`, `Stash`, `Shared`. |
items[].contents | integer | Gold inside, for a purse or chest. 0 for anything else. |
Example response
{
"items": [
{ "uid": "630211546215118851", "itemId": "DesignDataItem:Id_Item_AdventurerBoots_3001",
"shortName": "AdventurerBoots", "label": "Adventurer Boots", "rarity": "Uncommon",
"count": 1, "iconUrl": "/icons/AdventurerBoots.png",
"inventoryId": 2, "slotId": 3, "where": "Backpack",
"width": 2, "height": 2, "gold": false, "contents": 0, "goldCapacity": 0 },
{ "uid": "630211546215118852", "itemId": "DesignDataItem:Id_Item_GoldCoinPurse_1001",
"shortName": "GoldCoinPurse", "label": "Gold Coin Purse", "rarity": "Common",
"count": 1, "iconUrl": "/icons/GoldCoinPurse.png",
"inventoryId": 4, "slotId": 0, "where": "Stash",
"width": 1, "height": 1, "gold": true, "contents": 31320, "goldCapacity": 50000 }
]
}
Errors
| Code | When |
|---|---|
action_failed | No character is in the lobby. |
See also
DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.