Müşteri silme
Belirtilen ID'ye sahip müşteri kaydını silmek için bu endpoint kullanılır.
İstek
DELETE /api/customers/{id}
Accept: application/json
Authorization: Bearer YOUR_API_KEY
Örnek istekler
- 💻 cURL
- 🐘 PHP
- 🟢 Node.js
- 🐍 Python
- 🔷 C#
curl -X DELETE "https://app.faturaentegrator.com/api/customers/1" -H "Accept: application/json" -H "Authorization: Bearer YOUR_API_KEY"
<?php
$ch = curl_init('https://app.faturaentegrator.com/api/customers/1');
curl_setopt_array($ch, [CURLOPT_CUSTOMREQUEST => 'DELETE', CURLOPT_HTTPHEADER => ['Accept: application/json', 'Authorization: Bearer YOUR_API_KEY'], CURLOPT_RETURNTRANSFER => true]);
curl_exec($ch);
curl_close($ch);
await fetch('https://app.faturaentegrator.com/api/customers/1', { method: 'DELETE', headers: { 'Accept': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' } });
import requests
requests.delete(
'https://app.faturaentegrator.com/api/customers/1',
headers={'Accept': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY'}
)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Accept", "application/json");
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
await client.DeleteAsync("https://app.faturaentegrator.com/api/customers/1");