Ana içeriğe geç

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ükleme
  • customer.details.restore.own - Sadece kendi müşteri detaylarını geri yükleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetMüş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_active durumu korunur