书写 Webhooks
概述
书写 webhooks 允许您实时接收有关商业票据发行流程中状态变更和重要事件的通知。当事件发生时,QI Tech 会自动向您系统中配置的 URL 发送 HTTP POST 载荷。
Webhooks 配置
要接收 webhooks,您需要在系统中配置端点 URL。请参阅 webhooks 配置文档 了解如何注册和管理您的 webhook URL 的更多详情。
认证和安全
QI Tech 发送的所有 webhooks 在 Signature header 中包含 HMAC-SHA256 签名。您的系统必须验证此签名,以确保接收数据的真实性和完整性。有关验证流程的更多信息,请参阅 webhooks 认证文档。
可用事件
发行人管理
发行人登记已批准
当发行人的登记被合规团队批准时发送。
Event Type: issuer_management.issuer_status_change
Payload:
{
"event_type": "issuer_management.issuer_status_change",
"event_datetime": "2025-07-30T15:32:00Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"status": "approved"
}
}
发行人登记未批准
当发行人的登记被合规团队拒绝时发送。
Event Type: issuer_management.issuer_status_change
Payload:
{
"event_type": "issuer_management.issuer_status_change",
"event_datetime": "2025-07-30T15:32:00Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"status": "reproved"
}
}
投资人管理
投资人登记已批准
当投资人的登记被合规团队批准时发送。
Event Type: investor_management.investor_status_change
Payload:
{
"event_type": "investor_management.investor_status_change",
"event_datetime": "2025-07-30T15:32:00Z",
"event_data": {
"investor_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"status": "approved"
}
}
投资人登记未批准
当投资人的登记被合规团队拒绝时发送。
Event Type: investor_management.investor_status_change
Payload:
{
"event_type": "investor_management.investor_status_change",
"event_datetime": "2025-07-30T15:32:00Z",
"event_data": {
"investor_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"status": "reproved"
}
}
操作管理
操作已批准
当操作被合规团队批准并准备好发送签名时发送。
Event Type: commercial_paper.operation_status_change
Payload:
{
"event_type": "commercial_paper.operation_status_change",
"event_datetime": "2025-07-30T15:45:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"status": "pending_signature_submission"
}
}
操作未批准
当操作在审核中被拒绝时发送(自动预审或合规团队的人工审核)。该操作不会进入签署流程。
Event Type: commercial_paper.operation_status_change
Payload:
{
"event_type": "commercial_paper.operation_status_change",
"event_datetime": "2025-07-30T15:45:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"status": "compliance_reproved",
"reproval_reason": {
"maximum_overdue_by_debtor": "Issuer 12.345.678/0001-90 holds another asset that is more than 0 days overdue."
}
}
}
reproval_reason 字段以「键—说明」对象的形式提供拒绝原因。在自动预审中,每个键为导致该操作被拒绝的合格性规则。当拒绝未记录任何原因时,该字段可能为 null。
操作已发送签名
当操作被发送给相关方签名时发送。
Event Type: commercial_paper.operation_status_change
Payload:
{
"event_type": "commercial_paper.operation_status_change",
"event_datetime": "2025-07-30T15:45:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"status": "waiting_signature"
}
}
操作已签名并发行
当操作被所有各方签署时发送。此事件确认商业票据已成功发行。
Event Type: commercial_paper.operation_status_change
Payload:
{
"event_type": "commercial_paper.operation_status_change",
"event_datetime": "2025-07-30T15:45:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"status": "issued",
"signed_files_url": "https://storage.googleapis.com/commercial-paper-bucket/89c7f73a-c184-400c-bb2a-dd4424075a4f/signed_files?X-Goog-Algorithm=..."
}
}
signed_files_url 字段提供一个下载链接,其中包含该操作所有已签署合同的压缩包,适用于所有签署方式。该链接自 Webhook 发送起 7 天内有效。
操作已取消
当操作被取消时发送。
Event Type: commercial_paper.operation_status_change
Payload:
{
"event_type": "commercial_paper.operation_status_change",
"event_datetime": "2025-07-30T15:45:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"status": "canceled"
}
}