Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: PaidPilot Invoice Payment Terms API
version: 1.4.0
description: 'Invoice tools for agents, paid per call in USDC over x402: invoice PDF, payment reminder drafts, late-fee and payment-terms math, timesheet to invoice. No accounts, no API keys. Also an MCP server at /mcp.'
contact:
name: PaidPilot Invoice API
email: dario@inboxguards.com
url: https://api.paidpilot.io/llms.txt
x-guidance: 'Invoice tools for agents, paid per call in USDC over x402: invoice PDF, payment reminder drafts, late-fee and payment-terms math, timesheet to invoice. No accounts, no API keys. Also an MCP server at /mcp. Call a paid route without payment to get an x402 v2 challenge (402 + PAYMENT-REQUIRED header), pay in USDC, retry with PAYMENT-SIGNATURE. Invalid input -> 400, never charged. More: https://api.paidpilot.io/llms.txt'
servers:
- url: https://api.paidpilot.io
tags:
- name: Payment Terms
paths:
/v1/payment-terms:
post:
operationId: v1_payment_terms
summary: Due date, status and early-pay discount for payment terms
description: Parses Net N, D/N Net M (e.g. 2/10 Net 30), Due on receipt, EOM, Net N EOM. Returns due date, days until due/overdue, discount amount and deadline, the annualized cost of skipping the discount, and suggested reminder dates.
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402:
version: 2
scheme: exact
network: eip155:8453
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
payTo: '0x2dAF658B01e257206375798a15832E9f547D65dD'
responses:
'200':
description: Success (payment settled)
content:
application/json: {}
'400':
description: Invalid input. Never charged.
'402':
description: Payment required. x402 v2 challenge in the PAYMENT-REQUIRED header.
'502':
description: Upstream data source failed. Payment NOT settled.
requestBody:
required: true
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
invoice_date:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: Invoice date, YYYY-MM-DD
terms:
type: string
minLength: 1
maxLength: 40
description: Payment terms, e.g. "Net 30", "2/10 Net 30", "Due on receipt", "EOM", "Net 30 EOM"
amount:
description: Invoice total (optional; enables the discount math)
type: number
minimum: 0
maximum: 1000000000
currency:
default: USD
description: ISO-4217, default USD
type: string
as_of:
description: 'Date to compute status for, YYYY-MM-DD (default: today, UTC)'
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
required:
- invoice_date
- terms
additionalProperties: false
example:
invoice_date: '2026-10-01'
terms: 2/10 Net 30
amount: 1610.35
currency: USD
as_of: '2026-10-11'
tags:
- Payment Terms
x-discovery:
wellKnown: https://api.paidpilot.io/.well-known/x402
llms: https://api.paidpilot.io/llms.txt