API Reference
Look up a barcode
/v1/codBarras/{codBarras}https://pagarcontas.efi.mimicr.dev · provider: https://pagarcontas-h.api.efipay.com.brLooks up a boleto or bill by barcode or by digitable line: payee, due date and the amount payable today. Efí asks for this lookup before every payment. In Mimicr any FEBRABAN code with valid check digits is accepted (generate one with the pagarcontas.barcode action); overdue boletos of R$ 10,00 or more get a 2% fine and 0.033% interest per day; and a boleto issued by the Billing API of the same sandbox carries that charge's payee, payer and amounts.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Barcode (44 digits) or digitable line (47 digits for boletos, 48 for utilities and taxes), digits only.
"36496161100000159900000001000002732348665880"Responses
200Boleto or bill data.
boleto (registered at CIP) or tributo (utilities and taxes).
boletotributoIssuing bank (null for taxes and utilities).
Show child attributes
Clearing code of the issuing bank.
364Bank name.
"EFI S.A."Barcode, 44 digits.
Linha digitável.
Show child attributes
Due date (YYYY-MM-DD HH:mm:ss), or contraApresentacao for taxes and utilities.
Last day the boleto can be paid.
Payee (null for taxes and utilities).
Show child attributes
Name.
Trade name.
CPF or CNPJ.
Boleto payer (null for taxes and utilities).
Show child attributes
Name.
CPF or CNPJ.
Amounts in cents.
Show child attributes
Document amount, in cents.
Rebate.
Fine.
Interest.
Discount.
Amount payable today. It is the valor required by Pay a barcode.
Show child attributes
Show child attributes
Accepts a different amount.
Minimum.
Maximum.
Show child attributes
Accepts partial payment.
Number of partial payments.
Whether the boleto can still be paid.
Taxes only, and Mimicr only: the segment of the utility (Saneamento, Energia elétrica e gás, Telecomunicações…).
400{erro: 0, descricao: "Código de barras inválido"} (check digit), {mensagem: "must NOT have fewer than 44 characters"}, {mensagem: "must NOT have more than 48 characters"}, {nome: "Error", mensagem: "must be number"} or {nome: "erro_de_validacao", mensagem: "Código de barras não localizado na base centralizada"} (boleto with neither amount nor due date).
erro e descricao
Always 0.
0Error description.
"Código de barras inválido"nome e mensagem
Error code (e.g. erro_de_validacao).
"erro_de_validacao"Error description.
"A propriedade dataInicio é obrigatória"mensagem
Schema validation message.
"must NOT have fewer than 44 characters"401Missing, invalid or expired token, or a token issued for another API (invalid_token).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"403The token lacks the scope the route requires (insufficient_scope).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"