marketEnter

Open the marketplace. Other market actions need this first.

Every other market action calls this for you when it has not been done, so an explicit call is only needed to check it succeeds up front. The marketplace closes whenever the character leaves the lobby — after an `enter`, a switch or a reconnect, it must be re-entered.

In Marketplace.

Request

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

Parameters

NameTypeRequiredDescription
forcebooleannoRe-enter even if this session believes it is already open.

Example request

{ "force": false }

Response

`{ ok, result, cached }`.

FieldTypeMeaning
cachedbooleanPresent and true when nothing was sent because the session was already at the marketplace.

Example response

{ "ok": true, "result": 1 }

Errors

CodeWhen
action_failedNo character is in the lobby, or the handshake timed out.
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.