{"uid":"cap_PtaHuyhSOeiGhY-dYwNZZ","slug":"brdata-boleto-decoder-a4ce1511","name":"brdata Boleto Decoder","description":"Decode Brazilian boleto payment slips (linha digitável): bank, amount, due date, validity check. Supports bank collection and utility/tax formats.","url":"https://brdata.thomenz.me/boleto/decode","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"format":"bank_collection","barcode":"34191150300000123451234567890123456789012345","due_date":"2026-07-10","bank_code":"341","bank_name":"Itaú Unibanco","amount_brl":123.45,"currency_code":"9","due_date_factor":1503,"due_date_ambiguous":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q-NqnlH7CPrBFKhEldvZL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a Brazilian boleto barcode string into structured payment details including bank, amount, due date, and format","exampleAgentPrompt":"Can you decode this Brazilian boleto barcode for me and tell me the bank, the amount in BRL, and when it's due? The barcode is 34191150300000123451234567890123456789012345.","exampleUseCases":[{"title":"Automated boleto payment validation","prompt":"I received a boleto with barcode 34191150300000123451234567890123456789012345 — can you decode it and confirm the amount, bank, and due date before I pay it?"},{"title":"Accounts payable boleto reconciliation","prompt":"Our accounts payable team received a bunch of boleto barcodes from suppliers. Can you decode this one — 34191150300000123451234567890123456789012345 — and extract the bank name, amount in BRL, and due date so I can log it in our system?"},{"title":"Detecting ambiguous or expired boleto dates","prompt":"I have a boleto barcode and I'm not sure if the due date is reliable — please decode 34191150300000123451234567890123456789012345 and let me know if the due date is ambiguous or already past."}],"resultDescription":"Returns a JSON object with the boleto format type (e.g. 'bank_collection'), the full normalized barcode, the due date as an ISO date string, the bank code and name, the BRL amount, the currency code, the due-date factor, and a boolean flag indicating whether the due date interpretation is ambiguous.","failureModes":["Invalid or malformed barcode returns an error (non-44-digit input, wrong check digit)","Ambiguous due date when due_date_factor is 0000, flagged via due_date_ambiguous=true","Unrecognized bank code may result in null bank_name","Network or server error returns a non-200 HTTP response","Payment processing failure if x402 micropayment is not fulfilled"],"whenToPreferThis":"Use this endpoint when you need to programmatically decode a Brazilian boleto barcode into its structured components — bank identity, payment amount in BRL, and due date — without manually reading the slip. Prefer this over general-purpose barcode scanners that lack Brazilian banking domain knowledge, or over manual data entry workflows. Especially useful in accounts payable automation, supplier payment pipelines, fintech apps serving Brazilian users, or any agent needing to verify or log boleto payment details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:30:43.499Z","isFirstParty":false}