---
id: "cpid"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["gs1", "objectids", "industry"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/cpid"
---

# Component/Part Identifier (CPID) (`cpid`)

> **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.

GS1 identification key for a type of component or part, used mainly in the automotive industry. It is a GS1 Company Prefix followed by a component/part reference, up to 30 characters of GS1 character set 39 (digits, capital letters, '#', '-' and '/'); the first four characters are digits because the shortest GS1 Company Prefix has four. In barcodes it is carried by Application Identifier (8010), and (8011) adds the serial number of one part; the element strings are the patterns gs1_ai_8010 and gs1_ai_8011.

- Personal data (PII): no
- Categories: GS1 standards (gs1), Objects identifiers (objectids), Industry (industry)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier
- Patterns: `gs1_ai_8010`

## Detection

Regular expression (Python `re`):

```
^\d{4}[A-Z0-9/#-]{1,26}$
```

## Examples

- `9528765PART-12A/7` — Synthetic value with the GS1 demonstration prefix 952 and a part reference
- `9528765B-77/2#1` — Synthetic value with the GS1 demonstration prefix 952; part reference with '-', '/' and '#'
- `9528765part-12a` (invalid example) — Lower-case letters are not in GS1 character set 39

## Sources

- doc: <https://ref.gs1.org/ai/8010>
- doc: <https://ref.gs1.org/standards/genspecs/>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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