WooCommerce Integration with ReAI
A guide to integrating WooCommerce with ReAI, covering order syncing, VAT handling, refund processing and inventory tracking for UK ecommerce businesses.
If you run an online store on WooCommerce, your accounting software needs to keep up with every order, refund, shipping charge and VAT calculation your shop produces. Manually entering WooCommerce orders into your accounts is time-consuming and error-prone – especially as your order volume grows.
The ReAI-WooCommerce integration solves this by automatically syncing your store data with your accounting records.
What the integration does
Connecting WooCommerce to ReAI automates the flow of financial data:
- Orders are imported as sales invoices (or receipts) in your accounting system
- VAT is calculated and recorded correctly based on your WooCommerce tax settings
- Refunds create credit notes and reverse the original accounting entries
- Shipping charges are separated from product revenue
- Payment gateway fees (Stripe, PayPal, etc.) are recorded as expenses
- Customer records are synced so your accounts reflect who is buying from you
How WooCommerce orders flow into your accounts
A typical order
A customer buys a product for £50 + £10 shipping, paying £72 total (including £12 VAT):
| Account | Debit | Credit |
|---|---|---|
| Accounts receivable / payment clearing | £72.00 | |
| Product sales revenue | £50.00 | |
| Shipping revenue | £10.00 | |
| Output VAT (20%) | £12.00 |
When the payment is received (via Stripe, PayPal or bank transfer):
| Account | Debit | Credit |
|---|---|---|
| Bank account | £72.00 | |
| Accounts receivable / payment clearing | £72.00 |
If a payment gateway fee applies (e.g., Stripe charges £1.21):
| Account | Debit | Credit |
|---|---|---|
| Payment processing fees | £1.01 | |
| Input VAT | £0.20 | |
| Bank account | £1.21 |
Transaction level vs summary level
You can choose how transactions are imported:
| Method | When to use | Pros | Cons |
|---|---|---|---|
| Individual orders | Lower volume (under 100/month) | Full detail in accounts, easy to trace | More transactions to manage |
| Daily summaries | Higher volume (100+/month) | Fewer entries, cleaner books | Less detail per transaction |
For most small to medium WooCommerce stores, daily summaries provide the right balance of accuracy and manageability.
VAT handling
WooCommerce handles VAT based on your store settings, but the accounting treatment requires care.
UK domestic sales
Standard UK sales are straightforward: 20% VAT on most goods, zero-rated on certain items (children’s clothing, books, most food).
Make sure your WooCommerce tax classes match the actual VAT rates for your products:
| Tax class | Rate | Examples |
|---|---|---|
| Standard | 20% | Most goods |
| Reduced | 5% | Child car seats, energy-saving products |
| Zero rate | 0% | Children’s clothing, books, most food |
International sales
If you sell to customers outside the UK, VAT treatment varies:
| Destination | VAT treatment |
|---|---|
| UK | Charge UK VAT |
| EU (B2C, below threshold) | Charge UK VAT or register for OSS |
| EU (B2C, above threshold) | Register for VAT in the destination country or use OSS |
| EU (B2B with valid VAT number) | Zero-rated (reverse charge) |
| Rest of world | Zero-rated export |
The integration should record the correct VAT treatment for each order based on the customer’s location and VAT status. Check that your WooCommerce tax settings align with these rules.
Refunds and returns
When you process a refund in WooCommerce, the integration:
- Creates a credit note in your accounts linked to the original invoice
- Reverses the revenue for the refunded items
- Reverses the output VAT on the refunded amount
- Records the refund payment back to the customer
Partial refunds
If you refund only part of an order (for example, one item from a multi-item order), the integration should:
- Create a partial credit note for the specific items refunded
- Leave the remaining items on the original invoice
- Adjust VAT proportionally
Shipping refunds
If you refund shipping charges, this should be recorded as a separate reversal of shipping revenue, not lumped in with product refunds. This keeps your reporting accurate.
Inventory and cost of goods sold
WooCommerce tracks stock levels, but the accounting for stock requires more than just counting units.
Stock valuation
At any point in time, your stock is valued at the lower of cost and net realisable value:
- Cost = purchase price + import duties + inbound shipping
- Net realisable value = expected selling price - costs to sell
COGS calculation
Your profit depends on accurately tracking cost of goods sold:
COGS = Opening stock + Purchases - Closing stock
The integration can help by recording cost prices from WooCommerce product data, but you need to ensure purchase costs are accurate and updated when supplier prices change.
Discounts and coupons
WooCommerce discount codes and coupons need correct accounting treatment:
| Discount type | Accounting treatment |
|---|---|
| Percentage discount (e.g., 20% off) | Revenue recorded net of discount; VAT calculated on discounted price |
| Fixed cart discount (e.g., £10 off) | Same as above |
| Free shipping coupon | No shipping revenue recorded |
| Buy one get one free | Revenue spread across items; VAT on total paid |
The key principle is that VAT is calculated on the amount the customer actually pays, not the original price. Your integration should handle this automatically based on WooCommerce’s discount calculations.
Subscription orders (WooCommerce Subscriptions)
If you use WooCommerce Subscriptions for recurring billing:
- Each renewal generates a new order, which imports as a new invoice
- Revenue recognition – match income to the subscription period, not the payment date
- Failed renewals – orders that fail to process should not be recorded as revenue until payment is received
- Cancellations and refunds – handled as credit notes against the relevant invoice
Setting up the integration
- Install the integration – connect ReAI to your WooCommerce store via API key
- Map product categories to accounting revenue accounts (if you want to separate product lines in your reporting)
- Configure VAT treatment – ensure tax classes in WooCommerce match your VAT codes in ReAI
- Set the sync frequency – real-time, hourly or daily depending on your volume
- Choose transaction detail level – individual orders or daily summaries
- Run a test sync – import a sample of orders and verify the accounting entries
- Enable ongoing sync – switch on automatic imports
Troubleshooting common issues
| Problem | Likely cause | Solution |
|---|---|---|
| VAT amounts do not match between WooCommerce and accounts | Rounding differences or mismatched tax classes | Check WooCommerce tax settings; ensure “round tax at subtotal level” matches your accounting software |
| Missing orders | Sync failed or orders placed during downtime | Re-sync the missing date range |
| Duplicate entries | Order imported more than once | Check for duplicate invoice numbers; most integrations have deduplication built in |
| Refund not linked to original sale | Credit note not matched | Manually link the credit note to the original invoice in your accounts |
| Shipping revenue missing | Shipping not mapped as a revenue line | Add shipping as a separate income account in your mapping |
Reporting from integrated data
Once WooCommerce data flows into your accounts, you can generate reports that combine online sales with the rest of your business:
- Revenue by channel – compare WooCommerce sales with other channels
- Product profitability – revenue minus COGS minus fees by product line
- VAT summary – total output and input VAT for your VAT return
- Payment gateway costs – what you are actually paying in processing fees
- Refund rates – monitor returns as a percentage of sales
Having all your financial data in one place – accounting software that integrates with your store – means you spend less time compiling reports and more time acting on them.