财税精算与风控模型 · fin.store.breakeven

单店月保本营业额与日均保本单量计算

输入月租、人工、能耗、毛利率与客单价,精确核算保本月营收及日均保本单量。

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

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "fin.store.breakeven",
  "result": {
    "fixedCost": 30000,
    "breakevenMonthlyRevenue": 46154,
    "breakevenDailyOrders": 70
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
monthlyRent number 必填 12000 月租金(元)
monthlyLabor number 必填 15000 月人工成本(元)
monthlyUtility number 选填 3000 月水电物业杂费(元)
grossMarginPct number 必填 65 毛利率(%)
avgTicket number 必填 22 客单价(元)

2. 核心返回字段(result)

字段路径类型说明
result.fixedCost number 月刚性固定成本合计
result.breakevenMonthlyRevenue number 月保本营业额
result.breakevenDailyOrders number 日均保本出单量

多语言接入代码示例

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