API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Bill payment

Look up a barcode

GET/v1/codBarras/{codBarras}
Base URL: https://pagarcontas.efi.mimicr.dev · provider: https://pagarcontas-h.api.efipay.com.br

Looks 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

codBarrasstringrequired

Barcode (44 digits) or digitable line (47 digits for boletos, 48 for utilities and taxes), digits only.

Example: "36496161100000159900000001000002732348665880"

Responses

200Boleto or bill data.
tipostring

boleto (registered at CIP) or tributo (utilities and taxes).

boletotributo
bancoobject | null

Issuing bank (null for taxes and utilities).

Show child attributes
codigointeger

Clearing code of the issuing bank.

Example: 364
nomestring

Bank name.

Example: "EFI S.A."
codBarrasstring

Barcode, 44 digits.

linhaDigitavelstring

Linha digitável.

datasobject
Show child attributes
vencimentostring

Due date (YYYY-MM-DD HH:mm:ss), or contraApresentacao for taxes and utilities.

limitePagamentostring | null

Last day the boleto can be paid.

beneficiarioobject | null

Payee (null for taxes and utilities).

Show child attributes
nomestring

Name.

fantasiastring

Trade name.

documentostring

CPF or CNPJ.

pagadorobject | null

Boleto payer (null for taxes and utilities).

Show child attributes
nomestring

Name.

documentostring

CPF or CNPJ.

valoresobject

Amounts in cents.

Show child attributes
originalinteger

Document amount, in cents.

abatimentointeger | null

Rebate.

multainteger

Fine.

jurosinteger

Interest.

descontointeger

Discount.

finalinteger

Amount payable today. It is the valor required by Pay a barcode.

informacoesPagamentoobject | null
Show child attributes
divergenteobject
Show child attributes
deveAceitarboolean

Accepts a different amount.

valorMinimointeger

Minimum.

valorMaximointeger

Maximum.

parcialobject
Show child attributes
deveAceitarboolean

Accepts partial payment.

limiteDePagamentosinteger

Number of partial payments.

podeSerPagoboolean

Whether the boleto can still be paid.

segmentostring

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
errointegerrequired

Always 0.

Example: 0
descricaostringrequired

Error description.

Example: "Código de barras inválido"
nome e mensagem
nomestringrequired

Error code (e.g. erro_de_validacao).

Example: "erro_de_validacao"
mensagemstringrequired

Error description.

Example: "A propriedade dataInicio é obrigatória"
mensagem
mensagemstringrequired

Schema validation message.

Example: "must NOT have fewer than 44 characters"
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
403The token lacks the scope the route requires (insufficient_scope).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"