{"uid":"cap_Y0R85GdlR04UAFfyuCdfO","slug":"receipt-text-parser-186af5cd","name":"Receipt Text Parser","description":"Parse raw receipt text into structured line items, subtotal, tax, and total. This endpoint does not perform image OCR.","url":"https://x402-trends-server.onrender.com/api/parse-receipt","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Raw receipt text. Use after OCR when the source is an image; this endpoint itself does not perform OCR."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w2AnnOfNkBx-q774pukzY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses raw receipt text into structured line items, subtotal, tax, and total fields","exampleAgentPrompt":"I just OCR'd a receipt and got this raw text — can you parse it into structured line items with the subtotal, tax, and total? Here's the text: 'Coffee $3.50, Muffin $2.75, Subtotal $6.25, Tax $0.56, Total $6.81'","exampleUseCases":[{"title":"Expense report automation","prompt":"I have this raw text from a scanned restaurant receipt and need you to extract each line item with its price, plus the subtotal, tax, and total so I can log it as an expense: 'Burger $12.99, Fries $3.49, Soda $2.50, Subtotal $18.98, Tax $1.71, Total $20.69'"},{"title":"Grocery budget tracking","prompt":"Can you parse this grocery receipt text for me and pull out all the individual items with their prices, plus the subtotal, tax, and final total? The text is: 'Milk $4.29, Bread $2.99, Eggs $5.49, Cheese $6.79, Subtotal $19.56, Tax $0.00, Total $19.56'"},{"title":"Retail return verification","prompt":"I need to verify what was on this store receipt — please parse this receipt text and give me structured line items with amounts, plus the subtotal, tax, and total: 'Shirt $34.99, Pants $49.99, Belt $19.99, Subtotal $104.97, Tax $8.40, Total $113.37'"}],"resultDescription":"Returns structured JSON containing individual line items (each with name and price), subtotal amount, tax amount, and total amount extracted from the raw receipt text","failureModes":["Malformed or ambiguous receipt text may result in incorrect or incomplete parsing","Missing subtotal/tax/total fields in input text may lead to null values in output","Non-standard receipt formats or currencies may not be parsed correctly","Very long or complex receipts may produce partial results","Input text that is not a receipt may return empty or nonsensical structured data"],"whenToPreferThis":"Use this endpoint when you already have receipt text (e.g., from a prior OCR step or copy-paste) and need it converted into structured fields. This endpoint does NOT perform image OCR — use it after you have extracted text from an image. Ideal for expense automation, accounting pipelines, and receipt data entry workflows where raw text is available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:44:47.694Z","isFirstParty":false}