---
title: "network.account-merge-result@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/network.account-merge-result"
updated: null
---

# network.account-merge-result@1 · OpenVibe.Services

HTML: [network.account-merge-result@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/network.account-merge-result)

# NetworkAccountMergeResult `network.account-merge-result@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: retired
- Compatibility: backward
- Decision: [ADR-029](/docs/adr/ADR-029)
- Schema: [`https://openvibe.network/contracts/network/account-merge-result.v1.json`](/docs/contracts/network.account-merge-result.json)

Deprecated since 0.399.0; use network.account.deleted@1. Removed after 1.0.0. OpenVibe no longer supports account merges; account deletion is the remaining account-closing flow (2026-11-10)

network.account-merge-result@1 (OpenVibe.Network; roadmap WS-B task 5, ADR-029): the answer of a merge, POST /api/v1/account/merge (the person, signed in to the survivor, with a fresh sign-in proof of the other account) or POST /api/admin/account-merges (staff.identity.merge, with a reason). What Network moved in its one transaction, as counts; everything else follows network.subject.merged. A retried merge of the same pair answers the first merge (replayed: true) and moves nothing again.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `merge_id` | string | yes |  | - `pattern ^mrg_[0-9A-HJKMNP-TV-Z]{26}$` |
| `from` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `into` | string | yes |  | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `merged_at` | string | yes |  | - `format date-time` |
| `split_until` | string | yes |  | - `format date-time` |
| `moved` | object | yes |  | - `no other fields` |
| `moved.providers` | integer | yes | Linked sign-in providers now on the survivor. | - `minimum 0` |
| `moved.sessions` | integer | yes | Sessions and devices moved; both sets stay valid until they expire. | - `minimum 0` |
| `moved.oauth_grants` | integer | yes |  | - `minimum 0` |
| `moved.projects` | integer | yes | Developer projects, still owned, now by the survivor. | - `minimum 0` |
| `moved.coins` | integer | yes | OpenCoins added to the survivor (one ledger entry per side, reason account\_merge). | - `minimum 0` |
| `moved.modules` | integer | yes | User-module records changed on the survivor (its own fields win). | - `minimum 0` |
| `replayed` | boolean | yes |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: merged

~~~~
{
  "merge_id": "mrg_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "from": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "into": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "merged_at": "2026-09-27T21:00:00.000Z",
  "split_until": "2026-10-27T21:00:00.000Z",
  "moved": {
    "providers": 2,
    "sessions": 3,
    "oauth_grants": 1,
    "projects": 0,
    "coins": 150,
    "modules": 2
  },
  "replayed": false
}
~~~~

Rejected: negative-coins

~~~~
{
  "merge_id": "mrg_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "from": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "into": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "merged_at": "2026-09-27T21:00:00.000Z",
  "split_until": "2026-10-27T21:00:00.000Z",
  "moved": {
    "providers": 2,
    "sessions": 3,
    "oauth_grants": 1,
    "projects": 0,
    "coins": -5,
    "modules": 2
  },
  "replayed": false
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('network.account-merge-result@1', value);   // { valid, errors: [{ path, message }] }
~~~~
