# Prevention alerts

The <a href="https://docs.solidgate.com/reporting/operational-reports/prevention-alerts/" target="_blank">report</a> retrieves data to identify and resolve potential issues, thereby preventing the generation of alerts.
<blockquote>
<p>This report uses the <code>created_at</code> as the default parameter for unloading data.</p>
<p>In a successful response, the <code>report_url</code> field will contain a link to the file.</p>
</blockquote>

Endpoint: POST /prevention_alerts
Version: 1.0.0
Security: merchant, signature

## Header parameters:

  - `merchant` (string, required)

  - `signature` (string, required)

## Request fields (application/json):

  - `filter` (string)
    Filtering criteria for the report data.
    Enum: "updated_at", "created_at"

  - `date_from` (string, required)
    Start datetime for the report stated in UTC+0.
    Example: 2025-08-15 11:00:00

  - `date_to` (string, required)
    End datetime for the report stated in UTC+0.
    Example: 2025-09-20 13:00:00

## Response 200 fields (application/json):

  - `report_url` (string)
    URL for the report stored on Amazon S3, which needs to be downloaded.
    Example: https://reports.solidgate.com/api/v1/prevention_alerts/report/prev_alert_220504_143924_test/download

  - `error` (object, required)
    Error object.

  - `error.code` (string, required)
    Unauthorized access due to invalid credentials.
    Example: 1.01

  - `error.messages` (array, required)
    Array of error messages applied to the decline payment.

