# Invoice Discount APR & Factoring Economics Calculator

> Invoice Discount APR & Factoring Economics Calculator is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Calculates early payment discount APR, factoring economics, and cost metrics for invoices given invoice face value, discount rate, and payment timing.

## Facts

- Endpoint: POST https://x402.agentutility.ai/invoice-discount-api
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoice-discount-apr-factoring-economics-calculator-38ce85f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-F6BYeqYcBscCVdmLiKC8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability invoice-discount-apr-factoring-economics-calculator-38ce85f6 -d '<json body>'
```

Example prompt: Can you calculate the effective APR and factoring economics on a $76,000 invoice where I'm being offered a 1.89% discount if I pay in 10 days instead of the normal 60-day terms?

## When to prefer this

Choose this endpoint when you need a fast, deterministic calculation of the annualized cost of an early payment discount or invoice factoring arrangement — particularly when you want a scored recommendation and cost-vs-benchmark comparison rather than a raw APR formula. Prefer it over generic finance libraries when you want a structured grade and recommendation suitable for agent decision-making pipelines.

## Known failure modes

- Missing required fields (invoice amount, discount rate, or term days) returns a validation error
- Non-numeric or negative values for financial inputs may return an error or unexpected results
- Extreme edge cases (0-day terms, 100% discount) may produce warnings or unreliable scores
- x402 payment failure or insufficient USDC balance prevents the call from completing

## How this service works

Calculates early payment discount APR and factoring economics. Same calculator as invoice-discount-calculator, exposed under likely buyer search terms. Use it as an invoice discount API or early payment discount APR API.

## Output

Returns a structured JSON object with a letter-style grade (e.g. 'strong'), a numeric score (0–100), effective APR percentage, discount amount, net cash received, cost premium vs a capital benchmark, any warnings, and a plain-English recommendation. Also identifies the calculator used and confirms it is a deterministic in-process computation with no upstream API dependency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "invoice_amount",
      "days_until_due"
     ],
     "properties": {
      "discount_pct": {
       "type": "number",
       "description": "Discount as percent of invoice amount. Required unless discount_amount is supplied."
      },
      "days_until_due": {
       "type": "number",
       "description": "Days until the invoice would otherwise be paid."
      },
      "invoice_amount": {
       "type": "number",
       "description": "Gross invoice face value."
      },
      "discount_amount": {
       "type": "number",
       "description": "Discount dollars. Required unless discount_pct is supplied."
      },
      "advance_rate_pct": {
       "type": "number",
       "description": "Percent of invoice advanced immediately. Default 100."
      },
      "annual_cost_of_capital_pct": {
       "type": "number",
       "description": "Benchmark annual cost of capital percent. Default 12."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "grade": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "drivers": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "note": {
          "type": "string"
         },
         "score": {
          "type": "number"
         },
         "weight": {
          "type": "number"
         }
        }
       }
      },
      "metrics": {
       "type": "object",
       "properties": {
        "discount_amount": {
         "type": "integer"
        },
        "effective_apr_pct": {
         "type": "number"
        },
        "net_cash_received": {
         "type": "integer
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "strong",
  "score": 74.2,
  "source": "deterministic in-process finance calculator; no upstream API",
  "drivers": [
   {
    "name": "effective_apr",
    "note": "15.66% effective APR",
    "score": 65.5,
    "weight": 0.35
   }
  ],
  "metrics": {
   "discount_amount": 1440,
   "effective_apr_pct": 15.66,
   "net_cash_received": 74560,
   "cost_premium_vs_capital_benchmark": 153.95
  },
  "warnings": [],
  "calculator": "invoice-discount-calculator",
  "recommendation": "Proceed with standard diligence and covenant checks."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invoice-discount-apr-factoring-economics-calculator-38ce85f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
