Skip to main content

Müşteri Detayı

UUID ile müşteri detayını getirir.

Endpoint

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

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • customers.view - Tüm müşterileri görüntüleme
  • customers.view.own - Sadece kendi müşterilerini 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,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"company_name": "Örnek Şirket",
"legal_name": "Örnek Şirket Ltd.",
"tax_number": "1234567890",
"email": "info@ornek.com",
"phone": "+90 555 000 00 00",
"is_active": true,
"user_id": 1,
"detail": {
"annual_revenue": 1000000,
"annual_revenue_converted": 1000000,
"annual_revenue_currency": "TRY"
},
"user": {
"id": 1,
"email": "user@example.com"
},
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z"
}

Error Responses

404 Not Found

{
"message": "Not Found"
}

403 Forbidden

{
"message": "Forbidden"
}

Code Examples

cURL

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

Notes

  • Sadece aktif müşteriler görüntülenebilir
  • Silinmiş veya pasif müşteriler için 404 döner
  • Müşteri detayları (detail) ile birlikte döner
  • Yıllık gelir kullanıcının para birimi tercihine göre dönüştürülür