What it does
Boleto Validator checks whether a Brazilian boleto is valid and extracts the payment details encoded in its barcode or digitable line. A boleto (boleto bancário) is a common payment method in Brazil, used for bills, invoices, online purchases, utility bills, taxes, fines, and other payments.
Send a code containing either a barcode or a digitable line, and the API validates its check digits using FEBRABAN algorithms. It returns whether the boleto is valid, along with the detected type,input_format, bank, segment, currency, amount, amount_cents, due_date, due_date_status, and overdue status. It also returns the barcode, digitable_line, and digitable_line_formatted when available, along with a checks object and any detected errors or warnings.
The API supports both bank_slip and collection boletos, making it suitable for validating standard bank slips, utility bills, taxes, fines, and other payment documents. You can use it to verify a payment slip before displaying it to a customer, reconcile checkout details, or process incoming bills. Since it accepts either format and can return both, it also works as a barcode-to-digitable-line and digitable-line-to-barcode converter.
The service also includes a Bank Lookup API that identifies a Brazilian bank by its 3-digit COMPE code (3-digit number used to identify a bank in Brazil.). Send a code such as 212 for Banco do Brasil or 341 for Itaú Unibanco to retrieve the corresponding bank name. COMPE codes are used in Brazilian payment systems, including boleto barcodes, bank account details, and transfers. This endpoint helps you display readable bank names instead of raw numeric codes.
Validation is performed through local calculations without contacting banks or external systems, enabling fast responses without sending payment data to external services.