Chargebacks and alerts
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.
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 | transactionId is the chargeback ID; originTransactionId and originMerchantTxnId identify the original transaction | Pass the chargeback ID in chargebackIds to Query chargebacks; the corresponding response field is chargebackId |
| Chargeback alert | 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 | notificationId uniquely identifies the notification; originTransactionId and merchantTxnId link it to the original transaction | Use notificationId in 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 to submit a request and confirm its result. Receiving an alert does not mean the transaction has been refunded.