July 5, 2026
8min

How to Set Up COGS Tracking for Amazon and Shopify in Xero

Accurate COGS tracking in Xero requires clean sales data, reliable inventory costs, and flawless reconciliation to separate revenue from true product expenses.
How to Set Up COGS Tracking for Amazon and Shopify in Xero
Table of contents

Accurate COGS tracking for Amazon and Shopify in Xero starts with three foundational elements: clean sales data, reliable inventory cost data, and a flawless reconciliation process that clearly separates gross revenue from the underlying costs associated with generating it.

For ecommerce businesses selling across multiple channels, this bookkeeping structure becomes increasingly critical as daily order volume grows. Without structured Cost of Goods Sold (COGS) tracking, your Profit and Loss (P&L) reports become highly misleading, strategic inventory purchasing decisions become guesses, and accountants spend vastly more time correcting broken financial records than analyzing business health.

The ultimate goal of ecommerce accounting is not simply recording top-line sales. The true goal is understanding exactly what each individual sale earns after product costs, platform fees, and refunds are fully accounted for.

Key Takeaways from this Post

Inventory purchases are assets, not expenses—COGS only moves to your P&L when the product actually sells, preventing severely distorted monthly profits.

Net bank deposits from Amazon and Shopify hide fees, refunds, and reserves; clean revenue mapping must happen before accurate COGS allocation can work.

Multi-channel sellers need standardized settlement summaries in Xero to compare true margins across Amazon, Shopify, and other platforms without ledger bloat.

General News BannerAmazon News BannerEbay News BannerEtsy News BannerShopify News BannerTiktok News BannerWalmart News Banner

How to Set Up COGS Tracking for Amazon and Shopify in Xero

Accurate COGS tracking for Amazon and Shopify in Xero starts with three foundational elements: clean sales data, reliable inventory cost data, and a flawless reconciliation process that clearly separates gross revenue from the underlying costs associated with generating it.

For ecommerce businesses selling across multiple channels, this bookkeeping structure becomes increasingly critical as daily order volume grows. Without structured Cost of Goods Sold (COGS) tracking, your Profit and Loss (P&L) reports become highly misleading, strategic inventory purchasing decisions become guesses, and accountants spend vastly more time correcting broken financial records than analyzing business health.

The ultimate goal of ecommerce accounting is not simply recording top-line sales. The true goal is understanding exactly what each individual sale earns after product costs, platform fees, and refunds are fully accounted for.

Why COGS Tracking Matters for Ecommerce Sellers

Cost of Goods Sold (COGS) represents the direct, tangible cost of the physical products you sell. It is the most important metric for determining your gross margin.

For Amazon FBA and Shopify sellers, COGS typically includes a combination of:

  • Product manufacturing costs: The unit price paid directly to the supplier.
  • Wholesale inventory costs: Bulk purchase prices from distributors.
  • Packaging costs: Polybags, branded boxes, and inserts directly tied to the unit.
  • Product-specific freight costs: Freight forwarding charges to move the product from the factory to the fulfillment center.
  • Import duties and customs: Taxes allocated directly to the landed cost of the inventory.

When COGS is tracked correctly and matched to the corresponding sales period, your Xero dashboard transforms into a powerful financial engine. It can produce far more meaningful, actionable financial reports.

Instead of just seeing a messy list of:

  • Net Revenue
  • Platform Fees
  • Lump-sum Bank deposits

You instantly gain visibility into:

  • True Gross Profit: Revenue minus direct product costs.
  • Gross Margin Percentages: Evaluating the long-term viability of your pricing.
  • Product-Level Profitability: Knowing exactly which SKUs are driving the business.
  • Channel Profitability: Comparing Amazon FBA margins directly against Shopify Direct-to-Consumer (DTC) margins.

This level of detail becomes exceptionally important for multi-channel sellers—which is exactly why the ecommerce accounting software built by Link My Books focuses heavily on resolving the increased complexity of multi-platform reconciliation.

The Common Problem with Amazon and Shopify Data

Many ecommerce business owners incorrectly assume that purchasing a premium accounting software subscription automatically tracks COGS correctly out of the box.

It does not.

In reality, Amazon and Shopify primarily serve as sales channels and payment processors; they provide sales volume and net payout information. They are not built to act as your general ledger.

The bookkeeping challenge immediately appears when:

  • Amazon bi-weekly settlement deposits arrive in Xero as a single net figure.
  • Shopify batched payouts hit the bank account, stripped of processing fees.
  • Your true product costs sit elsewhere—often hidden in an Excel spreadsheet or a separate inventory management system (IMS).
  • Customer refunds, returnless refunds, and chargebacks complicate the reporting period.

As order volume grows, spreadsheets often become the stressful, temporary solution for calculating month-end profit. According to Link My Books' discovery research, one of the most common triggers for ecommerce sellers seeking bookkeeping automation is the sheer exhaustion of spending hours manually reconciling marketplace payouts and preparing VAT-compliant tax records. Eventually, those manual processes completely stop scaling.

How to Set Up COGS Tracking in Xero: Step-by-Step

Setting up a robust workflow requires treating your inventory as an asset before it becomes an expense. Here is the exact process to configure your Xero account for ecommerce success.

Step 1: Create a Dedicated COGS Account

Inside Xero, navigate to your Chart of Accounts and create a specific Cost of Goods Sold account (typically categorized as a Direct Cost).

This nominal account should be used exclusively for inventory-related landed product costs. You must strictly avoid mixing operating expenses into this account. Keep the following out of your COGS:

  • PPC Advertising spend (Amazon Sponsored Products, Facebook Ads)
  • Software subscriptions (Shopify monthly fees, app fees)
  • General shipping software costs (ShipStation, Veeqo)
  • General operating expenses (office supplies, payroll)

Keeping direct product costs separated from overhead expenses gives you perfectly clear gross profit reporting.

Step 2: Establish an Inventory Asset Account

Before inventory becomes COGS, it has a cash value and must exist on your Balance Sheet as a current asset. Create an Inventory Asset account to hold this financial value until the physical products are actually sold to a customer.

This structure allows you to:

  • Capitalize large inventory purchases (e.g., paying a factory $50,000 for stock).
  • Ensure your overall company valuation remains accurate.
  • Recognize the COGS expense only when the corresponding sale occurs (following the matching principle of accounting).

Without this separation, your profitability reports will look like you lost massive amounts of money in the month you ordered stock, and made unrealistic profits in the months you sold it.

Step 3: Connect Sales Channels Properly

Amazon and Shopify generate massive volumes of micro-transactions. Rather than importing individual orders into Xero (which causes software bloat and API lag), high-performing ecommerce businesses use summary-based accounting workflows.

Integrating a Shopify Xero Integration automates ecommerce bookkeeping by syncing perfectly balanced summaries of sales, fees, taxes, and refunds directly into Xero. This approach matches your bank deposits to the penny, creating pristine financial records while eliminating manual data entry.

Step 4: Map Revenue and Fees Correctly

Before accurate COGS reporting can happen, the top-line revenue must be categorized correctly. Within your integration settings, ensure:

  • Gross product sales map directly to specific Revenue accounts.
  • Marketplace referral fees and fulfillment fees (like FBA fees) map to dedicated Expense accounts.
  • VAT and Sales Tax are separated into Liability clearing accounts.
  • Refunds are categorized independently as contra-revenue.

This creates a clean, unpolluted foundation for the final profit calculation.

Step 5: Match Inventory Costs to Sales Activity

Once the sales data enters Xero correctly, the final step is allocating the inventory costs against that specific sales activity.

When a unit sells on Amazon or Shopify, a journal entry must be created that credits (reduces) your Inventory Asset account and debits (increases) your COGS account by the landed cost of that specific SKU.

The key objective is ensuring that inventory costs move seamlessly from the balance sheet into the P&L exclusively when the products are sold, providing real-time margin visibility.

Comparing Ecommerce Integrations: Synder, Taxomate, and Entriwise

When navigating how to connect Amazon and Shopify to Xero, sellers often evaluate several tools in the software ecosystem. Understanding how they manage data is critical to setting up COGS effectively.

  • Synder: Synder focuses heavily on transaction-level synchronization. It pushes every individual sale and fee into the accounting software. While this provides extreme granularity, it can quickly overwhelm Xero with thousands of entries, making high-volume COGS tracking a sluggish process.
  • Taxomate: Taxomate provides basic marketplace integrations and mapped summaries. It is often utilized by smaller, newer sellers looking for entry-level bookkeeping automation, though it may lack the advanced multi-channel COGS handling required at scale.
  • Entriwise: Entriwise is highly tailored toward Amazon sellers, offering deep inventory and order management syncing. While powerful for Amazon-only businesses, sellers expanding into Shopify or TikTok Shop may find they need a more unified, channel-agnostic approach to their summaries.
  • Link My Books: Link My Books operates strictly on a settlement-based summary model. It intercepts the data, calculates the exact COGS based on the SKUs sold in that specific payout period, and sends a single, perfectly balanced COGS journal entry to Xero alongside the revenue summary.

Why Multi-Channel Sellers Struggle with COGS Visibility

Managing COGS for a single Shopify store is relatively straightforward. The accounting complexity explodes when scaling sellers add additional marketplaces like:

  • Amazon FBA & FBM
  • eBay Managed Payments
  • Etsy
  • TikTok Shop
  • Walmart Marketplace

Each distinct platform creates radically different reports, operates on different payout schedules, deducts different fee structures, and handles refund mechanics (like Amazon's returnless refunds) uniquely.

Link My Books identifies multi-channel sellers as its strongest product-market fit because these specific businesses experience the highest reconciliation complexity. They require a standardized accounting framework to maintain visibility across multiple platforms.

Without structured accounting processes bridging these channels, profit reporting becomes highly fragmented. You may know your total blended revenue, but you will not accurately know:

  • Which specific sales channel is actually the most profitable.
  • Which products generate the highest margins after platform fees.
  • How varying fulfillment costs affect profitability across different platforms.

Common COGS Tracking Mistakes

Recording Inventory Purchases as Immediate Expenses This is perhaps the most common and dangerous bookkeeping error in ecommerce. Buying inventory does not automatically create a COGS expense. Inventory only becomes COGS when the product is sold to an end consumer. Recording bulk inventory purchases directly as an expense causes severely distorted monthly profits, inaccurate margin calculations, and poor financial forecasting.

Ignoring Refund Impact Customer refunds actively reduce your realized revenue. If refund activity (and the physical return of the item to sellable inventory) is not reflected properly in your ledger, gross profit reporting becomes misleading. Amazon sellers frequently experience this issue because settlement reports include complex transaction types beyond simple sales.

Treating Bank Deposits as Gross Revenue Marketplace bank deposits rarely, if ever, equal your gross sales. Amazon and Shopify deposits are net payouts that have already been stripped of processing fees, refunds, tax adjustments, and account reserves. Treating the net deposit as revenue artificially lowers your top line and completely hides your operational expenses.

Delaying Reconciliation Small daily discrepancies rapidly snowball into massive financial problems over time. Many sellers only discover broken COGS tracking right before critical VAT deadlines or year-end tax reporting. By that stage, months of painful, expensive accounting corrections may be required.

Where Link My Books Fits Into the Process

Flawless COGS tracking depends entirely on accurate financial data. If your gross sales, gateway fees, VAT liabilities, and refunds are entered incorrectly into Xero, your resulting profit reporting becomes totally unreliable.

Link My Books was engineered specifically to automate complex ecommerce bookkeeping for Amazon, Shopify, and other high-volume marketplaces while guaranteeing reconciliation accuracy. The platform's core capability focuses on helping sellers save hours of manual data entry while producing perfectly balanced, audit-proof accounting records.

By utilizing the built-in Amazon bookkeeping and COGS features, Link My Books automatically calculates the cost of the exact SKUs sold during a settlement period and posts the correct journal entry to Xero.

For growing ecommerce businesses, this creates a pristine financial foundation. While platforms such as Synder, Taxomate, and Entriwise also connect ecommerce sales data to ledgers, Link My Books has established itself as the premier choice for ease of setup, bulletproof UK/EU VAT compliance, and totally automated multi-channel ecommerce reconciliation.

FAQ

How do I track COGS in Xero for Amazon sales? 

To accurately track COGS in Xero for Amazon sales, you must set up an Inventory Asset account (for landed costs), a dedicated COGS expense account, and implement a process that moves the inventory value from the asset to the expense exactly when products are sold. Amazon settlement reports alone do not provide complete profit reporting. You must use an automation tool to sync the exact SKUs sold per payout and trigger the corresponding COGS journal entry.

Does Shopify automatically track COGS in Xero? 

No. While Shopify holds basic product cost data internally, it does not automatically structure and sync COGS journal entries into Xero's general ledger. Xero requires product cost data to be allocated correctly via double-entry bookkeeping. Without a dedicated sync tool or manual accountant oversight, businesses will see revenue but lack complete profitability reporting.

Why doesn't my Amazon payout match my Xero sales figures? 

Amazon payouts include significantly more variables than just sales revenue. Bank deposits from Amazon contain deductions for marketplace referral fees, FBA fulfillment fees, customer refunds, VAT adjustments, and rolling account reserves. Because of these deductions, the net amount deposited into your bank account will never match your gross sales revenue. Accurate reporting requires splitting these components out.

What is the best way to manage Amazon and Shopify accounting together? 

The most effective approach is deploying a middleware solution that standardizes the data. By creating a single, summary-based reporting structure inside Xero that intercepts sales data from both Shopify and Amazon, you maintain perfect visibility over fees, taxes, and inventory costs. Multi-channel sellers benefit massively from this standardized reconciliation process.

Do accountants actually recommend automated ecommerce reconciliation tools? 

Yes. Leading ecommerce-focused accountants actively recommend automation because manual reconciliation becomes financially and operationally unsustainable as transaction volume scales. Automated reconciliation eliminates transposition errors, ensures strict tax compliance, and frees up the accountant's time to provide high-value strategic financial analysis rather than basic data entry.

COGS tracking for Amazon and Shopify in Xero is ultimately about gaining total profit visibility. Tracking gross sales alone will never tell you how your business is truly performing.

Accurate, automated COGS tracking empowers you to understand your true margins, identify your most profitable products, improve cash flow forecasting, and make aggressive, data-driven operational decisions.

For growing ecommerce brands, the fundamental challenge is rarely obtaining the data. The true challenge is organizing that chaotic data correctly within the general ledger. Link My Books helps create that unshakeable foundation by automating the reconciliation of sales, fees, taxes, refunds, and COGS across your entire multi-channel empire—giving you cleaner financial records and total confidence in your numbers.

Start a free trial today to automate your COGS tracking: https://linkmybooks.com/registration

Share this post:
General News BannerAmazon News BannerEbay News BannerEtsy News BannerShopify News BannerTiktok News BannerWalmart News Banner

Keep reading

all posts →

Accurate Ecommerce Accounting

Accurate Ecommerce Accounting

On Autopilot

Check
Save time and money by automating your bookkeeping
Check
All sales, refunds, fees and taxes accurately accounted for
Check
Automatic bank deposit matching with Xero & QuickBooks
Check
Built in support for VAT, GST and Sales Tax
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Link My Books - Bookkeeping for e-commerce sales
Amazon
Xero App Store
Shopify
QuickBooks
WANT TO TALK TO AN EXPERT BEFORE GETTING STARTED?
Dan Little