77trust / 100

Receipt Photo Json

by bild.halowerk.com in Documents & files

x402 APIPassing, checked 9 h ago

Turn a photo or scan of a till receipt into JSON: merchant, address, VAT ID, date and time, line items with quantities, total, payments, VAT rates with net/tax/gross and sum checks.

POST
https://bild.halowerk.com/v1/receipt-photo-json
Price
$0.008
per call in USDC
Uptime
96.0%
last 30 days
Response time
53 ms
149 ms slowest 5%
Last check
Passed
9 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://bild.halowerk.com/v1/receipt-photo-json

Each call costs $0.008 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://bild.halowerk.com/v1/receipt-photo-json
content-type: application/json

{
  "image_url": "https://bild.halowerk.com/beispiel/receipt-photo-json-image.png"
}

Parameters

ParameterTypeRequiredDescription
image_base64stringNo
image_urlstring (uri)No
languagestringNo One of: deu, eng, deu+eng. Default: "deu".

Example response

The provider's example. We can't check it without paying.

Example response, 154 lines
{
  "limitations": [
    "OCR quality depends on focus, lighting and thermal-paper fading; always use the checks block before booking amounts.",
    "Rules target German, Austrian and Swiss style receipts; other layouts may leave fields empty rather than guessed.",
    "Not a tax document check: this extracts what is printed and does not judge whether a receipt is a valid invoice under VAT law."
  ],
  "result": {
    "change": null,
    "checks": {
      "items_by_tax_code": [
        {
          "code": "B",
          "items_sum": 4.66,
          "matches": true,
          "vat_gross": 4.66
        },
        {
          "code": "A",
          "items_sum": 0.25,
          "matches": true,
          "vat_gross": 0.25
        }
      ],
      "items_difference": 0,
      "items_match_total": true,
      "items_sum": 4.91,
      "paid_minus_change": 4.91,
      "payment_matches_total": true,
      "vat_gross_sum": 4.91,
      "vat_lines_consistent": true,
      "vat_matches_total": true
    },
    "confidence": {
      "checks_passed": 1,
      "ocr_mean": 0.942,
      "overall": 0.971
    },
    "currency": "EUR",
    "date": "2026-10-14",
    "date_confidence": 0.96,
    "items": [
      {
        "amount": 1.29,
        "confidence": 0.92,
        "description": "BANANEN",
        "line": "BANANEN 1,29 B",
        "quantity": null,
        "tax_code": "B",
        "unit_price": null
      },
      {
        "amount": 1.18,
        "confidence": 0.93,
        "description": "H-MILCH 3,5%",
        "line": "H-MILCH 3,5% 1,18 B",
        "quantity": 2,
        "quantity_price_consistent": true,
        "tax_code": "B",
        "unit_price": 0.59
      },
      {
        "amount": 0.25,
        "confidence": 0.91,
        "description": "PFAND",
        "line": "PFAND 0,25 A",
        "quantity": null,
        "tax_code": "A",
        "unit_price": null
      },
      {
        "amount": -0.3,
        "confidence": 0.94,
        "description": "RABATT KAFFEE",
        "line": "RABATT KAFFEE -0,30 B",
        "quantity": null,
        "tax_code": "B",
        "unit_price": null
      },
      {
        "amount": 2.49,
        "confidence": 0.95,
        "description": "KAFFEE GEMAHLEN",
        "line": "KAFFEE GEMAHLEN 2,49 B",
        "quantity": null,
        "tax_code": "B",
        "unit_price": null
      }
    ],
    "merchant": {
      "address_lines": [
        "Bahnhofstr. 3",
        "48529 Nordhorn"
      ],
      "confidence": 0.94,
      "name": "Frischmarkt Kühn OHG",
      "tax_number": null,
      "vat_id": "DE123456789"
    },
    "ocr": {
      "engine": "tesseract 5.3.4",
      "language": "deu",
      "preprocessing": {
        "deskew_degrees": 0,
        "glyph_height_px": 19,
        "ocr_image": {
          "height": 1506,
          "width": 1011
        },
        "paper_crop": null,
        "scale": 1.579
      },
      "psm": 6
    },
    "payments": [
      {
        "amount": 4.91,
        "line": "Geg. EC-Cash EUR 4,91",
        "method": "Geg"
      }
    ],
    "raw_text": "Frischmarkt Kühn OHG\nBahnhofstr. 3\n48529 Nordhorn\nUSt-IdNr. DE123456789\nEUR\nBANANEN 1,29 B\nH-MILCH 3,5% 1,18 B\n2 Stk x 0,59\nPFAND 0,25 A\nRABATT KAFFEE -0,30 B\nKAFFEE GEMAHLEN 2,49 B\nSUMME EUR 4,91\nGeg. EC-Cash EUR 4,91\nSteuer % Netto Steuer Brutto\nA= 19,0% 0,21 0,04 0,25\nB= 7,0% 4,36 0,30 4,66\nGesamt 4,57 0,34 4,91\n14.10.26 18:03 Bon 0815 Kasse 3",
    "receipt_number": null,
    "time": "18:03",
    "total": {
      "amount": 4.91,
      "confidence": 0.96,
      "line": "SUMME EUR 4,91"
    },
    "vat": [
      {
        "code": "A",
        "confidence": 0.89,
        "consistent": true,
        "gross": 0.25,
        "line": "A= 19,0% 0,21 0,04 0,25",
        "net": 0.21,
        "rate": 19,
        "tax": 0.04
      },
      {
        "code": "B",
        "confidence": 0.95,
        "consistent": true,
        "gross": 4.66,
        "line": "B= 7,0% 4,36 0,30 4,66",
        "net": 4.36,
        "rate": 7,
        "tax": 0.3
      }
    ]
  },
  "service": "receipt-photo-json",
  "status": "success"
}

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.008.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://bild.halowerk.com/v1/receipt-photo-json' \
  -H 'content-type: application/json' \
  --data-raw '{"image_url":"https://bild.halowerk.com/beispiel/receipt-photo-json-image.png"}'

# 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://bild.halowerk.com/v1/receipt-photo-json' \
  -H 'content-type: application/json' \
  --data-raw '{"image_url":"https://bild.halowerk.com/beispiel/receipt-photo-json-image.png"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.008 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.008" });
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.008 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbild.halowerk.com%2Fv1%2Freceipt-photo-json&method=POST
const res = await pay("https://bild.halowerk.com/v1/receipt-photo-json", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "image_url": "https://bild.halowerk.com/beispiel/receipt-photo-json-image.png"
  }),
});
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.008 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.008"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://bild.halowerk.com/v1/receipt-photo-json",
        json={
            "image_url": "https://bild.halowerk.com/beispiel/receipt-photo-json-image.png",
        },
    )
    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

WhenResultHTTPTimePrice
9 h agoPassed402138 ms$0.008
2 days agoTimed out---
4 days agoPassed402127 ms$0.008
4 days agoPassed402149 ms$0.008
4 days agoPassed402128 ms$0.008
Show 10 older checks
5 days agoPassed40242 ms$0.008
5 days agoPassed40242 ms$0.008
6 days agoPassed40242 ms$0.008
6 days agoPassed402120 ms$0.008
6 days agoPassed40271 ms$0.008
7 days agoPassed40238 ms$0.008
7 days agoPassed40240 ms$0.008
7 days agoPassed40240 ms$0.008
7 days agoPassed40240 ms$0.008
8 days agoPassed40253 ms$0.008