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

Get a bill payment

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

Gets a payment by idPagamento. Once settled, the response is short (valorPago, status, data); in the other statuses it includes the barcode, retornoBancario, protocolo and horario.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

idPagamentostringrequired

Payment identifier (digits only).

Example: "30000003"

Responses

200Payment.
PagamentoLiquidado
idPagamentostring

Identifier.

valorPagointeger

Amount in cents.

statusstring

LIQUIDADO.

LIQUIDADO
motivoRecusastring | null

Always null.

dataobject
Show child attributes
solicitacaostring

Request.

pagamentostring

Settlement.

PagamentoEmAndamento
idPagamentointeger

Identifier (a number in this format).

codBarrasstring

Barcode.

linhaDigitavelstring

Linha digitável.

valorPagointeger

Amount in cents.

statusstring

Current status.

CRIADOAGENDADOEM_PROCESSAMENTOEXECUTADOLIQUIDADOCANCELADONAO_REALIZADO
retornoBancariostring | null

Refusal reason, when NAO_REALIZADO.

protocolostring | null

Bank protocol, from EXECUTADO on.

descricaostring

Description sent with the payment (or the account name).

horarioobject
Show child attributes
solicitacaostring

Request date and time (ISO 8601).

dataExecucaostring

Execution date. A Mimicr field.

400{erro: 0, descricao: "Pagamento não encontrado"}.
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"