Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man invoice-discount-api

/invoice-discount-api

agentutility / edge-finance / invoice-discount-api
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CATEGORY
uncategorized
STATUS
live
NAME
invoice-discount-api invoice discount api / early payment discount apr api / factoring economics calculator
synonym alias of invoice-discount-calculator — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/invoice-discount-api
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

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

Invoice discount API / early payment discount APR API / factoring economics calculator. Same deterministic calculator as invoice-discount-calculator, exposed under likely buyer search terms.

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-api \
  -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-api tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-financeinvoicediscountapiinvoice-discount-api
methods
POST
cluster
edgefinance
price
$0.01 USDC per call
ADJACENTother endpoints in edgefinance
endpointdescriptionprice
amortization-scheduleAmortization schedule API / loan payment schedule / debt amortization calculator.$0.01
blended-finance-scoreBlended finance score API / concessional capital efficiency / private capital mobilization / first-loss impact finance calculator.$0.01
blended-finance-score-apiBlended finance score API / concessional capital leverage scoring / impact finance risk score.$0.01
blended-finance-score-api-f70b81Blended finance score API / concessional capital efficiency / private-capital leverage and impact score.$0.01
break-even-calculatorBreak-even calculator API / contribution margin calculator / unit economics break-even units / fixed cost payback.$0.01
cash-conversion-cycle-calculatorCash conversion cycle calculator / working capital optimization API / DSO DIO DPO analysis.$0.01
cash-runway-calculatorCash runway calculator / startup burn runway API / founder finance planning.$0.01
contribution-margin-calculatorContribution margin calculator / break-even units API / fixed-cost recovery calculator.$0.01
SEE ALSO
agentutility · edgefinance · x402 · mcp · llms.txt · registry.json · bazaar.x402.org