Reportar pago verificado
curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/verified-payments \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"source": "erp_acme",
"externalPaymentId": "payment-5001",
"customerExternalId": "customer-1001",
"amountMinor": 2025,
"currency": "USD",
"verifiedAt": "2026-07-14T16:00:00Z",
"documents": [
{
"externalDocumentId": "invoice-1001",
"amountMinor": 2025
}
]
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source: 'erp_acme',
externalPaymentId: 'payment-5001',
customerExternalId: 'customer-1001',
amountMinor: 2025,
currency: 'USD',
verifiedAt: '2026-07-14T16:00:00Z',
documents: [{externalDocumentId: 'invoice-1001', amountMinor: 2025}]
})
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/verified-payments', 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}/verified-payments"
payload = {
"source": "erp_acme",
"externalPaymentId": "payment-5001",
"customerExternalId": "customer-1001",
"amountMinor": 2025,
"currency": "USD",
"verifiedAt": "2026-07-14T16:00:00Z",
"documents": [
{
"externalDocumentId": "invoice-1001",
"amountMinor": 2025
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"paymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "<string>",
"externalPaymentId": "<string>",
"customerExternalId": "<string>",
"companyCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "applied",
"paymentCurrency": "<string>",
"applicationCurrency": "<string>",
"totalAppliedMinor": 123,
"creditCreatedMinor": 123,
"documents": [
{
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalDocumentId": "<string>",
"currency": "<string>",
"appliedMinor": 123,
"balanceMinor": 123,
"status": "applied"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Pagos
Reportar pago verificado
Registra un pago confirmado por el partner y lo aplica únicamente a los documentos indicados. El límite es 60 solicitudes por minuto por llave.
POST
/
integrations
/
v1
/
{companyId}
/
verified-payments
Reportar pago verificado
curl --request POST \
--url https://api.cobrix.co/api/integrations/v1/{companyId}/verified-payments \
--header 'Authorization: Bearer <token>' \
--header 'Cobrix-Signature: <cobrix-signature>' \
--header 'Cobrix-Timestamp: <cobrix-timestamp>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"source": "erp_acme",
"externalPaymentId": "payment-5001",
"customerExternalId": "customer-1001",
"amountMinor": 2025,
"currency": "USD",
"verifiedAt": "2026-07-14T16:00:00Z",
"documents": [
{
"externalDocumentId": "invoice-1001",
"amountMinor": 2025
}
]
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Cobrix-Timestamp': '<cobrix-timestamp>',
'Cobrix-Signature': '<cobrix-signature>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
source: 'erp_acme',
externalPaymentId: 'payment-5001',
customerExternalId: 'customer-1001',
amountMinor: 2025,
currency: 'USD',
verifiedAt: '2026-07-14T16:00:00Z',
documents: [{externalDocumentId: 'invoice-1001', amountMinor: 2025}]
})
};
fetch('https://api.cobrix.co/api/integrations/v1/{companyId}/verified-payments', 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}/verified-payments"
payload = {
"source": "erp_acme",
"externalPaymentId": "payment-5001",
"customerExternalId": "customer-1001",
"amountMinor": 2025,
"currency": "USD",
"verifiedAt": "2026-07-14T16:00:00Z",
"documents": [
{
"externalDocumentId": "invoice-1001",
"amountMinor": 2025
}
]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Cobrix-Timestamp": "<cobrix-timestamp>",
"Cobrix-Signature": "<cobrix-signature>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"paymentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "<string>",
"externalPaymentId": "<string>",
"customerExternalId": "<string>",
"companyCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "applied",
"paymentCurrency": "<string>",
"applicationCurrency": "<string>",
"totalAppliedMinor": 123,
"creditCreatedMinor": 123,
"documents": [
{
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalDocumentId": "<string>",
"currency": "<string>",
"appliedMinor": 123,
"balanceMinor": 123,
"status": "applied"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is missing or invalid.",
"requestId": "req-1001"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Too many requests for this API key.",
"requestId": "req-1001"
}
}Authorizations
Llave cbx_live creada para el partner.
Headers
Identificador estable de la operación.
Minimum string length:
1Segundos Unix dentro de una ventana de cinco minutos.
Pattern:
^[0-9]{10}$HMAC-SHA256 de timestamp, método, ruta y cuerpo crudo.
Pattern:
^v1=[a-f0-9]{64}$Identificador opcional para correlación de soporte.
Path Parameters
Empresa vinculada a la llave.
Body
application/json
Minimum string length:
1Minimum string length:
1Minimum string length:
1Required range:
x >= 1Available options:
USD, VES, usd, ves Minimum array length:
1Show child attributes
Show child attributes
Campo legacy opcional; el header sigue siendo obligatorio.
Show child attributes
Show child attributes
Response
Pago procesado
Available options:
applied, partially_applied, credited, needs_certified_rate, no_open_documents, failed, already_processed Show child attributes
Show child attributes

