Overview
Boleto.Cloud is a Brazilian payment API that lets you generate boletos — the popular Brazilian bank slip payment method used widely for bills and online purchases. If you are building an e-commerce or billing application for the Brazilian market, this API handles the complex boleto generation rules for you. It requires an API key and is designed for developers serving Brazilian customers.
Beginner Tip
Boletos are a Brazil-specific payment method, so this API is only relevant if you are targeting Brazilian customers. Make sure your boleto expiration date is set at least 1-3 days in the future since same-day boletos are often rejected by banks.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Boleto.Cloud",
"description": "A api to generate boletos in Brazil",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
id Unique identifier for the generated boleto. barcode The numeric barcode string that identifies the boleto for payment at banks or ATMs. pdf_url URL to the printable PDF version of the boleto that customers can download and pay. due_date The expiration date of the boleto in ISO 8601 format. amount The payment amount in Brazilian Reais (BRL). Implementation Example
const url = "https://boleto.cloud/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Aletheia
Aletheia provides financial data including insider trading filings, earnings call transcripts, and financial statements for US-listed companies.
Alpaca
Alpaca provides real-time and historical market data for US equities and ETFs, along with commission-free trading capabilities.
Alpha Vantage
⭐ Beginner's PickAlpha Vantage delivers free real-time and historical stock, forex, and cryptocurrency data through a simple REST API.
Bank Data API
Bank Data API lets you instantly validate IBAN and SWIFT/BIC numbers to make sure bank account details are correct before processing a payment.
Billplz
Billplz is a payment platform API focused on the Malaysian market that lets you create bills and collect payments online.