Online stores (Shopify, WooCommerce, Salla and Zid)
Connect your own Shopify, WooCommerce, Salla or Zid store. Paid orders come in as posted sales invoices with their receipts, and refunds come in as credit notes. Items are linked by SKU, and stock and prices can be sent back to the store.
The Online stores app connects your own Shopify, WooCommerce, Salla or Zid store to OmniBooks. You do not need to type online orders in by hand:
- A paid order comes in as a posted sales invoice in the store's branch. It is paid by a receipt into the store's clearing account.
- A refund comes in as a credit note on that invoice. The receipt is replaced by one for the amount the customer kept.
- Items with the same SKU in the store and in OmniBooks are linked. A sale moves stock out of the store's warehouse, and you can send stock levels and shelf prices back to the store.
Nothing is connected until you connect your own store. How you connect depends on the platform:
- Shopify: you make a small custom app in your shop's own admin, and OmniBooks uses its keys. OmniBooks has no app in the Shopify App Store.
- WooCommerce: you make REST API keys in WooCommerce, and OmniBooks uses them. OmniBooks has no plugin in the WordPress plugin directory.
- Salla and Zid: you approve the OmniBooks app on Salla's or Zid's own page. There are no keys to copy.
Salla and Zid can only be connected once OmniBooks' app on that platform has been registered and approved by Salla or Zid. Until then, the platform is shown as Not switched on yet in Connect a store, and the help on this page describes how it will work.
Online stores is an add-on. It is in the Free trial and Business plans and in the Professional + Store connectors plan. Install it from Settings → Apps. Connecting and setting up a store needs the stores.manage permission (owners have it). stores.view lets someone see the orders and the log.
Making the custom app in Shopify
- In your Shopify admin, open Settings → Apps and sales channels → Develop apps. If this is your first one, allow custom app development.
- Choose Create an app and name it OmniBooks.
- Under Configuration → Admin API integration, tick these scopes:
read_orders,read_products,write_products(only for sending prices),read_inventory,write_inventory(only for sending stock) andread_locations. - Install the app. Copy the Admin API access token (it starts with
shpat_; Shopify shows it only once) and the API secret key.
Shopify may ask for access to orders older than 60 days separately. OmniBooks takes orders from the day you connect unless you choose an earlier date.
Making REST API keys in WooCommerce
- In WordPress, open WooCommerce → Settings → Advanced → REST API and choose Add key.
- Describe it as OmniBooks, choose a user who can manage WooCommerce, and set the permissions to Read/Write. OmniBooks needs Write to set up its webhooks and to send stock and prices.
- Choose Generate API key. Copy the consumer key (
ck_…) and the consumer secret (cs_…); WooCommerce shows the secret only once.
The store must use https, and its address must be reachable from the internet. OmniBooks does not connect to private or local addresses, and it does not follow redirects. If your hosting removes the Authorization header from requests, WooCommerce refuses the keys: ask your host to pass it on.
Connecting a Salla or Zid store
- Open Sales → Online stores, choose Connect a store, then Salla or Zid.
- Enter a name, and choose the branch, the warehouse and the accounts and tax codes (see below). There is no address or key to enter.
- Choose Continue to Salla or Continue to Zid. Sign in there as the store's owner (or a manager who may install apps) and approve OmniBooks.
- You come back to the store's page in OmniBooks. OmniBooks has already subscribed to the store's webhooks for new and changed orders.
- Choose Link items by SKU.
Until you approve, the store waits on the list as Waiting for approval. Choose Continue to Salla (or Zid) on its page to finish, or Remove it. An approval link works once and for 30 minutes.
If OmniBooks' access stops (the app was removed from the store, or Salla or Zid refuses to renew it), the store is marked Needs attention. Choose Reconnect and approve again: the store keeps its settings and history. Sign in as the same store; if a different store approves, nothing changes. Choosing Connect a store for a store you already have also renews that connection rather than adding a second one.
OmniBooks keeps the access it is given encrypted and renews it before it ends. You never see or type it.
Connecting a Shopify or WooCommerce store
- Open Sales → Online stores, choose Connect a store, then Shopify or WooCommerce.
- Enter a name, the store's address and the two keys:
- For Shopify, the address is the shop's myshopify.com address, for example
acme.myshopify.com. - For WooCommerce, it is the site's address, with its folder if WordPress is in one, for example
shop.example.comorexample.com/shop.
- For Shopify, the address is the shop's myshopify.com address, for example
- Choose the branch that sells online and the warehouse online orders ship from.
- Choose the accounts and tax codes (see the next section), then Connect the store.
- On the store's page, choose Test connection. It checks the keys and subscribes OmniBooks to the store's webhooks:
- Shopify: paid orders, refunds and the app being uninstalled. Shopify's main stock location is chosen too.
- WooCommerce: new and changed orders. A refund changes its order, so refunds come with it. OmniBooks signs these webhooks with a secret of its own, so it remakes its webhooks each time you test the connection.
- Choose Link items by SKU. Do this again after you add products in the store. WooCommerce variations are linked by their own SKUs.
The keys are stored encrypted and never shown again. Leave the boxes as they are to keep the saved keys. A store's address cannot be changed once it is connected: connect the new address as another store.
How an order becomes an invoice
Only paid orders come in. Orders that are not paid are shown as Skipped and come in once the store marks them paid:
- Shopify: the order is paid, partly refunded or refunded. Orders waiting for payment, or only authorised, wait.
- WooCommerce: the order is Processing with a payment date, or Completed. Cash on delivery orders have no payment date, so they come in when you complete them. Pending, On hold, Failed and Cancelled orders wait.
- Salla: the order is Completed or Delivered, or on its way (In progress, Delivering, Shipped) when paid online. Cash on delivery orders come in once delivered. Awaiting payment and Cancelled orders wait or are skipped.
- Zid: the order's payment is Paid. Cash on delivery orders come in when Zid marks the payment collected. Zid's test orders are skipped.
Shopify's test orders and orders paid before the store's Take orders paid from date are skipped too.
Each paid order becomes one posted sales invoice:
- The date is the day the order was paid, in your company's time zone. The reference is the store's order number, for example #1001.
- The customer is found by email, then by phone. If there is no match, a new customer is added. Switch off Add new customers to put every order on one contact called Online customers (store name). Orders with no email or phone always go to that contact.
- Each line is entered at what the customer paid for it, tax included, after discounts. The invoice total is the same as the store's order total. If a line's value does not divide evenly by its quantity, it is split into two lines of the same item so no amount is lost to rounding.
- Items linked by SKU use the item's own revenue account and sales tax code, and stock leaves the store's warehouse at average cost. Lines for anything else go to the revenue account chosen in the store's settings.
- Shipping is its own line on the shipping account. WooCommerce fees (gift wrap, a handling charge) and Salla's and Zid's cash on delivery fee are lines on the revenue account.
- Salla and Zid give an order's shipping and fees as totals, not lines. OmniBooks puts each on its own line. A coupon on the whole order is spread over the items by their value, so the invoice still comes to the store's total.
- Tax: a line the store charged tax on uses the item's sales tax code, else the store's tax code. OmniBooks works out the tax inside the price with its own code. If the store charged tax and there is no code to use, the order waits until you choose one. A line the store did not tax gets no tax code.
Then a receipt for the full amount is recorded against the invoice. It goes into the account chosen for the order's payment gateway, else the store's clearing account. When the clearing account is not chosen, the first order makes one called Store name payments (Shopify) or (WooCommerce). When the payment gateway pays out to your bank, match the payout against the clearing account in Banking. The gateway's fees are the difference you record there.
In Payment gateways with an account of their own, name the gateway as the store gives it:
- Shopify: the gateway's name, for example
shopify_paymentsormanual. - WooCommerce: the payment method's ID, for example
stripe,bacsorcod. - Salla: the payment method on the order, for example
credit_card,madaorcod. - Zid: the payment method's code, for example
zid_cod.
If the lines do not add up to the store's total, the order is not posted and is marked Needs attention. A small rounding gap is closed on the largest line. A bigger gap comes from charges OmniBooks cannot place, such as duties, tips or gift cards: record that order by hand. Orders with a negative fee or line (some discount plugins add one) are refused the same way.
Refunds
When you refund in the store, three steps run on the refund day:
- The order's receipt is voided.
- A credit note for the money returned is posted on the invoice and applied to it.
- A new receipt is recorded for what the customer kept, so the clearing account shows the money going back out.
Salla and Zid refunds come in for the whole order only: a Salla order marked Restored, or a Zid order whose payment is Refunded. Every item goes back into stock. Salla and Zid do not give the amounts of a partial refund, so record a partial refund by hand, as a credit note on the invoice.
The credit note lists the refunded items. Any shipping or adjustment refunded goes on one more line. If a fee was kept (the items come to more than the money returned), the credit note is one line for the money returned. A refund that only restocked items and returned no money is skipped.
Refunded items go back into the warehouse's stock:
- Shopify says whether each item was restocked; items refunded with no restock do not come back.
- WooCommerce's refund does not say, so refunded items are taken as restocked, as WooCommerce does by default. If an item did not come back, adjust the stock in OmniBooks.
- Salla and Zid whole-order refunds are taken as restocked too.
Stock and prices
Switch these on in the store's Settings. They are sent every 15 minutes, or at once with Send stock and prices now:
- Stock: for each linked item, the warehouse's stock less till sales not posted yet, in whole units. Shopify gets it at the shop's main location. WooCommerce, Salla and Zid get it on the product or variant.
- Prices: each linked item's retail price, or its sales price if it has no retail price, is sent as the item's price. Prices are not sent when the store sells in another currency.
Only changed values are sent. OmniBooks does not create or delete products in the store.
When something goes wrong
The Orders tab lists every order, with filters for Needs attention, In the books, Waiting and Skipped:
- An order that failed is tried again by itself, waiting longer each time, up to eight tries. Fix the cause and choose Try again. Common causes are a closed period, a missing tax code, or a total that does not match.
- A missed webhook is caught by the backstop. OmniBooks also reads changed orders from the store every 15 minutes, and Fetch orders now does it at once.
- The Log tab keeps the last 50 events: tests, links, orders, refunds and stock sent.
- Uninstalling the custom app in Shopify marks the store Needs attention. Install it again, enter the new token and test the connection.
- Revoking the WooCommerce keys makes every call fail with WooCommerce's refusal on the store's page. Make new keys, enter them and test the connection.
- Removing the OmniBooks app from a Salla or Zid store marks the store Needs attention. Choose Reconnect and approve it again.
- A Salla or Zid webhook is never taken on trust. OmniBooks reads the order back from Salla or Zid before using it. Salla's webhooks must carry the OmniBooks app's signature, and Zid's a password only that connection knows.
- Pause stops orders coming in and stops stock and prices being sent. A store with orders in the books cannot be removed, only paused.
A live demo connects to no store.