Plan a payment run
daten.halowerk.com/v1/discount-run-plan
Plan a payment run: pay invoices whose cash discount would otherwise expire (best annualized return first), overdue and due invoices, defer the rest, within a budget. Each invoice carries terms as fields or as text (same parser as payment-terms-parse).
POST
https://daten.halowerk.com/v1/discount-run-planUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://daten.halowerk.com/v1/discount-run-plan", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"budget":"5000.00","invoices":[{"amount":"1000.00","id":"R-1","invoice_date":"2026-11-02","terms_text":"2 % Skonto innerhalb 10 Tagen, netto 30 Tage"}],"next_run_date":"2026-11-17","run_date":"2026-11-10"}),
});
console.log(await res.json());Example input
{
"budget": "5000.00",
"invoices": [
{
"amount": "1000.00",
"id": "R-1",
"invoice_date": "2026-11-02",
"terms_text": "2 % Skonto innerhalb 10 Tagen, netto 30 Tage"
}
],
"next_run_date": "2026-11-17",
"run_date": "2026-11-10"
}