Skip to main content

CreateProductUOMInput

A unit (pack) to add to a product or variant.

input CreateProductUOMInput {
barcode: String
conversionFactor: Float!
gtin: String
height: Float
isBase: Boolean!
isInventory: Boolean!
isPurchase: Boolean!
isSales: Boolean!
length: Float
listPrice: Float
maxOrderQty: Float
minOrderQty: Float!
orderMultiple: Float!
productId: String!
salePrice: Float
standardCost: Float
uomId: String!
variantId: String
weight: Float
width: Float
}

Fields​

CreateProductUOMInput.barcode ● String scalar​

Barcode of this pack.

CreateProductUOMInput.conversionFactor ● Float! non-null scalar​

How many base units one of this unit contains. Must be greater than zero.

CreateProductUOMInput.gtin ● String scalar​

Global Trade Item Number (GTIN) of this pack.

CreateProductUOMInput.height ● Float scalar​

Height of one of this unit. Must not be negative.

CreateProductUOMInput.isBase ● Boolean! non-null scalar​

Mark this as the product's base unit. Only the product's own base unit can be marked base.

CreateProductUOMInput.isInventory ● Boolean! non-null scalar​

Whether stock is held in this unit.

CreateProductUOMInput.isPurchase ● Boolean! non-null scalar​

Whether the unit can be used on purchase documents.

CreateProductUOMInput.isSales ● Boolean! non-null scalar​

Whether the unit can be used on sales documents. A variant can have at most 3 sellable units.

CreateProductUOMInput.length ● Float scalar​

Length of one of this unit. Must not be negative.

CreateProductUOMInput.listPrice ● Float scalar​

List price of one of this unit. Must not be negative.

CreateProductUOMInput.maxOrderQty ● Float scalar​

Null/unset = unlimited for this UOM tier.

CreateProductUOMInput.minOrderQty ● Float! non-null scalar​

Smallest quantity of this unit that can be ordered. Must not be negative.

CreateProductUOMInput.orderMultiple ● Float! non-null scalar​

Quantities of this unit are ordered in multiples of this. Must be greater than zero.

CreateProductUOMInput.productId ● String! non-null scalar​

The ID of the product to add the unit to.

CreateProductUOMInput.salePrice ● Float scalar​

Sale price of one of this unit. Must not be negative.

CreateProductUOMInput.standardCost ● Float scalar​

Standard cost of one of this unit. Must not be negative.

CreateProductUOMInput.uomId ● String! non-null scalar​

The ID of the unit of measure.

CreateProductUOMInput.variantId ● String scalar​

The ID of the variant to add the unit to. Omit for a product-wide unit.

CreateProductUOMInput.weight ● Float scalar​

Weight of one of this unit. Must not be negative.

CreateProductUOMInput.width ● Float scalar​

Width of one of this unit. Must not be negative.

Member Of​

addProductUOM mutation