# Inputs / Barcode Template Input

# Barcode Template Input

**Object**
## BarcodeTemplateInput

| Fields | Type | Description | Validation |
| --- | --- | --- | --- |
| oldName | *String* | The name of the previous barcode template (specify this even if the name hasn't changed), leave empty if a new template | Minimum Length: 1Maximum Length: 160 |
| name | *String!* | The name of the barcode template | Minimum Length: 1Maximum Length: 160 |
| template | *String!* | The template | Minimum Length: 1Maximum Length: 160 |
| recalculateQuantity | *Boolean!* | Whether the barcode should be used to calculate the product's quantity (defaults to false) |  |