{"slug":"tgw-mindset-api-fly-dev-invoice-check-0ae9da","title":"Check a supplied invoice's line items, tax, and total","host":"tgw-mindset-api.fly.dev","method":"POST","resource":"https://tgw-mindset-api.fly.dev/invoice-check","category":"code","description":"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.","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":491,"reported_calls_30d":7,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"currency":"USD","line_items":[{"amount":"250.00","description":"Design workshop","id":"workshop"},{"amount":"150.00","description":"Coaching session","id":"coaching","quantity":2,"unit_price":"75.00"}],"subtotal":"400.00","tax":"32.00","tax_rate":"8%","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"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"convert_to":{"description":"Optional. Attach an ECB conversion of the known total. Arithmetic stays in the document currency.","maxLength":3,"minLength":3,"type":"string"},"country":{"description":"Optional. Attach a standard VAT reference. It is not applied to the tax check.","maxLength":2,"minLength":2,"type":"string"},"currency":{"description":"Reporting currency. Default USD.","maxLength":3,"minLength":3,"type":"string"},"line_items":{"items":{"properties":{"amount":{"type":"string"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"description":{"maxLength":200,"type":"string"},"id":{"maxLength":40,"type":"string"},"quantity":{"type":["number","string"]},"unit_price":{"type":"string"}},"type":"object"},"maxItems":40,"type":"array"},"mode":{"description":"The only mode. Fetch and search are rejected.","enum":["supplied_document"],"type":"string"},"subtotal":{"type":"string"},"tax":{"description":"Tax amount. Use 0.00 only when the invoice states zero tax.","type":"string"},"tax_rate":{"description":"Percent such as 8%, or a fraction such as 0.08. A bare 8 is not read as 8%.","type":"string"},"text":{"description":"Invoice text already in hand. URLs in the text are not fetched.","maxLength":8000,"type":"string"},"total":{"type":"string"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"checks":{"items":{"properties":{"detail":{"type":"string"},"id":{"type":"string"},"left":{"type":["string","null"]},"right":{"type":["string","null"]},"status":{"enum":["match","mismatch","unknown","not_applicable"],"type":"string"}},"required":["id","status","detail","left","right"],"type":"object"},"type":"array"},"claimed":{"properties":{"currency":{"type":"string"},"subtotal":{"type":["string","null"]},"tax":{"type":["string","null"]},"tax_rate":{"type":["string","null"]},"total":{"type":["string","null"]}},"required":["subtotal","tax","tax_rate","total","currency"],"type":"object"},"computed":{"properties":{"base":{"type":["string","null"]},"base_source":{"type":"string"},"line_sum":{"type":["string","null"]},"line_sum_complete":{"type":"boolean"},"subtotal_plus_tax":{"type":["string","null"]},"tax_on_base":{"type":["string","null"]}},"required":["line_sum","line_sum_complete","base","base_source","tax_on_base","subtotal_plus_tax"],"type":"object"},"contract":{"type":"string"},"currency":{"type":"string"},"currency_consistent":{"type":"boolean"},"disclaimer":{"type":"string"},"evidence_scope":{"const":"supplied_document","type":"string"},"extraction":{"type":"string"},"limitations":{"items":{"type":"string"},"type":"array"},"line_items":{"items":{"properties":{"amount":{"type":["string","null"]},"currency":{"type":["string","null"]},"currency_explicit":{"type":"boolean"},"description":{"type":"string"},"extension":{"type":["string","null"]},"extension_check":{"enum":["match","mismatch","unknown","not_applicable"],"type":"string"},"id":{"type":"string"},"known":{"type":"boolean"},"quantity":{"type":["string","null"]},"reason":{"type":["string","null"]},"source":{"type":"string"},"span":{"type":["string","null"]},"unit_price":{"type":["string","null"]}},"required":["id","description","known","amount","currency","extension_check","source","span"],"type":"object"},"type":"array"},"mismatches":{"items":{"properties":{"check":{"type":"string"},"detail":{"type":"string"},"left":{"type":["string","null"]},"right":{"type":["string","null"]}},"required":["check","detail","left","right"],"type":"object"},"type":"array"},"mode":{"const":"supplied_document","type":"string"},"page_fetch":{"const":false,"type":"boolean"},"requested_currency":{"type":"string"},"status":{"enum":["ok","partial","insufficient_evidence"],"type":"string"},"unknown_amounts":{"items":{"properties":{"field":{"type":"string"},"reason":{"type":"string"}},"required":["field","reason"],"type":"object"},"type":"array"},"verdict":{"enum":["balanced","mismatch","partial","insufficient"],"type":"string"}},"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"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":490,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":492,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":508,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":241,"error":null}],"description_full":"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.","last_updated":"2026-11-23T02:18:17.854Z","schemes":["exact"]}