按工作年限与月工资算 N / N+1 / 2N,自动处理"满半年算 1、不满半年算 0.5",附《劳动合同法》第四十七条依据与 3 倍社平上限提示。
curl -X POST https://api.liuwangcun.com/api/tool/severance-pay \
-H "content-type: application/json" \
-H "payment-proof: <支付宝/ x402 付款凭证>" \
-d '{ "monthlySalary": 12000, "years": 3, "months": 7, "type": "normal" }(type: normal / n+1 / 2n)'
未带付款凭证时返回 HTTP 402 + Payment-Needed 头(含金额、收款方、资源路径),Agent 可直接解析并完成支付后重试。
{ "monthlySalary": 12000, "years": 3, "months": 7, "type": "normal" }(type: normal / n+1 / 2n)纯确定性计算,无模型推理、无外部数据查询;不扣款、不写入、不查询任何第三方系统。返回结果含免责声明,仅供参考。