Settings required for registration of payments by the Banco do Brasil API. When testing in a staging environment, you should use fictitious data as documented in the BB Developers Portal.
To configure the layout, get the information below from Banco do Brasil:
Application Key: Key to access the application
Client ID: Identification code of the client
Client Secret: Secret key for validation of the client.
Communication between the ERP and the bank occurs by mutual authentication of certificates (mTLS); hence, the files must be requested from the bank. For further details, access the documentation available in the BB Developers Portal.
Internal Network
For the communication between Protheus and the bank, you need to configure the network security; otherwise, to accept the IP output range related to the DNS:
You can generate a bordereau of payments with online registration. Just access the routines Payment Bordereau (FINA240) or Payment Bordereau with Taxes (FINA241). Enter the previously registered bank and subaccount data to enable the option Online Record. This option selects the bordereau for online registration (EA_BORAPI = S).
Payment Templates (Generic Table 58 of SX5) approved for transmission: