Documentation
Webhooks
Register a URL in the dashboard to receive Pix, boleto and invoice events, verify the signature and resend failed deliveries.
Register a webhook
A webhook is a URL in your system that receives a POST from Intopays when something happens to one of the organization's charges or invoices. Webhooks are registered and maintained only in the dashboard, with your signed-in session: the API does not create, list or change webhooks with a token.
- Open Integração → Webhooks → Novo webhook (Integration → Webhooks → New webhook).
- Fill in the URL and, if you want, a Descrição (Description).
- Under Eventos (Events), check at least one event. Only the checked events are sent to that URL.
- Click Cadastrar webhook (Register webhook).
| Field | Required | Values |
|---|---|---|
| URL | yes | the full address, reachable from the internet, such as https://erp.padaria.intopays.com/webhooks/intopays. It cannot repeat a URL already registered in the organization |
| Descrição (Description) | no | text to identify the webhook, such as Produção — pagamentos |
| Eventos (Events) | yes | one or more events from the Events table |
The webhook's page shows the Chave do webhook (Webhook key), generated by Intopays, with a Copiar chave (Copy key) button. Keep it secret: you use it to check the signature of every delivery.
| Dashboard action | How |
|---|---|
| Change the events or the description | open the webhook from the list (Abrir, Open), change and save |
| Copy the URL or the key | the webhook's menu in the list: Copiar URL (Copy URL) and Copiar chave (Copy key) |
| Delete | Excluir webhook (Delete webhook) on the webhook's page. The address stops receiving events right away |
A webhook's URL does not change after it is registered. To change the URL, register another webhook and delete the old one. Organization members need the Webhooks permission in the Integração (Integration) area.
Events
| Event | When it is sent |
|---|---|
pix.create | a Pix charge (Pix is Brazil's instant payment system) was created, or a payment was received on a static QR code (pix.pixType set to STATIC) |
pix.update | a Pix charge's status changed, for example from ACTIVE to COMPLETED |
pix.delete | exists in the event list, but is not sent today |
boleto.create | a boleto (Brazilian bank payment slip) was issued |
boleto.update | a boleto's status changed |
boleto.delete | a boleto's cancellation was requested |
fiscal.create | an invoice (NFC-e, NF-e or NFS-e) was sent to SEFAZ (the state tax authority) or to the Sefin Nacional (the national service-invoice system) and got an answer, authorized or rejected |
fiscal.update | an invoice was cancelled, or a sync changed its status |
fiscal.delete | exists in the event list, but is not sent today: cancelling an invoice is sent as fiscal.update |
pinpad.create | a card machine charge was created |
pinpad.update | a card machine charge got its result: approved, denied, cancelled or error |
A Pix status change is detected through the bank's notice, through Intopays' periodic check or when you read the charge through the API. A boleto's, through the periodic check or when you read the boleto through the API. In every case the event is the same.
The dashboard form does not list the pinpad.create and pinpad.update events yet. To follow a card machine charge, read it through the API (see Card machine charges).
Delivery
Each event is sent to every webhook of the organization that subscribes to that type.
| Value | |
|---|---|
| Method | POST |
| Content type | application/json |
| Timeout | 10 seconds |
| Redirects | up to 5 |
| Header | Value |
|---|---|
x-webhook-signature | signature of the body, in hexadecimal |
A delivery counts as a success when your URL answers with a 2xx status within the timeout. Any other status, a timeout or a connection failure counts as a failure.
In production, Intopays does not deliver to internal addresses: localhost, private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local and cloud metadata addresses (169.254.0.0/16) and their IPv6 equivalents. The rule applies to the address the URL's host name resolves to and to every redirect. A blocked delivery shows as a failure in the history.
Signature
The x-webhook-signature header is the HMAC-SHA256 of the request body, computed with the webhook's key and written in hexadecimal.
To check it:
- Read the body exactly as it arrived, before parsing the JSON.
- Compute the HMAC-SHA256 of those bytes with the webhook's key.
- Compare the hexadecimal result with the header. If they differ, discard the request.
printf '%s' "$CORPO_RECEBIDO" \
| openssl dgst -sha256 -hmac "$INTOPAYS_WEBHOOK_KEY" -r \
| cut -d' ' -f1
Computing the signature over JSON re-serialized by your system gives a different value: key order and whitespace change the result.
Event body
A pix.update example for a paid charge:
{
"id": "019a8c61-02f4-7c1e-b6a3-41d09e7f5a28",
"type": "PIX",
"eventType": "pix.update",
"retryCount": 0,
"lastRetryAt": null,
"retryEvent": true,
"pix": {
"id": "200000",
"transactionId": "XXXINTOPAYSXXXSICOOBXXXPIX0000000200000",
"transactionEndId": "E75687876202611151423s0915c2f4a7",
"status": "COMPLETED",
"integrationType": "SICOOB",
"amountOriginal": 95.4,
"amountModificationType": 0,
"calendarExpiration": 900,
"payerRequest": "Pedido #1042",
"debtorName": "Maria Silva",
"debtorDocument": "12345678909",
"pixKey": "[email protected]",
"qrcode": "00020101021226950014br.gov.bcb.pix2573…",
"url": "https://pix.loja.intopays.com/qr/v2/abc123",
"createdAt": "2026-11-15T14:20:06.153Z",
"updatedAt": "2026-11-15T14:23:41.870Z"
},
"organization": {
"id": "019a2f10-6c3e-7a55-8d02-7b1e4c9f0a13",
"name": "Acme Comércio Ltda"
},
"createdAt": "2026-11-15T14:23:41.902Z",
"updatedAt": "2026-11-15T14:23:41.902Z"
}
| Field | Use |
|---|---|
id | the event's identifier; use it to ignore an event you have already processed |
eventType | the event, as in the events table |
type | the resource type: PIX, BOLETO, FISCAL or PINPAD |
pix | the Pix charge, on pix.* events, with the same fields as the API response |
boleto | the boleto, on boleto.* events |
fiscalInvoice | the invoice, on fiscal.* events |
pinpadCharge | the card machine charge, on pinpad.* events, with the same fields as the API response |
organization | the organization that owns the resource; it carries other organization details besides the ones shown in the example |
retryCount, lastRetryAt, retryEvent | redelivery control for the event |
Only the field of that event's resource is filled in.
Redelivery
Intopays automatically retries the failed update and delete events of Pix, boleto and invoices. create events and card machine events have no automatic redelivery.
| Rule | |
|---|---|
| First retry | at the next check after the failure, which runs every minute |
| Following retries | at most one per day |
| Limit | 9 retries per event |
| Deleted webhook | its events are not resent |
A redelivery sends the same body and the same signature as the original delivery.
When there is more than one failed event for the same charge or invoice on the same webhook, the automatic redelivery sends the oldest one and, if your URL answers with success, marks all of them as delivered. After a redelivery, read the resource through the API (for example, Look up Pix) to get its current state.
History and manual resend
In the dashboard, open the webhook's menu and choose Ver eventos (View events). The Notificações de Eventos (Event notifications) screen lists each delivery, newest first, with the Todos (All), Sucesso (Success) and Falha (Failure) filters and a search by ID, event or type. When you open a delivery, you see:
| Information | Use |
|---|---|
| Status | waiting for the result, delivered (Sucesso) or Falha (failed) |
| Motivo da falha (Failure reason) | a summary of the failure, such as HTTP 500 — pedido nao encontrado or a timeout |
| Resposta da API do cliente (Your API's response) | the status and body your URL returned, up to 4000 characters |
| Payload do Evento (Event payload) | the body sent, exactly as it went out (Ver payload, Show payload) |
The Reenviar evento (Resend event) button sends the same body again with the same signature. The Evento reenviado com sucesso! message (event resent) means the resend was made, not that your URL accepted it: check the delivery's status in the history. After a manual resend, the event leaves the automatic redelivery.
Respond to a delivery
| Your URL answers | Result |
|---|---|
2xx within 10 seconds | successful delivery |
another status, such as 400 or 500 | failure; the status and body stay in the history |
| nothing within 10 seconds, or the connection fails | failure by timeout or connection |
| an internal address in production | failure; the delivery is blocked before it goes out |
Answer 2xx as soon as you store the event and process it afterwards: long processing inside the request runs out the timeout. Use the event's id to ignore a repeated delivery, which may arrive through the automatic redelivery or a manual resend.
Missing something on this page? Contact support from the dashboard and we'll update the docs.
