Extract structured data from invoice or receipt text — or directly from an invoice URL…
Extract structured data from invoice or receipt text — or directly from an invoice URL (PDF, HTML, or plain text, fetched and parsed server-side) — using Claude Haiku: returns vendor, invoice number, dates, line items, subtotal, tax, total, and currency as cl…
by netintel.dev · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Extract structured data from invoice or receipt text — or directly from an invoice URL (PDF, HTML, or plain text, fetched and parsed server-side) — using Claude Haiku: returns vendor, invoice number, dates, line items, subtotal, tax, total, and currency as clean JSON for accounts-payable, expense processing, and bookkeeping automation.
Tags: data extraction · document parsing · structured data · text to json · llm extraction · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"text": "Acme Supplies Inc\nInvoice INV-2024-0142\nDate: 2024-03-01 Due: 2024-03-31\nWidget A 10 x $5.00 = $50.00\nShipping 1 x $12.00 = $12.00\nSubtotal: $62.00\nTax: $5.58\nTotal: $67.58 USD"
}{
"cached": false,
"findings": [],
"grade": "A",
"invoice": {
"currency": "USD",
"due_date": "2024-03-31",
"invoice_date": "2024-03-01",
"invoice_number": "INV-2024-0142",
"line_items": [
{
"amount": 50,
"description": "Widget A",
"quantity": 10,
"unit_price": 5
},
{
"amount": 12,
"description": "Shipping",
"quantity": 1,
"unit_price": 12
}
],
"subtotal": 62,
"tax": 5.58,
"total": 67.58,
"vendor": "Acme Supplies Inc"
},
"line_item_count": 2,
"score": 100,
"source": {
"content_type": null,
"type": "text",
"url": null
},
"totals_reconcile": true
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/29580.jsonfor the price and payment options. - Pay. Call
GET https://netintel.dev/extract/invoice. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.02 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.02 | 0xdaDc335482AD545296Fd7b28518A251fFCbEb9Df | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.02 | 8FVeybWnB4dYrxTuPK7WzFZNAiEcFVaDLFnKpRwVGr5s | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xdaDc335482AD545296Fd7b28518A251fFCbEb9Df",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "8FVeybWnB4dYrxTuPK7WzFZNAiEcFVaDLFnKpRwVGr5s",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"cached": {
"description": "True if served from the in-memory cache.",
"type": "boolean"
},
"findings": {
"description": "Informational findings (e.g. no_total_found, totals_mismatch).",
"items": {
"type": "string"
},
"type": "array"
},
"grade": {
"description": "Letter grade A-F",
"type": "string"
},
"invoice": {
"description": "Parsed invoice fields: vendor, invoice_number, invoice_date, due_date, line_items (array of {description, quantity, unit_price, amount}), subtotal, tax, total, currency. Missing fields are null.",
"type": "object"
},
"line_item_count": {
"description": "Number of line items extracted.",
"type": "number"
},
"score": {
"description": "Quality score 0-100",
"type": "number"
},
"source": {
"description": "Where the invoice content came from. type is \"text\" or \"url\"; url and content_type (pdf | html | text) are null in text mode.",
"properties": {
"content_type": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"totals_reconcile": {
"description": "True if sum(line_items.amount) + tax ≈ total (within $0.02). False if they do not reconcile. Null if total or subtotal is missing.",
"type": [
"boolean",
"null"
]
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"cached": true,
"findings": [
"string"
],
"grade": "string",
"invoice": {},
"line_item_count": 0,
"score": 0,
"source": {
"content_type": "string",
"type": "string",
"url": "string"
},
"totals_reconcile": true
},
"type": "string"
}Examples
curl -X POST 'https://netintel.dev/extract/invoice' -H 'Content-Type: application/json' --data '{"text":"Acme Supplies Inc\nInvoice INV-2024-0142\nDate: 2024-03-01 Due: 2024-03-31\nWidget A 10 x $5.00 = $50.00\nShipping 1 x $12.00 = $12.00\nSubtotal: $62.00\nTax: $5.58\nTotal: $67.58 USD"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://netintel.dev/extract/invoice", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"text\":\"Acme Supplies Inc\\nInvoice INV-2024-0142\\nDate: 2024-03-01 Due: 2024-03-31\\nWidget A 10 x $5.00 = $50.00\\nShipping 1 x $12.00 = $12.00\\nSubtotal: $62.00\\nTax: $5.58\\nTotal: $67.58 USD\"}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://netintel.dev/extract/invoice", json=json.loads("{\"text\":\"Acme Supplies Inc\\nInvoice INV-2024-0142\\nDate: 2024-03-01 Due: 2024-03-31\\nWidget A 10 x $5.00 = $50.00\\nShipping 1 x $12.00 = $12.00\\nSubtotal: $62.00\\nTax: $5.58\\nTotal: $67.58 USD\"}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- netintel.dev
- Endpoint
- https://netintel.dev/extract/invoice
- Machine-readable
/resources/29580.json