Product Input

Object

ProductInput

Fields Type Description Validation

id

ID!

The ID of the product to change

outletId

ID

The outlet that the cost affects

name

String

The name of the product

Minimum Length: 1
Maximum Length: 160

quantity

Float!

The quantity to update

Minimum: 1
Maximum: 100,000,000,000

cost

Float

The cost associated with the quantity

Minimum: -1,000,000
Maximum: 1,000,000

price

Float!

The price to update for the quantity

Minimum: 0
Maximum: 100,000,000

priceSetId

ID

The price set that this price belongs to

prevQuantity

Int

The quantity that this was changed from

Minimum: 1
Maximum: 100,000,000,000

alignFamily

Boolean!

Whether to align the family prices or not

image

String

The main image for this product

alternateImages

[String!]

The alternative images for this product