Skip to main content

Invoice Webhooks

Attention!

QI Tech webhooks should not be mapped in a restrictive way. Additional fields may be included in the webhook payloads returned by our APIs.

Webhook Resending

You can check and resend webhooks by following the detailed instructions in the documentation: Webhook Resending.

Introduction

After closing an invoice (invoice) within our system, a webhook will be sent with the invoice status change:

EnumeratorTranslationDescription
processing_closingprocessing closureInvoice being processed for closure
processing_expirationprocessing expirationInvoice being processed for expiration
closedclosedInvoice closed, no longer receives items and payments have been processed
processing_paymentawaiting paymentInvoice awaiting payment (applicable only for payroll type wallets when there is remaining amount to be paid)
paidpaidInvoice paid
Information

The timeout for our webhook response is 10 seconds.

Examples

Invoice closure confirmation

Webhook Body
{
"webhook_type": "baas.invoice.invoice_status_change",
"webhook_datetime": "2024-08-13T21:35:55.679Z",
"data": {
"invoice_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"total_amount": 350.00,
"paid_amount": 0.00,
"closing_date": "2024-01-31",
"due_date": "2024-02-15",
"invoice_status": "closed"
}
}

Invoice awaiting payment (payroll wallet)

Webhook Body
{
"webhook_type": "baas.invoice.invoice_status_change",
"webhook_datetime": "2024-08-13T21:35:55.679Z",
"data": {
"invoice_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"total_amount": 350.00,
"paid_amount": 0.00,
"closing_date": "2024-01-31",
"due_date": "2024-02-15",
"invoice_status": "processing_payment"
}
}

Webhook Fields

FieldTypeDescriptionCharacters
invoice_keystringUnique invoice identification key in uuid v4 format36
total_amountnumberTotal invoice amount-
paid_amountnumberPaid invoice amount-
closing_datestringInvoice closing date (YYYY-MM-DD format)10
due_datestringInvoice due date (YYYY-MM-DD format)10
invoice_statusstringInvoice statusinvoice_status Enumerators

invoice_status Enumerators

EnumeratorDescription
processing_closingInvoice being processed for closure
processing_expirationInvoice being processed for expiration
closedInvoice closed, no longer receives items and payments have been processed
processing_paymentInvoice awaiting payment (applicable only for payroll type wallets when there is remaining amount to be paid)
paidInvoice paid