# 反欺诈黑名单更新

当反欺诈系统的黑名单发生更新（添加或删除了参数）时，艾克索拉会向Webhook URL发送一个afs_black_list类型的Webhook。参数添加在艾克索拉侧自动执行或根据您的请求执行。删除参数只能根据您的请求才可以进行。要接收此Webhook，请联系您的客户成功经理或发送电子邮件至csm@xsolla.com。

Endpoint: POST afs-rejected-blocklist
Version: 1.0

## Request fields (application/json):

  - `event` (object, required)
    包含AFS拦截列表事件信息的对象。

  - `event.action` (string)
    事件类型。
    Enum: "adding", "removing"

  - `event.date_of_last_action` (string)
    [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)格式的最近AFS拦截列表事件时间。

  - `event.parameter` (string)
    发生事件的参数的名称。
    Enum: "nick", "email", "ps_account", "ip_address", "card_issuer", "phone"

  - `event.parameter_value` (string)
    发生事件的参数的值。

  - `event.project_id` (integer)
    项目ID。您可以在[帐户](/zh/webhooks/overview/#business-accounts)中项目名称旁找到该参数。

  - `event.reason` (string)
    事件的原因。
    Enum: "chargeback", "fraud_activity", "suspicious_activity", "ps_reported_fraud", "linked_chargeback", "partner_request", "friendly_fraud", "user_reported_fraud", "linked_parameter", "other_data_in_blacklist", "by_afs_filters", "wrongly_added", "removed_by_cs_review", "other_forgiveness_reason"

  - `event.transaction_id` (string)
    发生事件的参数关联的交易ID。

  - `notification_type` (string, required)
    通知类型。

## Response 400 fields (application/json):

  - `error` (object)

  - `error.code` (string)

  - `error.message` (string)


## Response 204 fields

## Response 500 fields
