marketRegister

List an item for sale.

The item must be in a stash or the backpack and flagged tradable — `tradables` lists what qualifies. The sale slot is assigned by the server; `myMarketList.freeSlots` says whether one is free. The listing fee is deducted whether or not it sells.

In Marketplace.

Request

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

Parameters

NameTypeRequiredDescription
uid (uniqueId)stringyesThe item to list, from `inventory`, `stash` or `tradables`.
priceintegeryesAsking price in gold, for the whole stack.
count (itemCount)integernoHow many, for stacks. Defaults to 1.
contents (itemContentsCount)integernoGold inside, for a purse or chest.

Example request

{ "uid": "630211546215118861", "price": 24000, "count": 1 }

Response

`{ ok: true, result, price, uid }`.

FieldTypeMeaning
uidstringThe item listed, echoed back. Read `myMarketList` for the assigned `listingId`.

Example response

{ "ok": true, "result": 1, "price": 24000, "uid": "630211546215118861" }

Errors

CodeWhen
missing_field`uid` was absent or unparseable.
action_failedNo free sale slot, the item is not tradable, or it is not where the server expects.
plan_limitNot on the free plan.

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.