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

Pay a barcode

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

Pays 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

codBarrasstringrequired

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

Example: "36496161100000159900000001000002732348665880"

Body

application/json
valorintegerrequired

Amount in cents, equal to valores.final.

Example: 15990
dataPagamentostring<date>required

Payment date, YYYY-MM-DD, today or later.

Example: "2026-10-21"
descricaostring

Description (up to 48 characters).

Responses

201Payment requested.
idPagamentostring

Payment identifier.

Example: "30000003"
valorPagointeger

Amount in cents.

statusstring

EM_PROCESSAMENTO (immediate debit), AGENDADO (future date or after the cut-off) or NAO_REALIZADO (e.g. insufficient balance).

CRIADOAGENDADOEM_PROCESSAMENTOEXECUTADOLIQUIDADOCANCELADONAO_REALIZADO
dataobject
Show child attributes
solicitacaostring

Request date and time.

pagamentostring

Date the payment is executed.

motivoRecusastring

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
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"