Ana içeriğe geç

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_status completed olmalıdır.
  • Daha önce e-posta gönderilmiş faturalarda (email_sent_at dolu) tekrar gönderim yapılamaz.

İstek

GET /api/re-send-pdf/{id}
Accept: application/json
Authorization: Bearer YOUR_API_KEY

Örnek istekler

<?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);