PDF e-posta yeniden gönderimi
Resmileşmiş ve henüz e-posta ile gönderilmemiş fatura için PDF bildirimini tetiklemek üzere bu endpoint kullanılır. Koşullar sağlanmazsa doğrulama hatası döner:
formal_statuscompletedolmalıdır.- Daha önce e-posta gönderilmiş faturalarda (
email_sent_atdolu) tekrar gönderim yapılamaz.
İstek
GET /api/re-send-pdf/{id}
Accept: application/json
Authorization: Bearer YOUR_API_KEY
Örnek istekler
- 💻 cURL
- 🐘 PHP
- 🟢 Node.js
curl -X GET "https://app.faturaentegrator.com/api/re-send-pdf/1" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
<?php
$ch = curl_init('https://app.faturaentegrator.com/api/re-send-pdf/1');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Accept: application/json', 'Authorization: Bearer YOUR_API_KEY'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);
const res = await fetch('https://app.faturaentegrator.com/api/re-send-pdf/1', {
headers: { Accept: 'application/json', Authorization: 'Bearer YOUR_API_KEY' },
});
const data = await res.json();