API Reference
Update a boleto
/cobrancas/v2/boletos/{id}https://bb.mimicr.dev · provider: https://api.hm.bb.com.brSends a change instruction to an open boleto: due date, amount, discounts, abatimento, interest, fine, protest, credit-bureau listing, seu número, payer address or term after the due date. One change per call. Due date and amount produce a new typeable line and barcode.
At BB, changes are only accepted 30 minutes after registration or the previous change. In Mimicr this lock is off by default and can be turned on in the sandbox control (boletoLock); with it on, the answer is 400 4923876.
Scope: cobrancas.boletos-requisicao.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
The boleto's nosso número: 20 digits, 000 + convênio (7) + control number (10). It is the numero returned on registration.
"00031285570031443497"Query parameters
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.
"<app-key>"Body
application/jsonThe boleto's convênio.
3128557S changes the due date (alteracaoData).
SNShow child attributes
New due date, dd.mm.aaaa.
S changes the amount (alteracaoValor).
SNShow child attributes
New amount in reais.
S grants discounts (desconto).
SNDiscounts to grant. The first one's type applies to the others.
Show child attributes
S changes existing discounts (alteracaoDesconto).
SNShow child attributes
S changes the discount dates (alteracaoDataDesconto).
SNShow child attributes
S adds a protest instruction (protesto).
SNShow child attributes
S stops a protest already processed.
SNS cancels a protest instruction not yet processed.
SNS adds an abatimento (abatimento).
SNShow child attributes
S changes the abatimento (alteracaoAbatimento); 0 cancels it.
SNShow child attributes
S starts charging interest (juros).
SNShow child attributes
0 waive, 1 amount per day, 2 monthly rate, 3 exempt.
Amount per day (type 1).
Monthly rate in % (type 2).
S waives interest.
SNS starts charging a fine (multa).
SNShow child attributes
1 fixed amount, 2 percentage.
dd.mm.aaaa
S waives the fine.
SNS adds, changes or cancels credit-bureau listing (negativacao).
SNShow child attributes
1 add, 2 change deadline, 3 cancel, 4 remove.
10 SERASA, 11 QUOD.
S changes the seu número (alteracaoSeuNumero).
SNShow child attributes
S changes the payer's address (alteracaoEndereco).
SNShow child attributes
S changes how long the boleto can be paid after the due date (alteracaoPrazo).
SNShow child attributes
Days after the due date, less than 360.
Responses
200Change accepted.
dd.mm.aaaa
hh:mm:ss
400No change (4010580), more than one (4010755), invalid change data, or the 30-minute lock (4923876).
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""401Missing, invalid or expired token.
401"Unauthorized""Bad credentials"Show child attributes
"Bad Credentials"403The boleto's state does not allow changes (4007954), credit-card or proposal boleto, or convênio of another client.
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""404Boleto not found (4010673).
Show child attributes
Code as <codigo>.<versao>.
"4010673.1"Error text.
"Boleto não localizado."How to fix it.
""