MageSmith
INTERFACE Magento 2.4.9

ProductInterface

Contains fields that are common to all types of products.

Declared or extended by: Catalog, CatalogCustomer, CatalogInventory, CatalogUrlRewrite, GiftMessage, Inventory, RelatedProduct, Review, Swatches

Fields

id Int Deprecated

The ID number assigned to the product.

uid ID! Required

The unique ID for a `ProductInterface` object.

name String

The product name. Customers use this name to identify the product.

sku String

A number or code assigned to a product to identify the product, options, price, and manufacturer.

description ComplexTextValue

Detailed information about the product. The value can include simple HTML tags.

short_description ComplexTextValue

A short description of the product. Its use depends on the theme.

special_price Float

The discounted price of the product.

special_from_date String Deprecated

The beginning date that a product has a special price.

special_to_date String

The end date for a product with a special price.

attribute_set_id Int Deprecated

The attribute set assigned to the product.

meta_title String

A string that is displayed in the title bar and tab of the browser and in search results lists.

meta_keyword String

A comma-separated list of keywords that are visible only to search engines.

meta_description String

A brief overview of the product for search results listings, maximum 255 characters.

The relative path to the main image on the product page.

small_image ProductImage

The relative path to the small image, which is used on catalog pages.

thumbnail ProductImage

The relative path to the product's thumbnail image.

new_from_date String

The beginning date for new product listings, and determines if the product is featured as a new product.

new_to_date String

The end date for new product listings.

tier_price Float Deprecated

The price when tier pricing is in effect and the items purchased threshold has been reached.

options_container String

If the product has multiple options, determines where they appear on the product page.

created_at String Deprecated

Timestamp indicating when the product was created.

updated_at String Deprecated

Timestamp indicating when the product was updated.

country_of_manufacture String

The product's country of origin.

type_id String Deprecated

One of simple, virtual, bundle, downloadable, grouped, or configurable.

websites [Website] Deprecated

An array of websites in which the product is available.

product_links [ProductLinksInterface]

An array of `ProductLinks` objects.

media_gallery_entries [MediaGalleryEntry] Deprecated

An array of MediaGalleryEntry objects.

price ProductPrices Deprecated

Indicates the price of an item.

price_range PriceRange! Required

The range of prices for the product

gift_message_available String

Indicates whether a gift message is available.

manufacturer Int

A number representing the product's manufacturer.

categories [CategoryInterface]

The categories assigned to a product.

canonical_url String

The relative canonical URL. This value is returned only if the system setting 'Use Canonical Link Meta Tag For Products' is enabled.

media_gallery [MediaGalleryInterface]

An array of media gallery objects.

custom_attributesV2 ProductCustomAttributes

Product custom attributes.

tier_prices [ProductTierPrices] Deprecated

An array of ProductTierPrices objects.

price_tiers [TierPrice]

An array of `TierPrice` objects.

only_x_left_in_stock Float

Remaining stock if it is below the value assigned to the Only X Left Threshold option in the Admin.

stock_status ProductStockStatus

The stock status of the product.

quantity Float

Amount of available stock

min_sale_qty Float

Minimum Qty Allowed in Shopping Cart

max_sale_qty Float

Maximum Qty Allowed in Shopping Cart

url_key String

The part of the URL that identifies the product

url_suffix String

The part of the product URL that is appended after the url key

url_path String Deprecated
url_rewrites [UrlRewrite]

URL rewrites list

related_products [ProductInterface]

An array of products to be displayed in a Related Products block.

upsell_products [ProductInterface]

Upsell Products

crosssell_products [ProductInterface]

Crosssell Products

rating_summary Float! Required

The average of all the ratings given to the product.

review_count Int! Required

The total count of all the reviews given to the product.

reviews ProductReviews! Required

The list of products reviews.

swatch_image String

The file name of a swatch image.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.