sellable

Everything you hold that a merchant will take, and for how much.

Reads the cache rather than the network, so it is cheap. Rows with `sellable: false` have no buy-back slot in the game's data and `sell` will refuse them.

In Merchants.

Request

POST /api/v1/sessions/{accountKey}/actions/sellable

Takes no arguments.

Response

`{ items }`.

FieldTypeMeaning
items[].payoutinteger|nullGold per unit a merchant pays. Null when the item has no buy-back slot at all.
items[].sellablebooleanWhether `sell` will accept this uid.
items[].tradableintegerThe wire's per-copy trade flag.

Example response

{
  "items": [
    { "uid": "630211546215118851", "itemId": "DesignDataItem:Id_Item_AdventurerBoots_3001",
      "shortName": "AdventurerBoots", "label": "Adventurer Boots",
      "inventoryId": 4, "count": 1, "tradable": 1, "sellable": true, "payout": 12 },
    { "uid": "630211546215118857", "itemId": "DesignDataItem:Id_Item_QuestToken_1001",
      "shortName": "QuestToken", "label": "Quest Token",
      "inventoryId": 4, "count": 1, "tradable": 0, "sellable": false, "payout": null }
  ]
}

Errors

CodeWhen
action_failedNo 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.