Skip to content

Account migration rows

Provide one object per account to MngPreviewMigration with kind: "accounts". Imports create new accounts only; existing logins are not overwritten.

Fields

Field Type Required Description
group string Yes Existing account group.
name string Yes Account holder name.
email string Yes Account email.
source_id string No External identifier, up to 128 bytes, for matching results back to source data.
login integer No Requested login; if omitted, the platform allocates one.
regdate integer No Source registration time as Unix seconds, 1–2147483647 under the existing account storage format. When omitted, the apply time is used.
password string No Plaintext password accepted only in the preview request and validated against the active password policy. If omitted, the platform generates one; the generated value is never returned.
leverage integer No Requested leverage; defaults to the group's default leverage.
enable integer No Account enabled flag, 0 or 1.
customer_id integer No Existing enabled non-guest customer in the same brand as the group.
country, city, state, zipcode, address, phone, comment, id, lead_source string No Account profile fields.
enable_read_only, enable_change_password, send_reports integer No Corresponding account flags (0 or 1).

The server stores only a password hash in the job payload. Never put passwords in migration names, comments, or source IDs. balance, credit, and bonus must be omitted or zero. Funding, group default deposits, guest accounts, and account overwrite are outside v1.

Example

{"command":"MngPreviewMigration","extID":"mig-accounts-1","__token":"<superadmin-token>","data":{"kind":"accounts","name":"Imported clients","rows":[{"source_id":"legacy-42","group":"Standard","name":"Alex Doe","email":"[email protected]","login":120045,"regdate":1760000000,"password":"<temporary-password>","leverage":100,"enable":1,"customer_id":501,"country":"CY","city":"Nicosia","comment":"Imported account"}]}}

If the group has no positive default leverage, supply an explicit leverage. Generated passwords are not recoverable from the migration result; arrange a normal password reset or manager password change. If password rules change after preview, prepare a new preview under the new rules.