场景模拟
逐步模拟外部代理执行操作的过程。这些模拟包括违规举报的接收和更新。
信息
这些请求没有返回载荷(响应体),只有状态码 204 的响应状态。由模拟生成的内容需通过 webhook 接收。
1 - 模拟接收违规举报
模拟接收由其他机构开启的违规举报。
重要
发送请求时必须有一个有效的 pix_transfer_key,不必特别关注转账另一方的信息,因为在模拟过程中第二个参与者的所有信息都将被替换。
请求
ENDPOINT
/mock/pix/infraction_reportMÉTODO
POST请求体
{
"infraction_report_status": "acknowledged",
"pix_transfer_key": "28290ff2-2ba7-4e85-9a5e-862c92259b33",
"infraction_report_type": "refund_request",
"infraction_report_situation": "scam",
"infraction_report_details": "Transação com suspeita de fraude.",
}
请求体对象
| 字段 | 类型 | 描述 | 最大字符数 |
|---|---|---|---|
| infraction_report_status* | string | 违规举报的接收状态:"acknowledged"。 | infraction_report_status 枚举值 |
| pix_transfer_key* | string | UUID4,标识相关交易的唯一密钥。 | 36 |
| infraction_report_type* | string | 违规举报类型。 | infraction_report_type 枚举值 |
| infraction_report_situation* | string | 违规发生的情形。 | infraction_report_situation 枚举值 |
| infraction_report_details* | string | 违规举报详细信息。 | 2000 |
infraction_report_status 枚举值
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
open | string | 违规举报已创建并在 BACEN 中处于开启状态。 | - |
acknowledged | string | 违规举报已被参与者接收。 | - |
cancelled | string | 违规举报在 BACEN 中已取消。 | - |
closed | string | 违规举报在 BACEN 中已关闭。 | - |
infraction_report_type 枚举值
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
refund_request | string | 为申请退款而生成的违规举报。 | - |
refund_cancelled | string | 因退款取消而生成的违规举报。 | - |
infraction_report_situation 枚举值
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
scam | string | 诈骗或欺诈行为。 | - |
account_takeover | string | 来源账户未授权的交易。 | - |
coercion | string | 胁迫犯罪。 | - |
fraudulent_access | string | 对来源账户的欺诈性访问。 | - |
other | string | 不适用于上述列举的其他任何原因。 | - |
2 - 模拟更新违规举报
模拟由间接参与者开启的违规举报的状态更新。
违规举报更新的模拟选项包括:
1 - 取消:模拟由另一参与者对其之前自行开启的违规举报执行取消(cancel)操作。
2 - 关闭:模拟由另一参与者对间接参与者开启的违规举报执行关闭(close)操作。