validate_boleto
Validates a Brazilian bank boleto's 47-digit typed line by checking field check digits (mod 10) and overall check digit (mod 11). Returns validity and reason if invalid.
Instructions
Valida a linha digitável de um boleto bancário (47 dígitos, aceita pontuação). Confere o mod 10 dos 3 campos e o DV geral mod 11. Retorna { valid } e { reason } quando inválido.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| linha_digitavel | Yes | Linha digitável com 47 dígitos, com ou sem pontuação |