Skip to main content

Webhooks

Overview​

Those webhooks allow you to receive real-time notifications about status changes and important events related to the Commercial Paper issuance process. When an event occurs, QI Tech automatically sends an HTTP POST payload to the configured URL in your system.

Webhook Configuration​

To receive webhooks, you need to configure an endpoint URL in your system. See the webhook configuration documentation for more details on how to register and manage your webhook URLs.

Authentication and Security​

All webhooks sent by QI Tech include a SIGNATURE header holding a JWT signed with HS256 using the Signature Key shared with the partner. The request body is not signed directly: it enters the token through the payload_md5 claim. This signature must be validated in your system to ensure the authenticity and integrity of the received data. For the validation walkthrough, see the webhook authentication documentation.

Available Events​

Issuer Management​

Issuer Registration Approved​

Sent when an issuer registration is approved by compliance.

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"
}
}

Issuer Registration Rejected​

Sent when an issuer registration is rejected by compliance.

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"
}
}

Issuer Auto-signature Status Change​

Sent on every status change of the issuer auto-signature. The enablement is requested by the integrator through POST .../auto_signature, and the adoption agreement envelope is opened during that same call, which already responds with pending_signature. For the caller, the pending_signature webhook confirms what the response returned; for the other consumers of the tenant, it is the notice that the agreement is available for signature. See the auto-signature flow for the meaning of each status.

The creation of the auto-signature (pending_term_generation) does not generate a webhook, because it is the response of the request itself. Every other status does. The enabled status and the canceled that closes a revocation depend on operational steps at QI Tech, so this webhook is the way to know when they happen.

Event Type: issuer_management.auto_signature_status_change

Payload:

{
"event_type": "issuer_management.auto_signature_status_change",
"event_datetime": "2026-02-10T09:16:03Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"issuer_auto_signature_key": "9c3f0f1e-6a2b-4c58-9c9c-0f6b1d2a7e34",
"status": "pending_signature"
}
}
FieldTypeDescription
issuer_keystringUnique issuer key.
issuer_auto_signature_keystringUnique auto-signature key.
statusstringCurrent status: pending_signature, pending_certificate, enabled, pending_revocation, reproved or canceled.

How to handle each received status:

Received statusWhat to do
pending_signatureQuery the signature links and direct each issuer signer to their own link.
pending_certificateThe adoption agreement was signed and can be downloaded through the signed agreement query. Issuances follow the manual signature flow until enabled.
enabledThe issuer is enabled: subsequent issuances are signed automatically.
pending_revocationThe cancellation was requested and the private certificate is being revoked. Until the revocation, CertifiQI can still automatically sign the issuer's operations sent to it: send the next issuances through the manual signature flow.
reprovedThe agreement envelope was refused, canceled or expired. Issuances follow the manual signature flow until a new enablement is created.
canceledThe auto-signature was canceled. A new enablement can be requested.

Settlement Account Management​

Settlement Account Request Status Change​

Sent whenever the issuer's settlement account opening request changes state. The event_data.status field tells which change happened, and must be checked before any handling, because the same event_type carries both the refusal and the opening.

statusMeaning
rejectedThe BaaS refused the opening, for example because of a Bacen Protege+ block. The account is not opened, and the issuer's settlement is blocked until a new request is approved. Once the cause is resolved with the issuer, use the opening retry.
approvedThe request cleared the BaaS validations. The account does not exist yet: it is opened when the issuer's first operation is issued.
openedThe account was opened and can already receive the settlement.

The approved event arrives a few minutes after the issuer is registered and is the counterpart of rejected. It is what tells you that opening the account will be possible, without waiting for the first issuance.

Event Type: liquidation_account.account_request_status_change

Refusal payload:

{
"event_type": "liquidation_account.account_request_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"account_request_key": "7e1c53d6-d372-4020-be6b-ed94248d7ae9",
"status": "rejected",
"rejection_reason": "Rejeitado devido ao Bacen Protege+",
"account_info": {
"account_branch": "0001",
"account_number": "1234567",
"account_digit": "3"
}
}
}

On a refusal, the account_info field is optional and is only sent when the BaaS reports the data of the refused account. The rejection_reason is passed through as received from the BaaS.

Approval payload:

{
"event_type": "liquidation_account.account_request_status_change",
"event_datetime": "2025-07-30T16:07:30Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"account_request_key": "7e1c53d6-d372-4020-be6b-ed94248d7ae9",
"status": "approved",
"account_info": {
"account_branch": "0001",
"account_number": "1234567",
"account_digit": "3"
}
}
}

Opening payload:

{
"event_type": "liquidation_account.account_request_status_change",
"event_datetime": "2025-07-30T16:12:00Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"account_request_key": "7e1c53d6-d372-4020-be6b-ed94248d7ae9",
"status": "opened",
"account_key": "46804f32-101e-4702-8fbc-c2dbc4c2caec",
"account_info": {
"account_branch": "0001",
"account_number": "1234567",
"account_digit": "3"
}
}
}

The current state of the account can also be queried at any time through the settlement account query.

Disbursement Status Change​

Sent for each outcome of an attempt to disburse the integralization to the issuer, or to the third party set on the operation, by TED or Pix.

disbursement_statusWhen it is sent
paidThe BaaS accepted the transfer and the amount left the settlement account.
failedThe transfer did not reach its destination: it was refused when sent (for example, insufficient balance, or a nonexistent account or Pix key) or it was reversed back into the settlement account after being accepted (for example, a TED returned by the receiving bank or a Pix rejected by the SPI).

The same integralization can receive more than one event: a paid followed by failed when the transfer is reversed after being accepted, or a failed followed by paid when the disbursement is sent again successfully. Always take the event with the most recent event_datetime as the current state of the disbursement.

When the disbursement fails, the amount stays in the settlement account and sending it again requires action, usually fixing the recipient's bank details or Pix key.

Event Type: liquidation_account.disbursement_status_change

Paid disbursement payload (Pix):

{
"event_type": "liquidation_account.disbursement_status_change",
"event_datetime": "2026-11-13T17:22:13Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"operation_key": "5b7e2c91-0d43-4f8a-9e16-3a2c7d8f1b04",
"integralization_key": "c4e8a1f2-6b39-4d75-8a02-9f1e3b6c7d58",
"disbursement_status": "paid",
"status_reason": null,
"amount": 85320.0,
"payment_method": "pix",
"end_to_end_id": "E32402502202611131722A1b2C3d4E5f"
}
}

Failed disbursement payload (returned TED):

{
"event_type": "liquidation_account.disbursement_status_change",
"event_datetime": "2026-11-13T17:17:49Z",
"event_data": {
"issuer_key": "18c4d162-1b1b-4c3a-b7a7-5f1200723c43",
"operation_key": "5b7e2c91-0d43-4f8a-9e16-3a2c7d8f1b04",
"integralization_key": "c4e8a1f2-6b39-4d75-8a02-9f1e3b6c7d58",
"disbursement_status": "failed",
"status_reason": {
"code": "agencia_conta_invalida",
"description": "Agência ou Conta Destinatária do Crédito Inválida"
},
"amount": 85320.0,
"payment_method": "ted",
"end_to_end_id": null
}
}
FieldTypeDescription
issuer_keystringKey of the issuer that owns the settlement account.
operation_keystringKey of the operation.
integralization_keystringKey of the integralization whose amount was disbursed.
disbursement_statusstringOutcome of the attempt: paid or failed.
status_reasonobjectReason for the failure. null on paid.
status_reason.codestringReason code, passed through from the BaaS (for example, TED000058 for insufficient balance, PXT000142 for an invalid document on Pix, or the TED return reason) or from QI Tech when the failure happens before sending (for example, ACL000053 for an unregistered Pix key).
status_reason.descriptionstringDescription of the reason.
amountnumberAmount of the disbursement, in reais.
payment_methodstringTransfer method: pix or ted.
end_to_end_idstringPix identifier at the Central Bank, which lets the recipient find the transfer at their own bank. null for TED and when the Pix is refused when sent.

Investor Management​

Investor Registration Approved​

Sent when an investor registration is approved by compliance.

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"
}
}

Investor Registration Rejected​

Sent when an investor registration is rejected by compliance.

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"
}
}

Operation Management​

Operation Approved​

Sent when an operation is approved by compliance and is ready to be sent for 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": "pending_signature_submission"
}
}

Operation Rejected​

Sent when an operation is rejected in the analysis (automatic pre-analysis or manual compliance review). The operation does not proceed to 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": "compliance_reproved",
"reproval_reason": {
"maximum_overdue_by_debtor": "Issuer 12.345.678/0001-90 holds another asset that is more than 0 days overdue."
}
}
}

The reproval_reason field carries the rejection reasons as an object of key and description. In the automatic pre-analysis, each key is the eligibility rule that rejected the operation. The field may come as null when the rejection recorded no reason.

Operation Sent for Signature​

Sent when an operation is sent for signature by the involved parties.

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"
}
}

Operation Signed and Issued​

Sent when an operation is signed by all parties. This event confirms that the Commercial Paper was successfully issued.

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=..."
}
}

The signed_files_url field carries the download link for a compressed file containing all signed contracts of the operation, available regardless of the signature method used. The link is valid for 7 days from the moment the webhook is sent.

Operation Canceled​

Sent when an operation is canceled.

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"
}
}

Subscription Management​

Subscription Sent for Signature​

Sent when a subscription is created and sent for investor signature.

Event Type: subscription.subscription_status_change

Payload:

{
"event_type": "subscription.subscription_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"status": "waiting_signature"
}
}

Subscription Signed​

Sent when the subscription is signed by all parties and is waiting for payment.

Event Type: subscription.subscription_status_change

Payload:

{
"event_type": "subscription.subscription_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"status": "waiting_payment"
}
}

Subscription Completed​

Sent when the subscription is completely finalized after payment confirmation.

Event Type: subscription.subscription_status_change

Payload:

{
"event_type": "subscription.subscription_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"status": "finished"
}
}

Subscription Canceled​

Sent when the subscription is canceled because the integralization was rejected in the eligibility analysis. The integralization order and the signature envelope are canceled along with it.

Event Type: subscription.subscription_status_change

Payload:

{
"event_type": "subscription.subscription_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"operation_key": "89c7f73a-c184-400c-bb2a-dd4424075a4f",
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"status": "canceled",
"cancellation_reason": "ineligible",
"ineligible_reasons": {
"maximum_overdue_by_debtor": "Issuer 12.345.678/0001-90 holds another asset that is more than 0 days overdue."
}
}
}

The cancellation_reason field identifies the cancellation motive with a stable value. For ineligible, the ineligible_reasons field carries an object in which each key is the eligibility rule that rejected the integralization and each value is the corresponding description.

Subscription Payment Management​

Payment Receipt Included​

Sent when a payment receipt is included and is waiting for confirmation.

Event Type: subscription_payment.subscription_payment_status_change

Payload:

{
"event_type": "subscription_payment.subscription_payment_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"subscription_payment_key": "1413020c-6965-40fb-a162-632459d35fd1",
"status": "waiting_confirmation"
}
}

Payment Receipt Approved​

Sent when the payment receipt is approved and confirmed.

Event Type: subscription_payment.subscription_payment_status_change

Payload:

{
"event_type": "subscription_payment.subscription_payment_status_change",
"event_datetime": "2025-07-30T16:05:00Z",
"event_data": {
"integralization_key": "491e4f5c-a173-4ab8-8ec6-24e7aa228099",
"subscription_key": "eb791639-2931-41df-b087-731d40f07a7c",
"subscription_payment_key": "1413020c-6965-40fb-a162-632459d35fd1",
"status": "confirmed"
}
}

Event Flow​

Commercial Paper Issuance Flow​

  1. Issuer Registration → issuer_status_change (approved/reproved)
  2. Investor Registration → investor_status_change (approved/reproved)
  3. Operation Creation → operation_status_change (pending_signature_submission)
  4. Sent for Signature → operation_status_change (waiting_signature)
  5. Operation Issued → operation_status_change (issued)

Subscription Flow​

  1. Subscription Creation → subscription_status_change (waiting_signature)
  2. Signature Completed → subscription_status_change (waiting_payment)
  3. Receipt Inclusion → subscription_payment_status_change (waiting_confirmation)
  4. Payment Confirmed → subscription_payment_status_change (confirmed)
  5. Subscription Completed → subscription_status_change (finished)

Best Practices​

  1. Respond quickly: Return an HTTP 2xx status as quickly as possible to confirm webhook receipt.
  2. Asynchronous processing: For time-consuming operations, confirm receipt immediately and process the event asynchronously.
  3. Idempotency: Implement idempotent logic. A refused event is resent up to 7 times over roughly 22 hours, so your endpoint may receive the same event more than once. See how to recognize a repeat in the retry policy.
  4. Signature validation: Always validate the JWT in the SIGNATURE header before processing the webhook.
  5. Logs and monitoring: Maintain detailed logs of all received webhooks for auditing and debugging.

References​