On this page
Switch it on
- Wix › Account settings › API Keys (manage.wix.com/account/api-keys) › Generate API Key.
- 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.
- Open the site’s dashboard and copy the link from the address bar. It holds the Site ID (
manage.wix.com/dashboard/<site id>/…). - 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.
API key permissions
| Permission | Why ExiusCart needs it |
|---|---|
| Wix Stores | Create products with photos and price, and set stock |
| Wix eCommerce | Read 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.
What ExiusCart syncs
| What | Direction | Notes |
|---|---|---|
| Products, photos, prices, stock | ExiusCart → Wix | Sent when the seller lists a product; live on the store at once |
| Stock | ExiusCart → Wix | Sent again from the product page with Send stock now |
| Orders | Wix → ExiusCart | Checked every 15 minutes and on Sync now; paid orders lower ExiusCart stock |
| Shipping | ExiusCart → Wix | A Wix fulfillment with carrier and tracking number when the order ships |
| Bundle kits | ExiusCart | Listed with the number of whole kits the parts make |
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.
| Detail | Catalog V3 (newer sites) | Catalog V1 |
|---|---|---|
| Create | POST /stores/v3/products-with-inventory | POST /stores/v1/products |
| Photos | Sent with the product by URL, up to 50 | Added after, /products/{id}/media |
| Stock | Inventory item of the one variant | Tracked quantity on the product |
| Description | HTML, up to 16,000 characters | HTML, 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.
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 order | In ExiusCart |
|---|---|
| paymentStatus PAID, PARTIALLY_PAID, PARTIALLY_REFUNDED | Paid: stock is taken and supplier auto-fulfil can start |
| Any other payment status | Pending |
| status CANCELED or REJECTED | Not imported |
| fulfillmentStatus FULFILLED | Moved to Shipped |
| Line with a SKU ExiusCart does not know | Skipped; 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.
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.
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 offer | On Wix |
|---|---|
| Quantity breaks | One discount rule per tier: “2 to 2 items 10%”, “3 to 3 15%”, “4 or more 20%”, so only the best tier applies |
| Bundle | One discount rule: every product of the set in the cart (AND, up to 5 products), % off those items |
| Buy X get Y, free gift | Not sent: Wix discount rules have no buy X get Y. Make it in Wix › Discounts if you need it |
| A product not listed on Wix | Offers 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. #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 })));
}
});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.
| Feature | Endpoint | Notes |
|---|---|---|
| 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 back | POST /public/channel-product-alerts | Body { 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 |
// 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, 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(); });
});
});Disconnect and your data
| What | When you disconnect |
|---|---|
| Sync | Disconnect in ExiusCart › Channels › Wix: products, stock, orders and tracking stop syncing |
| Products sent by ExiusCart | Stay in Wix Stores. Delete them there if you like |
| API key | Stored in ExiusCart and never sent to the browser. Delete it in Wix › API Keys to revoke it |
| Orders in ExiusCart | Kept for the seller’s records and invoices |