Receipt Data Extraction: How to Get the Right Fields from Receipts
Extract receipt fields with clear definitions. Check totals, handle missing information and duplicates, and retain a reference to the source.

Receipt data extraction turns the information on a receipt into named fields. Choose the fields and row structure first, upload a readable source, run extraction and check the values. Export only after the result matches the receipt. Keep missing information separate from zero values and preserve a reference to the original.
What receipt data extraction means
A receipt contains information for several purposes. The merchant heading identifies the seller. Item lines describe the purchase. Payment lines show how an amount was received. Data extraction takes selected values from those sections and gives them useful names.
OCR helps read the text. Extraction gives that text a structure. For example, it separates a receipt’s subtotal from its total and places the date in a date field. The difference matters when a document contains several amounts or references that all look plausible.
The result can support an expense register, purchase review or another data task. It does not decide whether an expense is approved, deductible or fully settled. Those decisions may need agreements, payment records or business context outside the receipt.
Start with a field dictionary
A field dictionary is a short list explaining what each column means. It does not need to be technical. A clear sentence is enough to prevent different receipts being interpreted in different ways.
| Field | Meaning | Important check |
|---|---|---|
| merchant_name | Seller name shown on the source | Do not substitute an unverified company name |
| receipt_date | Printed transaction date | Do not use upload or card posting date |
| receipt_number | Seller’s receipt identifier | Preserve leading zeros |
| currency | Currency explicitly established by the source | A dollar sign alone may be ambiguous |
| subtotal | The labelled intermediate amount | Check how discounts and tax are treated |
| tax | The printed tax amount | Missing does not mean zero |
| total | Final transaction amount | Exclude tendered cash and suggested tips |
| amount_paid | Payment acknowledged by the document | May differ from the total |
Add only fields that serve your task. A smaller, well-defined table is easier to review than a long table with uncertain values.
The fictional receipt used here
The demonstration source is a Harbor Office Supply receipt dated November 12, 2026, with receipt number 000184. It lists two notebooks at $5 each and one pen set at $8. The subtotal is $18, tax is $1.44, and the final total is $19.44, paid by card in USD.
The image is clearly marked as fictional. We use it because the items, summary amounts and payment can be compared directly. It is a learning example rather than evidence of a real purchase.

Fictional demonstration receipt. Not a purchase or tax record.
Step 1: Choose the level of detail
Decide whether one output record represents a receipt or a purchased item. For a receipt register, one record per receipt is usually the easier starting point. Each record has a merchant, date, currency and total.
An item table is different. The sample has two product lines: notebooks and a pen set. The notebook quantity is two, but it is still one source line. If you expand quantities into separate rows, document that choice so the row count remains understandable.
If you keep both tables, link them with a receipt reference. Do not sum the receipt total once for every item. A source identifier connects the records; it should not create extra spending.
Step 2: Upload and inspect the source
Sign in to UpParser, upload the receipt and open its preview. Check that the top and bottom are present. A missing payment section can make the amount paid unavailable even when the item list is clear.
Use a document you are permitted to process. For a test, the fictional sample avoids exposing real customer details. Keep its filename with the result so the extraction can be traced back to the exact source image.
If a page is blurred, clipped or upside down, fix the source before reviewing the field values. A field instruction cannot recover print that is absent from the file.

Upload a sample file starts the extraction. The walkthrough uses a clearly labelled fictional receipt.
Step 3: Give clear extraction instructions
Confirm the proposed fields and describe any ambiguity. The word “amount” is too broad when the receipt shows subtotal, tax, total, cash tendered and change. Use the field meanings from your dictionary.
For the demonstration, an instruction is:
Extract the merchant name, printed receipt date, receipt number, stated currency, subtotal, tax, final total, amount paid and payment method. Preserve source identifiers as text. Leave missing values empty. Do not infer an expense category, tax deduction or customer identity.
For item extraction, request description, quantity, unit price and line amount separately. Ask for the printed source values before adding calculated values. That makes it easier to see whether a discrepancy came from reading the receipt or from a later calculation.

The applied prompt requests a receipt summary and keeps missing values blank.

The saved field list, opened in Adjust this extraction after the test run. Receipt number uses Text (single-line).
Step 4: Compare the returned fields
Run extraction and read the result beside the source. Check the highest-impact fields first: receipt identity, date, currency and total. Then review tax, payment and any items needed for your task.
For our sample, total and amount_paid should both be 19.44. Their equality comes from the source, not from a rule that every receipt is paid in full. A deposit receipt can show a payment while leaving a balance outstanding.
Check the merchant name exactly as printed. If you later group several trading names under one supplier, put that verified group name in another field. Keep the original extracted name so the mapping remains visible.

View result shows the original beside the extracted data. Compare each value with its source label.
Step 5: Check the relationships between amounts
Individual values can look correct while the relationships between them are wrong. Use the receipt’s own layout to decide which checks apply.
For the sample, two notebooks cost $10 and the pen set costs $8. The items sum to $18. Adding the printed $1.44 tax produces the $19.44 total. There is no separate discount, tip or service charge in this example.
Do not copy that calculation blindly to every receipt. Inclusive-tax receipts may already include tax in item prices. A discount can apply before or after an intermediate subtotal. Cash tendered may be larger than the purchase total because change was returned.
| Difference you notice | Check before changing anything |
|---|---|
| Items do not equal subtotal | Discounts, missing lines or rounding |
| Total exceeds subtotal plus tax | Tips, fees or service charges |
| Payment differs from total | Deposits, split payments or credits |
| Two dates appear | Transaction date versus payment posting date |
Step 6: Export the checked result
Choose Excel for a workbook, CSV for a plain import table, or JSON when a program needs structured fields. Open the downloaded file and compare a few key values again, including the receipt number and final amount. In this test, all nine CSV values matched the Excel download. The receipt number remained 000184, and both the final total and amount paid were 19.44.
Use consistent column names when combining results. Keep currency separate from amounts and source references separate from internal tracking IDs. If you add a review note, make it clear that the note came from your process rather than from the receipt.
Keep an unchanged export copy before preparing an import file. A destination may require renamed columns or a particular date format. Those changes should not erase your ability to compare the prepared file with the extracted result.

Choose CSV under Download format, then select Download.
How to handle missing and uncertain fields
A missing field is a useful result when the receipt does not contain the information. An empty tax field tells a reviewer that the amount needs another source or further inspection. Replacing it with zero can hide that problem.
Keep ambiguous dates as source text until the format can be established. Do not infer a currency from a merchant name alone. If a receipt has no number, create an internal tracking ID in a separate column and leave the original receipt-number field empty.
Set aside unreadable records for review. A tidy table with guessed values is harder to correct than a table that clearly identifies what remains unresolved.
How to avoid duplicate receipts
A receipt can arrive as a photo, an email copy and a scanned PDF. Different filenames do not establish different purchases. Compare the merchant, date, total and receipt reference before treating each file as a separate expense.
Matching amounts alone are also insufficient. Two purchases can have the same total on the same day. Keep a review decision for suspected duplicates and retain the source files that explain it.
FAQ
Which receipt fields should I extract first?
Start with merchant, date, receipt number, currency and total. Add tax, payment and item fields when your task needs them.
Can extraction tell me the expense category?
A suggested category is a separate classification decision. Review it using your own rules instead of treating it as a printed receipt fact.
Can I use one field setup for every merchant?
You can define shared fields, but test different layouts. A reusable setup still needs checks for new receipt formats and unclear sources.
Is receipt extraction the same as invoice extraction?
The tasks share fields, but the documents have different purposes. A receipt acknowledges a payment; an invoice documents charges. See receipt vs invoice vs bill.
Where can I check what a receipt field means?
Use the line-by-line receipt guide. The receipt types article explains why a card slip, deposit receipt and itemized sales receipt may contain different information.
About the Author
Dylan Dan is the founder of UpParser and the team behind it. He led the team in developing all of the website's data extraction workflows and is a data extraction and processing expert with years of experience. He writes UpParser guides on extracting, organizing, and checking data from invoices, bank statements, receipts, and other documents. His published guides cover invoice processing, spreadsheet preparation, and invoice OCR error checks.