---
id: "upc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["gs1"]
langs: ["en"]
quality: 45
url: "http://registry.apicrafter.io/datatype/upc"
---

# Universal Product Code (UPC) by field name (`upc`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Universal Product Code (UPC) by field name code

- Personal data (PII): no
- Categories: GS1 standards (gs1)
- Countries: global
- Languages: English (en)
- Classification: identifier

## Detection

Check digit algorithm: `gtin`

## Mappings

- autotype: `upc`
- fta: `CHECKDIGIT.UPC`
- schema_org: `gtin12`
- stdnum: `ean`

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `upcfield` (field, `common/gs1.yaml`)
- `upcvalue` (data, `common/gs1.yaml`)

## Supported by tools

- `autotype`
- `fta`
- `greatexpectations`
- `ibmknowledgecatalog`
- `metacrafter`
- `pythonstdnum`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Universal_Product_Code>

## Quality

Score 45/100. Missing: longer description, regexp, examples, negative example, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/upc.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/gs1/upc.yaml>
