marketClaimAll

Claim everything waiting — payouts and unsold items.

`marketTransfer` over every claimable listing, sold ones first so the gold lands even if a later item hits a full stash. Partial success is normal and reported per listing rather than as a failure.

In Marketplace.

Request

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

Takes no arguments.

Response

`{ ok: true, claimed, failed, goldClaimed, itemsClaimed, deposited, results }`.

FieldTypeMeaning
claimedintegerHow many listings were claimed.
failedintegerHow many could not be — see `results` for which.
goldClaimedintegerTotal gold banked.
results[]object[]One row per listing attempted, with its own `ok` and `error`.

Example response

{
  "ok": true,
  "claimed": 2,
  "failed": 0,
  "goldClaimed": 8000,
  "itemsClaimed": 1,
  "deposited": [ { "container": "GoldCoinChest", "added": 8000 } ],
  "results": [
    { "listingId": "9007199254740994", "ok": true, "error": null },
    { "listingId": "9007199254740995", "ok": true, "error": null }
  ]
}

Errors

CodeWhen
action_failedNo character is in the lobby, or your listings could not be read.
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.