法律合规与合同审校 · law.contract.audit

加盟与商铺租约合同红线 AI 审查

扫描合同文本中的高危违约金、强制统采、单方解约与二房东陷阱,输出风险评分与替换示范条款。

请求地址(支持 GET / POST)
POST https://www.xntou.cn/api/open/v1/law/contract-audit
单次计费
¥0.15 / 15 点
沙箱体验
免费 20 次/日

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "law.contract.audit",
  "result": {
    "riskLevel": "high",
    "riskScore": 82,
    "findingsCount": 3
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
text string 必填 乙方违约须赔偿甲方全部投入并没收保证金,且解约后3年内不得从事同类餐饮;甲方不承诺任何区域保护。 待审查的合同文本片段(建议 20–8000 字)
contractType string 选填 franchise 合同类型:franchise(加盟)/ lease(商铺租赁)

2. 核心返回字段(result)

字段路径类型说明
result.riskLevel string 综合风险等级:high / medium / low
result.riskScore number 风险分(0-100,越高越危险)
result.findings array 命中的高危条款、法律依据与替换建议

多语言接入代码示例

curl -s -X POST "https://www.xntou.cn/api/open/v1/law/contract-audit" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -d '{"text":"乙方违约须赔偿甲方全部投入并没收保证金,且解约后3年内不得从事同类餐饮;甲方不承诺任何区域保护。","contractType":"franchise"}'
import requests
resp = requests.post("https://www.xntou.cn/api/open/v1/law/contract-audit", headers={"X-Api-Key": "YOUR_APP_KEY"}, json={
  "text": "乙方违约须赔偿甲方全部投入并没收保证金,且解约后3年内不得从事同类餐饮;甲方不承诺任何区域保护。",
  "contractType": "franchise"
})
print(resp.json())
const res = await fetch("https://www.xntou.cn/api/open/v1/law/contract-audit", {
  method: "POST",
  headers: { "Content-Type": "application/json", "X-Api-Key": "YOUR_APP_KEY" },
  body: JSON.stringify({
  "text": "乙方违约须赔偿甲方全部投入并没收保证金,且解约后3年内不得从事同类餐饮;甲方不承诺任何区域保护。",
  "contractType": "franchise"
})
});
console.log(await res.json());
<?php
$ch = curl_init("https://www.xntou.cn/api/open/v1/law/contract-audit");
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"text":"乙方违约须赔偿甲方全部投入并没收保证金,且解约后3年内不得从事同类餐饮;甲方不承诺任何区域保护。","contractType":"franchise"}');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-Api-Key: YOUR_APP_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);