splitMerge

Move part of a stack onto another.

Also how gold is moved between containers: drag `count` gold from one purse onto another. Both stacks survive, with `count` transferred.

In Inventory & stash.

Request

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

Parameters

NameTypeRequiredDescription
src_uidstringyesStack being split.
dst_uidstringyesStack receiving it.
src_invintegeryesSource container.
src_slotintegeryesSource slot.
dst_invintegeryesDestination container.
dst_slotintegeryesDestination slot.
countintegeryesHow many to move.

Example request

{
  "src_uid": "630211546215118852", "src_inv": 4, "src_slot": 0,
  "dst_uid": "630211546215118856", "dst_inv": 4, "dst_slot": 2,
  "count": 25000
}

Response

`{ ok: true, moved }`.

FieldTypeMeaning
movedintegerHow many were transferred.

Example response

{ "ok": true, "moved": 25000 }

Errors

CodeWhen
missing_fieldEither uid was absent or unparseable.
action_failed`count` exceeds the source stack or the destination's remaining room.
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.