Onerway
POST

卡交易事件

回调地址
使用此 webhook 接收卡交易事件。

回调报文字段

request_id
用于去重的唯一事件标识。
event_type
事件类型标识。
约束
取值
此 webhook 固定为 issuing.cardTransactionEvent。
created_at
事件创建时间,ISO 8601 格式。
version
创建 webhook 订阅时选择的 API 版本。
卡交易事件业务数据。

回调示例

{
  "request_id": "replace_with_event_id",
  "event_type": "issuing.cardTransactionEvent",
  "created_at": "2026-01-01T00:00:00Z",
  "version": "1.0",
  "data": {
    "txnType": "AUTHORIZATION",
    "txnStatus": "S",
    "txnOrderNo": "TXN20260101001",
    "originTxnOrderNo": null,
    "originTxnOrderNoForRefund": null,
    "cardId": "100001",
    "authTime": 1735689600000,
    "authorizationCode": "AUTH001",
    "authMessageDesc": "Approved",
    "transactionAmount": 50,
    "transactionCurrency": "USD",
    "transactionTime": 1735689600000,
    "cardAmount": 50,
    "cardCurrency": "USD",
    "settleAmount": 50,
    "settleCurrency": "USD",
    "settleTime": 1735776000000,
    "transactionFee": 0.5,
    "transactionFeeCurrency": "USD",
    "crossBorderFee": null,
    "crossBorderFeeCurrency": null,
    "exchangeFee": null,
    "exchangeFeeCurrency": null,
    "merchantId": "example_merchant_id",
    "merchantName": "Example Merchant",
    "merchantCountry": "United States",
    "merchantCountryCode": "US",
    "merchantStateProvince": "WA",
    "merchantCity": "Seattle",
    "merchantPostalCode": "98101",
    "merchantMccCode": "5411"
  }
}

应答说明

成功接收并受理卡交易事件后返回 HTTP 200 和 respCode=20000;响应码不是 20000 时 Onerway 会重试。

应答正文示例

{
  "respCode": "20000",
  "respMsg": "success"
}