Skip to content

Status, 20 November 2026: decided by Yevhen Kariakin. The founder's acceptance is not recorded here. Implemented in the API and the site on a branch that is not merged yet, and proven only on the local test shops; no OpenCart module sends or reads the new answers yet (the module side is a separate task for Artem Belikov). The contract part is proposed in contracts/module/protocol.yaml (connect_transfer, and transfer and lock in connection_status).

011 — Moving a shop between teams ​

A shop belongs to at most one active Store Deputy team. Connect never moves it silently: the move is asked for by Connect in the shop's own admin panel, confirmed on the site by the owner of the receiving team, and, while the shop's transfer lock is on (the default), approved by the owner of the current team.

Context ​

Until this decision, connecting a shop that another team already had connected silently marked the first team's record as disconnected (the API compared the protocol address and disconnected every other record at it). The first team got no email, no reason and no way back, and anyone with OpenCart admin access to the shop (an employee who left, a contractor) could quietly take the shop, and the customer data the agent reads through it, into their own team. Production had exactly this on 19 November 2026.

How other products let a resource change owner, as Yevhen Kariakin summarized them on 20 November 2026 (the links go to the vendors' documentation and were not re-read by the author of this page):

ProductWhat it doesDocumentation
Microsoft EntraA domain verifies in one tenant only; it must be removed from the first tenant before another can verify it, and Microsoft does not force it away from an active tenant.Add a custom domain, admin takeover (unmanaged tenants only)
CloudflareA zone hold lets the owner block others from adding the zone.Zone holds
Google Search ConsoleEvery verified owner is told when a new owner is added.Verify your site ownership
Meta Business ManagerThe requester asks for access, the owner approves; it is approved at once when the requester already administers the asset.Meta Business Help Center
JetpackThe connection is transferred from inside the site to another administrator.Jetpack support

What is taken from them: proof of control comes from the resource itself (here the shop's admin panel), a second owner needs the first one's consent, and the first owner is told.

Decision ​

  1. A shop (its protocol address) belongs to at most one active team. Connect never moves it silently.
  2. A move is started by Connect from the shop's admin panel (the module; OpenCart admin access is the proof of control). On the site, the Connect consent step finds that the shop is held by another team and shows a transfer screen. The other team appears only as its owner's masked email (for example e***@ukr.net), nothing else.
  3. Only the owner of the receiving team confirms the move. An admin or a member of the receiving team gets a clear refusal ("only the team's owner can move a shop into the team"); they can still connect shops nobody holds, as before.
  4. Every store has a transfer lock, on by default (new and existing stores). While it is on, the confirmed move becomes a request that the owner of the current team approves on the site (the store page; an email carries the link). Only that owner approves, declines, locks or unlocks; admins cannot. A request lapses after 7 days; nothing is approved automatically. An approved request is good for 7 days from the approval. Store Deputy's platform admins can let a request through in the admin console, with a mandatory reason that is kept. With the lock off, the move completes right after the receiving owner confirms.
  5. Disconnecting stays allowed always, from the module (connection_disconnect) and from the site. But the lock stays on the address for 30 days after a disconnect from the module or by an admin on the site: a Connect from another team in that time still needs the previous owner's approval, so disconnect and reconnect elsewhere cannot get round the lock. A store disconnected by its own team's owner on the site releases the lock at once (it is the owner's own act).
  6. A completed move: the old team's record becomes disconnected with a recorded reason (transferred, or operator when a platform admin let it through; also module_disconnect, site_disconnect and replaced for other ends) and who and when; its pending change proposals are cancelled (they end through the change engine's expiry path); conversations and history stay with the old team; the old team's owner and admins get an email; the store page of the old team says "Moved to another team on <date>" with how it was let through (approved by the owner, the lock was off, or Store Deputy support). Records disconnected silently before this decision show "reason unknown (before decision 011)".
  7. Everything is written to the shop address's history: requests, approvals, declines, lapses, moves, lock changes and disconnects, with who did it. A platform admin reads it in the admin console; operator decisions are also in the operator journal.

How it fits Connect ​

  1. The module sends the owner to the site (/connect); the consent step asks the API what it knows about the address (GET /teams/:teamId/stores/connect-preview).
  2. Free address: as before. Held by another team: the receiving team's owner sees the transfer screen and confirms (transfer: true in POST /teams/:teamId/stores/authorize); anyone else is refused (STORE_TRANSFER_OWNER_ONLY), and a call without the confirmation is refused (STORE_OWNED_ELSEWHERE).
  3. The module's server exchanges the one-time code. If the move is allowed (lock off, or approved) the exchange goes on as usual. If it must wait, the API creates the request, tells the current owner, and the exchange answers STORE_TRANSFER_PENDING with requestId and expiresAt. If the move was not asked for, STORE_OWNED_ELSEWHERE.
  4. The owner of the current team approves or declines on the store page. An approval changes nothing yet: only the shop can receive a new connection secret, so the receiving team presses Connect again, and that Connect completes the move at the confirmation step.
  5. connection_status tells the module of the current owner that a move waits (transfer: { state: "pending", expiresAt }) and the lock (lock), with no ids and no text.

Alternatives considered ​

  • Keep the silent takeover. Simple, and the cause of the incident above.
  • Refuse any second team while a shop is connected, until the first disconnects. Safe, but a team that lost access to its own shop (owner gone, account abandoned) could never recover it.
  • Let an admin of the receiving team request the move. Admins are the people the incident was about (a contractor with admin access); the owner is the person who answers for the team.
  • Approve automatically after some days. The same takeover with a delay; an owner on holiday would lose the shop. A lapsed request simply asks again.
  • Release the lock at disconnect. Disconnect and reconnect elsewhere would then bypass it; hence 30 days, and only the team's owner releases it at once.

Open questions ​

QuestionWho
The founder's acceptance of this decision.the founder, Dmitriy Zhuk
The modules (OpenCart 3 and 4) must show the two refusals of the exchange and the two new fields of connection_status; the wording is in the contract.Artem Belikov
The letters about a move go in the language of the site the receiving owner used; the other people's own language is not stored. Store a language on the account?Yevhen Kariakin
A lock kept for 30 days after a disconnect also holds a shop whose owner gave it up through an admin who then left. Support can let a move through (with a reason); is a shorter time or a self-service way wanted?Yevhen Kariakin

Scope ​

The API (store, transfers, expiry job, letters, admin console routes), the site (Connect consent screen, the store page card, the old team's store page) and the admin console (a list of waiting moves with a reason form and the connection history). The module side is not part of this change.