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.


urlobjectRead-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.


mediaobject

Product media items.


seoDataobject

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.


brandobject

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.

ribbonobject

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.

directCategoriesInfoobjectRead-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.


allCategoriesInfoobjectRead-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.


basePriceRangeobjectRead-only

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


salePriceRangeobjectRead-only

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


costRangeobjectRead-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.

inventoryobjectRead-only

Product inventory info.


productTypestring
3 enum supported values:
UNKNOWN_PRODUCT_TYPEPHYSICALDIGITAL

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.


breadcrumbsInfoobjectRead-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.


variantsInfoobject

Product variants.

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


extendedFieldsobject

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.


subscriptionDetailsobject

Product subscriptions.


variantSummaryobjectRead-only

The total number of variants for the product.


physicalPropertiesobject

Physical properties.

Required when productType: PHYSICAL.

Was this helpful?
Yes
No