Skip to main content

Webhooks

Warning!

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

Webhook for Pending Payments

Webhook intended to update the status of payments that were pending (status 202) when making a boleto payment.

Webhook Request Body

Request Body: Payment executed
{
"webhook_type": "baas.bill_payment.payment",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"payment_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"barcode":"00193967000009910000000003615574000000002417",
"digitable_line":"00190000090361557400500000024174396700000991000",
"payment_status": "executed",
"payment_type":"bank_slip"
}
}
Request Body: Payment reverted
{
"webhook_type": "baas.bill_payment.payment",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"payment_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"barcode":"00193967000009910000000003615574000000002417",
"digitable_line":"00190000090361557400500000024174396700000991000",
"payment_status": "reverted",
"payment_type":"bank_slip"
}
}

Webhook Body Params

FieldTypeDescription
webhook_typestringAn enumerator that defines the type of event being reported.
webhook_datetimestringDate and time the webhook was sent.
request_control_keyuuid4Unique identification key for the client's request.
payment_key *uuid4Unique payment identification key.
barcode *stringBarcode.
digitable_line *stringDigitable line.
payment_type *enumPayment type.
payment_status *enumPayment status.

Enumerators payment_type

EnumeratorTypeDescription
bank_slipstringBoleto
collection_slipstringCollection invoice

Enumerators payment_status

EnumeratorTypeDescription
executedstringExecuted
revertedstringReverted