Overview

Banco do Brasil offers a comprehensive set of APIs tailored for developers seeking to integrate financial services within the Brazilian market. Established in 1808, Banco do Brasil operates as a major financial institution in Latin America, providing a range of banking products and services. The API platform facilitates programmatic access to these services, aligning with modern financial technology trends, particularly Brazil's Open Banking regulations.

The primary audience for these APIs includes fintech companies, corporate treasury departments, and independent software vendors (ISVs) developing applications that require direct interaction with banking functionalities. Key use cases span from automating payment processes, such as initiating Pix transfers, to retrieving detailed account statements and managing credit operations. Developers can also integrate functionalities related to insurance and investment products, allowing for a broader spectrum of financial application development.

Banco do Brasil's API strategy is centered on compliance with the Brazilian General Data Protection Law (LGPD) and the specific requirements of the Open Banking Brasil framework. This focus ensures that data access and transaction initiation are conducted securely and in accordance with national financial regulations. The developer portal provides essential resources, including API specifications, practical use cases, and sandbox environments, which are crucial for testing and validating integrations before deployment. This environment allows developers to simulate various scenarios, from successful transactions to error handling, ensuring robust application behavior.

The platform particularly excels for developers building solutions that require deep integration into the Brazilian financial ecosystem. For example, e-commerce platforms can automate payment reconciliation using Pix APIs, while personal finance management applications can offer real-time balance inquiries and transaction history by leveraging account information APIs. The availability of APIs for credit operations allows for automated credit line checks and loan applications, streamlining financial workflows for businesses and consumers alike. The structured approach to API documentation, combined with sandboxes, aims to reduce the development cycle for new financial products and services in Brazil.

Key features

  • Pix Payments API: Facilitates instant payment initiation and reception through Brazil's Pix instant payment system, supporting both person-to-person and business transactions.
  • Account Information API: Provides access to customer account details, including balances, statements, and transaction histories, in compliance with Open Banking standards.
  • Credit Operations API: Enables integration with credit products, allowing for inquiries into credit limits, loan simulations, and potentially applying for credit facilities.
  • Insurance APIs: Offers functionalities to integrate with Banco do Brasil's insurance product offerings, potentially for policy management or quotation generation.
  • Investments APIs: Supports access to investment product information and potentially transaction capabilities, such as fund subscriptions or redemptions.
  • Open Banking Compliance: Adheres to the technical and regulatory specifications mandated by the Central Bank of Brazil for Open Banking, ensuring secure and standardized data exchange.
  • Developer Sandbox: Provides a testing environment mirroring production APIs, allowing developers to build and validate integrations without affecting live data.
  • Detailed Documentation: Offers comprehensive API specifications, code examples, and use case guides to assist developers in implementation.

Pricing

Banco do Brasil's API access typically operates under a custom enterprise pricing model. Specific costs are determined based on factors such as the scope of API usage, transaction volumes, and the type of integration required. Interested parties generally engage directly with Banco do Brasil's business development or developer relations team to obtain a tailored proposal.

Service Tier Description Pricing Model As-of Date
Standard API Access Access to core Open Banking and payment APIs for standard integration needs. Custom Enterprise Pricing 2026-05-28
Advanced Services Includes specialized APIs (e.g., credit, insurance, investments) and higher transaction limits. Custom Enterprise Pricing 2026-05-28
Premium Support Dedicated technical support and account management. Negotiated Add-on 2026-05-28

For detailed pricing inquiries and to discuss specific integration requirements, developers and businesses are encouraged to contact Banco do Brasil directly through their developer portal.

Common integrations

Banco do Brasil APIs are designed for direct integration into various financial and business applications. Common integration patterns include:

  • E-commerce Platforms: Integrating Pix payment initiation for online checkouts and automated payment reconciliation.
  • Enterprise Resource Planning (ERP) Systems: Connecting to account information APIs for automated financial reporting and treasury management, as detailed in Banco do Brasil's Open Banking section.
  • Personal Finance Management (PFM) Apps: Utilizing account balance and transaction history APIs to provide users with consolidated financial views.
  • Fintech Solutions: Building specialized financial products that require direct access to banking services, such as lending platforms or investment advisors.
  • Supply Chain Finance Platforms: Automating credit assessments and payment flows for business partners.
  • Digital Wallets: Enabling users to link their Banco do Brasil accounts for payments and balance inquiries.

Alternatives

  • Yapily: An Open Banking platform offering API access to a broad network of banks across Europe and increasingly globally, focusing on consolidated financial data and payment initiation.
  • Akoya: A data aggregation platform providing secure, API-based access to financial data from various U.S. financial institutions, emphasizing consumer data control.
  • PayPal Developer: Offers APIs for payment processing, payouts, and subscription management globally, serving a wide range of e-commerce and marketplace needs.
  • Stripe: A comprehensive platform for online payments, offering APIs for card processing, recurring billing, and various payment methods, with global reach.

Getting started

To begin integrating with Banco do Brasil APIs, developers typically register on the developer portal, create an application, and obtain API credentials. The following Python example demonstrates a basic request to an Open Banking API endpoint, assuming authentication (e.g., OAuth 2.0) has been handled to obtain an access token. This example fetches a list of available branches, a common first step in exploring location-based financial services.


import requests
import json

# Replace with your actual access token obtained via OAuth 2.0
# For production, ensure secure handling of tokens.
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

# Base URL for Banco do Brasil Open Banking APIs
# This is an example; actual URLs might vary. Consult the official documentation.
BASE_URL = "https://api.bb.com.br/open-banking/v1"

# Endpoint for fetching branch information
# The specific path will depend on the API version and service (e.g., branches, accounts)
BRANCHES_ENDPOINT = f"{BASE_URL}/branches"

headers = {
    "Authorization": f"Bearer {ACCESS_TOKEN}",
    "Accept": "application/json",
    "Content-Type": "application/json"
}

params = {
    "page": 1,
    "page-size": 10
}

try:
    response = requests.get(BRANCHES_ENDPOINT, headers=headers, params=params)
    response.raise_for_status()  # Raise an exception for HTTP errors (4xx or 5xx)

    data = response.json()
    print("Successfully fetched branch data:")
    print(json.dumps(data, indent=2))

except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err}")
    print(f"Response body: {response.text}")
except requests.exceptions.ConnectionError as conn_err:
    print(f"Connection error occurred: {conn_err}")
except requests.exceptions.Timeout as timeout_err:
    print(f"Timeout error occurred: {timeout_err}")
except requests.exceptions.RequestException as req_err:
    print(f"An unexpected error occurred: {req_err}")

This Python snippet illustrates how to construct a GET request to an API endpoint. Developers would replace YOUR_ACCESS_TOKEN with a valid token obtained through the OAuth 2.0 authorization flow, as detailed in the Banco do Brasil API reference. The BASE_URL and specific BRANCHES_ENDPOINT should be verified against the most current API documentation, as these can evolve. Error handling is included to manage common network and HTTP response issues, which is critical for building resilient applications.