This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves data for specified items in a specified catalog.
Wix calls this method whenever a cart or checkout is updated, and when an item is added to an order.
The method receives a catalogReferences
array. Each catalog reference in the array contains:
The method also receives preferences for the currency and weight unit to be used in the response.
Your external catalog can store and organize item details in any way you prefer. When implementing the Catalog service plugin, learn how to handle item variants in a way that meets your needs.
The method's response must contain a catalogItems
array. Each item in the array must contain:
catalogReference
object. This must be identical to the catalogReference
object received in the request.data
object with full details about the item.Notes:
catalogItems
array in the response.catalogItems
must contain an empty array.Catalog reference details for the items to retrieve, including quantity of each item.
Weight measurement unit.
By default, Wix sends the weight unit specified in the site's settings.
Currency to return item prices in, in ISO 4217 format. For example, USD
or EUR
.
By default, Wix sends the currency specified in the site's settings.
Details for each item, including catalog reference details and item data. Any items that don't exist in the catalog are excluded. If none of the requested items exist in the catalog, this array must be empty.
The data payload will include the following object as an encoded JWT. For the purposes of this example, we show the request and response objects decoded.