API Reference
Cobranças · Convênio and payments

List movement returns

POST/cobrancas/v2/convenios/{id}/listar-retorno-movimento
Base URL: https://bb.mimicr.dev · provider: https://api.hm.bb.com.br

The CNAB return file via API: the movements of the convênio's boletos (entry confirmed, settlement, write-off, changes…) between two dates, kept for 30 days. Paginated by record number, up to 10000 per call. In Mimicr the resource is already enabled; with no movements in the period it answers 404 4722678.

Scope: cobrancas.boletos-info.

Authorization

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

Path parameters

idstringrequired

Cobrança convênio number (7 digits). In homologação, 3128557.

Example: "3128557"

Query parameters

gw-dev-app-keystringrequired

Your application's key (developer_application_key) in the Developers Portal. In Mimicr, the sandbox's (GET /v1/bb). Without it the gateway answers 403.

Example: "<app-key>"

Body

application/json
dataMovimentoRetornoInicialstringrequired

Start date, dd.mm.aaaa (slashes also accepted).

Example: "23.10.2026"
dataMovimentoRetornoFinalstringrequired

End date, dd.mm.aaaa.

Example: "23.10.2026"
codigoPrefixoAgenciainteger
numeroContaCorrenteinteger
numeroCarteiraCobrancainteger
numeroVariacaoCarteiraCobrancainteger
numeroRegistroPretendidointeger

First record to return (starts at 1).

quantidadeRegistroPretendidointeger

Number of records, up to 10000.

Responses

200Movements in the period.
indicadorContinuidadestring

S when there are more records.

SN
numeroUltimoRegistrointeger

Number of the last record returned; ask for the next with numeroRegistroPretendido = this + 1.

listaRegistroobject[]
Show child attributes
dataMovimentoRetornostring
numeroConveniointeger
numeroTituloCobrancastring
codigoComandoAcaointeger

Command (CNAB): 2 entry confirmed, 6 normal settlement, 9 write-off, 10 write-off requested, 14 due date change, 61 registered with Pix QR, 73 partial payment, among others.

codigoPrefixoAgenciainteger
numeroContaCorrenteinteger
numeroCarteiraCobrancainteger
numeroVariacaoCarteiraCobrancainteger
tipoCobrancainteger
codigoControleParticipantestring
codigoEspecieBoletointeger
dataVencimentoBoletostring
valorBoletonumber
codigoBancoRecebedorinteger
codigoPrefixoAgenciaRecebedorainteger
dataCreditoPagamentoBoletostring
valorTarifanumber
valorOutrasDespesasCalculadasnumber
valorJurosDescontonumber
valorIofDescontonumber
valorAbatimentonumber
valorDescontonumber
valorRecebidonumber
valorJurosMoranumber
valorOutrosValoresRecebidosnumber
valorAbatimentoNaoUtilizadonumber
valorLancamentonumber
codigoFormaPagamentointeger
codigoValorAjusteinteger
valorAjustenumber
codigoAutorizacaoPagamentoParcialinteger
codigoCanalPagamentointeger
URLstring
textoIdentificadorQRCodestring
quantidadeDiasCalculointeger
valorTaxaDescontonumber
valorTaxaIOFnumber
naturezaRecebimentointeger

Nature of the movement; depends on the command (61 = via Pix).

codigoTipoCobrancaComandointeger
dataLiquidacaoBoletostring
400Missing (3727473) or inverted (3244972) dates.
errosobject[]required
Show child attributes
codigostringrequired

Error message code (the API's error table).

Example: "4874915"
versaostringrequired

Message version.

Example: "1"
mensagemstringrequired

Error text.

Example: "Nosso Número já incluído anteriormente."
providenciastring

How to fix it; empty when BB gives no hint.

Example: "Informar outro Nosso Número."
ocorrenciastringrequired

BB's occurrence id (trace), not an HTTP code. N/A on generic errors.

Example: "000000000000000000221327"
401Missing, invalid or expired token.
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "Bad Credentials"
403Missing or invalid application key (gateway shape), or a token without the operation's scope (Application key is not allowed to call this resource method).
Gateway
detailstring

Gateway error description.

Example: "A chave de aplicacao (AppKey) nao foi informada"
userHelpstring

How to solve it.

errorCodestring
Example: "403"
bbMsgobject
Show child attributes
categoriastring
Example: "SISTEMA"
tipostring
Example: "ERRO"
Escopo
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "Bad Credentials"
404Invalid convênio (4023729) or no movement in the period (4722678).
errosobject[]required
Show child attributes
codigostringrequired

Error message code (the API's error table).

Example: "4874915"
versaostringrequired

Message version.

Example: "1"
mensagemstringrequired

Error text.

Example: "Nosso Número já incluído anteriormente."
providenciastring

How to fix it; empty when BB gives no hint.

Example: "Informar outro Nosso Número."
ocorrenciastringrequired

BB's occurrence id (trace), not an HTTP code. N/A on generic errors.

Example: "000000000000000000221327"