Skip to main content

Introduction

Callbacks, or webhooks, are mechanisms that allows a function to be executed in response to a specific event. In the context of the BMP APIs, a callback is sent automatically whenever specific events occur in the system. This allows efficient communication between different parts of an application. This mechanism is used to notify updates to the status of proposals, eliminating the need for constant checks. In this context, information is received automatically and in real time, without the need for the partner to execute a command to update itself with a response. In this document, we present how this procedure works, its importance in integrations and how to use it in the development of your application when using BMP APIs.
Our callbacks should not be mapped in a restricted way. Additional fields can be included in the payloads of the returned callbacks. Please check the Updates and Announcements page.

Settings

1

Partner Configuration

Partners can configure how they want to receive the callback notifications, defining the following characteristics:
1.1

URL

The partner must specify the URL of the callback that will be called to send the information.Example:
1.2

Environments

The callback for monitoring the status of proposals must be sent to both the approval environment and the production environment. It is recommended that different URLs be used for each environment.
1.3

Call methods

The partner can select the HTTP method for sending the callback.Available options include: GET, POST and PUT.
2

Authentication

To ensure the security of the callback sent, we recommend that the partner define an authentication method.The following are the available authentication methods:Available options include:

Accepted authentication methods

All authentication methods accept up to 255 characters.
3

Proposal callback example

Here is an example of a URL and how we parameterize it for reception:

Proposal callback parameters table

Proposal status identification table

If the callback is sent with the POST method, in addition to the data sent in the Query, the partner will receive in the body of the request:
  • Status 9: 00 - Credit or debit made;
  • Status 10: AB - Description of the occurrence.
If a problem occurs while receiving the proposal callback, the system will make up to 3 attempts to send it.