Mock API flow
Receipt OCR import preview, safely dry-run first.
用 mock OCR text 解析食材,經 ingredient_inventory.db aliases / conversions 做 match,再預覽 inventory_batches + inventory_transactions would-write payload。
No DB writes
Input
Receipt text
POST /api/receipt/ocr-mock and /api/receipt/import-mock are mock/dry-run endpoints.
Parsed result
Matched ingredients
Run mock OCR to see parsed ingredient matches.