75trust / 100

Receipt Text Extraction Execute

by tradepilotusa.com in Search & web

x402 APIPassing, checked 1 h ago

Extract merchant, date, line items, tax, total, and currency from supplied receipt text; do not infer absent amounts. Uses buyer-supplied information only; no external research or outbound actions. Returns a draft for human review.

POST https://www.tradepilotusa.com/api/agent-commerce/v1/services/receipt_text_extraction/execute

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
688 ms typical, 1.0 s slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.tradepilotusa.com/api/agent-commerce/v1/services/receipt_text_extraction/execute" \
  -H "content-type: application/json" \
  -d '{"audience":"Business operations manager","brief":"Extract merchant, date, line items, tax, total, and currency from supplied receipt text; do not infer absent amounts. Use only the supplied fictional example material and clearly identify missing evidence.","source_text":"Fictional receipt R-1001. Example Hardware Store, Dallas. Date 2026-09-01. Item: door hinge set, quantity 1, price USD 20. Tax USD 1.65. Total paid USD 21.65. Payment method: cash. No customer identity is provided."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.tradepilotusa.com%2Fapi%2Fagent-commerce%2Fv1%2Fservices%2Freceipt_text_extraction%2Fexecute
const res = await pay("https://www.tradepilotusa.com/api/agent-commerce/v1/services/receipt_text_extraction/execute", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"audience":"Business operations manager","brief":"Extract merchant, date, line items, tax, total, and currency from supplied receipt text; do not infer absent amounts. Use only the supplied fictional example material and clearly identify missing evidence.","source_text":"Fictional receipt R-1001. Example Hardware Store, Dallas. Date 2026-09-01. Item: door hinge set, quantity 1, price USD 20. Tax USD 1.65. Total paid USD 21.65. Payment method: cash. No customer identity is provided."}),
});
console.log(await res.json());

Example input

{
  "audience": "Business operations manager",
  "brief": "Extract merchant, date, line items, tax, total, and currency from supplied receipt text; do not infer absent amounts. Use only the supplied fictional example material and clearly identify missing evidence.",
  "source_text": "Fictional receipt R-1001. Example Hardware Store, Dallas. Date 2026-09-01. Item: door hinge set, quantity 1, price USD 20. Tax USD 1.65. Total paid USD 21.65. Payment method: cash. No customer identity is provided."
}

Example output

{
  "artifact": "Illustrative excerpt from a synthetic provider check:\n### Extracted Receipt Data\n\n- **Merchant:** Example Hardware Store, Dallas\n- **Date:** 2026-09-01\n- **Line Items:**\n  - Item: door hinge set\n  - Quantity: 1\n  - Price: 20 USD\n- **Tax:** 1.65 USD\n- **Total:** 21.65 USD\n- **Currency:** USD\n\n---\n\n*Note: Payment method and customer identity are outside the scope of this extraction.*",
  "assumptions": [
    "The price of the line item is the unit price as no total line item cost is separately stated.",
    "Currency is USD as explicitly stated with prices, tax, and total."
  ],
  "evidence_gaps": [
    "No additional line items beyond the single door hinge set are provided.",
    "No subtotal amount is given separately from total and tax."
  ],
  "provenance": {
    "external_research_performed": false,
    "generated_at": "2026-09-22T14:42:48.337Z",
    "source": "buyer_supplied"
  },
  "request_id": "example_receipt_text_extraction",
  "requires_human_review": true,
  "summary": "Extracted merchant, date, line items, tax, total, and currency from the supplied fictional receipt text without inferring any missing amounts.",
  "task": "receipt_text_extraction"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed4021.0 s$0.25
5 h agoPassed402670 ms$0.25
9 h agoPassed402991 ms$0.25
13 h agoPassed402662 ms$0.25
17 h agoPassed402659 ms$0.25
20 h agoPassed402663 ms$0.25
24 h agoPassed402668 ms$0.25
27 h agoPassed402712 ms$0.25
31 h agoPassed402791 ms$0.25
34 h agoPassed402688 ms$0.25
38 h agoPassed402711 ms$0.25
42 h agoPassed402646 ms$0.25
45 h agoPassed402705 ms$0.25
2 days agoPassed402707 ms$0.25
2 days agoPassed402629 ms$0.25