KYC & Level
KYC (Kimlik Doğrulama) ve seviye yönetimi endpoint'leri.
KYC Görsellerini Getir
Kullanıcının KYC belgelerini/görsellerini getirir.
Authentication
x-auth (tenant-id)
HTTP Request
GET /user/get-kyc-images
Response Parameters
| Field | Type | Nullable | Desc |
|---|---|---|---|
documentId | string | false | Belge tanımlayıcı |
data | object | false | KYC görsel verileri |
KYC Güncelle
Kullanıcının KYC durumunu günceller.
Authentication
x-auth (tenant-id)
HTTP Request
POST /user/update-kyc
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
userId | string | true | - | Kullanıcı ID |
kycConfirm | enum | true | - | KYC durumu: waitingApproval, manuelApproved, ocrOrNfcApproved, rejected |
rejectedResult | string | false | - | Ret sebebi (kycConfirm='rejected' ise zorunlu) |
rejectedResultJson | object | false | - | Çoklu dil ret sebebi |
userDocumentId | array | true | - | Güncellenecek belge ID'leri |
documentId | string | true | - | Belge referans ID |
Request Body Example
{
"userId": "123",
"kycConfirm": "manuelApproved",
"userDocumentId": ["doc_1", "doc_2"],
"documentId": "doc_main"
}
İşlem Akışı
- Kullanıcının mevcut KYC durumu kontrol edilir (waitingApproval olmalı)
- KYC durumu güncellenir
- Belge durumu güncellenir (onaylandıysa active, reddedildiyse deActive)
- Kullanıcıya bildirim gönderilir
- E-posta bildirimi gönderilir
Seviye Güncelle
Kullanıcının seviyesini günceller.
Authentication
x-auth (tenant-id)
HTTP Request
POST /level/update-level
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
userId | string | true | - | Kullanıcı ID |
levelId | number | true | - | Yeni seviye ID |
Request Body Example
{
"userId": "123",
"levelId": 3
}
Admin - Seviye Bilgileri
Filtrelenmiş seviye bilgilerini getirir.
Authentication
x-auth (tenant-id)
HTTP Request
GET /admin/levels-info
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
isSpecial | boolean | false | - | Özel seviye filtresi |
Admin - Kullanıcı Kimlik Doğrulamasını Kapat
Kullanıcı hesabını kapatır veya durumunu değiştirir.
Authentication
x-auth (tenant-id)
HTTP Request
POST /admin/user/close-user-authentication
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
status | enum | true | - | Yeni kullanıcı durumu |
description | string | false | - | Durum değişikliği açıklaması |
closedUserReason | string | false | - | Hesap kapatma sebebi |
İşlem Akışı
- Durum enum değeri doğrulanır
- Kullanıcı durumu güncellenir
- Durum 'active' ise: blokaj geri alınır
- Durum 'active' değilse: blokaj bakiyesi güncellenir
Adres Onayı Güncelle
Kullanıcının adres onay durumunu günceller.
Authentication
x-auth (tenant-id)
HTTP Request
POST /user/update-confirmed
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
userId | string | true | - | Kullanıcı ID |
addressConfirmed | enum | true | - | Adres onay durumu |
addressDescription | string | false | - | Adres açıklaması |
İşlem Akışı
- Adres onay durumu doğrulanır
- Kullanıcı adres onayı güncellenir
- Belge durumu/sebebi güncellenir
- Onaylandıysa/reddedildiyse bildirim gönderilir (uygulama içi, e-posta, SMS)
AML Onayı Olmayan Kullanıcılar
AML onayı bekleyen kullanıcıları listeler.
Authentication
x-auth (tenant-id)
HTTP Request
GET /admin/user/get-users-without-aml-confirmed
Response Parameters
| Field | Type | Nullable | Desc |
|---|---|---|---|
userId | string | false | Kullanıcı ID |
fullName | string | false | Tam ad |
email | string | true | E-posta adresi |
amlStatus | string | false | AML durumu |
createdAt | date | false | Kayıt tarihi |
AML Durumu Güncelle
Kullanıcının AML durumunu günceller.
Authentication
x-auth (tenant-id)
HTTP Request
POST /admin/user/update-user-aml-confirmed
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
userId | string | true | - | Kullanıcı ID |
İşlem Akışı
- userId kontrolü yapılır
- Kullanıcı bulunur
- AML durumu 'notRisky' değilse güncellenir
- AMLCONTROL parametresindeki ignoredUsers listesine eklenir