UPC database integration: treat a barcode match as a candidate
A UPC identifies a trade item, but database records can be incomplete, duplicated, regional, or user-contributed.
Confirm the product
- Preserve leading zeros and validate the check digit.
- Store the barcode type with the digit string.
- Show brand, package size, and image for user confirmation.
- Record source and retrieval time.
- Provide a correction path without overwriting provenance.
Test multipacks, reused listings, regional packaging, discontinued products, and no-result responses. Never infer ingredients, allergens, or nutrition from a similar product when an exact record is missing.
1件のコメント