Connecting an Online Store

Connect Shopify, WooCommerce, BigCommerce, Square, Etsy, eBay or Amazon, decide who owns the count, choose what syncs, and know each platform's limits.

Connecting an Online Store

A store connection brings a store's products, stock and orders into Karmaflow.ai and, when you choose, sends stock and shipments back. Seven platforms connect the same way: Shopify, WooCommerce, BigCommerce, Square, Etsy, eBay and Amazon. Each store is its own connection with its own settings, so a business with a Shopify storefront, an Etsy shop and an Amazon listing can run all three against one shelf. The first decision on every connection is who owns the count; everything else follows from it.

What you'll need

The seven platforms at a glance

Platform Connects with Stock per location Changes arrive Tells the store about shipments Publish a product from here
Shopify Install the app, or a custom app's access token Yes Webhooks, plus the scheduled sync Yes, with tracking Yes
WooCommerce A REST API key One figure per product Webhooks, plus the scheduled sync Completes the order and adds the tracking as a customer note Yes
BigCommerce A store-level API account Yes Webhooks, plus the scheduled sync Yes, with tracking Yes
Square Authorize the app, or a personal access token Yes Webhooks (token connections only), plus the scheduled sync Yes, for orders made through Square's Orders API Yes
Etsy Authorize the app One figure per listing The scheduled sync only Yes, once the order has shipped in full No
eBay Authorize the app One figure per item The scheduled sync only Yes, with tracking No
Amazon Authorize the app, or a private app's credentials Your own stock and Fulfilled-by-Amazon stock, kept apart The scheduled sync only Yes, for orders you fulfil yourself No

Telling the store about shipments is off on every connection until you tick it (see Directions). The full list of what each platform does not do is under Limits by platform.

Connect a store

Inventory → Setup → Stores (/inventory/stores).

  1. Click Connect a store.
  2. Under Platform, click the platform.
  3. If the platform offers two ways in, choose Install / authorize or Paste a key. Shopify, Square and Amazon offer both; WooCommerce and BigCommerce take a key; Etsy and eBay are authorize only.
  4. Give the connection a Name — how this store is called here.
  5. Fill in the fields the form shows. They come from the platform itself, with a note under each saying where to find the value; What each platform asks for lists them.
  6. Click the button at the bottom:
    • Continue to <Platform> (install or authorize). You leave Karmaflow.ai, sign in to the platform, approve the connection and are brought back to the store's panel, where a Connected message confirms it. If the platform refused, its reason shows at the top of the Stores page.
    • Connect & verify (a key). Karmaflow.ai calls the store once to confirm the key and read its name and currency, then opens the store's panel. A key that fails reads Saved, but not verified: with the store's answer.

Credentials are stored encrypted and never shown again; on the store's panel a stored secret reads (set), and a field left blank keeps what is stored.

If the form says the deployment has no app configured. Installing or authorizing uses a Karmaflow.ai app registered with the platform. Where none is configured, the form says so and asks for your own app's client ID and secret instead (each platform names them differently — they are the fields marked (your own app)). Your own app's callback address is https://<your Karmaflow.ai address>/internal/inventory/stores/oauth/callback.

Starting from Shopify. Opening the Karmaflow.ai app from your Shopify admin lands on the Stores page with the Connect a store form already open and your store domain filled in.

The first sync starts on its own. Once a connection verifies, the scheduled sync picks it up at its next run, with the defaults: the store owns the count, and products, stock and orders all flow Store → here. Those defaults change nothing in the store. If you want different directions from the first run, set them in the next section straight away, or untick Scheduled sync enabled until you have.

What each platform asks for

Platform Install / authorize Paste a key
Shopify Store domain — the permanent myshopify.com address (Settings → Domains), not a custom domain. Optional: Client ID (your own app) and Client secret (your own app) for your own Shopify Dev Dashboard app. For a custom app already made in the store admin: Store domain, Admin API access token (Apps → Develop apps → the app → API credentials) and API secret key (Shopify signs every webhook with it). Shopify no longer lets merchants create custom apps in the admin; a new app is made in the Shopify Dev Dashboard and installed.
WooCommerce — Store URL (the site's https address), Consumer key and Consumer secret: in WordPress, WooCommerce → Settings → Advanced → REST API → Add key with Read/Write permission. WooCommerce shows the pair once.
BigCommerce — Store hash (the part after /stores/ in the API path; pasting the whole path works) and Access token: Settings → Store-level API accounts → Create API account, token type V2/V3 API token, with Products (modify), Orders (modify), Order Transactions (read-only), Store Inventory (modify) and Information & Settings (read-only). BigCommerce shows the token once.
Square Environment (Production, or Sandbox (testing)). Optional: Application ID (your own app) and Application secret (your own app). Environment and Personal access token (Square Developer Console → your application → Credentials). Webhook signature key is filled in for you when you register webhooks here.
Etsy Nothing but the click. Optional: Keystring (your own app) and Shared secret (your own app). —
eBay Marketplace (the eBay site whose listings, prices and orders this connection reads) and Environment. Optional: App ID (your own app), RuName (your own app) and Cert ID (your own app). —
Amazon Marketplace — one connection per Amazon store; selling in several means connecting each. Marketplace, Seller id (Merchant Token) (Seller Central → Settings → Account Info → Merchant Token), LWA client id, LWA client secret and Refresh token from a private app you self-authorized.

Who owns the count

Open the connection from the Stores list. The first card, Who owns the count, is the one setting that decides what an order does:

Choice What happens
The store (the default) The store already deducts for its own orders. Its stock figure is pulled here on every sync (and webhook, where the platform sends them), and its orders are recorded without touching stock. Right for a store that is already selling, and for a business that counts in the store.
Karmaflow Stock is managed here — several locations, purchase orders, counts — and the level is pushed to the store after every change. The store's orders deduct here, like any other order. Right when the shelf, not the storefront, is the truth.

Switching to Karmaflow turns a Stock direction of Store → here into Here → store, and switching back does the reverse. Check your levels here before the first push: the next change to a level overwrites the store's figure.

Directions

The Directions section, then Save at the bottom of the panel:

Locations

Shown for the platforms that keep stock per location: Shopify, BigCommerce, Square and Amazon.

  1. Click Load from <Platform>. The store's locations are listed, each with a picker.
  2. For each one, pick which of your locations it is.
  3. Click Save.

Before anything is mapped, every store location's figure is added together on the default location. Once you map any location, only mapped locations are read, so map every one that holds stock you sell. When Karmaflow.ai owns the count, each mapped location receives the figure of the location it is mapped to; with nothing mapped, Shopify gets the total on its first active location.

Amazon lists two locations: Merchant fulfilled (your own stock) and Fulfilled by Amazon. Your own stock is pulled and pushed like any other. Fulfilled-by-Amazon stock is pulled only once you map it — map it to a location of its own, so Amazon's warehouses are never added to your shelf — and it is never pushed.

WooCommerce, Etsy and eBay keep one figure per product. It lands on, and is pushed from, the connection's default location.

Sync now, and the history

The Sync now section has two buttons:

Under the buttons: the last run's figures (products created and updated, levels, pushed, orders created and updated) and the run history, each run with when it ran, its status (ok, partial, failed), its trigger (manual for a button, tick for the schedule) and its first error. Webhook deliveries are not runs; the panel's Webhooks chip counts them.

For Etsy, eBay and Amazon the panel says <Platform> does not push changes to us, so this store is read on the schedule above (and when you sync now). That is by design: these platforms do not send per-store webhooks.

Products edited on both sides

A product pulled from the store remembers the values it was synced with. On the next pull, a field you changed here since then is kept, and a field you did not touch takes the store's value — so a description rewritten here survives a price change made in the store. A store-side SKU change that would collide with another product's SKU here is not taken; the local SKU stays.

A store product is linked to an existing product here by SKU. A store product with no SKU cannot be linked, so it arrives as a new product.

Products made here

A product created here is published from its own page: Inventory → Catalog → Products → the product → the Stores card → Publish to <store name>. The button shows for each connected store the product is not yet listed in, on the platforms that take new listings (Shopify, WooCommerce, BigCommerce, Square); the first click creates it in the store and links the two. Edits made here afterwards are not sent on their own: Push changes beside the store in the same card sends them.

Etsy, eBay and Amazon do not take products from here — a new listing there needs category, policy and listing details the catalog does not hold. Publishing to one of them is refused with Publishing to <Platform> is not supported; list the product there and the sync links it by SKU. List it on the platform with the same SKU, and the next sync links it.

Real-time updates (webhooks)

Shown for Shopify, WooCommerce, BigCommerce and Square. Click Register: Karmaflow.ai registers its events on the store through the store's API — products, orders and stock (Shopify also tells it when the app is uninstalled). Every delivery is checked against a signature before anything is written, and one that fails is refused.

The section shows the Receiver URL with a copy button, how many webhooks are registered, and the last delivery. Re-register repairs them; Remove deletes them from the store; Regenerate URL & secret asks first, because existing registrations stop working until you register again.

A store without webhooks still works: changes arrive on the scheduled sync.

Refunds made in the store

A refund the store records arrives with the order's next sync or webhook and is recorded on the order once, under its totals as Refunded. A fully refunded order closes as Refunded — nothing more ships — but that alone does not bring shipped units back.

When Karmaflow.ai owns the count:

When the store owns the count, the refund is recorded and the stock figure follows the store's own on the next sync. Recording a return by hand is covered in Sales and Purchase Orders.

When a store disconnects, or sends a privacy request

The app is uninstalled from a Shopify store. With webhooks registered, Shopify says so at once: the connection is marked Not verified with the reason, its access is forgotten, and the notification A store disconnected Karmaflow goes out — by email straight away by default, to everyone whose role has inventory:config:manage. Products and orders already imported stay. Install the app again with Finish install in the panel's footer.

A store's access stops working (a revoked token, a removed key, an expired authorization). The next sync is refused, the connection reads Not verified with the store's answer, scheduled syncs stop until it is fixed, and the notification A store disconnected Karmaflow goes out once; the Settings hub row counts it as not verified. An installed or authorized connection has Re-authorize in its footer (Finish install when it is not connected); a pasted key is replaced under Credentials, then Verify. An authorization renews itself; when the platform's renewal has an end date, the panel says by when the store must next sync to avoid re-authorizing.

Shopify privacy requests (for a store that installed the app). When a customer asks the store what it holds on them, the notification A store sent a customer privacy request says which orders and CRM contact records are held here, for you to answer the customer. When a customer asks to be erased, their name, email, phone and address are masked on that store's orders here, and the notification says so; their CRM contact is left for you to decide. Forty-eight hours after an uninstall, Shopify asks for the store to be forgotten: its credentials are erased, and the orders and ledger stay as the business's records.

eBay account deletions. When eBay says a seller or buyer account was closed, a seller's connection loses its credentials and account id (and stops syncing), a buyer's details are masked on the eBay orders that name them, and the workspace is told.

When a sync fails

Each failed run pushes the next attempt back — five minutes, doubling, up to six hours. After three failures in a row, the connection raises the notification A store sync stopped working (email straight away by default, to everyone with inventory:config:manage, once per store until it recovers) and fires the workflow trigger Store sync failed with the platform and the error. The Stores list shows Sync failing on the row; the panel shows Last sync error: with the store's answer and when it retries; the Settings hub row (Settings (the gear icon) → Integrations → Online stores) reads N stores connected · 1 failing. A successful run clears the backoff.

Disconnect

Disconnect, at the bottom left of the panel, asks first, then removes the connection and its webhooks. Products and orders already imported stay, with their store links kept, so reconnecting the same store relinks them instead of creating duplicates.

Limits by platform

Platform What it does not do
All Orders flow one way, from the store. One sync run reads at most 50 pages of products and 50 of orders. A bigger catalog is read across runs: a run that stops at the cap reads partial with the reason, and the next run carries on where it stopped.
Shopify New custom apps can no longer be made in the Shopify admin; Paste a key is for one made before. Uses Shopify's GraphQL Admin API; when Shopify's rate limit is reached, the sync waits for it and retries.
WooCommerce One stock figure per product or variation. A refund does not say whether stock came back. There is no fulfilment record, only a completed order and a tracking note. The site must serve its REST API over https.
BigCommerce Orders have no Open in store link. BigCommerce emails the shopper on every shipment it is told about, unless the store turned that email off. A refund does not say whether stock came back.
Square Webhooks only on a Paste a key connection. Shipments are accepted only for orders made through Square's Orders API — an order from Square Point of Sale or Square Online is refused with the reason, so mark it shipped in the Square Dashboard. Orders have no Open in store link. A refund does not say whether stock came back.
Etsy No webhooks: read on the schedule. No publishing from here. Etsy has no partial shipment, so it is told only once an order has shipped in full. A refund carries an amount and no lines. Etsy's rate limits are shared by every workspace on the Karmaflow.ai app; the sync backs off when Etsy asks it to.
eBay No webhooks: read on the schedule. No publishing from here. Only listings managed through eBay's Inventory API are visible: listings made in Seller Hub or an older listing tool must first be migrated to the Inventory API (eBay's bulkMigrateListing); until then their orders still arrive, matched by SKU. Every run reads all inventory items, since eBay has no "changed since" filter. eBay allows 250 revisions a day per listing. A refund carries an amount and no lines.
Amazon No webhooks: read on the schedule. No publishing from here. Fulfilled-by-Amazon stock is pulled only when mapped and never pushed, and Fulfilled-by-Amazon orders are never confirmed from here. Orders keep the buyer's name and shipping address; Amazon's data rules keep the buyer's email and phone out of your contacts. Refunds are not synced. A listing on Multi-Location Inventory refuses a stock push, with a message saying so.

Troubleshooting

Next steps