{
"source": "inline_text",
"document_type": "invoice",
"pages_analyzed": 1,
"word_count": 30,
"audited_at": "2026-12-01T08:10:12.195997+00:00",
"overall_risk_score": 88,
"deterministic_risk_score": 85,
"overall_risk_level": "CRITICAL",
"executive_summary": "The invoice contains a critical arithmetic discrepancy, showing a total that exceeds the sum of subtotal and tax by $120.00, and the contract includes high‑risk auto‑renewal and unlimited liability clauses. Immediate corrective action and renegotiation of renewal and liability terms are required before any payment is processed.",
"financial_extraction": {
"monetary_amounts": [
"$1,000.00",
"$1,220.00",
"$100.00"
],
"percentages": [],
"dates_detected": [],
"invoice_math_check": {
"checked": true,
"subtotal": 1000,
"tax": 100,
"stated_total": 1220,
"expected_total": 1100,
"discrepancy": 120,
"status": "MISMATCH"
}
},
"detected_risk_flags": [
{
"id": "invoice_math_mismatch",
"clause": "Invoice Arithmetic Discrepancy",
"severity": "CRITICAL",
"excerpt": "Subtotal 1000.0 + Tax 100.0 != Stated Total 1220.0",
"recommended_action": "Verify line items and request a corrected invoice before payment."
},
{
"id": "auto_renewal",
"clause": "Auto-Renewal / Evergreen Clause",
"severity": "HIGH",
"excerpt": ",000.00. Tax: $100.00. Total Due: $1,220.00. This agreement auto-renews with 60 days prior written notice and includes unlimited liability and unilateral price",
"recommended_action": "Negotiate opt-in renewal or set a calendar alert 60 days before the notice deadline."
},
{
"id": "notice_window",
"clause": "Strict Cancellation Notice Window",
"severity": "MEDIUM",
"excerpt": "0.00. Total Due: $1,220.00. This agreement auto-renews with 60 days prior written notice and includes unlimited liability and unilateral price increases.",
"recommended_action": "Shorten notice window to 30 days and track the exact cut-off date."
},
{
"id": "unlimited_liability",
"clause": "Uncapped / Unlimited Liability or Broad Indemnity",
"severity": "CRITICAL",
"excerpt": "auto-renews with 60 days prior written notice and includes unlimited liability and unilateral price increases.",
"recommended_action": "Cap total liability at 12 months of fees paid and make indemnity mutual."
}
],
"key_obligations": [
"Pay the stated Total Due of $1,220.00 upon receipt",
"Provide a written notice at least 60 days prior to the renewal date to avoid automatic renewal",
"Tax of $100.00 is applied to the Subtotal of $1,000.00",
"The agreement auto‑renews unless notice is given",
"Liability is unlimited and includes unilateral price increases"
],
"negotiation_redlines": [
{
"issue": "Invoice total mismatch",
"suggested_counter_language": "Correct the Total Due to $1,100.00, reflecting Subtotal $1,000.00 plus Tax $100.00 and remove the $120.00 discrepancy."
},
{
"issue": "Auto‑renewal clause",
"suggested_counter_language": "Replace automatic renewal with an opt‑in renewal requiring written agreement and reduce notice period to 30 days."
},
{
"issue": "Unlimited liability",
"suggested_counter_language": "Cap total liability at an amount equal to twelve (12) months of fees paid and make indemnity obligations mutual."
},
{
"issue": "Notice window",
"suggested_counter_language": "Shorten the cancellation notice window to 30 days and clearly define the cut‑off date for renewal decisions."
}
],
"action_checklist": [
"Verify the arithmetic on the invoice and request a corrected invoice reflecting the accurate total.",
"Confirm the tax calculation aligns with applicable rates and the subtotal.",
"Negotiate to replace the auto‑renewal clause with an opt‑in renewal and a 30‑day notice period.",
"Amend the liability clause to include a monetary cap of 12 months of fees and mutual indemnity language.",
"Set a calendar reminder for the revised notice deadline and document all agreed changes before processing payment."
],
"ai_engine_used": "groq:openai/gpt-oss-120b#1",
"disclaimer": "Automated contract & invoice risk screening tool; not legal or accounting advice. Consult a qualified attorney or CPA before signing or disputing financial terms."
}
curl --location --request POST 'https://zylalabs.com/api/15819/ai+contract+and+invoice+risk+auditor+api/43443/audit+contract+or+invoice' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json'
--data-raw '{"documentText": "Invoice #9021. Bill To: Acme Corp. Subtotal: $1,000.00. Tax: $100.00. Total Due: $1,220.00. This agreement auto-renews with 60 days prior written notice and includes unlimited liability and unilateral price increases.", "documentType": "auto"}'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Auditor de riesgos de contratos y facturas con IA API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
(Ahorra 2 meses pagando anualmente 🎉)
Audita contratos y facturas en PDF o texto para detectar errores aritméticos, cláusulas de renovación automática, responsabilidad ilimitada y riesgos comerciales ocultos con propuestas de cambios para negociar
Acepta una URL de PDF o texto sin formato que contenga un contrato o una factura B2B El campo `source` de la respuesta indica cómo se proporcionó el documento, por ejemplo, `inline_text`
La respuesta JSON puede incluir el tipo de documento las páginas analizadas el recuento de palabras la fecha y hora de la auditoría las puntuaciones y el nivel de riesgo un resumen ejecutivo los detalles financieros extraídos los hallazgos las modificaciones sugeridas para la negociación y una lista de acciones pendientes
`overall_risk_score` y `deterministic_risk_score` proporcionan evaluaciones numéricas del riesgo, mientras que `overall_risk_level` indica una categoría como `CRITICAL`. Úsalos junto con los hallazgos y el resumen; una puntuación por sí sola no explica el problema subyacente. .
Compara el total indicado con el subtotal más los impuestos esperados El objeto `invoice_math_check` puede informar si se realizó la comprobación y proporcionar el subtotal, los impuestos, el total indicado y el importe esperado extraídos, lo que ayuda a identificar discrepancias
El endpoint comprueba si hay trampas de renovación automática, responsabilidad ilimitada, aumentos de precios y otros riesgos comerciales ocultos. Puede devolver cambios sugeridos para la negociación y una lista de acciones para ayudar a los usuarios a abordar los problemas identificados.
Comience con el resumen ejecutivo y el nivel de riesgo luego revise los hallazgos detallados y los valores extraídos Use las modificaciones y la lista de verificación para orientar el seguimiento y verifique las cifras importantes y las interpretaciones legales con el documento original
Devuelve JSON estructurado en lugar de solo una narración Los campos como `document_type`, `pages_analyzed` y `word_count` describen la entrada analizada mientras que los campos de riesgo finanzas y recomendaciones resumen los resultados de la auditoría