Validate Charge by txid
Validates a charge by its transaction identifier (txid) and returns charge information in cob-shaped fields, with this API's own status vocabulary (ACTIVE/COMPLETED/...), not the Bacen one. Checks that the charge exists, is active, and has not expired. Returns 404 if not found, 409 if already settled, 410 if expired/cancelled.
Path Parameters
- Type: stringtxidrequired
Transaction identifier (txid) of the charge to validate. Must be 26-35 lowercase alphanumeric characters [a-z0-9]
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/api/cob/{txid}/validate
curl http://localhost:8080/api/cob/txid12345678901234567890123456/validate \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"txid": "string",
"status": "ACTIVE",
"revision": 1,
"calendar": {
"createdAt": "2026-09-16T19:14:18.661Z",
"expiration": 1,
"dueDate": "2026-09-16",
"validAfterDueDays": 1
},
"amount": {
"original": "string",
"changeMode": 1,
"cashWithdrawal": {
"withdrawal": {
"cashAmount": "string",
"changeMode": 1,
"agentModality": "AGTEC",
"cashierIspb": "string"
},
"change": {
"cashAmount": "string",
"changeMode": 1,
"agentModality": "AGTEC",
"cashierIspb": "string"
}
}
},
"key": "string",
"location": {
"id": "string",
"url": "string"
},
"payerRequest": "string",
"additionalInfo": [
{
"name": "string",
"value": "string"
}
]
}