# ProductCode type


One code of a variant: a barcode or another identifier that the variant is known by.

## Fields

### kind

`String!`

The code's kind: `EAN13`, `EAN8`, `EAN14`, `GTIN`, `UPC`, `MANUFACTURER`, `CUSTOMS` or
`INTERNAL`. Read it as a string.

### value

`String!`

The code itself, as stored.

### unit

`String`

The pack unit that this code identifies. Null for the base unit.

### isPrimary

`Boolean!`

Whether it is the variant's primary code.

## Used by

- [`ProductCodeConnection`](/chameleoon-max/type/product-code-connection)
- [`ProductCodeEdge`](/chameleoon-max/type/product-code-edge)
