# Chargebacks and alerts

> Receive chargeback and alert notifications for Onerway transactions, match notifications to orders, and query chargeback status.

This guide is for merchants that accept payments through Onerway. Your server can receive chargeback status changes, chargeback alerts, and fraud alerts, match them to the original orders, and query chargeback or fraud records.

If you are an agency integrating alert services for third-party merchants, see [Agency alert services](/payments/online-payments/scenarios/agency-alerts).

## Receive notifications and match orders

Configure notification URLs under **Developers → Webhooks** in the merchant portal: select **Pre-disputes** for chargeback alerts and **Notifications of Fraud** for fraud alerts. Chargeback status changes are sent to the `notifyUrl` from the original transaction request.

Follow the corresponding webhook reference to verify the signature, process the notification, and return the required acknowledgement. Use the identifiers below to match orders or query records.

| Notification | Identifiers to store | How to use the identifiers |
| --- | --- | --- |
| [Chargeback status changed](/payments/api-reference/webhooks/chargeback-status-changed) | `transactionId` is the chargeback ID; `originTransactionId` and `originMerchantTxnId` identify the original transaction | Pass the chargeback ID in `chargebackIds` to [Query chargebacks](/payments/api-reference/endpoints/query-chargebacks); the corresponding response field is `chargebackId` |
| [Chargeback alert](/payments/api-reference/webhooks/chargeback-alert-created) | `predisputeId` is the alert ID; the notification's `transactionId` has the same value | Use `txnId` to identify the original payment and `merchantTxnId` to match the merchant order |
| [Fraud alert](/payments/api-reference/webhooks/fraud-alert) | `notificationId` uniquely identifies the notification; `originTransactionId` and `merchantTxnId` link it to the original transaction | Use `notificationId` in [Query fraud notifications](/payments/api-reference/endpoints/query-fraud-notifications) to retrieve the record |

## Update case records

You may receive several status notifications for the same chargeback. We recommend storing its latest status and preventing repeated notifications from triggering the same action again. Continue to process status changes even if the chargeback ID is already in your records. You can identify repeated fraud alerts by `notificationId` and repeated chargeback alerts by `predisputeId`.

## Query chargeback status

To query a known chargeback, pass its ID in `chargebackIds` and read `chargebackStatus` in the returned record.

`importTimeStart` and `importTimeEnd` filter records by when Onerway received them. This time range cannot be used to find cases whose status changed recently.

If you need to refund the transaction, follow [Refunds](/payments/online-payments/scenarios/refunds) to submit a request and confirm its result. Receiving an alert does not mean the transaction has been refunded.
