How do you reconcile a receipt-upload sweepstakes? From OCR to human review

In a short-term retail receipt-upload campaign, how do you handle blurry photos, duplicate receipt numbers, manual back-office verification, and off-site backup reconciliation? Walking through the full operational chain with a mock blurry receipt.

In this note

Receipt OCR can save entrants from typing a few fields, while prize eligibility still needs human review. In the ENVY sweepstakes, the system assisted with number extraction and blocked duplicate submissions, and operations staff checked the original photo to confirm qualifying items and purchase amounts. Blurry receipts had a clear path into manual review, and every record remained traceable at wrap-up.

The project was the Envy Apples × PX Mart / Mega PX Mart sweepstakes, which has since concluded. The Envy brand and distributor commissioned HAVAS Taiwan, and HAVAS Taiwan engaged Collective 353 to design and build the campaign site, receipt entry flow, operations back office, and off-site backup reconciliation workflow. Below, we walk one synthetic, de-identified blurry receipt from upload all the way through human review, verifiable prize drawing, and off-site backup.

Walking a blurry receipt through the entire pipeline

From receipt to eligibility
  1. Read

    Extract fields from the receipt image

  2. Review

    Confirm items and amounts

  3. Reconcile

    Trace eligibility back to the record

Start with a fictional, de-identified example: during the campaign period, a shopper buys at least NT$199 of Envy Apples in a single transaction at PX Mart and gets a uniform invoice thermal receipt. After sitting in a pocket, the paper is creased and slightly faded; its actual receipt number is ZZ90817263.

That receipt passes through five gates, each drawing a clear line between what the system handles automatically and what staff verify by hand.

Gate 1: Upload and image normalization (getting the file safely stored)

Phone-captured receipt photos vary widely in format and size, so upload handling splits across the browser and the server.

The entry form accepts camera shots, photo library picks, and screenshots up to 5MB per file. Because many iPhone users select HEIC photos directly, the browser converts them to a standard image format before preview and upload. If conversion fails or the file exceeds the limit, the page immediately prompts the shopper to pick a smaller image.

Once the file reaches the server, the backend checks more than the file extension: it validates the true file format, size, and pixel resolution ceiling to block spoofed files and oversized images. Valid photos are resized, re-compressed, stripped of location and device metadata, hashed for integrity, and stored in private cloud storage as the source image for reconciliation.

Gate 2: OCR only fills the receipt number, never judges eligibility

Right after the photo is selected, lightweight OCR runs inside the shopper’s browser with one narrow job: find candidate strings matching Taiwan’s uniform invoice format (two letters followed by eight digits), convert them to uppercase, and remove duplicates.

Two boundaries stay fixed here. First, OCR only suggests receipt numbers. It does not parse line items, does not judge whether Envy Apples reached the NT$199 minimum, and does not fill in the retail channel or purchase date. Second, a blurry photo or failed read never blocks entry. A single match auto-fills the field while staying editable; multiple candidate matches (such as a barcode or tax ID misread) appear as tap-to-select buttons; and if the photo is too faded to read at all, an amber notice asks the shopper to type the number manually so submission keeps moving.

Back to our creased sample receipt: even if the fold stops OCR from reading ZZ90817263, the shopper can still type the number by hand, complete the purchase date, store channel, city, and contact details, and submit.

People often ask why not send every receipt to a cloud Vision LLM to read line items and amounts automatically. For a public retail sweepstakes, three practical trade-offs drove the browser-only approach.

First is abuse protection and cost control. Public promotions can attract sudden bursts of anonymous uploads or deliberate image spam; running lightweight OCR on the participant’s own phone costs the campaign nothing in AI inference fees and removes the risk of an exhausted API quota taking the form offline. Second is response speed and data minimization: candidate numbers appear right on the device before submission, without sending every test photo to an external AI vendor. Third is financial and legal accountability. Thermal receipts use inconsistent item abbreviations, discount splits, and bundle lines across stores. Even if a model pre-filled purchase totals, brand and agency staff still have to verify the original receipt photo before awarding high-value prizes. Keeping automation scoped to saving shoppers from typing 10 characters, while keeping real eligibility inside an audited back office, produces a far steadier system.

Gate 3: Automated checks for formal eligibility and duplicates

When the shopper submits the form, the backend runs four automated checks in sequence. It verifies that current server time in Taipei falls inside the campaign window, validates bot protection alongside traffic-spike defenses, and checks receipt number format, purchase date range, retail channel, mobile number and email format, and privacy consent.

The real defense against duplicate entries sits at the database level as a unique constraint. Whether someone types ZZ90817263 or adds a hyphen as ZZ-90817263, the system blocks any receipt number that already exists in the database.

What happens after a block matters just as much. Occasionally an earlier entrant mistypes a single digit and claims someone else’s receipt by mistake. When a duplicate number is rejected, the interface automatically opens a dispute appeal form where the shopper can leave contact details and an explanation for support. The appeal form carries its own bot check and a 7-day per-receipt submission cap to deter abuse, while the admin list flags that entry with a warning icon so staff compare the original photo first.

Accepted entries receive a unique serial number and trigger an immediate Telegram alert to the operations and brand leads. The message intentionally carries only the serial number and timestamp, leaving out names, phone numbers, and receipt numbers so live visibility does not leak personal data.

Gate 4: Human review decides actual prize eligibility

After automated checks handle formatting and uniqueness, campaign staff review actual eligibility one entry at a time in the operations back office. Original photos are never exposed on public URLs; the admin panel generates a time-limited link for each receipt so reviewers can zoom in on faded product lines and amounts.

Amount entry includes built-in guardrails: “Apple amount” and “Receipt total” sit in separate fields, and the system blocks any apple subtotal larger than the receipt total. Unchecked entries stay blank rather than defaulting to zero, paired with a “Pending amount” filter for batch work. Once staff verify the product, date, channel, and amount against the original photo, they mark the entry as valid, invalid, or flagged for follow-up, along with reasons and notes. Every status change, field edit, search, and export writes to an audit log. Entries already entered into a draw or selected as winners are locked against deletion, and any other deletion requires re-entering the admin password.

Gate 5: Verifiable sealed draws and hourly backup reconciliation

Once the campaign closes and human review wraps up, two operational questions remain: can the prize draw be independently re-verified afterward, and are the entry list and receipt photos still intact if a single cloud service runs into trouble?

1. Sealed draws with offline-verifiable proof

The draw engine pulls only entries marked valid, not yet anonymized, and not previously selected as winners. Before drawing, the system locks list editing so records cannot shift mid-draw, seals the candidate pool and prize allocation, and records both the bundle fingerprint and a random seed commitment.

A cryptographically secure random draw ranks candidates and assigns prize slots. Every step from preparation and drawing to removing an ineligible winner, running a replacement draw, and exporting records links into a tamper-evident event chain. The team can export the full proof file and re-verify the math offline to confirm that the winners match the sealed candidate pool. If a winner fails verification or declines a prize, staff record the reason and draw a traceable replacement for that open slot.

2. Dual-track off-site backup and hourly reconciliation

To avoid keeping every artifact on one host, the system splits master data, off-site receipt copies, and the operations reconciliation sheet across three locations:

Storage destination Contents Sync & reconciliation mechanism
Primary system and private cloud storage Official entry records, review statuses, audit logs, and original receipt photos Written immediately on submission; serves as the sole authoritative source.
Off-site cloud backup Off-site copies of original receipt photos (named by serial number and entry ID) Streamed asynchronously in the background; skips existing files and retries failed transfers up to 5 times in staged intervals.
Google Sheets reconciliation log 17-column operations sheet (entry ID, receipt number, channel, contact details, review status, backup image ID) Updated automatically by entry ID once image backup finishes; subsequent review edits update the same row rather than adding duplicates.

Alongside immediate per-entry sync, an hourly reconciliation job automatically catches and completes any unfinished backups, and each admin record displays its current sync state and attempt count. A 5-minute health check and external anomaly monitor run in parallel so any storage or spreadsheet connection outage sends an alert right away instead of surfacing at wrap-up.

Key operational checklist for receipt-upload sweepstakes

If you are scoping or commissioning a retail receipt-upload campaign, this table helps check for operational gaps before launch:

Stage Automated by the system Owned by human ops Must-test edge cases
Receipt upload Phone photo conversion, spoofed-file and resolution checks, resizing, location-metadata removal, private storage write None Oversized photos, spoofed extensions, iPhone photo formats
OCR recognition Browser-side lightweight receipt number extraction, single auto-fill or multi-candidate buttons Shopper reviews and corrects the number Blurry receipt with no match, multiple detected numbers, recognition failure
Submit & dedupe Campaign window, bot protection, date and format checks, database unique constraint Handle duplicate-triggered dispute appeals and compare original photos Same number with and without hyphen, repeated appeals in a short window
Eligibility review Time-limited private image links, item subtotal vs. receipt total guardrail, full audit trail Verify qualifying product, spend threshold, and channel; mark valid, invalid, or flagged Concurrent edit during draw lock, accidental delete protection
Draw & backup Sealed candidate list and verifiable draw chain, automatic off-site storage and sheet sync, hourly reconciliation and 5-minute monitoring Export draw proof for retention, respond to alerts, confirm replacement draws Recovery via retries after temporary backup or spreadsheet outage

Automation saves typing, human review keeps the audit trail

In-store receipt promotions always run into messy conditions: dim lighting, faded thermal paper, mistyped digits, spotty mobile connections, and duplicate-number disputes. Using lightweight browser OCR to save shoppers from typing ten characters, enforcing uniqueness in the database, keeping final eligibility with staff looking at original photos, and pairing sealed draws with hourly off-site backup reconciliation leaves the brand and legal teams with complete records when the campaign wraps up.


Further reading & services

  • Related notes: Three months later, who can still update this website? (looking at the same project’s three-layer maintenance boundary across admin panel, environment config, and static copy)
  • Case study: See how Collective 353 built the Envy Apples campaign site and operations back office for HAVAS Taiwan → Envy Apples sweepstakes case study
  • Service scope: Planning a campaign system or web application that combines interactive frontend UX, admin operations, audit trails, and backup reconciliation? → Web applications and systems
  • Get in touch: Have a promotional campaign, receipt verification workflow, or operations back office to scope? → Contact us