expandStorage

Buy another stash page.

Spends gold. Only the ids `storages` marks `expandable` are accepted; anything else is refused before a packet is sent.

In Inventory & stash.

Request

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

Parameters

NameTypeRequiredDescription
inventoryId (buyInventoryId)integeryesThe page to unlock, from `storages`.

Example request

{ "inventoryId": 11 }

Response

`{ ok, result, resultName, inventoryId, expectedPrice }`.

FieldTypeMeaning
resultNamestringThe server's result code, named — `OK`, `FAIL_NOT_ENOUGH_GOLD_OR_ALREADY_OWNED`, `FAIL_LIMIT_REACHED` and so on.
expectedPriceintegerWhat this page was expected to cost, for reconciling against the gold actually spent.

Example response

{
  "ok": true,
  "result": 1,
  "resultName": "OK",
  "inventoryId": 11,
  "expectedPrice": 100000
}

Errors

CodeWhen
action_failedNot an expandable page, already owned, not enough gold, or the read 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.