Invoice Payment Webhooks
Attention!
QI Tech webhooks should not be mapped restrictively. 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 a status change of an invoice payment (invoice_payment) within our system, a webhook will be sent with the payment status change:
| Enumerator | Translation | Description |
|---|---|---|
| processing_payment | awaiting payment | Invoice payment awaiting payment |
| paid | paid | Invoice payment paid |
Information
The timeout for response to our webhooks is 10 seconds.
Examples
Invoice payment (payroll_discount)
Webhook Body
{
"webhook_type": "baas.invoice.invoice_payment_status_change",
"webhook_datetime": "2024-08-13T21:35:55.679Z",
"data": {
"wallet_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"invoice_payment_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"total_amount": 350.00,
"paid_amount": 0.00,
"payment_date": "2024-02-15",
"invoice_payment_type": "payroll_discount",
"invoice_payment_status": "processing_payment"
}
}
Invoice payment (bank_slip)
Webhook Body
{
"webhook_type": "baas.invoice.invoice_payment_status_change",
"webhook_datetime": "2024-08-13T21:35:55.679Z",
"data": {
"wallet_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"invoice_payment_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"total_amount": 350.00,
"paid_amount": 0.00,
"payment_date": "2024-02-15",
"invoice_payment_type": "bank_slip",
"invoice_payment_status": "processing_payment"
}
}
Webhook Fields
| Field | Type | Description | Characters |
|---|---|---|---|
| wallet_key | string | Unique wallet identification key in uuid v4 format | 36 |
| invoice_payment_key | string | Unique invoice payment identification key in uuid v4 format | 36 |
| total_amount | number | Total amount of the invoice payment | - |
| paid_amount | number | Paid amount of the invoice payment | - |
| payment_date | string | Payment date (YYYY-MM-DD format) | 10 |
| invoice_payment_type | string | Invoice payment type | invoice_payment_type Enumerators |
| invoice_payment_status | string | Invoice payment status | invoice_payment_status Enumerators |