SchemaLock — extract structured JSON data from an invoice PDF or image (vendor, line it…
SchemaLock — extract structured JSON data from an invoice PDF or image (vendor, line items, subtotal, tax, total, dates, payment terms). Unlike generic OCR (raw text) or text-only extraction APIs, this takes the raw file directly and validates against source…
by doc-extract-api.thestarboy9696-4ef.workers.dev · discovered, not yet claimed by its owner · updated 2026-09-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
SchemaLock — extract structured JSON data from an invoice PDF or image (vendor, line items, subtotal, tax, total, dates, payment terms). Unlike generic OCR (raw text) or text-only extraction APIs, this takes the raw file directly and validates against source math: line items checked against subtotal/tax/total, dates and currency checked, one automatic retry. If it still fails after that, you aren't charged — settlement is skipped, not just flagged.
Tags: bazaar
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/8242.jsonfor the price and payment options. - Pay. Call
GET https://doc-extract-api.thestarboy9696-4ef.workers.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, 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
- Uptime
- 1 of the last 1 checks answered
- Calls (30d)
- 4 · 2 unique payers (third-party data from the public x402 Bazaar)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.02 | 0x65c767C483dd862d08Bc3d6500Cd4CD770Ae28ED | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x65c767C483dd862d08Bc3d6500Cd4CD770Ae28ED",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"bazaar": {
"info": {
"input": {
"body": {
"file": "<binary: PDF, PNG, or JPEG of an invoice, max 15MB>"
},
"bodyType": "form-data",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"data": {
"bill_to": {
"address": "55 Market St, Austin, TX 78701",
"name": "Brandon Strouse"
},
"confidence": {
"fields": {
"total": 0.99,
"vendor": 0.99
},
"overall": 0.97
},
"currency": "USD",
"due_date": "2026-08-31",
"invoice_date": "2026-08-01",
"invoice_number": "INV-20268",
"line_items": [
{
"amount": 45,
"description": "Widget A (steel)",
"quantity": 10,
"unit_price": 4.5
},
{
"amount": 30,
"description": "Widget B (plastic)",
"quantity": 25,
"unit_price": 1.2
},
{
"amount": 18,
"description": "Shipping crate",
"quantity": 1,
"unit_price": 18
}
],
"payment_terms": "Net 30",
"subtotal": 93,
"tax": 7.44,
"total": 100.44,
"vendor": {
"address": "123 Industrial Ave, Springfield, IL 62701",
"name": "Acme Supply Co.",
"tax_id": "12-3456789"
}
},
"retried": false,
"validation_warnings": []
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {}
},
"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": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Example shape — generated from the schema, not a captured live response
nullExamples
curl "https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/invoice"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/invoice");
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
res = httpx.get("https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/invoice")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- doc-extract-api.thestarboy9696-4ef.workers.dev
- Endpoint
- https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/invoice
- Machine-readable
/resources/8242.json