Skip to main content

Webhooks

This section brings together endpoints for managing notifications from the receiving PSP to the receiving user


Important!

By Banco Central regulations, it will be necessary to insert a public key from Efí into your server so that communication follows the mTLS standard, the same standard used in the Pix API.

To understand the mTLS standard and configure your server, click here.


Create payment webhook

Endpoint for creating the payment webhook.

PUT /v1/webhook
Requires authorization for the scope: payment.webhook.write


Request

{
"url": "string"
}

Responses

The responses below represent Success(201) and consumption failures/errors.

{
"url": "string"
}

List payment webhooks

Endpoint for listing payment webhooks using parameters such as dataInicio and dataFim. The attributes are inserted as query parameters.

GET /v1/webhook
Requires authorization for the scope: payment.webhook.read


Request

The snippet below shows how the dataInicio and dataFim parameters (required) should be passed in the request.

/v1/webhook/?dataInicio=2024-01-22T16:01:35Z&dataFim=2024-10-23T16:01:35Z

Responses

The responses below represent Success(200) and consumption failures/errors.

{
"parametros": {
"inicio": "string",
"fim": "string",
"paginacao": {
"paginaAtual": 0,
"itensPorPagina": 100,
"quantidadeDePaginas": 1,
"quantidadeTotalDeItens": 5
}
},
"webhooks": [
{
"url": "string",
"criacao": "string"
}
]
}

Delete payment webhook

Endpoint for deleting the payment webhook.

DELETE /v1/webhook
Requires authorization for the scope: payment.webhook.write


Request

{
"url": "string"
}

Responses
The responses below represents Consumer Success(204).
Webhook deleted

Receiving Callbacks

This service is protected by a layer of mTLS authentication. Callbacks are sent by Efí via POST url-registered-webhook when there is a change in the Payment status.

Request