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

# Global Shipment Identification Number (GSIN) (`gsin`)

> **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 that a seller (shipper) gives to a shipment: the logistic units that it sends together to one buyer. Seventeen digits: a GS1 Company Prefix, a shipper reference and a GS1 check digit. In barcodes it is carried by Application Identifier (402); the element string is the pattern gs1_ai_402.

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

## Detection

Regular expression (Python `re`):

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

Check digit algorithm: `gs1_mod10`

## Examples

- `95287650000042178` — Synthetic value with the GS1 demonstration prefix 952 and a valid check digit
- `95287651000275160` — Synthetic value with the GS1 demonstration prefix 952 and a valid check digit
- `95287650000042179` (invalid example) — Last digit changed: fails the GS1 check digit

## Sources

- doc: <https://ref.gs1.org/ai/402>
- 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/gsin.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/gs1/gsin.yaml>
