Esporta report di consegna
POST/api/partner-gateway/v1/exports/delivery-reports
Queues an asynchronous CSV export of delivery reports (message-level send and delivery statuses). You can scope the export in two ways: (1) provide a campaignId to export delivery reports for a specific campaign, or (2) provide a date range using startDateTime and endDateTime to export all delivery reports within that period. The endpoint returns 202 Accepted immediately, meaning the export job has been queued but not yet completed. To track progress, poll GET /exports periodically (every 5-10 seconds is recommended). When the job finishes and isAvailableForDownload becomes true, call GET /exports/{exportId} to retrieve the time-limited download URL for the CSV file. If you need to export the same data again after the URL expires, use POST /exports/{exportId} to regenerate the export. Returns 400 if the request body is invalid (e.g. missing both campaignId and date range, or invalid date format). Returns 500 if an internal error occurs while queuing the job.
Richiesta
Risposte
- 202
- 400
- 500
Lavoro di esportazione accodato
Richiesta non valida
Errore interno del server