Product Object


Short description of ProductService

Properties
idstringRead-onlyminLength 1maxLength 36

Product ID.


revisionintegerRead-onlyformat int64

Revision number, which increments by 1 each time the product is updated. To prevent conflicting changes, the current revision must be passed when updating the product.

Ignored when creating a product.


createdDatestringRead-onlyformat date-time

Date and time the product was created.


updatedDatestringRead-onlyformat date-time

Date and time the product was updated.


namestringminLength 1maxLength 80

Product name. Translatable.


slugstringformat URL_SLUG

Product slug.

If not provided, the slug is autogenerated based on the product name.


urlUrlRead-only

URL to the site's product page.

Note: Returned only when you pass "URL" to the fields array in Products API requests.


plainDescriptionstringmaxLength 16000

Product description in HTML.

  • When provided on create/update, this string must be a valid HTML. It will then be converted to rich content.
  • plainDescription is ignored when value is also passed to the description field.

Note: Returned only when you pass "PLAIN_DESCRIPTION" to the fields array in Products API requests.


visibleboolean

Whether the product is visible to site visitors on the site.

Default: true


visibleInPosboolean

Whether the product is visible in POS (point of sale).

Default: true

Note: Always false for productType: DIGITAL.


mediaMedia

Product media items.


seoDataSeoData

Product SEO data.


taxGroupIdstringformat GUID

Tax group ID.


optionsArray <ConnectedOption>maxItems 6

Product options. Allows the customer to customize the product. For example, selecting color, size, and more.

Always generates variants: every variant must have exactly one choice related to each option. Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.


modifiersArray <ConnectedModifier>maxItems 10

Product modifiers.

Allows the customer to customize product, e.g. select Color, Size and so on similarly to options but with one main difference - modifiers never generate any variants.


brandBrand

Product brand.

  • Pass brand.name to add a new brand while creating a product.
  • Pass an existing brand's id to assign that brand to the product.

infoSectionsArray <InfoSection>maxItems 10

Product info section.

  • Pass infoSection.uniqueName, infoSection.title, and infoSection.description to add a new info section while creating a product.
  • Pass an existing info section's id or uniqueName to assign that info section to the product.

ribbonRibbon

Product ribbon.

  • Pass ribbon.name to add a new ribbon while creating a product.
  • Pass an existing ribbon's id or name to assign that ribbon to the product.

directCategoriesInfoDirectCategoriesInfoRead-only

List of categories that directly contain this product.

Updated automatically when a product is added/removed from a category, when an item is moved within a category, or when a category is deleted.

Note: Returned only when you pass "DIRECT_CATEGORIES_INFO" to the fields array in Products API requests.


allCategoriesInfoAllCategoriesInfoRead-only

List of categories that directly contain this product, as well as their parent categories.

Note: Returned only when you pass "ALL_CATEGORIES_INFO" to the fields array in Products API requests.


mainCategoryIdstringformat GUID

Main category ID.


basePriceRangeBasePriceRangeRead-only

Product base price range - minimum and maximum prices of all product variants.


salePriceRangeSalePriceRangeRead-only

Product sale price range - minimum and maximum sale prices of all product variants.


costRangeCostRangeRead-only

Product cost range - minimum and maximum costs of all product variants.

Note: Returned only when the following conditions are met:

  • You pass "MERCHANT_DATA" to the fields array in Products API requests.
  • Your app has the required SCOPE.STORES.PRODUCT_READ_ADMIN permission scope.

inventoryInventoryRead-only

Product inventory info.


productTypestring

Product type.

When passing productType: PHYSICAL, you must also pass physicalProperties.


handlestringminLength 1maxLength 100

A unique human-friendly identifier for the product. Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms. In case handle wasn't given, the handle will be automatically generated.


currencystringRead-onlyformat CURRENCY

Currency used for the pricing of this product, in ISO-4217 format.

Defaults to the currency defined in the site settings, unless specified in x-wix-currency header.

Note: Returned only when you pass "CURRENCY" to the fields array in Products API requests.


breadcrumbsInfoBreadcrumbsInfoRead-only

Breadcrumbs of the mainCategoryId. Used to navigate to parent categories.

Note: Returned only when you pass "BREADCRUMBS_INFO" to the fields array in Products API requests.


variantsInfoVariantsInfo

Product variants.

Note: Returned only when you pass "VARIANTS_INFO" to the fields array in Products API requests.


extendedFieldsExtendedFields

Custom extended fields for the product object.

Extended fields must be configured in the Wix Dev Center before they can be accessed with API calls.


subscriptionDetailsSubscriptionDetails

Product subscriptions.


variantSummaryVariantSummaryRead-only

The total number of variants for the product.


physicalPropertiesPhysicalProperties

Physical properties.

Required when productType: PHYSICAL.

Did this help?