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
| Name | Type | Required | Description |
|---|---|---|---|
force | boolean | no | Re-enter even if this session believes it is already open. |
Example request
{ "force": false }
Response
`{ ok, result, cached }`.
| Field | Type | Meaning |
|---|---|---|
cached | boolean | Present and true when nothing was sent because the session was already at the marketplace. |
Example response
{ "ok": true, "result": 1 }
Errors
| Code | When |
|---|---|
action_failed | No character is in the lobby, or the handshake timed out. |
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.