merge

Merge one stack wholly into another.

Both must be the same item, and the destination must have room under its `maxStack`. To move only part of a stack use `splitMerge`.

In Inventory & stash.

Request

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

Parameters

NameTypeRequiredDescription
src_uidstringyesStack being moved.
dst_uidstringyesStack being merged into.
src_invintegeryesSource container.
src_slotintegeryesSource slot.
dst_invintegeryesDestination container.
dst_slotintegeryesDestination slot.

Example request

{
  "src_uid": "630211546215118854", "src_inv": 3, "src_slot": 8,
  "dst_uid": "630211546215118855", "dst_inv": 4, "dst_slot": 12
}

Response

{ "ok": true }

Example response

{ "ok": true }

Errors

CodeWhen
missing_fieldEither uid was absent or unparseable.
action_failedDifferent items, no room in the destination stack, or the send failed.
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.