{"uid":"cap_tW2LMZXhibm5D_Z2xbP0y","slug":"tradepilotusa-receipt-text-extraction-81a68cd9","name":"TradepilotUSA Receipt Text Extraction","description":"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.","url":"https://www.tradepilotusa.com/api/agent-commerce/v1/services/receipt_text_extraction/execute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"brief":{"type":"string","maxLength":12000,"minLength":10},"audience":{"type":"string","maxLength":500},"source_text":{"type":"string","maxLength":32000,"minLength":20}}},"responseSchema":{"type":"json","example":{"task":"receipt_text_extraction","summary":"Extracted merchant, date, line items, tax, total, and currency from the supplied fictional receipt text without inferring any missing amounts.","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.*","provenance":{"source":"buyer_supplied","generated_at":"2026-09-22T14:42:48.337Z","external_research_performed":false},"request_id":"example_receipt_text_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."],"requires_human_review":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jT4AM9imY4TPdA1Wsn8zL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured receipt data (merchant, date, line items, tax, total, currency) from raw receipt text supplied by the caller","exampleAgentPrompt":"I have the raw text from a hardware store receipt — can you extract the merchant name, date, all line items with quantities and prices, the tax, the total, and the currency from it? Here's the text: 'Example Hardware Store, Dallas | 2026-09-01 | door hinge set x1 $20.00 | Tax: $1.65 | Total: $21.65 USD'","exampleUseCases":[{"title":"Expense report auto-population","prompt":"I've got the plain text from a contractor's receipt — can you extract the merchant, date, every line item with its price, the tax, and the total so I can log it in our expense system? Here's the text: 'City Electrical Supply, Austin | 2026-10-15 | 12-gauge wire 50ft x2 $45.00 each | Tax: $7.43 | Total: $97.43 USD'"},{"title":"Accounts payable receipt audit","prompt":"Pull all the structured data out of this vendor receipt text for me — I need the merchant name, transaction date, individual line items with quantities and unit prices, the tax charged, and the final total: 'MegaPlumbing Wholesale, Houston | 2026-11-03 | PVC elbow joint x10 $3.50 each | copper pipe 1m x4 $8.00 each | Tax: $6.68 | Total: $73.68 USD'"},{"title":"Receipt digitization for small business","prompt":"Here's the text I typed out from a paper receipt — extract the merchant, date, every item purchased with its price, the tax amount, and the total so I can add it to my bookkeeping: 'Sunrise Office Supplies, Denver | 2026-09-28 | legal pads x3 $4.99 | stapler x1 $12.49 | Tax: $1.75 | Total: $24.23 USD'"}],"resultDescription":"A JSON object containing the task name, a plain-language summary of what was extracted, a formatted artifact with labeled fields (merchant, date, line items with quantity and price, tax, total, currency), provenance metadata (source, timestamp, whether external research was performed), a unique request ID, a list of assumptions made during extraction, identified evidence gaps, and a flag indicating whether human review is recommended.","failureModes":["Source text too short (below 20 characters) — request rejected with validation error","Source text too long (over 32,000 characters) — request rejected with length error","Ambiguous or missing fields in source text — reflected in evidence_gaps array and requires_human_review set to true","Malformed input JSON — 400-level error","Payment not included or insufficient — 402 Payment Required","Receipt text in an unsupported format or language — partial extraction with assumptions noted"],"whenToPreferThis":"Choose this endpoint when you have raw or semi-structured receipt text that needs to be parsed into discrete labeled fields (merchant, date, line items, tax, total, currency) for downstream use in expense management, accounting, or bookkeeping workflows. It is especially well-suited when the receipt text may be incomplete or ambiguous, as the service explicitly surfaces assumptions and evidence gaps rather than silently inferring missing values, making it safer for audit-sensitive contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:37.146Z","isFirstParty":false,"canonicalSlug":"tradepilotusa-receipt-text-extraction-81a68cd9"}