API Reference
Pay a barcode
/v1/codBarras/{codBarras}https://pagarcontas.efi.mimicr.dev · provider: https://pagarcontas-h.api.efipay.com.brPays a boleto, utility bill or tax with the account balance. valor must equal valores.final from the lookup. Cut-off times for same-day payment: 22:00; boletos above R$ 249.000,00, 14:00; utilities and taxes, 18:00. After the cut-off, or with a future dataPagamento, the payment becomes AGENDADO for the next business day (or the requested date). On the day, the balance is debited and the payment goes through EM_PROCESSAMENTO → EXECUTADO → LIQUIDADO, with a webhook at each change. Without balance, it becomes NAO_REALIZADO. In Mimicr each step takes a few seconds and, when a boleto from the same sandbox's Billing API settles, that charge becomes paid.
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"Body
application/jsonAmount in cents, equal to valores.final.
15990Payment date, YYYY-MM-DD, today or later.
"2026-10-21"Description (up to 48 characters).
Responses
201Payment requested.
Payment identifier.
"30000003"Amount in cents.
EM_PROCESSAMENTO (immediate debit), AGENDADO (future date or after the cut-off) or NAO_REALIZADO (e.g. insufficient balance).
CRIADOAGENDADOEM_PROCESSAMENTOEXECUTADOLIQUIDADOCANCELADONAO_REALIZADOShow child attributes
Request date and time.
Date the payment is executed.
Reason, when NAO_REALIZADO.
400erro_de_validacao (missing or invalid amount or date, amount different from the boleto, date in the past), {erro: 0} with "Boleto não pode ser pago" or "Este código de barras já possui um pagamento em andamento ou realizado", or the code format errors.
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"