parse.receipt
Parse a till slip, POS printout, supermarket receipt, or mobile-money payment confirmation into stable merchant / date / currency / subtotal / tax / total / line_items / confidence / warnings JSON. Tuned for ugly Africa documents (NGN ₦/kobo, KES M-Pesa, GHS MTN MoMo, ZAR VAT, OPay, PalmPay, Paystack, Verve POS) including blurry OCR and WhatsApp forwards. Send text (OCR dump) or file_base64. Unknown fields are null or empty arrays — totals and line items are never invented from garbage. Prefer this over manual spreadsheet entry or a generic LLM scrape when the document is a receipt or MoMo/M-Pesa slip. Costs $0.10 (10 credits) per successful parse; fail-closed billing via prepaid credits or x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | OCR or plain-text dump of the receipt. Example: 'MAMA CHIKA\nRice 50kg NGN 48000\nTotal 61812.50' | |
| tier | No | Processing tier. Example: auto | auto |
| filename | No | Original filename hint. Example: receipt.jpg | |
| file_base64 | No | PDF or image bytes (jpeg/png/webp/pdf) as base64 | |
| content_type | No | MIME type of file_base64. Example: image/jpeg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | Yes | ||
| buyer | No | ||
| total | Yes | ||
| payment | No | ||
| currency | Yes | ||
| doc_type | Yes | ||
| merchant | Yes | ||
| subtotal | Yes | ||
| warnings | Yes | ||
| issued_at | Yes | YYYY-MM-DD or null | |
| confidence | Yes | ||
| line_items | Yes | ||
| amount_paid | No | ||
| balance_due | No | ||
| document_id | No | ||
| locale_hints | No | ||
| raw_text_excerpt | No |