Check a supplied invoice's line items, tax, and total
tgw-mindset-api.fly.dev/invoice-check
Check a supplied invoice's line items, tax, and total. Use it when you need to know if the arithmetic balances. Buyer synonyms: invoice checker, invoice math, tax check, AP audit, bill verification. Unknown amounts are not treated as zero. No URL is fetched.
POST
https://tgw-mindset-api.fly.dev/invoice-checkUptime100% 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://tgw-mindset-api.fly.dev/invoice-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"tax":"32.00","text":"Invoice 1042\nDesign workshop $250.00\nCoaching session 2 x $75.00 $150.00\nSubtotal $400.00\nTax 8% $32.00\nTotal $432.00","total":"432.00","currency":"USD","subtotal":"400.00","tax_rate":"8%","line_items":[{"id":"workshop","amount":"250.00","description":"Design workshop"},{"id":"coaching","amount":"150.00","quantity":2,"unit_price":"75.00","description":"Coaching se),
});
console.log(await res.json());Example input
{"tax":"32.00","text":"Invoice 1042\nDesign workshop $250.00\nCoaching session 2 x $75.00 $150.00\nSubtotal $400.00\nTax 8% $32.00\nTotal $432.00","total":"432.00","currency":"USD","subtotal":"400.00","tax_rate":"8%","line_items":[{"id":"workshop","amount":"250.00","description":"Design workshop"},{"id":"coaching","amount":"150.00","quantity":2,"unit_price":"75.00","description":"Coaching se