API Reference
Get a bill payment
/v1/{idPagamento}https://pagarcontas.efi.mimicr.dev · provider: https://pagarcontas-h.api.efipay.com.brGets 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
Payment identifier (digits only).
"30000003"Responses
200Payment.
PagamentoLiquidado
Identifier.
Amount in cents.
LIQUIDADO.
LIQUIDADOAlways null.
Show child attributes
Request.
Settlement.
PagamentoEmAndamento
Identifier (a number in this format).
Barcode.
Linha digitável.
Amount in cents.
Current status.
CRIADOAGENDADOEM_PROCESSAMENTOEXECUTADOLIQUIDADOCANCELADONAO_REALIZADORefusal reason, when NAO_REALIZADO.
Bank protocol, from EXECUTADO on.
Description sent with the payment (or the account name).
Show child attributes
Request date and time (ISO 8601).
Execution date. A Mimicr field.
400{erro: 0, descricao: "Pagamento não encontrado"}.
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"