Use when an agent has the text of a Japanese invoice or receipt (e.g
invoice-extract-jp.threads-cron.workers.dev/v1/invoice/extract
Use when an agent has the text of a Japanese invoice or receipt (e.g. OCR output) and needs exact amounts without LLM misreads. Returns registration number (T+13, check digit only, not an NTA registry lookup), total, subtotal, 8%/10% tax breakdown and issue/due dates (Reiwa to ISO). Deterministic rules; text only, no images/PDF. Errors before payment (no charge): 400 body not {text} or over 5000 c
POST
https://invoice-extract-jp.threads-cron.workers.dev/v1/invoice/extractUptime100% of 3 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://invoice-extract-jp.threads-cron.workers.dev/v1/invoice/extract", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"請求書\n発行日 令和8年10月22日\n登録番号 T7000012050002\n小計 ¥10,000\n消費税 ¥1,000\nご請求金額 ¥11,000\nお支払期限 2026/11/30"}),
});
console.log(await res.json());Example input
{
"text": "請求書\n発行日 令和8年10月22日\n登録番号 T7000012050002\n小計 ¥10,000\n消費税 ¥1,000\nご請求金額 ¥11,000\nお支払期限 2026/11/30"
}