---
title: "Interface: IBarcodeData | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/Barcode.IBarcodeData/"
---

# Interface: IBarcodeData

> A structure containing data that can be encoded into barcodes.

## Example

``` js
var configuration = {
   autoLoadUserInfo: true,
   userInfo: {
       "Ean 8": {
           "BarcodeFormat": "EAN_8",
           "BarcodeValue": "1234567"
       },
       "Ean 13": {
           "BarcodeFormat": "EAN_13",
           "BarcodeValue": "123456789012"
       },
       "Qr Code": {
           "BarcodeFormat": "QR_CODE",
           "BarcodeSubType": "Url",
           "Url": "https://example.com"
       }
   }
};
```

## Properties

### barcodeFormat

> **barcodeFormat**: [`BarcodeFormat`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/enums/Barcode.BarcodeFormat.md)

The barcode type.

***

### barcodeSubType?

> `optional` **barcodeSubType?**: [`BarcodeSubType`](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/enums/Barcode.BarcodeSubType.md)

The QR code subtype.

***

### firstName?

> `optional` **firstName?**: `string`

The first name encoded into this barcode.

***

### lastName?

> `optional` **lastName?**: `string`

The last name encoded into this barcode.

***

### organization?

> `optional` **organization?**: `string`

The organization name encoded into this barcode.

***

### position?

> `optional` **position?**: `string`

The job position encoded into this barcode.

***

### email?

> `optional` **email?**: `string`

The email address encoded into this barcode.

***

### mobilePhone?

> `optional` **mobilePhone?**: `string`

The mobile phone number encoded into this barcode.

***

### url?

> `optional` **url?**: `string`

The URL encoded into this barcode.

***

### phone?

> `optional` **phone?**: `string`

The phone number encoded into this barcode.

***

### data?

> `optional` **data?**: `string`

Arbitrary data encoded into QR code.

***

### barcodeValue?

> `optional` **barcodeValue?**: `string`

A value encoded into this barcode.
