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
| Name | Type | Required | Description |
|---|---|---|---|
listingId (listing_id) | string | yes | From `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 }`.
| Field | Type | Meaning |
|---|---|---|
payout | integer | Gold the merchant paid, for the whole stack. |
delisted | boolean | On 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
| Code | When |
|---|---|
action_failed | The item has no merchant buy-back price, the listing already sold, or the claim window expired. |
plan_limit | Not 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.