Regulation Z APR (Appendix J)
consumer-credit_reg-z-aprCompute the US closed-end credit APR with the Reg Z Appendix J actuarial method and optional disclosure tolerance check. Price $0.04 USDC. POST /api/v1/consumer-credit/reg-z-apr. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payments": "<payments>"
},
"name": "consumer-credit_reg-z-apr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| advances | No | advances, array. Optional. | |
| payments | Yes | payments, value. Required. | |
| advanceDate | No | advanceDate, string. Optional. | |
| disclosedApr | No | disclosedApr, number, from 0 to 10. Optional. | |
| amountFinanced | No | amountFinanced, integer, from 1 to 9007199254740991. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apr | No | apr. Number. | |
| sources | No | sources. Array. | |
| aprExact | No | aprExact. Number. | |
| tolerance | No | tolerance. Number. | |
| unitPeriod | No | unitPeriod. String. | |
| firstPeriod | No | firstPeriod. Object. | |
| limitations | No | limitations. Array. | |
| withinTolerance | No | withinTolerance. Boolean. | |
| unitPeriodsPerYear | No | unitPeriodsPerYear. Number. |