---
title: ProductVariantBarcode - GraphQL Admin
description: |-
  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.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode.md
api_name: admin
api_type: graphql
type: object
---

# Product​Variant​Barcode

object

Requires `read_products` access scope.

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.

## Fields

* type

  [Barcode​Type](https://shopify.dev/docs/api/admin-graphql/latest/enums/BarcodeType)

  The associated standard that the barcode conforms to. Barcode types are validated against their respective format standards. A `null` format denotes no type provided on write and the value is stored as entered.

* value

  [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  non-null

  The value of the barcode. For example, `9780262033848`. Maximum length: 255 characters.

***

## Map

### Fields and connections with this object

* [ProductVariant.barcodes](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant#field-ProductVariant.fields.barcodes)
* [ProductVariantBarcodeConnection.nodes](https://shopify.dev/docs/api/admin-graphql/latest/connections/ProductVariantBarcodeConnection#returns-nodes)
* [ProductVariantBarcodeEdge.node](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcodeEdge#field-ProductVariantBarcodeEdge.fields.node)
