Account
Admin hesap yönetimi için kullanılan endpoint'ler.
Hesapları listele
Tenant'a bağlı tüm hesapları getirir.
Authentication
x-auth(tenant-id)
HTTP Request
GET /tenant-accounts/get-accounts
Request Parameters
Parametre almaz.
Response Parameters
| Field | Type | Nullable | Desc |
|---|---|---|---|
tenantId | string(uuid) | false | Tenant id'si |
tenantName | string | false | Tenant adı |
parentTenantId | string(uuid) | true | Üst tenant id'si |
tenantAccountId | string(uuid) | false | Tenant hesap id'si |
accountType | string(enum) | false | Hesap tipi (INDIVIDUAL, MASTER) |
userId | string | true | Kullanıcı id'si |
userFullName | string | true | Kullanıcının tam adı |
tenantUserId | string | false | Tenant kullanıcı id'si |
roleId | number | false | Rol id'si |
roleName | string | false | Rol adı |
roleStatus | number | false | Rol durumu |
tenantAccountStatus | number | false | Hesap durumu (0: Aktif, 3: Davetli) |
email | string | true | E-posta adresi (sadece davetli hesaplar için) |
isPreferred | boolean | false | Tercih edilen hesap mı |
Response Body Example
[
{
"tenantId": "be88d767-****-****-****-04c52a52468d",
"tenantName": "Example A.Ş.",
"parentTenantId": null,
"tenantAccountId": "4bd69067-****-****-****-8d5b5726d4a0",
"accountType": "INDIVIDUAL",
"userId": "1729",
"userFullName": "E*** H**** G******",
"tenantUserId": "1",
"roleId": 48,
"roleName": "Tam Yetkili Yönetici",
"roleStatus": 1,
"tenantAccountStatus": 0,
"email": null,
"isPreferred": true
}
]
Hesap geçmişi
Belirtilen kullanıcının tenant hesap geçmişini getirir.
Authentication
x-auth(tenant-id)
HTTP Request
GET /admin/tenant-account-history
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
userId | string | true | - | Geçmişi getirilecek kullanıcı |
Response Parameters
Hesap geçmişi listesi döner.
Kullanıcı davet et
Yeni bir kullanıcıyı tenant hesabına davet eder.
Authentication
x-auth(tenant-id)
HTTP Request
POST /tenant/invite-for-tenant-account
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
email | string | true | - | Davet edilecek kullanıcının e-postası |
accountType | string(enum) | true | - | Hesap tipi (INDIVIDUAL, MASTER) |
Request Body Example
{
"email": "test@example.com",
"accountType": "INDIVIDUAL"
}
Response Parameters
Başarılı davet durumunda HTTP 200 OK döner.
Hesap güncelle
Mevcut bir tenant hesabını günceller.
Authentication
x-auth(tenant-id)
HTTP Request
POST /tenant-accounts/update-account
Request Parameters
| Field | Type | Required | Default | Desc |
|---|---|---|---|---|
tenantAccountId | string(uuid) | true | - | Güncellenecek tenant hesap id'si |
userId | string | true | - | Kullanıcı id'si |
action | string(enum) | true | - | İşlem tipi (UPDATE) |
roleId | number | true | - | Yeni rol id'si |
Request Body Example
{
"tenantAccountId": "1672645f-7c1f-469b-b7b7-3e5302abbbaf",
"userId": "1686",
"action": "UPDATE",
"roleId": 58
}
Response Parameters
Başarılı güncelleme durumunda HTTP 200 OK döner.