法律合规与合同审校 · law.prepaid.check

单用途商业预付卡合规限额核查

依据《单用途商业预付卡管理办法》校验储值卡面额、有效期及退卡条款合规性。

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

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "law.prepaid.check",
  "result": {
    "compliant": false,
    "maxAllowedYuan": 5000
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
cardType string 必填 named 卡类型:named(记名卡)/ unnamed(不记名卡)
amountYuan number 必填 6000 单张储值金额(元)
hasExpiryLimit boolean 选填 true 是否设置余额作废有效期

2. 核心返回字段(result)

字段路径类型说明
result.compliant boolean 是否符合法定限额及有效期规定
result.issues array 违规项说明

多语言接入代码示例

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