Onerway
POST

Ethoca alert webhook

Use this webhook to receive Ethoca alert notifications and link each alert back to the original transaction through ethocaId and transactionId.
Developers → Webhooks → Pre-disputes (for resellers) → Ethoca

Verification

Verification guide

Header-signed

Signature header
x-signature

Webhook payload fields

x-signature
Recommended signature for verifying this notification. Contains one or more comma-separated v1=<signature> values.
X-Rh-Signature
Compatibility signature header for existing integrations. We recommend x-signature for new integrations.
x-timestamp
Notification send time as a Unix timestamp in seconds. Excluded from the signature.
sign
Notification signature included in the body. Verify the x-signature header. Exclude sign itself when calculating the signature.
id
Onerway alert notification record ID, used to locate this alert notification record.
Constraints
Rule
This value is a large integer. JavaScript systems should preserve it as a string or 64-bit integer to avoid precision loss.
merchantNo
Merchant number assigned by Onerway, identifying the merchant account receiving this alert.
Constraints
Rule
The notification can return this value as a JSON number. Normalize it as a string before storing or comparing it with other Onerway API values.
ethocaId
Unique Ethoca alert identifier. Submit this value when reporting the alert outcome.
alertType
Alert type indicating whether this notification is a customer dispute alert, fraud alert, or chargeback alert.
Allowed values
CustomerDispute
Customer dispute alert.
FraudAlert
Fraud alert.
ChargebackAlert
Chargeback alert.
alertTime
Alert creation time in yyyy-MM-dd HH:mm:ss format.
alertAge
Elapsed time between alert creation and this notification. Use it to assess alert age and handling priority.
Constraints
Rule
The unit is hours.
txnTime
Original transaction time in yyyy-MM-dd HH:mm:ss format.
txnAmount
Original transaction amount.
txnCurrency
Original transaction currency, using a three-letter ISO 4217 currency code.
resellerSubMerchantId
Agency sub-merchant identifier.
billDesc
Merchant billing descriptor used to match the alert to merchant information shown on the cardholder statement.
arn
Acquirer Reference Number (ARN), used for reconciliation, alert review, and dispute handling.
submitOutcomeStatus
Alert outcome submission status. Do not treat this field as the final outcome value.
Allowed values
PENDING_OUTCOME
Pending outcome. The alert is still waiting for outcome submission.
OUTCOME_RECEIVED
Outcome received. The alert outcome has been accepted.
outcome
Merchant outcome for this alert.
Allowed values
stopped
Order stopped.
partially_stopped
Order partially stopped.
previously_cancelled
Transaction previously cancelled.
outcomeUpdatedTime
Alert outcome update time in yyyy-MM-dd HH:mm:ss format.
refundStatus
Refund status corresponding to this alert outcome.
Allowed values
refunded
Refund completed.
not refunded
No refund was issued.
not settled
Refund is processing.
createOpr
Record metadata: identifier of the account or system that created the alert record. Do not use this field to determine alert status or required business action.
createTime
Alert record creation time in Onerway in yyyy-MM-dd HH:mm:ss format.
updateOpr
Record metadata: identifier of the account or system that most recently updated the alert record. Do not use this field to determine alert status or required business action.
updateTime
Most recent alert record update time in Onerway in yyyy-MM-dd HH:mm:ss format.
issuer
Issuer identifier. The value format is returned by the alert network.
cardNumber
Card number information associated with the alerted transaction.
Constraints
Rule
If the payload contains a full PAN, handle it according to PCI DSS requirements and avoid storing it in logs, support tickets, or ordinary databases.
ethocaMerchantId
Ethoca merchant identifier, used in the Ethoca alert network to match merchants and billing descriptors.
mcc
Merchant Category Code (MCC), usually a four-digit code.
transactionType
Original transaction type or transaction scenario.
Example:
initiatedBy
Alert initiator, usually a card network, issuer, or alert network identifier.
liability
Party liable for the transaction: yes means the issuer is liable; no means the merchant is liable; not_available means the value was not provided.
authCode
Authorization code of the original transaction, usually returned by the issuer or acquiring network after successful authorization.
integratorMemberId
Integrator member ID identifying the integration relationship on the alert network side.
transactionId
Original Onerway transaction ID used to associate transaction query, refund, chargeback, and alert outcome records.
chargebackReasonCode
Chargeback or dispute reason code provided by the card network or alert network.
chargebackAmount
Chargeback or dispute amount provided in the Ethoca alert, in chargebackCurrency.
chargebackCurrency
Currency of the chargeback or dispute amount provided in the Ethoca alert, using a three-letter ISO 4217 currency code.

Webhook example

{
  "id": 1234567890,
  "merchantNo": "replace_with_merchant_no",
  "ethocaId": "replace_with_ethoca_id",
  "alertType": "ChargebackAlert",
  "alertTime": "2025-04-14 14:26:21",
  "alertAge": 12,
  "txnTime": "2025-04-13 09:15:00",
  "txnAmount": 100,
  "txnCurrency": "USD",
  "resellerSubMerchantId": null,
  "billDesc": "DEMO STORE",
  "arn": "replace_with_acquirer_reference_number",
  "submitOutcomeStatus": "PENDING_OUTCOME",
  "outcome": null,
  "outcomeUpdatedTime": null,
  "refundStatus": null,
  "createOpr": "SYSTEM",
  "createTime": "2025-04-14 14:26:21",
  "updateOpr": "SYSTEM",
  "updateTime": "2025-04-14 14:26:21",
  "issuer": "replace_with_issuer_identifier",
  "cardNumber": "replace_with_card_number",
  "ethocaMerchantId": "replace_with_ethoca_merchant_id",
  "mcc": "5812",
  "transactionType": "eCommerce",
  "initiatedBy": "replace_with_alert_initiator",
  "liability": "no",
  "authCode": "replace_with_authorization_code",
  "integratorMemberId": "replace_with_integrator_member_id",
  "transactionId": "replace_with_transaction_id",
  "chargebackReasonCode": "4837",
  "chargebackAmount": 100,
  "chargebackCurrency": "USD",
  "sign": "replace_with_sha256_signature"
}

Acknowledgement

After verifying the signature and accepting the notification, return HTTP 200 with a plain-text body containing exactly 20000, without quotes, whitespace, or a trailing newline. If delivery fails or the response body does not match, Onerway makes up to 6 application-level attempts in total, including the first attempt, with waits of 5, 10, 20, 40, and 60 seconds between attempts. Transport-level retries for I/O errors are counted separately; these limits do not specify a fixed total number of HTTP requests.

Response body example

20000