> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chargeblast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerts Implementation

> Learn how to implement CDRN (Visa) and Ethoca (Mastercard) alerts to intercept disputes before they become chargebacks.

## Overview

Alerts notify you when a cardholder contacts their bank to dispute a transaction. By actioning alerts quickly (typically within 48 hours), you can issue a refund and prevent the dispute from escalating into a chargeback.

Chargeblast supports two alert networks:

* **Ethoca** (Mastercard) — Best coverage, front-runs other alert types
* **CDRN** (Visa) — Issuer-based Visa product

> [!NOTE]
>
> For information on **RDR** (Visa's acquirer-side product), see the [RDR Endpoint](https://docs.chargeblast.com/api-reference/getting-started/rdr-endpoint.md) documentation. RDR is handled automatically at the acquirer level and requires a separate implementation.

***

## Choose Your Integration Path

> [tab] Push Data (Recommended)
>
> ### How It Works
>
> 1. **Connect your transaction data** via one of two methods:
>    * [Supported payment processor](https://www.chargeblast.com/integrations) (Stripe, Braintree, etc.)
>    * [Upload Orders](https://docs.chargeblast.com/api-reference/sync-data/upload-orders.md) endpoint
>
> 2. **Chargeblast matches alerts to your transactions** automatically using card details, amounts, and dates.
>
> 3. **Receive webhooks** with matched `externalOrder` IDs:
>    * `alert.created` — New alert received
>    * `alert.updated` — Alert status changed (includes `externalOrder`)
>    * `alert.refunded` — Alert triggered a refund
>
> 4. **Action alerts** by calling the [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) endpoint with the appropriate reason code.
>
> ### Implementation Steps
>
> **1. Connect Transaction Data**
>
> Either connect a [supported PSP](https://www.chargeblast.com/integrations) or implement the [Upload Orders](https://docs.chargeblast.com/api-reference/sync-data/upload-orders.md) endpoint to push transaction data.
>
> ```bash theme={null}
> POST /api/v2/orders/upload
> ```
>
> **2. Set Up Webhooks**
>
> Configure your [webhook URL](https://docs.chargeblast.com/api-reference/webhooks/setup.md) in the Chargeblast dashboard to receive alert notifications.
>
> **3. Process Refunds & Update Alerts**
>
> When you receive an `alert.created` or `alert.updated` webhook with a matched `externalOrder`, process the refund in your payment system and then call the [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) endpoint:
>
> ```bash theme={null}
> POST /api/v2/alerts/update/{id}
>
> {
>   "result": "Resolved"
> }
> ```
>
> > [!NOTE]
> >
> > **Strongly recommended:** Use the [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) endpoint to action alerts. The [Refund Endpoint](https://docs.chargeblast.com/api-reference/getting-started/refund-endpoint) approach (where Chargeblast calls your server) is largely deprecated.
>
> > [!NOTE]
> >
> > With push data integration, alert webhooks include matched order IDs, making it easy to identify which transaction to refund. Webhook and API alert payloads may also include **`attributes`**: an optional dictionary of string keys and string values (for example `order_number`, `processor_id`) for extra metadata—see [Webhooks](https://docs.chargeblast.com/api-reference/webhooks/setup.md#body).

> [tab] Pull Data
>
> ### How It Works
>
> 1. **Receive raw alerts** via webhooks or polling — alerts arrive without matched order IDs.
>
> 2. **You perform matching** using card details (BIN, last 4), amounts, dates, and auth codes.
>
> 3. **Action alerts** by calling the [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) endpoint with the appropriate [reason code](https://docs.chargeblast.com/reference/reason-codes.md).
>
> ### Implementation Steps
>
> **1. Set Up Webhooks or Polling**
>
> Either configure [webhooks](https://docs.chargeblast.com/api-reference/webhooks/setup.md) for `alert.created` events, or poll the [Fetch Alerts](https://docs.chargeblast.com/api-reference/alerts/fetch-alerts.md) endpoint periodically.
>
> **2. Implement Matching Logic**
>
> Build logic to match incoming alerts to transactions in your system using:
>
> * Card BIN (first 6 digits) and last 4 digits
> * Transaction amount and currency
> * Transaction date
> * Auth code (if available)
> * ARN (Acquirer Reference Number, if available)
>
> **3. Process Refunds**
>
> When a match is found, process the refund in your payment system.
>
> **4. Update Alert Status**
>
> Call the [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) endpoint with the appropriate [reason code](https://docs.chargeblast.com/reference/reason-codes.md):
>
> ```bash theme={null}
> POST /api/v2/alerts/update/{id}
>
> {
>   "result": "Resolved"
> }
> ```
>
> > [!WARNING]
> >
> > For best results, action alerts within 48 hours. Unactioned alerts may escalate to chargebacks.

***

## API Reference

| Endpoint | Description |
| - | - |
| [Upload Orders](https://docs.chargeblast.com/api-reference/sync-data/upload-orders.md) | Push transaction data for matching |
| [Fetch Alerts](https://docs.chargeblast.com/api-reference/alerts/fetch-alerts.md) | Poll for alerts |
| [Fetch Alert](https://docs.chargeblast.com/api-reference/alerts/fetch-an-alert.md) | Get a specific alert |
| [Update Alert](https://docs.chargeblast.com/api-reference/alerts/update-alert.md) | Action an alert with a reason code |
| [Webhooks](https://docs.chargeblast.com/api-reference/webhooks/setup.md) | Receive real-time alert notifications |
| [Reason Codes](https://docs.chargeblast.com/reference/reason-codes.md) | Full list of reason codes |

***

## Related

* [Reason Codes Reference](https://docs.chargeblast.com/reference/reason-codes.md) — Full list of codes and when to use them
* [RDR Endpoint](https://docs.chargeblast.com/api-reference/getting-started/rdr-endpoint.md) — Visa's acquirer-side dispute resolution
* [Refund Endpoint](https://docs.chargeblast.com/api-reference/getting-started/refund-endpoint) — Legacy automated refund processing (deprecated)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.