Schema.org identifier Property, GTIN Codes, and Dedicated ID Fields
When to use Schema.org identifier vs gtin, sku, and other ID properties, including GTIN rules, organization codes, and URI alternatives.
This page summarizes Schema.org documentation on the identifier property and the dedicated code and number properties that specialize it. Publishers use these fields in JSON-LD, Microdata, or RDFa so products, organizations, creative works, and orders can be linked to real-world registries (GS1, ISBN, LEI, and others) without ambiguity.
identifier property: what it means in structured data
Section titled “identifier property: what it means in structured data”The identifier property is the generic way to attach any kind of ID to any Thing.
The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.
— Schema.org, identifier
In practice you choose between the generic identifier and a named sub-property (for example gtin or leiCode) when the vocabulary already defines one for your ID type. Named properties make the ID kind explicit for consumers and align with equivalent properties in GS1, Dublin Core, and other linked vocabularies listed on each term’s page.
identifier sub-properties listed on Schema.org
Section titled “identifier sub-properties listed on Schema.org”Schema.org groups many codes under identifier. The canonical list on the term page includes:
| Sub-property | Typical use |
|---|---|
gtin, gtin8, gtin12, gtin13, gtin14 |
Trade items (products, services) |
sku, mpn, asin, productID, serialNumber |
Merchant, manufacturer, marketplace, or instance IDs |
isbn, issn, titleEIDR, editEIDR |
Books, serials, audiovisual works |
duns, leiCode, globalLocationNumber, taxID, usNPI |
Organizations, places, providers |
flightNumber, orderNumber, confirmationNumber |
Transactions and transport |
Properties such as position (with episodeNumber, seasonNumber, clipNumber) describe order in a sequence, not registry-backed global IDs, and are documented separately from identifier.
identifier vs URL and @id: when text properties still matter
Section titled “identifier vs URL and @id: when text properties still matter”Schema.org’s data model notes on identifier explain why both URIs and explicit identifier properties coexist.
The identifier property and its sub-properties are primarily useful in cases where the content is expressed as a textual string. Increasingly there are canonical URL/URI representations for each of these. All schema.org syntaxes already have built-in representation for URIs and URLs, e.g. in Microdata ‘itemid’, in RDFa 1.1, ‘resource’, in JSON-LD, ‘@id’. Generally it is preferable to use these unless there is a specific requirement to explicitly state the kind of identifier, or to provide additional / alternative identifiers (e.g., DOIs).
— Schema.org, Data model —
identifierproperty
Use built-in URI mechanisms for the canonical resource IRI when you have one. Add gtin, isbn, or identifier when you must state the kind of ID, supply additional IDs (for example a DOI alongside a page URL), or when the value is only available as a string.
Classification codes are not identifier sub-properties
Section titled “Classification codes are not identifier sub-properties”The same background page draws a line between individual things and categories:
identifier is not intended to cover broader categorization and classification mechanisms. For example, although the isicV4 property has values that are in some sense identifiers, we do not treat isicV4 as a subproperty of identifier since it serves to identify a category not an individual Thing (specifically, Person).
— Schema.org, Data model —
identifierproperty
Use isicV4, naics, or code with codingSystem for industry or medical vocabularies, not identifier alone.
PropertyValue when the identifier scheme must be named
Section titled “PropertyValue when the identifier scheme must be named”When no standard URI exists for an ID, Schema.org allows a PropertyValue pair:
In the most complex case, there is sometimes a need to represent the type of an identifier. In this case, a PropertyValue pair (‘name’, ‘identifier’) pair can be used when a standard URI form of the identifier is unavailable. We do not currently have a recommended identifier scheme for identifier schemes, but in most cases there is a conventional short name for most identifier schemes (which should be used in lowercase form).
— Schema.org, Data model —
identifierproperty
productID illustrates a prefixed string style: “such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".” Prefer dedicated properties like isbn when they exist.
Product and offer IDs: gtin, sku, mpn, and related fields
Section titled “Product and offer IDs: gtin, sku, mpn, and related fields”E-commerce markup most often combines global trade IDs with seller-specific codes.
gtin: format, validation, and generalization of gtin8–gtin14
Section titled “gtin: format, validation, and generalization of gtin8–gtin14”gtin is the unified property for Global Trade Item Numbers:
A Global Trade Item Number (GTIN). GTINs identify trade items, including products and services, using numeric identification codes.
— Schema.org, gtin
Schema.org states strict value rules:
A correct gtin value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a “GS1 Digital Link” URL based on such a string. The numeric component should also have a valid GS1 check digit and meet the other rules for valid GTINs. … Left-padding of the gtin values is not required or encouraged. The gtin property generalizes the earlier gtin8, gtin12, gtin13, and gtin14 properties.
— Schema.org, gtin
The older length-specific properties (gtin12, gtin13, etc.) remain valid sub-properties of gtin; new markup should prefer gtin unless you intentionally target a fixed length. gtin13 notes that former 12-digit UPC values can become GTIN-13 by adding a leading zero—do not pad unnecessarily when using gtin itself.
model documentation recommends pairing model information with strong product IDs:
It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties.
— Schema.org, model
| Property | Meaning | Schema.org definition link |
|---|---|---|
mpn |
Manufacturer part number | mpn |
sku |
Stock keeping unit (merchant-specific) | sku |
asin |
Amazon marketplace ID (10 characters; text or URL) | asin |
serialNumber |
Instance-level product ID | serialNumber |
For asin, Schema.org stresses scope: definitions on Schema.org describe how to encode ASINs in structured data, not the authoritative ASIN specification from the marketplace operator.
hasGS1DigitalLink and Digital Link granularity
Section titled “hasGS1DigitalLink and Digital Link granularity”GS1 Digital Links belong on hasGS1DigitalLink, not mixed into gtin against the rules above:
The GS1 digital link specifications expresses GTINs as URLs (URIs, IRIs, etc.). Digital Links should be populated into the hasGS1DigitalLink attribute.
— Schema.org, gtin
hasGS1DigitalLink requires matching application identifiers to the right product type—for example, a link with serial number (AI 21) only on IndividualProduct, and lot number (AI 10) on SomeProducts or IndividualProduct depending on what you sell.
productGroupID and variants
Section titled “productGroupID and variants”inProductGroupWithID points to a group via productGroupID: “Indicates the productGroupID for a ProductGroup that this product isVariantOf.” That is a group identifier, not a GTIN; use it with variant relationships, not as a substitute for gtin.
Organization, place, and party identifiers
Section titled “Organization, place, and party identifiers”| Property | Role |
|---|---|
leiCode |
Legal entity identifier (ISO 17442) |
duns |
Dun & Bradstreet DUNS |
globalLocationNumber |
13-digit GLN for parties and locations |
iso6523Code |
ISO 6523 structured org ID (ICD:OID:OPI) |
taxID / vatID |
Fiscal IDs; vatID may also be expressed as iso6523Code |
branchCode |
Store or branch code (often in locator URLs) |
certificationIdentification |
ID of a registered certification instance |
iso6523Code documents a preferred pattern for organization IDs:
If possible, ISO-6523 codes should be preferred to populating vatID or taxID, as ISO identifiers are less ambiguous.
— Schema.org, iso6523Code
It also maps familiar IDs into ICD prefixes (for example leiCode (0199), duns (0060), GLN (0088)).
globalLocationNumber: “The GLN is a 13-digit number used to identify parties and physical locations.”
Creative works, media, and publication numbering
Section titled “Creative works, media, and publication numbering”Bibliographic and media IDs are first-class identifier sub-properties:
isbn— “The ISBN of the book.”issn— repeat for different formats or ISSN-L.issueNumber,volumeNumber— issue or volume of a publication (position-style numbering).pageStart,pageEnd,pagination— page locators; usepaginationwhen ranges are not split (“1-6, 9, 55”).titleEIDRandeditEIDR— Entertainment Identifier Registry work vs edit; film types may use title alone or title plus edit for a specific cut.isrcCode,iswcCode,catalogNumber— recordings, compositions, releases.
alternateName is an alias for the item, not a registry ID: “An alias for the item.”
Orders, reservations, and transport identifiers
Section titled “Orders, reservations, and transport identifiers”Transaction and logistics properties include orderNumber (“The identifier of the transaction.”), confirmationNumber, orderItemNumber, reservationId, trackingNumber (“Shipper tracking number.”), flightNumber (airline IATA code plus number, e.g. UA110), and accountId for payment routing. These are identifier specializations where Schema.org names the business meaning explicitly.
Interchangeable ID sets and common mistakes
Section titled “Interchangeable ID sets and common mistakes”Schema.org notes that some identifier values denote sets of interchangeable entities (for example certain product codes), not a single individual. That is different from sku, which is merchant-specific.
How to check this on your site
Section titled “How to check this on your site”-
Open your page source or tag manager output and confirm each ID uses the Schema.org property that matches its registry (for example
gtinfor trade items, not a free-formidentifierunless appropriate). -
For
gtinvalues, verify all-numeric 8/12/13/14-digit form and GS1 check-digit rules per gtin; put GS1 Digital Link URLs onhasGS1DigitalLinkwhen used. -
Cross-check definitions on the canonical term pages (identifier, sku, leiCode, and others) so property names match the types you markup (
Product,Organization,Book, etc.). -
Review ambiguous organization IDs against iso6523Code formatting and ICD prefixes where applicable.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with the linked Schema.org definitions or you need a clarification, write to yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.