Create Dynamic Immediate Charge (COB)
Creates a dynamic immediate charge (cob) and binds it to the specified location. The txid must be 26-35 lowercase alphanumeric characters as per Bacen specification. This operation is idempotent — using the same txid returns the existing charge. Requires Idempotency-Key header.
- Type: stringtxidrequired
Transaction identifier (txid). Must be 26-35 lowercase alphanumeric characters [a-z0-9]
- Type: stringx
-branch requiredBranch of the charge owner account
- Type: stringx
-account -number requiredNumber of the charge owner account
- Type: stringIdempotency
- Key requiredUnique idempotency key
Request to create a dynamic immediate charge with location binding
- Type: object ·calendariorequired
Calendar settings for the charge expiration
- Type: stringchavemin length:1required
Pix key of the receiver. EVP, email, CPF/CNPJ or phone in E.164 format (+55...).
- Type: object ·valorrequired
Amount information for the charge
- Type: object ·devedor
Debtor information (payer)
- Type: booleanemit
Image If true, also returns the PNG image (base64).
- Type: array object[] · …50info
Adicionais Additional information list for the payer
Additional information for the payer
- Type: object ·loc
Location reference for binding to a charge
- Type: stringsolicitacao
Pagador max length:140Optional message/request from the payer.
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl http://localhost/cob/txid12345678901234567890123456 \
--request PUT \
--header 'x-branch: ' \
--header 'x-account-number: ' \
--header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"calendario": {
"expiracao": 1
},
"valor": {
"original": "",
"modalidadeAlteracao": 0
},
"chave": "",
"devedor": {
"cpf": "",
"cnpj": "",
"nome": ""
},
"loc": {
"id": ""
},
"solicitacaoPagador": "",
"emitImage": true,
"infoAdicionais": [
{
"nome": "",
"valor": ""
}
]
}'
{
"id": "string",
"type": "STATIC",
"txid": "string",
"status": "ATIVA",
"revisao": 1,
"calendario": {
"criacao": "2026-07-31T12:59:10.424Z",
"expiracao": 1
},
"valor": {
"original": "string",
"modalidadeAlteracao": 1
},
"chave": "string",
"devedor": {
"cpf": "string",
"cnpj": "string",
"nome": "string"
},
"loc": {
"id": "string",
"url": "string"
},
"solicitacaoPagador": "string",
"infoAdicionais": [
{
"nome": "string",
"valor": "string"
}
],
"pixCopiaECola": "string",
"qrCodeImage": {
"contentType": "string",
"base64": "string"
},
"createdAt": "2026-07-31T12:59:10.424Z"
}