eCommerce Integration with Wix Stores Catalog V3

When integrating products from your Wix Stores catalog into an eCommerce cart, checkout, or order, you must use the catalogReference object structure. This guide explains how to properly format and use the catalogReference object in various eCommerce API functions.

Pass the catalogReference object as part of the lineItems array in the following eCommerce API functions:

Catalog Reference Object Structure

The catalogReference object includes the following fields:

eCommerceStores Catalog
catalogItemIdThe productId of the Wix Stores product
appIdThe Wix Stores app ID (always "215238eb-22a5-4c36-9e7b-e7c08025e04e")
optionsAn optional object containing product-specific key-value pairs
Copy
1

Important Notes

  1. Use modifiers in either options or customTextFields based on the modifierRenderType:
    • For TEXT_CHOICES, use the modifier and choice key in options.
    • For FREE_TEXT, use the freeTextSettings.key in customTextFields.
  2. You may omit customTextFields and options in catalogReference if the related modifier is not mandatory.
  3. You can omit subscriptionOptionId if the product doesn't have subscriptionDetails defined or when subscriptionDetails.allowOneTimePurchases is true.
  4. Always include the variantId.

Example

Consider a product with the following structure:

Copy
1

Note: many product fields in the above example have been omitted for conciseness.

Scenario

A buyer wants to purchase "Coffee" with the following options:

  • Size: S
  • Box color: Red
  • Remove price tag: Yes
  • Engraving: "For my best friend! :)"
  • Delivery: Monthly subscription

Resulting catalogReference object

Copy
1

To find the correct variantId, match the options.id and options.choicesSettings.choices.choiceId of the buyer's selected options with variantsInfo.variants.optionChoiceIds.optionId and variantsInfo.variants.optionChoiceIds.optionId in the variants.

Minimal valid catalogReference object

Since both modifiers have "mandatory": false and subscriptionDetails.allowOneTimePurchases is true, the following minimal catalogReference is also valid:

Copy
1
Was this helpful?
Yes
No