ExiusCart Developers

ExiusCart on Wix

For developers and agencies working on a Wix store connected to ExiusCart. Everything runs through an API key the site owner makes in their own Wix account, against Wix’s REST APIs. There is no Wix app to install and no site code is edited.

Building your own storefront instead? See the API reference.

Works with
Wix Stores
Permissions
2
Order check
Every 15 min
Site code edited
None
On this page
  1. 1. Switch it on
  2. 2. API key permissions
  3. 3. What ExiusCart syncs
  4. 4. Products and catalogs
  5. 5. Orders
  6. 6. Tracking
  7. 7. Bundles & offers
  8. 8. Cart add-ons, Notify me, thank-you offer
  9. 9. Disconnect and your data
1

Switch it on

  1. Wix › Account settings › API Keys (manage.wix.com/account/api-keys) › Generate API Key.
  2. Name it ExiusCart, choose the store’s site, and tick the 2 permissions below with all their options. Copy the key, Wix shows it once.
  3. Open the site’s dashboard and copy the link from the address bar. It holds the Site ID (manage.wix.com/dashboard/<site id>/…).
  4. In ExiusCart › Channels › Wix, paste the link (or the bare Site ID) and the key. ExiusCart checks both with Wix before saving.

The site needs the Wix Stores app. A site without it is refused with a message saying so.

2

API key permissions

PermissionWhy ExiusCart needs it
Wix StoresCreate products with photos and price, and set stock
Wix eCommerceRead orders and add fulfillments with tracking

ExiusCart tests each permission with one light read when the store connects. If one is missing, ExiusCart › Channels › Wix says which one and why.

Fixing a missing permission: edit the same key in Wix › API Keys, tick it and save. The key does not change, so just press I’ve ticked them, check again in ExiusCart. A new key works too: use Use a new key.
3

What ExiusCart syncs

WhatDirectionNotes
Products, photos, prices, stockExiusCart → WixSent when the seller lists a product; live on the store at once
StockExiusCart → WixSent again from the product page with Send stock now
OrdersWix → ExiusCartChecked every 15 minutes and on Sync now; paid orders lower ExiusCart stock
ShippingExiusCart → WixA Wix fulfillment with carrier and tracking number when the order ships
Bundle kitsExiusCartListed with the number of whole kits the parts make
4

Products and catalogs

Wix Stores has two catalog versions that work differently. ExiusCart asks Wix which one the site uses (GET /stores/v3/provision/version) and uses the matching API. If Wix moves the site to the newer catalog, ExiusCart notices on the next failed call and switches on its own.

DetailCatalog V3 (newer sites)Catalog V1
CreatePOST /stores/v3/products-with-inventoryPOST /stores/v1/products
PhotosSent with the product by URL, up to 50Added after, /products/{id}/media
StockInventory item of the one variantTracked quantity on the product
DescriptionHTML, up to 16,000 charactersHTML, up to 8,000 characters
  • Each product is listed with one variant carrying its price, compare-at price, SKU and weight.
  • Orders are matched back by SKU, so every listed product needs a SKU. ExiusCart uses EXIUSCART-<id> when it has none.
  • A product is listed once. Listing it again from ExiusCart does not make a second Wix product.
5

Orders

API keys get no Wix webhooks, so ExiusCart searches orders (POST /ecom/v1/orders/search) every 15 minutes for the last 2 days, and the last 7 on Sync now. The seller can turn the timer off.

Wix orderIn ExiusCart
paymentStatus PAID, PARTIALLY_PAID, PARTIALLY_REFUNDEDPaid: stock is taken and supplier auto-fulfil can start
Any other payment statusPending
status CANCELED or REJECTEDNot imported
fulfillmentStatus FULFILLEDMoved to Shipped
Line with a SKU ExiusCart does not knowSkipped; the rest of the order comes in

The order number in ExiusCart starts with WX- followed by the Wix order number. The buyer becomes a customer, matched by email.

6

Tracking

When the seller marks a Wix order shipped in ExiusCart, a fulfillment is added to the Wix order (create-fulfillment) with the lines and the tracking number. Wix then shows it fulfilled and emails the buyer.

  • FedEx, UPS, USPS, DHL, Canada Post and Hermes are sent as Wix’s own carriers, so Wix makes the tracking link.
  • Any other carrier is sent by name with a tracking link.
  • The same tracking number twice is ignored by Wix, so a retry is safe.
7

Bundles & offers

Quantity breaks (buy 2, 3, 4 and save more) and bundles (this product plus others, save a %) made in ExiusCart are sent to Wix as Wix’s own discount rules, so the Wix cart and checkout take the saving off with no code to type. A product can have several bundles. Keep Wix ticked under “Shows on” in the product’s Bundles & offers.

ExiusCart offerOn Wix
Quantity breaksOne discount rule per tier: “2 to 2 items 10%”, “3 to 3 15%”, “4 or more 20%”, so only the best tier applies
BundleOne discount rule: every product of the set in the cart (AND, up to 5 products), % off those items
Buy X get Y, free giftNot sent: Wix discount rules have no buy X get Y. Make it in Wix › Discounts if you need it
A product not listed on WixOffers that name it are not sent
  • Rules are made on save and checked again every 15 minutes, so a product listed on Wix later gets its offers too.
  • Turning an offer off or deleting it removes its Wix rules. Rules are named after the offer; don’t edit them in Wix, ExiusCart makes them again.
  • The API key needs the eCommerce permission with all options (Manage eCommerce), already part of the setup above.

Showing the Bundle & save picker

The saving works without it. To show the picker on the product page, read the offers in Velo and add the shopper’s pick to the Wix cart. GET https://api.exiuscart.com/api/v1/public/channel-offers?channel=wix&store=<site id>&product=<wix product id> returns { offers, price, currency }. Each offer is a quantity_breaks (with tiers), a bundle (with percent and items: { self: true, quantity } for this product, { id, title, image, price, quantity } for the others, id being the Wix product id) or a bxgy.

Velo: product page
// Velo, product page. #offers is a repeater you design; #productPage1 is Wix's product page.
import { fetch } from 'wix-fetch';
import { cart } from 'wix-stores-frontend';

$w.onReady(async () => {
  const product = await $w('#productPage1').getProduct();
  const url = 'https://api.exiuscart.com/api/v1/public/channel-offers?channel=wix'
    + '&store=<site id>&product=' + product._id;
  const { offers } = await (await fetch(url)).json();
  const bundles = offers.filter((o) => o.kind === 'bundle');
  // ...fill #offers from bundles; on a pick:
  async function add(bundle) {
    await cart.addProducts(bundle.items.map((it) => ({
      productId: it.self ? product._id : it.id, quantity: it.quantity })));
  }
});
8

Cart add-ons, Notify me, thank-you offer

Set in ExiusCart: open a product › Bundles & offers › In the cart or After payment (or Growth › Upsells), and keep Wix ticked under “Shows on”. Wix sites can’t take ExiusCart’s script without a Wix app, so you show these with a few lines of Velo, using the same endpoints the other storefronts use.

FeatureEndpointNotes
Complete your order (cart)GET /public/channel-upsells?channel=wix&store=<site id>&kind=cart&products=<ids>ids = the Wix product ids in the cart. Returns { currency, offers: [{ id, headline, text, products }] }
Thank-you offer…&kind=post_purchase&products=<ids>ids = the products of the order just paid (Thank You page: getOrder()). Add the product to the cart and send the shopper to checkout
Notify me when it’s backPOST /public/channel-product-alertsBody { channel: "wix", store, product, email, kind: "back_in_stock", page_url }. When stock comes back (sent from ExiusCart), the Back in stock email goes out once and links to page_url
Wix prices its own cart, so a % off set on these offers is not taken on Wix: the add-on sells at its normal price. Quantity breaks and bundles above are still discounted by their Wix discount rules.
Velo: Notify me on the product page
// Velo, product page. #notifyBox holds #notifyEmail and #notifyBtn (design them as you like).
import { fetch } from 'wix-fetch';
import wixLocationFrontend from 'wix-location-frontend';
const API = 'https://api.exiuscart.com/api/v1';

$w.onReady(async () => {
  const product = await $w('#productPage1').getProduct();
  if (product.inStock) { $w('#notifyBox').collapse(); return; }
  $w('#notifyBtn').onClick(async () => {
    await fetch(API + '/public/channel-product-alerts', {
      method: 'POST', headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ channel: 'wix', store: '<site id>', product: product._id,
        email: $w('#notifyEmail').value, kind: 'back_in_stock', page_url: wixLocationFrontend.url }),
    });
    $w('#notifyBox').collapse();
  });
});
Velo: Complete your order in the cart
// Velo, cart page or side cart. #addons is a repeater you design.
import { fetch } from 'wix-fetch';
import { cart } from 'wix-stores-frontend';
const API = 'https://api.exiuscart.com/api/v1';

async function showAddons() {
  const current = await cart.getCurrentCart();
  const ids = current.lineItems.map((l) => l.productId).join(',');
  if (!ids) return $w('#addons').collapse();
  const url = API + '/public/channel-upsells?channel=wix&store=<site id>&kind=cart&products=' + ids;
  const { offers } = await (await fetch(url)).json();
  if (!offers.length) return $w('#addons').collapse();
  // offers[0].headline, offers[0].products: [{ id (Wix product id), name, image_url, price, compare_at_price }]
  $w('#addons').data = offers[0].products.map((p) => ({ ...p, _id: String(p.id) }));
  $w('#addons').expand();
}

$w.onReady(() => {
  showAddons();
  $w('#addons').onItemReady(($item, p) => {
    $item('#addBtn').onClick(async () => { await cart.addProducts([{ productId: p.id, quantity: 1 }]); showAddons(); });
  });
});
9

Disconnect and your data

WhatWhen you disconnect
SyncDisconnect in ExiusCart › Channels › Wix: products, stock, orders and tracking stop syncing
Products sent by ExiusCartStay in Wix Stores. Delete them there if you like
API keyStored in ExiusCart and never sent to the browser. Delete it in Wix › API Keys to revoke it
Orders in ExiusCartKept for the seller’s records and invoices

Stuck on a store?

Send us the site link and what you see. A real person replies.

Contact us