{
  "x402Version": 2,
  "id": 8241,
  "slug": "8241",
  "resource": "https://doc-extract-api.thestarboy9696-4ef.workers.dev/extract/receipt",
  "description": "SchemaLock — extract structured JSON data from a receipt PDF or image (merchant, items, subtotal, tax, tip, total, payment method). 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.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x65c767C483dd862d08Bc3d6500Cd4CD770Ae28ED",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "file": "<binary: PDF, PNG, or JPEG of a receipt, max 15MB>"
          },
          "bodyType": "form-data",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "confidence": {
                "fields": {
                  "merchant": 0.98,
                  "total": 0.99
                },
                "overall": 0.96
              },
              "currency": "USD",
              "items": [
                {
                  "amount": 4.75,
                  "description": "Latte",
                  "quantity": 1,
                  "unit_price": 4.75
                },
                {
                  "amount": 3.5,
                  "description": "Bagel w/ cream cheese",
                  "quantity": 1,
                  "unit_price": 3.5
                }
              ],
              "merchant": {
                "address": "88 5th Ave, New York, NY 10011",
                "name": "Corner Cafe",
                "phone": "212-555-0199"
              },
              "payment_method": "Visa •••• 4242",
              "subtotal": 8.25,
              "tax": 0.73,
              "tip": 1.5,
              "total": 10.48,
              "transaction_date": "2026-08-12",
              "transaction_time": "13:42"
            },
            "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "doc-extract-api.thestarboy9696-4ef.workers.dev",
  "lastUpdated": "2026-09-08T19:24:55.466Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-08T19:24:53.38Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "doc-extract-api.thestarboy9696-4ef.workers.dev",
    "manifest_name": "doc-extract-api.thestarboy9696-4ef.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}