---
title: BarcodeType - GraphQL Admin
description: >-
  The identifier standard that a barcode value conforms to. A single value can
  satisfy more than one

  standard, so declare the standard that the merchant or supplier assigned. If
  no `BarcodeType` is provided,

  then no standard was declared and the value is stored as entered.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/admin-graphql/latest/enums/BarcodeType'
  md: 'https://shopify.dev/docs/api/admin-graphql/latest/enums/BarcodeType.md'
api_name: admin
api_type: graphql
type: enum
---

# Barcode​Type

enum

The identifier standard that a barcode value conforms to. A single value can satisfy more than one standard, so declare the standard that the merchant or supplier assigned. If no `BarcodeType` is provided, then no standard was declared and the value is stored as entered.

## Valid values

* ASIN

  Amazon Standard Identification Number. Assigned by Amazon and unique to its catalog.

* EAN

  International Article Number. Used mainly outside North America, as a 13-digit EAN-13 or an 8-digit EAN-8.

* GTIN

  Global Trade Item Number. Accepts 8, 12, 13, and 14-digit codes. Use `GTIN` when the code is registered with GS1. Acceptable formats are GTIN-8, GTIN-12 (UPC) GTIN-13 (EAN) and GTIN-14.

* ISBN

  International Standard Book Number. The 10-digit or 13-digit code assigned to a book. A 13-digit ISBN is also an EAN-13.

* NS\_​PID

  Non-standardised manufacturer Product Identifier. A code assigned by the manufacturer or supplier, such as a model or part number, used to identify a product in EU customs declarations. It follows no published standard, so the value is stored as entered.

* UPC

  Universal Product Code. Used mainly in North America, as a 12-digit UPC-A or an 8-digit UPC-E.

***

## Fields

* [Barcode​Input.type](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/BarcodeInput#fields-type)

  INPUT OBJECT

  The input fields for barcodes that are associated with a product variant. A variant accepts up to 20 barcodes, and a given variant input can't set both `barcode` and `barcodes`. Refer to the [`ProductVariantBarcode`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode) object for how these barcodes are returned.

* [Product​Variant​Barcode.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode#field-ProductVariantBarcode.fields.type)

  OBJECT

  A barcode associated with a product variant.

  A variant supports up to 20 barcodes, each of which can have a [type](https://shopify.dev/docs/api/admin-graphql/latest/enums/BarcodeType). Barcode types are validated against their respective format standards.

***

## Map

### Fields with this enum

* [Product​Variant​Barcode.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode#field-ProductVariantBarcode.fields.type)

### Inputs with this enum

* [Barcode​Input.type](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/BarcodeInput#fields-type)
