API Reference
Revise a charge with due date
/pix/v2/cobv/{txid}https://api-pix.bb.mimicr.dev · provider: https://api-pix.hm.bb.com.brRevises or cancels an ATIVA charge with due date, with the same rules as PATCH /cob/{txid}. Scope: cobv.write.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Query parameters
Your application's application key (developer_application_key) from the BB Developers Portal. Required on every call.
"<app-key>"Body
application/jsonShow child attributes
Due date (YYYY-MM-DD).
"2026-11-02"Days the charge can be paid after the due date (default 30).
Debtor of the charge with due date: required, with cpf or cnpj and nome; address and e-mail optional.
Show child attributes
Debtor's CPF.
"12345678909"Debtor's CNPJ (alphanumeric CNPJ accepted).
Debtor's name.
"Francisco da Silva"Debtor's e-mail.
Street address.
City.
State (UF).
CEP (postal code), digits only.
Location reserved earlier with POST /loc (of the same tipoCob). Without loc, BB reserves one automatically.
Show child attributes
Location id.
1005Show child attributes
The charge's original amount.
Fine. Modality 1 = fixed amount; 2 = percentage.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Interest. Modality 1 = amount per day (calendar days); 2 = % per day; 3 = % per month; 4 = % per year (calendar days); 5 to 8 = the same in business days.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Rebate. Modality 1 = fixed amount; 2 = percentage.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Discount. Modality 1 = fixed amount until the date(s); 2 = percentage until the date(s) (use descontoDataFixa); 3 = amount per day paid early (calendar days); 4 = same (business days); 5 = percentage per day (calendar days); 6 = same (business days) (use valorPerc).
Show child attributes
1234561 to 3 dates (up to the due date) with each one's discount.
Show child attributes
Text shown to the payer.
Additional information shown to the payer.
Show child attributes
Field name.
Field value.
Cancels the charge. It must be the only field.
REMOVIDA_PELO_USUARIO_RECEBEDORResponses
200Charge revised.
Show child attributes
Debtor of the charge with due date: required, with cpf or cnpj and nome; address and e-mail optional.
Show child attributes
Debtor's CPF.
"12345678909"Debtor's CNPJ (alphanumeric CNPJ accepted).
Debtor's name.
"Francisco da Silva"Debtor's e-mail.
Street address.
City.
State (UF).
CEP (postal code), digits only.
The receiver's data (the account holder). In Mimicr, they come from the sandbox.
Show child attributes
Show child attributes
The charge's original amount.
Fine. Modality 1 = fixed amount; 2 = percentage.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Interest. Modality 1 = amount per day (calendar days); 2 = % per day; 3 = % per month; 4 = % per year (calendar days); 5 to 8 = the same in business days.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Rebate. Modality 1 = fixed amount; 2 = percentage.
Show child attributes
Modality (see the parent field's description).
Amount or percentage, with up to 2 decimals.
"2.00"Discount. Modality 1 = fixed amount until the date(s); 2 = percentage until the date(s) (use descontoDataFixa); 3 = amount per day paid early (calendar days); 4 = same (business days); 5 = percentage per day (calendar days); 6 = same (business days) (use valorPerc).
Show child attributes
1234561 to 3 dates (up to the due date) with each one's discount.
Show child attributes
The receiver's Pix key, registered at BB. In Mimicr, the sandbox's keys and BB's four test keys.
"hmtestes2@bb.com.br"Text shown to the payer.
Additional information shown to the payer.
Show child attributes
Field name.
Field value.
Transaction identifier.
"8IpSaxGdL5mkOpTNA6BGvJBDO6"The charge's revision; each change except cancelling and changing loc adds 1.
Location bound to the charge.
Show child attributes
1001Payload URL, without scheme. In homologação BB uses qrcodepix-h.bb.com.br; in Mimicr it is qrcodepix.bb.mimicr.dev.
cobcobvQR Code payload URL, without scheme.
The charge's status. Expiration does not change the status.
ATIVACONCLUIDAREMOVIDA_PELO_USUARIO_RECEBEDORREMOVIDA_PELO_PSPThe charge's Pix Copia e Cola (EMV). BB does not generate the QR Code image: render it from this text.
BB's payment link (https://pagamentospix.apps.bb.com.br/m/#/…). BB's OpenAPI spells it hyperlink; the PDFs, hiperlink. In Mimicr, hiperlink.
Pix received by the charge (only on GETs).
Show child attributes
The Pix EndToEndIdentification.
"E000000002026102304576VBYCAW5OYZ"txid of the paid charge; absent for Pix without a charge (static QR, transfer).
Pix amount.
Breakdown of the amount: original and, in cobv, multa, juros, abatimento, desconto (each {valor}).
Key that received the Pix.
Time of receipt.
The payer's message.
Who paid. In the homologação simulator, always VICTOR LOPES DORNELES (CPF 93492239293).
Show child attributes
Show child attributes
Refund id, chosen by the client.
The refund's ReturnIdentification (32 characters).
"D00000000202610230457zddf24j5184"Refunded amount.
Nature of the refund.
ORIGINALRETIRADAMED_OPERACIONALMED_FRAUDEMED_PIX_AUTOMATICOShow child attributes
Only when DEVOLVIDO.
Refund state. All three come back with HTTP 201 on the PUT.
EM_PROCESSAMENTODEVOLVIDONAO_REALIZADOReason, only when NAO_REALIZADO.
400Invalid operation (CobVOperacaoInvalida).
URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.
Error title.
"Cobrança inválida."HTTP status.
400Error detail. BB's business messages (repeated txid, key not owned by the client) come here.
BB's correlation identifier (API-BB-…).
"API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"Occurrence number (on 404).
Fields that violated the schema or the rules.
Show child attributes
Reason for the violation.
The violated property, e.g. cob.valor.original.
Value received, when there is one.
401Token missing, invalid, expired or issued to another application.
401"Unauthorized""Bad credentials"Show child attributes
"Bad Credentials"403Application key (gw-dev-app-key) missing or invalid (gateway error), or token without the operation's scope (AcessoNegado).
Chave de aplicação (gateway)
Message, without accents.
"A chave de aplicacao (AppKey) nao foi informada"Guidance to fix it.
"403"Show child attributes
"SISTEMA""ERRO"Problema (API Pix)
URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.
Error title.
"Cobrança inválida."HTTP status.
400Error detail. BB's business messages (repeated txid, key not owned by the client) come here.
BB's correlation identifier (API-BB-…).
"API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"Occurrence number (on 404).
Fields that violated the schema or the rules.
Show child attributes
Reason for the violation.
The violated property, e.g. cob.valor.original.
Value received, when there is one.
404Entity not found (NaoEncontrado).
URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.
Error title.
"Cobrança inválida."HTTP status.
400Error detail. BB's business messages (repeated txid, key not owned by the client) come here.
BB's correlation identifier (API-BB-…).
"API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"Occurrence number (on 404).
Fields that violated the schema or the rules.
Show child attributes
Reason for the violation.
The violated property, e.g. cob.valor.original.
Value received, when there is one.
503Service unavailable (ServicoIndisponivel): maintenance or outside the service window.
URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.
Error title.
"Cobrança inválida."HTTP status.
400Error detail. BB's business messages (repeated txid, key not owned by the client) come here.
BB's correlation identifier (API-BB-…).
"API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"Occurrence number (on 404).
Fields that violated the schema or the rules.
Show child attributes
Reason for the violation.
The violated property, e.g. cob.valor.original.
Value received, when there is one.