Ürün silme
Belirtilen ID’ye sahip ürün kaydını silmek için bu endpoint kullanılır.
İstek
DELETE /api/products/{id}
Accept: application/json
Authorization: Bearer YOUR_API_KEY
Örnek istekler
- 💻 cURL
- 🐘 PHP
- 🟢 Node.js
- 🐍 Python
curl -X DELETE "https://app.faturaentegrator.com/api/products/1" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
<?php
$ch = curl_init('https://app.faturaentegrator.com/api/products/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/products/1', {
method: 'DELETE',
headers: { Accept: 'application/json', Authorization: 'Bearer YOUR_API_KEY' },
});
import requests
requests.delete(
'https://app.faturaentegrator.com/api/products/1',
headers={'Accept': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY'},
)