Skip to content
Fourohtwo

Structured data from an invoice

api.sitecheck-api.workers.dev/api/invoice/extract

Structured data from an invoice: seller and buyer (name, address, tax ID), invoice number, dates, currency, line items, subtotal, tax, total and payment details, with null for anything absent. The arithmetic is checked (line sum against subtotal, subtotal plus tax against total) and mismatches are returned. PDF with a text layer by URL or base64, or plain text.

BaseSolanaArcPolygonArbitrumMonad+3Answering
POSThttps://api.sitecheck-api.workers.dev/api/invoice/extract

Uptime100% of 1 check 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://api.sitecheck-api.workers.dev/api/invoice/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Invoice INV-42\nWidget x2 at 10.00 = 20.00\nSubtotal 20.00\nTax 4.00\nTotal 24.00"}),
});
console.log(await res.json());

Example input

{
  "text": "Invoice INV-42\nWidget x2 at 10.00 = 20.00\nSubtotal 20.00\nTax 4.00\nTotal 24.00"
}

More from SiteCheckProvider status