expandStorage
Buy another stash page.
Spends gold. Only the ids `storages` marks `expandable` are accepted; anything else is refused before a packet is sent.
Request
POST /api/v1/sessions/{accountKey}/actions/expandStorage
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
inventoryId (buyInventoryId) | integer | yes | The page to unlock, from `storages`. |
Example request
{ "inventoryId": 11 }
Response
`{ ok, result, resultName, inventoryId, expectedPrice }`.
| Field | Type | Meaning |
|---|---|---|
resultName | string | The server's result code, named — `OK`, `FAIL_NOT_ENOUGH_GOLD_OR_ALREADY_OWNED`, `FAIL_LIMIT_REACHED` and so on. |
expectedPrice | integer | What 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
| Code | When |
|---|---|
action_failed | Not an expandable page, already owned, not enough gold, or the read 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.