marketSellMerchant

Pull a listing and sell that item to a merchant instead.

Cancel, reclaim and vendor in one step — for an item that will not sell on the market. It only works when the item has a merchant buy-back price; `marketList` reports that as `vendorPrice`, so you can compare the two before deciding.

In Marketplace.

Request

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

Parameters

NameTypeRequiredDescription
listingId (listing_id)stringyesFrom `marketList` or `myMarketList`. It exceeds 2^53, so it travels as a string — parsing it as a JSON number will corrupt it.

Example request

{ "listingId": "9007199254740993" }

Response

`{ ok: true, payout, count, item }`.

FieldTypeMeaning
payoutintegerGold the merchant paid, for the whole stack.
delistedbooleanOn failure only. True means the listing is gone and the item is in your stash, unsold.

Example response

{ "ok": true, "payout": 96, "count": 1, "item": "Adventurer Boots" }

Errors

CodeWhen
action_failedThe item has no merchant buy-back price, the listing already sold, or the claim window expired.
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.