Invoice Math Checker
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.
Part of tgw-mindset-api.fly.dev · 12 endpoints · See the whole service
The wallet the 402 directs payment to. Its full payment record is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.
Recent payments · which agents last used it
Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.
Accepts
The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.
Pay 0.01 USDC on Base to 0xe59c…516ba. The signed payment is good for 5 minutes.
- Paid to
- 0xe59c…516ba
- USD Coin contract
- 0x8335…02913
- Payment window
- 5 minutes
- As published
- 10000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xe59c573e4a397a75Ec1F99D0C4FaF66505E516ba",
"amount": "10000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"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 session"
}
]
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"mode": "supplied_document",
"checks": [
{
"id": "line_extensions",
"left": "150.00",
"right": "150.00",
"detail": "Each stated quantity times unit price matches its line amount.",
"status": "match"
},
{
"id": "line_items_vs_subtotal",
"left": "400.00",
"right": "400.00",
"detail": "2 line items sum to 400.00, matching the claimed subtotal.",
"status": "match"
},
{
"id": "tax_vs_base",
"left": "32.00",
"right": "32.00",
"detail": "Tax 32.00 matches 0.08 of the claimed subtotal 400.00.",
"status": "match"
},
{
"id": "subtotal_plus_tax_vs_total",
"left": "432.00",
"right": "432.00",
"detail": "Subtotal 400.00 plus tax 32.00 equals the claimed total 432.00.",
"status": "match"
},
{
"id": "currency_consistency",
"left": "USD",
"right": "USD",
"detail": "Every stated currency is USD.",
"status": "match"
}
],
"status": "ok",
"claimed": {
"tax": "32.00",
"total": "432.00",
"currency": "USD",
"subtotal": "400.00",
"tax_rate": "0.08"
},
"verdict": "balanced",
"computed": {
"base": "400.00",
"line_sum": "400.00",
"base_source": "claimed_subtotal",
"tax_on_base": "32.00",
"line_sum_complete": true,
"subtotal_plus_tax": "432.00"
},
"contract": "tgw-invoice-check-beta-1",
"currency": "USD",
"disclaimer": "This check reads only the invoice you supplied. It does not fetch pages. Unknown amounts are not treated as zero.",
"extraction": "deterministic",
"line_items": [
{
"id": "workshop",
"span": null,
"known": true,
"amount": "250.00",
"reason": null,
"source": "structured",
"currency": "USD",
"quantity": null,
"extension": null,
"unit_price": null,
"description": "Design workshop",
"extension_check": "not_applicable",
"currency_explicit": false
},
{
"id": "coaching",
"span": null,
"known": true,
"amount": "150.00",
"reason": null,
"source": "structured",
"currency": "USD",
"quantity": "2",
"extension": "150.00",
"unit_price": "75.00",
"description": "Coaching session",
"extension_check": "match",
"currency_explicit": false
}
],
"mismatches": [],
"page_fetch": false,
"limitations": [
"Only the invoice text and structured figures you supplied were read. No URL was fetched and no page was crawled.",
"A model may propose amounts from the supplied text. An amount is kept only when that amount appears in the text.",
"Checks are arithmetic on the supplied figures. An unknown or unreadable amount is not treated as zero.",
"A balanced or mismatch verdict uses those supplied figures. It is not tax, accounting, or legal advice, and it does not show that the invoice was paid."
],
"evidence_scope": "supplied_document",
"unknown_amounts": [],
"requested_currency": "USD",
"currency_consistent": true
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"properties": {
"tax": {
"type": "string",
"description": "Tax amount. Use 0.00 only when the invoice states zero tax."
},
"mode": {
"enum": [
"supplied_document"
],
"type": "string",
"description": "The only mode. Fetch and search are rejected."
},
"text": {
"type": "string",
"maxLength": 8000,
"description": "Invoice text already in hand. URLs in the text are not fetched."
},
"total": {
"type": "string"
},
"country": {
"type": "string",
"maxLength": 2,
"minLength": 2,
"description": "Optional. Attach a standard VAT reference. It is not applied to the tax check."
},
"currency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Reporting currency. Default USD."
},
"subtotal": {
"type": "string"
},
"tax_rate": {
"type": "string",
"description": "Percent such as 8%, or a fraction such as 0.08. A bare 8 is not read as 8%."
},
"convert_to": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "Optional. Attach an ECB conversion of the known total. Arithmetic stays in the document currency."
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 40
},
"amount": {
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"quantity": {
"type": [
"number",
"string"
]
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string",
"maxLength": 200
}
}
},
"maxItems": 40
}
}
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"required": [
"contract",
"status",
"verdict",
"currency",
"requested_currency",
"currency_consistent",
"page_fetch",
"mode",
"evidence_scope",
"extraction",
"line_items",
"claimed",
"computed",
"checks",
"unknown_amounts",
"mismatches",
"limitations",
"disclaimer"
],
"properties": {
"mode": {
"type": "string",
"const": "supplied_document"
},
"checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"status",
"detail",
"left",
"right"
],
"properties": {
"id": {
"type": "string"
},
"left": {
"type": [
"string",
"null"
]
},
"right": {
"type": [
"string",
"null"
]
},
"detail": {
"type": "string"
},
"status": {
"enum": [
"match",
"mismatch",
"unknown",
"not_applicable"
],
"type": "string"
}
}
}
},
"status": {
"enum": [
"ok",
"partial",
"insufficient_evidence"
],
"type": "string"
},
"claimed": {
"type": "object",
"required": [
"subtotal",
"tax",
"tax_rate",
"total",
"currency"
],
"properties": {
"tax": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"string",
"null"
]
},
"currency": {
"type": "string"
},
"subtotal": {
"type": [
"string",
"null"
]
},
"tax_rate": {
"type": [
"string",
"null"
]
}
}
},
"verdict": {
"enum": [
"balanced",
"mismatch",
"partial",
"insufficient"
],
"type": "string"
},
"computed": {
"type": "object",
"required": [
"line_sum",
"line_sum_complete",
"base",
"base_source",
"tax_on_base",
"subtotal_plus_tax"
],
"properties": {
"base": {
"type": [
"string",
"null"
]
},
"line_sum": {
"type": [
"string",
"null"
]
},
"base_source": {
"type": "string"
},
"tax_on_base": {
"type": [
"string",
"null"
]
},
"line_sum_complete": {
"type": "boolean"
},
"subtotal_plus_tax": {
"type": [
"string",
"null"
]
}
}
},
"contract": {
"type": "string"
},
"currency": {
"type": "string"
},
"disclaimer": {
"type": "string"
},
"extraction": {
"type": "string"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"description",
"known",
"amount",
"currency",
"extension_check",
"source",
"span"
],
"properties": {
"id": {
"type": "string"
},
"span": {
"type": [
"string",
"null"
]
},
"known": {
"type": "boolean"
},
"amount": {
"type": [
"string",
"null"
]
},
"reason": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"currency": {
"type": [
"string",
"null"
]
},
"quantity": {
"type": [
"string",
"null"
]
},
"extension": {
"type": [
"string",
"null"
]
},
"unit_price": {
"type": [
"string",
"null"
]
},
"description": {
"type": "string"
},
"extension_check": {
"enum": [
"match",
"mismatch",
"unknown",
"not_applicable"
],
"type": "string"
},
"currency_explicit": {
"type": "boolean"
}
}
}
},
"mismatches": {
"type": "array",
"items": {
"type": "object",
"required": [
"check",
"detail",
"left",
"right"
],
"properties": {
"left": {
"type": [
"string",
"null"
]
},
"check": {
"type": "string"
},
"right": {
"type": [
"string",
"null"
]
},
"detail": {
"type": "string"
}
}
}
},
"page_fetch": {
"type": "boolean",
"const": false
},
"limitations": {
"type": "array",
"items": {
"type": "string"
}
},
"evidence_scope": {
"type": "string",
"const": "supplied_document"
},
"unknown_amounts": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"reason"
],
"properties": {
"field": {
"type": "string"
},
"reason": {
"type": "string"
}
}
}
},
"requested_currency": {
"type": "string"
},
"currency_consistent": {
"type": "boolean"
}
}
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-11-23 02:18Z
- Last indexed by Roundhouse
- 2026-12-01 20:45Z
- Last enriched (probe, favicon, geo)
- 2026-11-13 10:45Z
- x402 version
- 2
- Max timeout
- 300s
- Liveness probe
- HTTP 404
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 32 snapshots so far. Verified volume counts only settlements relayed by a known x402 facilitator.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service Invoice Math Checker and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Invoice%20Math%20Checker' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://tgw-mindset-api.fly.dev/invoice-check, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.