{
"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"}'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Auditor de Riscos de Contratos e Faturas com IA API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
(Economize 2 meses com cobrança anual 🎉)
Audite contratos e faturas em PDF ou texto em busca de erros aritméticos, armadilhas de renovação automática, responsabilidade ilimitada e riscos comerciais ocultos, com sugestões de alterações para negociação
Aceita uma URL de PDF ou texto bruto contendo um contrato ou uma fatura B2B O campo `source` da resposta indica como o documento foi fornecido, como `inline_text`
A resposta JSON pode incluir o tipo de documento, as páginas analisadas, a contagem de palavras, o registro de data e hora da auditoria, as pontuações e o nível de risco, um resumo executivo, detalhes financeiros extraídos, constatações, alterações sugeridas para negociação e uma lista de verificação de ações
`overall_risk_score` e `deterministic_risk_score` fornecem avaliações numéricas de risco, enquanto `overall_risk_level` indica uma categoria como `CRITICAL`. Use-os juntamente com as constatações e o resumo; uma pontuação por si só não explica o problema subjacente. .
Compara o total declarado com o subtotal esperado mais o imposto. O objeto `invoice_math_check` pode informar se a verificação foi realizada e fornecer o subtotal extraído, o imposto, o total declarado e o valor esperado, ajudando a identificar discrepâncias
O endpoint verifica armadilhas de renovação automática, responsabilidade ilimitada, aumento de preços e outros riscos comerciais ocultos. Ele pode retornar sugestões de alterações para negociação e uma lista de ações para ajudar os usuários a lidar com as preocupações identificadas
Comece pelo resumo executivo e nível de risco depois examine as constatações detalhadas e os valores extraídos Use as revisões e a lista de verificação para orientar o acompanhamento e verifique os números importantes e as interpretações jurídicas em relação ao documento original
Retorna JSON estruturado em vez de apenas uma narrativa. Campos como `document_type`, `pages_analyzed` e `word_count` descrevem a entrada analisada, enquanto os campos de risco, financeiros e de recomendação resumem os resultados da auditoria.