Revocar un token
curl --request DELETE \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId} \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'DELETE',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId}"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "0f8fad5b-…",
"status": "verified",
"attemptsUsed": 2,
"maxAttempts": 5,
"expiresAt": "2026-11-17T12:15:00.000Z",
"externalReference": "PED-1001",
"verificationId": "0b6e7c1a-…",
"lastErrorCode": "not_found"
}{
"error": {
"code": "invalid_request",
"message": "amountMinor must not be less than 1",
"field": "amountMinor",
"details": [
{
"field": "amountMinor",
"message": "amountMinor must not be less than 1"
}
],
"requestId": "req-1001"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}{
"error": {
"code": "internal_error",
"message": "Something failed on our side. Try again in a few minutes; if it keeps failing, contact Cobrix support.",
"requestId": "req-1001"
}
}Validación de pagos
Revocar un token
Revoca el token: el navegador deja de poder usarlo y recibe 401 token_revoked. Responde el token. Revocar un token que ya se cerró con un resultado no lo cambia: sigue mostrando su resultado. Repetir la llamada no cambia nada.
DELETE
/
integrations
/
v1
/
{companyId}
/
payment-verifications
/
tokens
/
{tokenId}
Revocar un token
curl --request DELETE \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId} \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>'const options = {
method: 'DELETE',
headers: {
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cobrix.co/api/integrations/v1/{companyId}/payment-verifications/tokens/{tokenId}"
headers = {
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"id": "0f8fad5b-…",
"status": "verified",
"attemptsUsed": 2,
"maxAttempts": 5,
"expiresAt": "2026-11-17T12:15:00.000Z",
"externalReference": "PED-1001",
"verificationId": "0b6e7c1a-…",
"lastErrorCode": "not_found"
}{
"error": {
"code": "invalid_request",
"message": "amountMinor must not be less than 1",
"field": "amountMinor",
"details": [
{
"field": "amountMinor",
"message": "amountMinor must not be less than 1"
}
],
"requestId": "req-1001"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}{
"error": {
"code": "internal_error",
"message": "Something failed on our side. Try again in a few minutes; if it keeps failing, contact Cobrix support.",
"requestId": "req-1001"
}
}Headers
Path Parameters
Response
El token después de revocarlo
active: se puede usar. verified: se cerró con un pago verificado. pending_review: se cerró con un Zelle que espera revisión. rejected: se cerró con un Zelle que una persona de la empresa rechazó. exhausted: gastó sus intentos sin un pago verificado, o llegó a su tope de envíos. expired: caducó. revoked: lo revocaste, o la llave que lo emitió ya no sirve. Un token exhausted se lee expired cuando caduca y revoked si lo revocas.
Available options:
active, verified, pending_review, rejected, exhausted, expired, revoked 
