跳到主要内容

待处理交易 Webhook

用于通知原本以待处理状态响应(返回 http status 202)的交易完成情况的 Webhook。

Webhook 请求体

请求体:已发送交易
{
"webhook_type": "baas.pix_transfer.outgoing_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "sent",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
请求体:已拒绝交易
{
"webhook_type": "baas.pix_transfer.outgoing_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z",
"error_code": "PXT000132",
"error_description": "Target account number is invalid.",
"error_translation": "Número da conta de destino é inexistente ou inválido.",
"error_short_description": null
}
}

Webhook 请求体参数

字段类型描述最大字符数
webhook_typestring定义所报告事件类型的枚举值。23
webhook_datetimestringWebhook 发送的日期和时间。20
request_control_keystring用于查询所发请求的 UUID4。36
pix_transfer_keystring在 QI 系统中识别 PIX 转账的密钥。36
pix_transfer_statusstring交易状态。200
created_atstring交易创建的日期和时间。20