Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man invoice-discount-calculator

/invoice-discount-calculator

agentutility / edge-finance / invoice-discount-calculator
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
invoice-discount-calculator calculates the true cost of an early payment discount or invoice factoring offer
SYNOPSIS
POST https://x402.agentutility.ai/invoice-discount-calculator
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Calculates the true cost of an early payment discount or invoice factoring offer. Computes discount dollars, net cash received, effective APR, advance amount, and premium versus cost of capital for invoice acceleration decisions. Use it as an invoice discount calculator API, early payment discount APR tool, factoring discount economics check, or AR acceleration calculator.

INPUTrequest schema
propertytypedescriptionreq?
invoice_amountnumberGross invoice face value.required
days_until_duenumberDays until the invoice would otherwise be paid.required
discount_pctnumberDiscount as percent of invoice amount. Required unless discount_amount is supplied.optional
discount_amountnumberDiscount dollars. Required unless discount_pct is supplied.optional
advance_rate_pctnumberPercent of invoice advanced immediately. Default 100.optional
annual_cost_of_capital_pctnumberBenchmark annual cost of capital percent. Default 12.optional
OUTPUTresponse shape
fieldtypedescription
calculatorstring
scorestring
gradestring
recommendationstring
metricsstring
driversstring
warningsstring
sourcestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/invoice-discount-calculator \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the invoice-discount-calculator tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-financeinvoicediscountcalculatorinvoice-discount-calculator
methods
POST
cluster
edgefinance
price
$0.01 USDC per call
ADJACENTother endpoints in edgefinance
endpointdescriptionprice
accounts-receivable-aging-scoreScores the health of an accounts receivable book from its aging profile, returning a weighted score and grade.$0.01
amortization-scheduleComputes a loan's amortization schedule and payment breakdown.$0.01
asset-based-lending-scoreScores the risk of an asset based lending (ABL) facility, returning a weighted score and grade.$0.01
blended-finance-scoreScores a blended finance structure on how efficiently concessional capital mobilizes private money, returning a 0-100 structure score.$0.01
blended-finance-score-apiScores blended finance structures on concessional capital leverage.$0.01
break-even-calculatorCalculates break-even units and contribution margin for a product's unit economics.$0.01
cash-conversion-cycle-calculatorCalculates the cash conversion cycle for working capital optimization.$0.01
cash-runway-calculatorCalculates a startup's cash runway from its monthly burn.$0.01
SEE ALSO
agentutility · edgefinance · x402 · mcp · llms.txt · registry.json · bazaar.x402.org