Magidoc

ProductCreateInput
Input Object

Fields

#

allowBackorders

Whether to allow backorders for this product variant, if backorders are permitted at the marketplace level

attributes

List of attributes.

basePrice

Default price for product variant. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

brand

Product brand

category

ID of the product's category.

chargeTaxes

Determine if taxes are being charged for the product.

collections

[ ID !]

List of IDs of collections that the product belongs to.

costPrice

Default cost price for product variant. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

currency

Choose a currency to assign to the product prices.

customFields

List of custom fields.

description

Product description (plaintext, read-only).

descriptionHtml

Product description (html).

externalId

The external ID from a foreign system if a product originated from that system, used in combination with provided externalSource. If submitting externalId, you must also provide an externalSource argument. If these two are provided, the productCreate mutation will attempt to perform an upsert instead of a creation.

externalSource

The external source identifier of a foreign system (e.g. nautical.fulfillment.shopify) if a product originated from that system, used in combination with provided externalId. If submitting externalSource, you must also provide an externalId argument. If these two are provided, the productCreate mutation will attempt to perform an upsert instead of a creation.

isAvailable

Determine if product should be available for purchase.

isDigital

Set whether this product is digital by default, will be overridden by product type if provided

isPriceOverrideAllowed

Set whether this product allows price overrides by default, will be controlled by product type if provided

isPublished

Determines if product is visible to customers.

isShippingRequired

Set whether this product requires shipping by default, will be overridden by product type if provided

manufacturer

Manufacturer of the product

model

Product model code

mpn

Manufacturer product number

name

Product name.

overrideCurrency

Override currency for product

overridePrice

Override price for grouped products

productType

ID of the type that product belongs to.

publicationDate

Publication date. ISO 8601 standard.

seller

ID !
Non-null

ID of the seller that product belongs to.

seo

Search engine optimization fields.

sku

Stock keeping unit of a product. Note: this field is only used if a product doesn't use variants. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

slug

Product slug.

sortPriorityWeight

Sort priority for product

startDate

A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed.

stocks

Stocks of a product available for sale. Note: this field is only used if a product doesn't use variants. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

subStatus

Substatus the product is to be changed to.

subStatusReason

A reason for why the sub status changed, which will be displayed to the creator of the product.

taxCode

Tax rate for enabled tax gateway.

trackInventory

Determines whether to track changes to this variant's inventory. If set to 'false', the product's stock quantity won't reduce when a customer purchases this item. However, even when 'false', you must assign a stock quantity to a warehouse to allow checkouts. Usually, this involves allocating a placeholder stock amount that matches the maximum quantity purchased at once. Note: this field is applicable only for simple products.DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

variantSize

Size of the variant. Note: this field is only used if product doesn't use variants. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.

visibleInListings

Determines if product is visible in product listings (doesn't apply to product collections).

weight

Weight of the Product.

Usages

#

References

#

  • Argument input of field productCreate from type Mutation