Retrieve immediate charge (COB)
Retrieves a charge through a given txid. Bacen API Pix: consultar cobrança imediata.
Path Parameters
- Type: stringtxidrequired
Transaction identifier (txid). Must be 26-35 lowercase alphanumeric characters [a-z0-9]
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/api/cob/{txid}
curl http://localhost:8080/api/cob/txid12345678901234567890123456 \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"id": "string",
"type": "STATIC",
"txid": "string",
"status": "ATIVA",
"revisao": 1,
"calendario": {
"criacao": "2026-09-16T19:14:18.674Z",
"expiracao": 1
},
"valor": {
"original": "string",
"modalidadeAlteracao": 1,
"retirada": {
"saque": {
"valor": "string",
"modalidadeAlteracao": 0,
"modalidadeAgente": "AGTEC",
"prestadorDoServicoDeSaque": "string"
},
"troco": {
"valor": "string",
"modalidadeAlteracao": 0,
"modalidadeAgente": "AGTEC",
"prestadorDoServicoDeSaque": "string"
}
}
},
"chave": "string",
"devedor": {
"cpf": "string",
"cnpj": "string",
"nome": "string"
},
"loc": {
"id": "string",
"location": "string",
"tipoCob": "cob",
"criacao": "2026-09-16T19:14:18.674Z"
},
"location": "string",
"solicitacaoPagador": "string",
"infoAdicionais": [
{
"nome": "string",
"valor": "string"
}
],
"pix": [
{
"endToEndId": "E1234567820260713123456789012345",
"txid": "string",
"valor": "100.0",
"componentesValor": {
"original": {
"valor": "100.0"
},
"saque": {
"valor": "20.0",
"modalidadeAgente": "AGTEC",
"prestadorDoServicoDeSaque": "string"
},
"troco": {
"valor": "20.0",
"modalidadeAgente": "AGTEC",
"prestadorDoServicoDeSaque": "string"
},
"juros": {
"valor": "100.0"
},
"multa": {
"valor": "100.0"
},
"abatimento": {
"valor": "100.0"
},
"desconto": {
"valor": "100.0"
}
},
"chave": "string",
"horario": "2026-09-16T19:14:18.674Z",
"infoPagador": "string",
"devolucoes": [
{
"id": "devolucao001",
"rtrId": "D1234567820260713123456789012345",
"valor": "10.0",
"natureza": "ORIGINAL",
"descricao": "string",
"horario": {
"solicitacao": "2026-09-16T19:14:18.674Z",
"liquidacao": "2026-09-16T19:14:18.674Z"
},
"status": "EM_PROCESSAMENTO",
"motivo": "string"
}
]
}
],
"pixCopiaECola": "string",
"qrCodeImage": {
"contentType": "string",
"base64": "string"
},
"createdAt": "2026-09-16T19:14:18.674Z"
}