Müşteri Detaylarını Geri Yükle
Silinmiş müşteri detaylarını geri yükler.
Endpoint
POST /api/v1/customers/\{uuid\}/details/restore
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
customer.details.restore- Tüm müşteri detaylarını geri yüklemecustomer.details.restore.own- Sadece kendi müşteri detaylarını geri yükleme
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 restored",
"detail": {
"id": 1,
"customer_id": 1,
"annual_revenue": 1000000,
"is_active": true,
"deleted_at": null
}
}
Error Responses
404 Not Found
{
"message": "Customer detail not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X POST https://api.example.com/api/v1/customers/550e8400-e29b-41d4-a716-446655440000/details/restore \
-H "Authorization: Bearer \{token\}"
Notes
- Sadece soft delete ile silinmiş müşteri detayları geri yüklenebilir
- Geri yüklenen müşteri detayı
is_activedurumu korunur
Related Endpoints
- Müşteri Detaylarını Sil - Müşteri detaylarını sil
- Müşteri Detaylarını Getir - Müşteri detaylarını getir