API Reference
Pix · Charges with due date

Create a charge with due date

PUT/pix/v2/cobv/{txid}
Base URL: https://api-pix.bb.mimicr.dev · provider: https://api-pix.hm.bb.com.br

Creates a charge with due date. Scope: cobv.write. There is no POST /cobv: the txid is always yours.

devedor is required (cpf or cnpj and nome). valor accepts multa, juros, abatimento and desconto. The charge can be paid until dataDeVencimento + validadeAposVencimento days (default 30). The response includes recebedor.

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
calendarioobjectrequired
Show child attributes
dataDeVencimentostring<date>required

Due date (YYYY-MM-DD).

Example: "2026-11-02"
validadeAposVencimentointeger

Days the charge can be paid after the due date (default 30).

devedorobjectrequired

Debtor of the charge with due date: required, with cpf or cnpj and nome; address and e-mail optional.

Show child attributes
cpfstring

Debtor's CPF.

Example: "12345678909"
cnpjstring

Debtor's CNPJ (alphanumeric CNPJ accepted).

nomestringrequired

Debtor's name.

Example: "Francisco da Silva"
emailstring

Debtor's e-mail.

logradourostring

Street address.

cidadestring

City.

ufstring

State (UF).

cepstring

CEP (postal code), digits only.

locobject

Location reserved earlier with POST /loc (of the same tipoCob). Without loc, BB reserves one automatically.

Show child attributes
idinteger

Location id.

Example: 1005
valorobjectrequired
Show child attributes
originalstringrequired

The charge's original amount.

multaobject

Fine. Modality 1 = fixed amount; 2 = percentage.

Show child attributes
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
jurosobject

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
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
abatimentoobject

Rebate. Modality 1 = fixed amount; 2 = percentage.

Show child attributes
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
descontoobject

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
modalidadeintegerrequired
123456
valorPercstring
descontoDataFixaobject[]

1 to 3 dates (up to the due date) with each one's discount.

Show child attributes
datastring<date>
valorPercstring
chavestringrequired

The receiver's Pix key, registered at BB. In Mimicr, the sandbox's keys and BB's four test keys.

Example: "hmtestes2@bb.com.br"
solicitacaoPagadorstring

Text shown to the payer.

infoAdicionaisobject[]

Additional information shown to the payer.

Show child attributes
nomestringrequired

Field name.

valorstringrequired

Field value.

Responses

201Charge created, ATIVA.
calendarioobject
Show child attributes
criacaostring<date-time>
dataDeVencimentostring<date>
validadeAposVencimentointeger
devedorobject

Debtor of the charge with due date: required, with cpf or cnpj and nome; address and e-mail optional.

Show child attributes
cpfstring

Debtor's CPF.

Example: "12345678909"
cnpjstring

Debtor's CNPJ (alphanumeric CNPJ accepted).

nomestringrequired

Debtor's name.

Example: "Francisco da Silva"
emailstring

Debtor's e-mail.

logradourostring

Street address.

cidadestring

City.

ufstring

State (UF).

cepstring

CEP (postal code), digits only.

recebedorobject

The receiver's data (the account holder). In Mimicr, they come from the sandbox.

Show child attributes
cnpjstring
nomestring
logradourostring
cidadestring
ufstring
cepstring
valorobject
Show child attributes
originalstringrequired

The charge's original amount.

multaobject

Fine. Modality 1 = fixed amount; 2 = percentage.

Show child attributes
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
jurosobject

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
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
abatimentoobject

Rebate. Modality 1 = fixed amount; 2 = percentage.

Show child attributes
modalidadeintegerrequired

Modality (see the parent field's description).

valorPercstringrequired

Amount or percentage, with up to 2 decimals.

Example: "2.00"
descontoobject

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
modalidadeintegerrequired
123456
valorPercstring
descontoDataFixaobject[]

1 to 3 dates (up to the due date) with each one's discount.

Show child attributes
datastring<date>
valorPercstring
chavestring

The receiver's Pix key, registered at BB. In Mimicr, the sandbox's keys and BB's four test keys.

Example: "hmtestes2@bb.com.br"
solicitacaoPagadorstring

Text shown to the payer.

infoAdicionaisobject[]

Additional information shown to the payer.

Show child attributes
nomestringrequired

Field name.

valorstringrequired

Field value.

txidstring

Transaction identifier.

Example: "8IpSaxGdL5mkOpTNA6BGvJBDO6"
revisaointeger

The charge's revision; each change except cancelling and changing loc adds 1.

locobject

Location bound to the charge.

Show child attributes
idinteger
Example: 1001
locationstring

Payload URL, without scheme. In homologação BB uses qrcodepix-h.bb.com.br; in Mimicr it is qrcodepix.bb.mimicr.dev.

tipoCobstring
cobcobv
criacaostring<date-time>
locationstring

QR Code payload URL, without scheme.

statusstring

The charge's status. Expiration does not change the status.

ATIVACONCLUIDAREMOVIDA_PELO_USUARIO_RECEBEDORREMOVIDA_PELO_PSP
pixCopiaEColastring

The charge's Pix Copia e Cola (EMV). BB does not generate the QR Code image: render it from this text.

hiperlinkstring

BB's payment link (https://pagamentospix.apps.bb.com.br/m/#/…). BB's OpenAPI spells it hyperlink; the PDFs, hiperlink. In Mimicr, hiperlink.

pixobject[]

Pix received by the charge (only on GETs).

Show child attributes
endToEndIdstring

The Pix EndToEndIdentification.

Example: "E000000002026102304576VBYCAW5OYZ"
txidstring

txid of the paid charge; absent for Pix without a charge (static QR, transfer).

valorstring

Pix amount.

componentesValorobject

Breakdown of the amount: original and, in cobv, multa, juros, abatimento, desconto (each {valor}).

chavestring

Key that received the Pix.

horariostring<date-time>

Time of receipt.

infoPagadorstring

The payer's message.

pagadorobject

Who paid. In the homologação simulator, always VICTOR LOPES DORNELES (CPF 93492239293).

Show child attributes
cpfstring
cnpjstring
nomestring
devolucoesobject[]
Show child attributes
idstring

Refund id, chosen by the client.

rtrIdstring

The refund's ReturnIdentification (32 characters).

Example: "D00000000202610230457zddf24j5184"
valorstring

Refunded amount.

naturezastring

Nature of the refund.

ORIGINALRETIRADAMED_OPERACIONALMED_FRAUDEMED_PIX_AUTOMATICO
descricaostring
horarioobject
Show child attributes
solicitacaostring<date-time>
liquidacaostring<date-time>

Only when DEVOLVIDO.

statusstring

Refund state. All three come back with HTTP 201 on the PUT.

EM_PROCESSAMENTODEVOLVIDONAO_REALIZADO
motivostring

Reason, only when NAO_REALIZADO.

400Invalid charge (CobVOperacaoInvalida), repeated txid or a key not owned by the client.
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.

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.