# 反欺诈系统拒绝了交易 当交易在反欺诈系统检查期间被拒绝时,艾克索拉会向Webhook URL发送一个包含交易详情的afs_reject类型的Webhook。要接收该Webhook,请联系您的客户成功经理或发送电子邮件至csm@xsolla.com。 在发布商帐户中保存 Webhook URL 时,可以授予在 Webhook 中接收详细信息的权限。为此,请在发布商帐户的项目设置 > Webhooks> 高级设置部分中将以下开关设置为打开状态。 注: 如果是在2025年1月22日或之前注册的发布商帐户,可在项目设置> Webhooks> 测试 > 付款> 高级设置 部分中找到这些开关。 开关 描述 显示通过保存的支付方式进行的交易的信息 信息在Webhook的以下自定义参数中传递:saved_payment_method:0 — 未使用保存的支付方式1 — 进行当前付款时保存了支付方式2 — 使用了之前保存的支付方式payment_type:1 — 一次性支付2 — 定期支付 Endpoint: POST afs-rejected-transaction Version: 1.0 ## Request fields (application/json): - `notification_type` (string, required) 通知类型。 - `refund_details` (object) 退款详情(对象)。 - `refund_details.author` (string) 退款申請人。 - `refund_details.code` (integer) 代码ID。 - `refund_details.reason` (string) 退款原因。 - `settings` (object) 带有自定义项目设置的对象。 - `settings.merchant_id` (integer) 商户ID。 - `settings.project_id` (integer) 项目编号。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边。 - `transaction` (object, required) 交易ID。 - `transaction.agreement` (integer) 协议ID。 - `transaction.dry_run` (integer) 测试交易。如为测试交易,该参数的值为1;如为真实交易,则不会发送该参数。 - `transaction.external_id` (string) 交易外部ID。 - `transaction.id` (integer) 交易ID。 - `user` (object) 用户详情(对象)。 - `user.country` (string) 用户所在国家/地区。使用[ISO 3166-1 alpha-2 标准](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)规定的2字母组合表示国家/地区。 - `user.email` (string) 用户电子邮件。 - `user.id` (string, required) 用户ID。 - `user.ip` (string) 用户 IP 地址。 - `user.name` (string) 用户名。 - `user.phone` (string) 用户电话号码(采用国际格式)。 - `user.zip` (string) 邮编。 ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields