Cancelar débito
curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/direct-debits/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/direct-debits/{id}/cancel', 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}/direct-debits/{id}/cancel"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "6f0c9d1e-3a52-4c0e-9a41-2f5b7c8d9e10",
"externalDocumentId": "PED-1001",
"status": "cancelled",
"amount": {
"minor": "1313475",
"currency": "VES"
},
"error": {
"code": "cancelled",
"message": "El cobro se canceló antes de enviarse al banco."
},
"createdAt": "2026-11-10T15:00:00.000Z",
"updatedAt": "2026-11-10T15:00:30.000Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"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>",
"reason": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"bankCode": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"reason": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"bankCode": "<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"
}
}Débito inmediato
Cancelar débito
Cancela un débito que espera su código (otp_sent). Va sin cuerpo, con o sin Content-Type: application/json. Un débito ya enviado al banco no se cancela: espera su resultado.
POST
/
integrations
/
v1
/
{companyId}
/
direct-debits
/
{id}
/
cancel
Cancelar débito
curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/direct-debits/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/direct-debits/{id}/cancel', 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}/direct-debits/{id}/cancel"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"id": "6f0c9d1e-3a52-4c0e-9a41-2f5b7c8d9e10",
"externalDocumentId": "PED-1001",
"status": "cancelled",
"amount": {
"minor": "1313475",
"currency": "VES"
},
"error": {
"code": "cancelled",
"message": "El cobro se canceló antes de enviarse al banco."
},
"createdAt": "2026-11-10T15:00:00.000Z",
"updatedAt": "2026-11-10T15:00:30.000Z"
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"requestId": "<string>"
}
}{
"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>",
"reason": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"bankCode": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"reason": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"bankCode": "<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 débito en cancelled
otp_sent: el banco envió el código, falta ejecutar. processing: enviado al banco, falta su respuesta. succeeded: cobrado y aplicado al documento. failed: el banco lo rechazó o falló el cobro. expired: el código venció; Cobrix lo cierra solo un minuto después. cancelled: lo cancelaste. Solo succeeded mueve dinero.
Available options:
otp_sent, processing, succeeded, failed, expired, cancelled 
