API Reference
Pix · Charges with due date

Revise a cobv batch

PATCH/pix/v2/lotecobv/{id}
Base URL: https://api-pix.bb.mimicr.dev · provider: https://api-pix.hm.bb.com.br

Revises or cancels ATIVA charges of a batch. Scope: lotecobv.write. Answers 202 with no body; each charge's result shows up in GET /lotecobv/{id}.

Authorization

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

Query parameters

gw-dev-app-keystringrequired

Your application's application key (developer_application_key) from the BB Developers Portal. Required on every call.

Example: "<app-key>"

Body

application/json
descricaostring

Batch description.

cobsvany[]required

Charges to revise: txid and the fields to change, or status REMOVIDA_PELO_USUARIO_RECEBEDOR to cancel.

Responses

202Revision received, no body.
400Invalid batch (LoteCobVOperacaoInvalida).
typestringrequired

URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.

titlestringrequired

Error title.

Example: "Cobrança inválida."
statusintegerrequired

HTTP status.

Example: 400
detailstring

Error detail. BB's business messages (repeated txid, key not owned by the client) come here.

correlationIdstring

BB's correlation identifier (API-BB-…).

Example: "API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"
numeroOcorrenciainteger

Occurrence number (on 404).

violacoesobject[]

Fields that violated the schema or the rules.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

The violated property, e.g. cob.valor.original.

valorstring

Value received, when there is one.

401Token missing, invalid, expired or issued to another application.
statusCodeinteger
Example: 401
errorstring
Example: "Unauthorized"
messagestring
Example: "Bad credentials"
attributesobject
Show child attributes
errorstring
Example: "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)
detailstring

Message, without accents.

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

Guidance to fix it.

errorCodestring
Example: "403"
bbMsgobject
Show child attributes
categoriastring
Example: "SISTEMA"
tipostring
Example: "ERRO"
Problema (API Pix)
typestringrequired

URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.

titlestringrequired

Error title.

Example: "Cobrança inválida."
statusintegerrequired

HTTP status.

Example: 400
detailstring

Error detail. BB's business messages (repeated txid, key not owned by the client) come here.

correlationIdstring

BB's correlation identifier (API-BB-…).

Example: "API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"
numeroOcorrenciainteger

Occurrence number (on 404).

violacoesobject[]

Fields that violated the schema or the rules.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

The violated property, e.g. cob.valor.original.

valorstring

Value received, when there is one.

404Entity not found (NaoEncontrado).
typestringrequired

URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.

titlestringrequired

Error title.

Example: "Cobrança inválida."
statusintegerrequired

HTTP status.

Example: 400
detailstring

Error detail. BB's business messages (repeated txid, key not owned by the client) come here.

correlationIdstring

BB's correlation identifier (API-BB-…).

Example: "API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"
numeroOcorrenciainteger

Occurrence number (on 404).

violacoesobject[]

Fields that violated the schema or the rules.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

The violated property, e.g. cob.valor.original.

valorstring

Value received, when there is one.

503Service unavailable (ServicoIndisponivel): maintenance or outside the service window.
typestringrequired

URI of the error type, e.g. https://api.bb.com.br/api/v2/error/CobOperacaoInvalida.

titlestringrequired

Error title.

Example: "Cobrança inválida."
statusintegerrequired

HTTP status.

Example: 400
detailstring

Error detail. BB's business messages (repeated txid, key not owned by the client) come here.

correlationIdstring

BB's correlation identifier (API-BB-…).

Example: "API-BB-6730c0d7-b742-4fc0-bc63-8f2753ef90dd"
numeroOcorrenciainteger

Occurrence number (on 404).

violacoesobject[]

Fields that violated the schema or the rules.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

The violated property, e.g. cob.valor.original.

valorstring

Value received, when there is one.