Reminder Draft
by PaidPilot Invoice API in Markets & finance
PaidPilot Invoice API: Draft a payment reminder email (friendly, firm or final notice). Returns subject + plain-text body for an unpaid invoice, days overdue, the recommended tone and the next step. Template-based, deterministic. Draft only: this API never sends email.
https://api.paidpilot.io/v1/reminder-draft- Price
- $0.01
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 556 ms
- 1.0 s slowest 5%
- Last check
- Passed
- 46 min ago, next any minute now
Reliability
How to call it
POST https://api.paidpilot.io/v1/reminder-draft
Each call costs $0.01 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.paidpilot.io/v1/reminder-draft
content-type: application/json
{
"amount": 1610.35,
"as_of": "2026-10-11",
"client_name": "Dana",
"currency": "USD",
"due_date": "2026-10-01",
"from_name": "Acme Web Studio",
"invoice_number": "INV-1001",
"payment_link": "https://pay.example.com/inv-1001",
"tone": "firm"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | No | Amount due |
as_of | string | No | Today's date for the days-overdue count, YYYY-MM-DD (default: today, UTC) |
client_name | string | No | Client's name for the greeting |
currency | string | No | ISO-4217, default USD Default: "USD". |
due_date | string | No | YYYY-MM-DD |
final_deadline_days | integer | No | Final notice: days the client has to pay Default: 7. |
from_name | string | Yes | Your name or business, used in the sign-off |
invoice_number | string | No | |
late_fee_terms | string | No | Your agreed late-fee terms, e.g. "1.5% per month"; mentioned in the final notice only |
payment_link | string (uri) | No | |
tone | string | Yes | "friendly" (alias "polite"), "firm", or "final" One of: friendly, polite, firm, final. |
Example response
The provider's example. We can't check it without paying.
{
"as_of": "2026-10-11",
"body": "Hi Dana,\n\nI'm following up on invoice #INV-1001 for $1,610.35, which was due on October 1, 2026. It is now 10 days past due. I haven't received payment yet, so I wanted to check in directly.\n\nYou can pay here: https://pay.example.com/inv-1001\n\nCould you let me know when payment will be sent? If there's a problem with the invoice, tell me and I'll sort it out right away.\n\nThank you,\nAcme Web Studio",
"days_overdue": 10,
"next_step": "If still unpaid around 14 days past due, send the final notice.",
"note": "Draft text only. This API never sends email; review and edit before you send it yourself.",
"recommended_tone_for_days_overdue": "firm",
"subject": "Overdue: invoice #INV-1001",
"tone": "firm"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.paidpilot.io/v1/reminder-draft' \
-H 'content-type: application/json' \
--data-raw '{"amount":1610.35,"as_of":"2026-10-11","client_name":"Dana","currency":"USD","due_date":"2026-10-01","from_name":"Acme Web Studio","invoice_number":"INV-1001","payment_link":"https://pay.example.com/inv-1001","tone":"firm"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.paidpilot.io/v1/reminder-draft' \
-H 'content-type: application/json' \
--data-raw '{"amount":1610.35,"as_of":"2026-10-11","client_name":"Dana","currency":"USD","due_date":"2026-10-01","from_name":"Acme Web Studio","invoice_number":"INV-1001","payment_link":"https://pay.example.com/inv-1001","tone":"firm"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.paidpilot.io%2Fv1%2Freminder-draft&method=POST
const res = await pay("https://api.paidpilot.io/v1/reminder-draft", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"amount": 1610.35,
"as_of": "2026-10-11",
"client_name": "Dana",
"currency": "USD",
"due_date": "2026-10-01",
"from_name": "Acme Web Studio",
"invoice_number": "INV-1001",
"payment_link": "https://pay.example.com/inv-1001",
"tone": "firm"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.paidpilot.io/v1/reminder-draft",
json={
"amount": 1610.35,
"as_of": "2026-10-11",
"client_name": "Dana",
"currency": "USD",
"due_date": "2026-10-01",
"from_name": "Acme Web Studio",
"invoice_number": "INV-1001",
"payment_link": "https://pay.example.com/inv-1001",
"tone": "firm",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 46 min ago | Passed | 402 | 48 ms | $0.01 |
| 5 h ago | Passed | 402 | 498 ms | $0.01 |
| 9 h ago | Passed | 402 | 218 ms | $0.01 |
| 13 h ago | Passed | 402 | 587 ms | $0.01 |
| 17 h ago | Passed | 402 | 983 ms | $0.01 |
Show 10 older checks
| 21 h ago | Passed | 402 | 550 ms | $0.01 |
| 25 h ago | Passed | 402 | 582 ms | $0.01 |
| 29 h ago | Passed | 402 | 46 ms | $0.01 |
| 33 h ago | Passed | 402 | 119 ms | $0.01 |
| 37 h ago | Passed | 402 | 831 ms | $0.01 |
| 41 h ago | Passed | 402 | 839 ms | $0.01 |
| 44 h ago | Passed | 402 | 558 ms | $0.01 |
| 2 days ago | Passed | 402 | 536 ms | $0.01 |
| 2 days ago | Passed | 402 | 305 ms | $0.01 |
| 2 days ago | Passed | 402 | 38 ms | $0.01 |