Vendor integration - Wix

If your vendor has a Wix account, Jetti can automatically sync products.

Last updated October 22nd, 2020

VIDEO TUTORIAL: How to generate the correct credentials needed for a Wix vendor integration

Share the video tutorial or this support article with your Shopify vendors to ensure they provide the correct credentials needed for the Shopify integration.

With Jetti, you can publish and automatically sync products between your Wix vendors and your store. Tracking details can be entered by the vendor through a dropship portal, as Wix doesn't currently allow orders to be synced. To learn more on how they view their orders from the dropship portal, read this.

Syncing with Wix Vendors

To enable the inventory feed sync, your Wix vendors will need to do the following from their end:

  1. Click on Edit Site from the main Wix dashboard menu.

  2. In the editor, turn on Dev mode by clicking it on the top bar.

  3. Now, on the menu on the left, click on the plus sign next to Backend > New js. File.

  4. Next, rename the new file to “http-functions.js”

If the file already exists, we recommend co-tagging a developer to ensure your current setup continues to operate as expected, as the file contents will need to be copied into the existing file.

  1. Copy paste the following code to the editor and click save and then publish.
import { notFound, ok, serverError } from 'wix-http-functions';
import wixData from 'wix-data';
import wixStores from 'wix-stores-backend';

const imageAccesible = image =>`https://static.wixstatic.com/media/${image}`;

export async function get_productsListing() {
    const options = {
        headers: {
            'Content-Type': 'application/json',
    try {
        const result = await wixData.query('Stores/Products')
            .include('inventoryItem', 'variant')
            // .limit(1000)
        if (result.items.length > 0) {
            for (let i = 0; i < result.items.length; i += 1) {
                const product = result.items[i];
                const media = product.mediaItems;
                for (let j = 0; j < media.length; j += 1) {
                    media[j].id = imageAccesible(media[j].id);
                if (media && media[0]) {
                    product.mediaItems = media[0].id;
                // Fetch the variants
                /* eslint no-underscore-dangle: 0 */
                const variants = await wixStores.getProductVariants(product._id, {});
                product.mappedVariants = variants;
            options.body = {
                items: result.items,
            return ok(options);
        options.body = {
            error: 'Result not found!',
        return notFound(options);
    } catch (onRejected) {
        options.body = {
            error: onRejected.message,
        return serverError(options);
  1. Last step is to turn off Dev mode, and hit publish again.

That’s all from the vendor’s side! Once this is done, the Jetti user can then enter the script installation path in Jetti, which is the vendor's store URL, e.g. www.mysite.com. This will then enable the inventory sync, pulling in the product catalogue of the Wix vendor that can be published to the marketplace store, syncing product details, inventory, and pricing!

Back to Dropship