Müşteri Detaylarını Sil
Müşteri detaylarını soft delete ile siler.
Endpoint
DELETE /api/v1/customers/\{uuid\}/details
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
customer.details.delete- Tüm müşteri detaylarını silmecustomer.details.delete.own- Sadece kendi müşteri detaylarını silme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Müşteri UUID'si |
Response
Success Response (200 OK)
{
"message": "Customer detail deleted"
}
Error Responses
404 Not Found
{
"message": "Customer detail not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X DELETE https://api.example.com/api/v1/customers/550e8400-e29b-41d4-a716-446655440000/details \
-H "Authorization: Bearer \{token\}"
Notes
- Soft delete kullanılır, kayıt veritabanından silinmez
- Silinen müşteri detayları geri yüklenebilir
Related Endpoints
- Müşteri Detaylarını Geri Yükle - Müşteri detaylarını geri yükle
- Müşteri Detaylarını Getir - Müşteri detaylarını getir