Skip to main content

Müşteri Detaylarını Getir

Müşteri detaylarını getirir.

Endpoint

GET /api/v1/customers/\{uuid\}/details

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • customer.details.view - Tüm müşteri detaylarını görüntüleme
  • customer.details.view.own - Sadece kendi müşteri detaylarını görüntüleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetMüşteri UUID'si

Response

Success Response (200 OK)

{
"id": 1,
"customer_id": 1,
"annual_revenue": 1000000,
"annual_revenue_converted": 1000000,
"annual_revenue_currency": "TRY",
"employee_count": 50,
"industry": "Technology",
"website": "https://example.com",
"address": "İstanbul, Türkiye",
"is_active": true,
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z"
}

Error Responses

404 Not Found

null

veya

{
"message": "Customer detail is not active"
}

403 Forbidden

{
"message": "Forbidden"
}

Code Examples

cURL

curl -X GET https://api.example.com/api/v1/customers/550e8400-e29b-41d4-a716-446655440000/details \
-H "Authorization: Bearer \{token\}"

Notes

  • Müşteri detayı yoksa null döner
  • Silinmiş veya pasif detaylar için 404 döner
  • Yıllık gelir kullanıcının para birimi tercihine göre dönüştürülür