---
id: "gs1_ai_402"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["gs1", "shipping", "transport"]
langs: ["common"]
quality: 85
url: "http://registry.apicrafter.io/datatype/gs1_ai_402"
---

# Global Shipment Identification Number (GS1 AI 402) (`gs1_ai_402`)

> **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 element string of Application Identifier (402): '402' followed by a 17-digit GSIN. GS1 format N3+N17. In the human-readable text under a barcode it is written as (402) and the value.

- Pattern of: `gsin`
- Personal data (PII): no
- Categories: GS1 standards (gs1), Shipping and delivery (shipping), Transportation (transport)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^402\d{17}$
```

## Examples

- `40295287650000042178` — Synthetic value with the GS1 demonstration prefix 952
- `40295287651000275160` — Synthetic value with the GS1 demonstration prefix 952
- `4029528765000004217` (invalid example) — Sixteen digits

## Mappings

- gs1_ai: `402`

## Sources

- doc: <https://ref.gs1.org/ai/402>

## Quality

Score 85/100. Missing: translation, detector coverage.

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