Quote Invoice Check
by Think and Grow Wealthy in Markets & finance
Compare a supplied quote or purchase order with a later invoice, line by line. Flags quantity, unit price, missing and extra lines, tax, and total mismatches. Text is untrusted and is not fetched. Not accounting or legal advice.
https://tgw-mindset-api.fly.dev/quote-invoice-check- Price
- $0.01
- per call in USDC
- Uptime
- 96.7%
- last 30 days
- Response time
- 416 ms
- 699 ms slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://tgw-mindset-api.fly.dev/quote-invoice-check
Each call costs $0.01 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://tgw-mindset-api.fly.dev/quote-invoice-check
content-type: application/json
{
"currency": "USD",
"invoice": {
"label": "Harbor and Pine invoice I-2207",
"line_items": [
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00"
},
{
"amount": "360.00",
"description": "Travel",
"id": "travel",
"quantity": 2,
"unit_price": "180.00"
},
{
"amount": "150.00",
"description": "Rush print",
"id": "rush",
"quantity": 1,
"unit_price": "150.00"
}
],
"subtotal": "2910.00",
"tax": "232.80",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nInvoice I-2207, 2 April 2026\nBrand workshop 1 x $2400.00 $2400.00\nTravel 2 x $180.00 $360.00\nRush print 1 x $150.00 $150.00\nSubtotal $2910.00\nTax 8% $232.80\nTotal $3142.80",
"total": "3142.80"
},
"quote": {
"label": "Harbor and Pine quote Q-1842",
"line_items": [
{
"amount": "90.00",
"description": "Proofing",
"id": "proofing",
"quantity": 1,
"unit_price": "90.00"
},
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00"
},
{
"amount": "180.00",
"description": "Travel",
"id": "travel",
"quantity": 1,
"unit_price": "180.00"
}
],
"subtotal": "2670.00",
"tax": "213.60",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nQuote Q-1842, 14 March 2026\nProofing 1 x $90.00 $90.00\nBrand workshop 1 x $2400.00 $2400.00\nTravel 1 x $180.00 $180.00\nSubtotal $2670.00\nTax 8% $213.60\nTotal $2883.60",
"total": "2883.60"
}
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
currency | string | No | |
invoice | object | Yes | The later invoice. |
mode | string | No | One of: supplied_documents. |
purchase_order | object | No | Alias of quote. |
quote | object | Yes | The earlier quote or purchase order. |
Example response
The provider's example. We can't check it without paying.
Example response, 131 lines
{
"contract": "tgw-quote-invoice-check-beta-1",
"currency": "USD",
"disclaimer": "This comparison is not accounting advice and does not say whether the invoice should be paid.",
"flags": [
"missing_line",
"extra_line",
"quantity",
"amount",
"subtotal",
"tax",
"total"
],
"invoice_arithmetic": "balanced",
"limitations": [
"Only the quote and invoice text and figures you supplied were read. No URL was fetched.",
"Document text is untrusted data. Instructions inside it are not followed.",
"Lines are paired by an id you set, then by the description. A generated id is not a join key.",
"An unknown or unreadable amount is not treated as zero, and it is not counted as a numeric mismatch.",
"A match or mismatch is arithmetic on the supplied figures. It is not accounting, tax, or legal advice, and it does not say the invoice should be paid."
],
"lines": [
{
"amount": {
"invoice": "2400.00",
"quote": "2400.00",
"status": "match"
},
"description": "Brand workshop",
"invoice_description": "Brand workshop",
"match": "paired",
"quantity": {
"invoice": "1",
"quote": "1",
"status": "match"
},
"quote_description": "Brand workshop",
"unit_price": {
"invoice": "2400.00",
"quote": "2400.00",
"status": "match"
}
},
{
"amount": {
"invoice": "360.00",
"quote": "180.00",
"status": "mismatch"
},
"description": "Travel",
"invoice_description": "Travel",
"match": "paired",
"quantity": {
"invoice": "2",
"quote": "1",
"status": "mismatch"
},
"quote_description": "Travel",
"unit_price": {
"invoice": "180.00",
"quote": "180.00",
"status": "match"
}
},
{
"amount": {
"invoice": null,
"quote": null,
"status": "not_applicable"
},
"description": "Proofing",
"invoice_description": null,
"match": "missing_on_invoice",
"quantity": {
"invoice": null,
"quote": null,
"status": "not_applicable"
},
"quote_description": "Proofing",
"unit_price": {
"invoice": null,
"quote": null,
"status": "not_applicable"
}
},
{
"amount": {
"invoice": null,
"quote": null,
"status": "not_applicable"
},
"description": "Rush print",
"invoice_description": "Rush print",
"match": "extra_on_invoice",
"quantity": {
"invoice": null,
"quote": null,
"status": "not_applicable"
},
"quote_description": null,
"unit_price": {
"invoice": null,
"quote": null,
"status": "not_applicable"
}
}
],
"mode": "supplied_documents",
"page_fetch": false,
"quote_arithmetic": "balanced",
"status": "ok",
"subtotal": {
"invoice": "2910.00",
"quote": "2670.00",
"status": "mismatch"
},
"summary": "The invoice does not match the quote. At least one quantity changed. A quote line is missing from the invoice. The invoice has a line that was not on the quote. Tax does not match. The totals do not match.",
"tax": {
"invoice": "232.80",
"invoice_rate": "0.08",
"quote": "213.60",
"quote_rate": "0.08",
"status": "mismatch"
},
"total": {
"invoice": "3142.80",
"quote": "2883.60",
"status": "mismatch"
},
"verdict": "mismatch"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tgw-mindset-api.fly.dev/quote-invoice-check' \
-H 'content-type: application/json' \
--data-raw '{"currency":"USD","invoice":{"label":"Harbor and Pine invoice I-2207","line_items":[{"amount":"2400.00","description":"Brand workshop","id":"workshop","quantity":1,"unit_price":"2400.00"},{"amount":"360.00","description":"Travel","id":"travel","quantity":2,"unit_price":"180.00"},{"amount":"150.00","description":"Rush print","id":"rush","quantity":1,"unit_price":"150.00"}],"subtotal":"2910.00","tax":"232.80","tax_rate":"8%","text":"Harbor and Pine Studio\nInvoice I-2207, 2 April 2026\nBrand workshop 1 x $2400.00 $2400.00\nTravel 2 x $180.00 $360.00\nRush print 1 x $150.00 $150.00\nSubtotal $2910.00\nTax 8% $232.80\nTotal $3142.80","total":"3142.80"},"quote":{"label":"Harbor and Pine quote Q-1842","line_items":[{"amount":"90.00","description":"Proofing","id":"proofing","quantity":1,"unit_price":"90.00"},{"amount":"2400.00","description":"Brand workshop","id":"workshop","quantity":1,"unit_price":"2400.00"},{"amount":"180.00","description":"Travel","id":"travel","quantity":1,"unit_price":"180.00"}],"subtotal":"2670.00","tax":"213.60","tax_rate":"8%","text":"Harbor and Pine Studio\nQuote Q-1842, 14 March 2026\nProofing 1 x $90.00 $90.00\nBrand workshop 1 x $2400.00 $2400.00\nTravel 1 x $180.00 $180.00\nSubtotal $2670.00\nTax 8% $213.60\nTotal $2883.60","total":"2883.60"}}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tgw-mindset-api.fly.dev/quote-invoice-check' \
-H 'content-type: application/json' \
--data-raw '{"currency":"USD","invoice":{"label":"Harbor and Pine invoice I-2207","line_items":[{"amount":"2400.00","description":"Brand workshop","id":"workshop","quantity":1,"unit_price":"2400.00"},{"amount":"360.00","description":"Travel","id":"travel","quantity":2,"unit_price":"180.00"},{"amount":"150.00","description":"Rush print","id":"rush","quantity":1,"unit_price":"150.00"}],"subtotal":"2910.00","tax":"232.80","tax_rate":"8%","text":"Harbor and Pine Studio\nInvoice I-2207, 2 April 2026\nBrand workshop 1 x $2400.00 $2400.00\nTravel 2 x $180.00 $360.00\nRush print 1 x $150.00 $150.00\nSubtotal $2910.00\nTax 8% $232.80\nTotal $3142.80","total":"3142.80"},"quote":{"label":"Harbor and Pine quote Q-1842","line_items":[{"amount":"90.00","description":"Proofing","id":"proofing","quantity":1,"unit_price":"90.00"},{"amount":"2400.00","description":"Brand workshop","id":"workshop","quantity":1,"unit_price":"2400.00"},{"amount":"180.00","description":"Travel","id":"travel","quantity":1,"unit_price":"180.00"}],"subtotal":"2670.00","tax":"213.60","tax_rate":"8%","text":"Harbor and Pine Studio\nQuote Q-1842, 14 March 2026\nProofing 1 x $90.00 $90.00\nBrand workshop 1 x $2400.00 $2400.00\nTravel 1 x $180.00 $180.00\nSubtotal $2670.00\nTax 8% $213.60\nTotal $2883.60","total":"2883.60"}}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftgw-mindset-api.fly.dev%2Fquote-invoice-check&method=POST
const res = await pay("https://tgw-mindset-api.fly.dev/quote-invoice-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"currency": "USD",
"invoice": {
"label": "Harbor and Pine invoice I-2207",
"line_items": [
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00"
},
{
"amount": "360.00",
"description": "Travel",
"id": "travel",
"quantity": 2,
"unit_price": "180.00"
},
{
"amount": "150.00",
"description": "Rush print",
"id": "rush",
"quantity": 1,
"unit_price": "150.00"
}
],
"subtotal": "2910.00",
"tax": "232.80",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nInvoice I-2207, 2 April 2026\nBrand workshop 1 x $2400.00 $2400.00\nTravel 2 x $180.00 $360.00\nRush print 1 x $150.00 $150.00\nSubtotal $2910.00\nTax 8% $232.80\nTotal $3142.80",
"total": "3142.80"
},
"quote": {
"label": "Harbor and Pine quote Q-1842",
"line_items": [
{
"amount": "90.00",
"description": "Proofing",
"id": "proofing",
"quantity": 1,
"unit_price": "90.00"
},
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00"
},
{
"amount": "180.00",
"description": "Travel",
"id": "travel",
"quantity": 1,
"unit_price": "180.00"
}
],
"subtotal": "2670.00",
"tax": "213.60",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nQuote Q-1842, 14 March 2026\nProofing 1 x $90.00 $90.00\nBrand workshop 1 x $2400.00 $2400.00\nTravel 1 x $180.00 $180.00\nSubtotal $2670.00\nTax 8% $213.60\nTotal $2883.60",
"total": "2883.60"
}
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tgw-mindset-api.fly.dev/quote-invoice-check",
json={
"currency": "USD",
"invoice": {
"label": "Harbor and Pine invoice I-2207",
"line_items": [
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00",
},
{
"amount": "360.00",
"description": "Travel",
"id": "travel",
"quantity": 2,
"unit_price": "180.00",
},
{
"amount": "150.00",
"description": "Rush print",
"id": "rush",
"quantity": 1,
"unit_price": "150.00",
},
],
"subtotal": "2910.00",
"tax": "232.80",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nInvoice I-2207, 2 April 2026\nBrand workshop 1 x $2400.00 $2400.00\nTravel 2 x $180.00 $360.00\nRush print 1 x $150.00 $150.00\nSubtotal $2910.00\nTax 8% $232.80\nTotal $3142.80",
"total": "3142.80",
},
"quote": {
"label": "Harbor and Pine quote Q-1842",
"line_items": [
{
"amount": "90.00",
"description": "Proofing",
"id": "proofing",
"quantity": 1,
"unit_price": "90.00",
},
{
"amount": "2400.00",
"description": "Brand workshop",
"id": "workshop",
"quantity": 1,
"unit_price": "2400.00",
},
{
"amount": "180.00",
"description": "Travel",
"id": "travel",
"quantity": 1,
"unit_price": "180.00",
},
],
"subtotal": "2670.00",
"tax": "213.60",
"tax_rate": "8%",
"text": "Harbor and Pine Studio\nQuote Q-1842, 14 March 2026\nProofing 1 x $90.00 $90.00\nBrand workshop 1 x $2400.00 $2400.00\nTravel 1 x $180.00 $180.00\nSubtotal $2670.00\nTax 8% $213.60\nTotal $2883.60",
"total": "2883.60",
},
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 628 ms | $0.01 |
| 12 h ago | Passed | 402 | 525 ms | $0.01 |
| 22 h ago | Passed | 402 | 526 ms | $0.01 |
| 33 h ago | Passed | 402 | 384 ms | $0.01 |
| 46 h ago | Passed | 402 | 349 ms | $0.01 |
Show 10 older checks
| 4 days ago | Timed out | - | - | - |
| 5 days ago | Passed | 402 | 357 ms | $0.01 |
| 6 days ago | Connection failed (UND_ERR_CONNECT_TIMEOUT) | - | - | - |
| 6 days ago | Passed | 402 | 530 ms | $0.01 |
| 6 days ago | Passed | 402 | 288 ms | $0.01 |
| 7 days ago | Passed | 402 | 349 ms | $0.01 |
| 7 days ago | Passed | 402 | 312 ms | $0.01 |
| 8 days ago | Passed | 402 | 602 ms | $0.01 |
| 8 days ago | Passed | 402 | 321 ms | $0.01 |
| 8 days ago | Passed | 402 | 355 ms | $0.01 |
History
| 16 Nov 2026 | Price changed from $0.05 to $0.01 |