支持的事件类型(webhookResult.type字段)

  • wallets.transaction.updated - 交易事件更新
  • wallets.transaction.succeeded - 交易成功
  • wallets.transaction.failed - 交易失败

交易状态说明(webhookResult.data.status字段)

  • Processing - 待确认
  • Approved - 审核通过
  • Cancelled - 已取消
  • Rejected - 被拒绝
  • Completed - 已完成
  • Failed - 失败

字段说明 (划转时,webhook收到的内容)

{
  "event_id": "9eb738b4-782d-4f08-a931-d125eead5244",
  "url": "https://nwdev.nusd.me/webhooks",
  "created_timestamp": 1779360277522,
  "type": "wallets.transaction.succeeded", // webhook事件类型
  "data": {
    "request_id": "7811e66v-5cdf-4019-9ad2-2598e1dfd39o",
    "transaction_id": "60c41641-823a-4a3f-8f4a-d70f2ff2ba43",
    "wallet_id": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b", // 回调接收方钱包id
    "type": "Transfer", // 划转事件
    "status": "Completed", // 交易状态
    "source": { // 划转来源
      "type": "TransferFromWallet",
      "wallet": "332cf3e4-af07-46f9-a3da-4aa2cbe3bdd4" // 转出方钱包id
    },
    "destination": { // 划转目标
      "type": "TransferToWallet",
      "wallet": "1b8d5efd-d7a8-48ac-a195-cc8e043ae36b", // 接收方钱包id
      "amount": "11", // 划转数量
      "user_token": "10006", // 接收方用户id或token
      "user_name": "" // 接收方用户姓名/昵称
    },
    "created_timestamp": 1779360170272,
    "updated_timestamp": 1779360277522,
    "notes": "" // 备注
  }
}