财税精算与风控模型 · fin.rent.stress

CCFA 12%/18% 房租占比多情景压力测试

依据月租与毛利率反推健康(12%)与警戒(18%)营收刻度,输出三档承压结果。

请求地址(支持 GET / POST)
POST https://www.xntou.cn/api/open/v1/fin/rent-stress
单次计费
¥0.02 / 2 点
沙箱体验
免费 20 次/日

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "fin.rent.stress",
  "result": {
    "healthyMonthlyRevenue12Pct": 150000
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
monthlyRent number 必填 18000 月租金(元)
grossMarginPct number 选填 62 综合毛利率(%)

2. 核心返回字段(result)

字段路径类型说明
result.healthyMonthlyRevenue12Pct number CCFA 12% 健康线月营业额
result.warningMonthlyRevenue18Pct number 18% 警戒线月营业额
result.scenarios array 三档压力情景

多语言接入代码示例

curl -s -X POST "https://www.xntou.cn/api/open/v1/fin/rent-stress" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -d '{"monthlyRent":18000,"grossMarginPct":62}'
import requests
resp = requests.post("https://www.xntou.cn/api/open/v1/fin/rent-stress", headers={"X-Api-Key": "YOUR_APP_KEY"}, json={
  "monthlyRent": 18000,
  "grossMarginPct": 62
})
print(resp.json())
const res = await fetch("https://www.xntou.cn/api/open/v1/fin/rent-stress", {
  method: "POST",
  headers: { "Content-Type": "application/json", "X-Api-Key": "YOUR_APP_KEY" },
  body: JSON.stringify({
  "monthlyRent": 18000,
  "grossMarginPct": 62
})
});
console.log(await res.json());
<?php
$ch = curl_init("https://www.xntou.cn/api/open/v1/fin/rent-stress");
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"monthlyRent":18000,"grossMarginPct":62}');
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);