Yalnızca bağımsız çözümler
Bu akış, sorunsuz yetkilendirmenin bir belirteç döndürmesinden sonra yalnızca bağımsız B2COPY çözümleri için geçerlidir.
Bir istemciyi bağımsız bir çözüme kaydetmek iki adımlı bir sihirbazdır. Tamamlandığında istemci için bir payment account oluşturulur.
Adım 1 — Sihirbazı başlatın
GET [host]/api/v1/standalone/auth/init2. adım için gereken uuid'i döndürür.
{
"status": 200,
"data": {
"uuid": "92fae932-4cff-4d5f-9af9-a8bd71d1acc2",
"type": "form",
"workflow": "side_login",
"status": 0,
"done": false,
"canceled": false
}
}Adım 2 — İstemciyi kaydedin
POST [host]/api/v1/wizards/{uuid}| İsim | İçinde | Tip | Gerekli | Tanım |
|---|---|---|---|---|
| uuid | path | string | Yes | The UUID obtained in step 1. |
| side_login | body | string | Yes | MT login of the client account. |
| token | body | string | Yes | The token from seamless authorization. |
| investment_platform_id | body | string | Yes | The investment platform instance (1 for a single MT server). |
| device_fingerprint | body | string | Yes | A string uniquely identifying the client device. |
curl --location --request POST 'https://host.name/api/v1/wizards/92fae932-4cff-4d5f-9af9-a8bd71d1acc2' \
--data-raw '{
"side_login": "2121882153",
"token": "8c3d46c32fff792caf33b9dee1694f1e",
"investment_platform_id": "1",
"device_fingerprint": "eyJjYW52YXNfY29kZSI6…"
}'Sonraki adım
Yanıt, yeni müşteri kimliğini içerir. Bununla birlikte ana ve yatırım hesapları oluşturabilirsiniz - bkz. Create a master or investment account from an existing MT account.
