Can You Trust Grok Bot With Your Accounting?
We tested Grok Bot on 10 real accounting tasks to see what it got right, what it missed and where you still need to double-check.

How to Build an Ecommerce Chart of Accounts for Fees, Payouts and COGS

How to Build an Ecommerce Chart of Accounts Guide

Customers paid $329.40 for three orders in your Shopify store, but Shopify Payments deposited $279.55. Neither number is your revenue, because the deposit is net of a refund and fees, and the $329.40 includes sales tax you owe the state.

An ecommerce chart of accounts separates those amounts. It adds one clearing account per payment platform, revenue by channel, contra-revenue for discounts and refunds, fee accounts, sales tax payable and cost of goods sold (COGS) lines to a standard chart.

This guide gives you a numbered chart of accounts template and five steps to set up these accounts in QuickBooks Online or Xero. It also traces the payout above until the clearing account returns to $0, so you can check your own books the same way.

TL;DR

The main rules for an ecommerce chart of accounts:

  • Record sales at their gross amount and fees as expenses.
  • Give each payment platform its own clearing account.
  • Keep sales tax you collect in a liability account, never in revenue.
  • Post discounts, refunds and chargebacks to contra-revenue accounts.
  • Split COGS into product cost, freight, packaging and fulfillment.
  • Add an account only when it needs its own line on a financial statement.
  • Map your sync tool to the chart before the first sync.

What makes an ecommerce chart of accounts different?

An ecommerce chart of accounts differs from a generic one because online sales reach the bank as payouts, not as individual customer payments. A payout bundles many orders and arrives net of fees, refunds and sometimes taxes, so the chart needs accounts that can hold and separate those amounts.

That need grows with every channel you add. Ecommerce made up 17.9% of US retail sales in the third quarter of 2026, and each new platform pays out on its own schedule, net of its own fees.

Say you sell through a Shopify store, on Amazon and with PayPal at checkout. A generic chart gives you one sales account and one bank account, so every deposit gets booked as sales. Each difference below adds the account that fixes that:

  • Payouts arrive net of fees. Shopify Payments, PayPal and Stripe deduct their fees before they pay out. A payment processing fees account keeps revenue at the gross amount.
  • Money passes through several platforms. A sale on Amazon Seller Central reaches the bank days later as part of a settlement. One clearing account per payment platform holds that platform’s balance until its payout arrives.
  • Marketplaces charge their own fees. Amazon referral fees and FBA fulfillment fees aren’t payment processing fees. A separate marketplace fees account (or a COGS line for fulfillment) shows what each marketplace costs.
  • Customers pay sales tax at checkout. That money belongs to the state, so you need a sales tax payable account, which is a liability, and a way to separate tax that marketplaces collect and remit for you.
  • Inventory moves through several channels. An inventory asset account and detailed COGS lines show gross margin by channel.
  • Revenue comes from more than one channel. Channel-specific income accounts (or one income account plus classes) let you compare Shopify, Amazon and wholesale sales.
Five account groups with the ecommerce accounts each one adds: clearing, sales tax, channel revenue, COGS, fees

Starting from scratch? This chart of accounts example covers the five standard types and how a basic chart is organized.

Ecommerce chart of accounts sample template

The ecommerce chart of accounts template below uses number ranges by account group: 1000 for assets, 2000 for liabilities, 3000 for equity, 4000 for revenue, 5000 for COGS and 6000 for operating expenses. The gaps between numbers leave room for new channels and platforms, so a new account can join its group without renumbering the chart.

This sample chart of accounts for ecommerce business owners covers a store that sells on Shopify and Amazon and takes payments through Shopify Payments, PayPal and Stripe. Rename the channel and platform accounts to match yours.

ecommerce business chart of accounts template.png

First rows of the template – for all 29 accounts, with QuickBooks Online and Xero types and ecommerce notes, download the full template.

How the template rolls up on the P&L

The template produces a profit and loss statement that starts with gross sales by channel and subtracts discounts and refunds to reach net sales. Gross margin then shows what is left after COGS, before platform fees and other operating expenses.

P&L lineWhat it includes
Gross salesProduct sales by channel, plus shipping income
Less: sales discountsDiscount codes and promotions
Less: refunds, returns and chargebacksMoney returned to customers
Net salesGross sales minus discounts, refunds, returns and chargebacks
Less: cost of goods soldProduct cost, inbound freight, packaging, fulfillment
Gross profitNet sales minus COGS; gross margin is gross profit divided by net sales
Less: platform and processing feesPayment processing fees, marketplace fees
Less: other operating expensesAdvertising, apps and software, outbound shipping
Operating incomeWhat the business earned from selling, before other income and taxes

What the template produces on the profit and loss statement

Sales tax doesn’t appear on the P&L. It stays on the balance sheet in the sales tax payable account until you pay it to the state.

How many clearing accounts do you need?

You need one clearing account per payment platform: one for Shopify Payments, one for PayPal, one for Stripe, one for Amazon and one for any other platform that sends you payouts. Don’t mix PayPal and Stripe transactions in one clearing account, because each platform pays out on its own schedule and in its own amounts.

A clearing account is a temporary asset account that holds a platform’s balance between the sale and the payout. When the clearing account belongs to one platform, its balance should match what that platform says it still owes you.

Payment platformClearing accountWhat it holdsWhen it clears
Shopify PaymentsShopify Payments ClearingCard sales from your Shopify store, minus fees and refundsWhen the payout reaches your bank
PayPalPayPal ClearingPayPal checkout sales, minus fees and refundsWhen you withdraw to your bank
StripeStripe ClearingStripe charges, minus fees and refundsWhen the payout reaches your bank
AmazonAmazon ClearingAmazon sales, minus referral fees, FBA fees and refundsWhen the settlement reaches your bank

The clearing account returns to zero in three steps:

  1. Sales and fees post to the clearing account. Gross sales increase its balance; fees and refunds reduce it.
  2. The payout moves to the bank. You record the payout as a transfer from the clearing account to checking.
  3. The balance returns to zero. If the payout covered every transaction in the period, nothing is left in the clearing account.

To check a clearing balance, compare it with the platform’s own report, such as the Stripe balance report, and match the transfer to the deposit in your bank feed during bank reconciliation.

Shopify sales, fees and refunds flowing through a clearing account to checking, ending at zero

One clearing account per payment platform nets to zero on each payout

Split a platform’s clearing account further when one account can no longer match one payout. That happens when you sell in several currencies on one platform, which calls for a multi-currency setup with one clearing account per currency, or when you operate several stores, each with its own payouts.

An Amazon seller chart of accounts follows the same rule. If you sell in several Amazon marketplaces that pay out separately, give each marketplace its own clearing account.

Payout matching is covered in more depth in this guide to payouts, clearing accounts and reconciliation.

Revenue, contra-revenue, fees, COGS and sales tax accounts

Revenue accounts in an ecommerce chart of accounts record sales at the gross amount, by channel or product category. Contra-revenue accounts reduce that revenue for discounts, refunds and chargebacks, while COGS, fee and sales tax accounts keep everything that isn’t revenue out of your income lines.

Revenue and contra-revenue

  • Product sales by channel: one income account per channel, such as product sales – Shopify and product sales – Amazon.
  • Shipping income: shipping charged to customers, kept apart from product sales.
  • Sales discounts: discount codes and promotions, so gross sales and discounts show as separate lines.
  • Refunds and returns: money returned for earlier orders.
  • Chargebacks: disputed payments you lose.

To split sales by product or category, assign income accounts to items instead of creating accounts by hand for each sale. In QuickBooks Online, every item in the Products and Services list has an income account, so a few category accounts (for example, apparel and accessories) are enough. Separate category accounts make sense when you report margin by category; for anything finer, use classes or item-level sales reports.

Cost of goods sold

  • Product cost: what you paid for the units you sold, using the inventory method you’ve chosen (for example, FIFO).
  • Inbound freight: freight-in from suppliers, which is part of landed cost.
  • Packaging: boxes, mailers and inserts.
  • Fulfillment and 3PL fees: pick, pack and ship fees from your warehouse or 3PL.

Amazon sellers face one decision first: in a QuickBooks chart of accounts for Amazon FBA, fulfillment fees can go to COGS or to operating expenses. If you put them in COGS, gross margin includes the full cost of getting a product to the customer. If you put them in operating expenses, gross margin looks higher, and Amazon looks cheaper than your own warehouse at the gross profit line. Pick one rule and apply it to fulfillment costs on every channel, so channel margins stay comparable.

Fees, sales tax and liabilities

  • Sales tax payable: tax you collect from customers, split by jurisdiction if you file in several states.
  • Gift card liability: gift cards and store credit until customers redeem them.
  • Payment processing fees: fees from Shopify Payments, PayPal, Stripe and other processors.
  • Marketplace fees: Amazon referral fees and other platform charges.
  • Advertising: ad spend by channel or in one account with classes.
  • Apps and software: your store plan, apps and sync tools.

Sales tax that a marketplace collects needs separate handling. Every US state with a sales tax has a marketplace facilitator law, which requires marketplaces such as Amazon, Etsy and Walmart to collect and remit tax on the sales they facilitate. That tax shouldn’t go to your sales tax payable account, or you may remit it a second time. Record it in a separate account, such as marketplace-collected sales tax, and net it to zero when the marketplace withholds it from your settlement.

Even when a marketplace collects the tax, you may still need to register and file returns in some states. This guide to marketplace facilitator laws explains those obligations and lists sales thresholds by state.

Mapping one order to the accounts

The table below shows where each part of a single order goes. The payout example in the next section uses the same accounts.

Order componentAccountAccount group
Gross product saleProduct Sales – [channel]Revenue
Discount codeSales DiscountsContra-revenue
Shipping charged to the customerShipping IncomeRevenue
Sales tax collectedSales Tax PayableLiability
Payment processing feePayment Processing FeesOperating expense
Marketplace referral feeMarketplace FeesOperating expense
Marketplace fulfillment feeFulfillment & 3PL Fees or Marketplace Fees, by your ruleCOGS or operating expense

How one payout flows through the accounts

Record ecommerce sales at their gross amount, post fees as expenses, and let the payout clear the clearing account. Recording sales net of Shopify or Amazon fees understates revenue and hides what each platform costs you, while booking the net deposit as sales mixes revenue, sales tax and fees in one number.

Example: one Shopify Payments payout traced through the accounts

Example – illustrative amounts.

Three orders were paid through Shopify Payments in one payout period. They included $300.00 in products, a $10.00 discount code, $15.00 in shipping and $24.40 in sales tax, so customers paid $329.40. In the same period, you refunded $40.00 for an earlier order, and Shopify Payments charged $9.85 in processing fees.

EntryAccountDebitCreditClearing balance
1. OrdersShopify Payments Clearing$329.40$329.40
Sales Discounts$10.00
Product Sales – Shopify$300.00
Shipping Income$15.00
Sales Tax Payable$24.40
2. RefundRefunds & Returns$40.00
Shopify Payments Clearing$40.00$289.40
3. FeesPayment Processing Fees$9.85
Shopify Payments Clearing$9.85$279.55
4. PayoutChecking$279.55
Shopify Payments Clearing$279.55$0.00

Example – illustrative amounts

After the payout, the clearing account is back to $0.00. Net revenue is 265.00(300 + $15 − $10 − $40), the $24.40 in sales tax is a liability, and the $9.85 in fees is an expense.

Compare that with booking the $279.55 deposit straight to sales. Revenue would be overstated by $14.55, which is the $24.40 in tax minus the $9.85 in fees, and neither the tax you owe nor the fees you paid would appear in the books. With the gross method, the bank deposit matches the payout to the cent, and the clearing account absorbs the difference.

Journal entry, sales receipt or clearing account?

Use a clearing account to record ecommerce payouts if you want deposits to reconcile. Journal entries and sales receipts can record the same amounts, but they leave more of the matching to you.

MethodHow it records a payoutFees and sales taxReconciliation
Journal entry per payoutOne manual entry splits the deposit into sales, tax, fees and refundsRecorded only if you split them by handMatches the deposit; no order-level detail
Sales receipt per orderEach order becomes a sales receipt deposited to Undeposited Funds or the bankFees need separate entriesGrouped receipts don’t match the deposit until fees are recorded
Clearing accountSales and fees post to the platform’s clearing account; the payout is a transfer to the bankEach in its own accountAfter each payout, the clearing balance matches what the platform still holds, usually $0

How to set up your ecommerce chart of accounts in 5 steps

To set up an ecommerce chart of accounts in QuickBooks Online or Xero, create revenue accounts by channel, add platform fee accounts, create one payout clearing account per platform, set up COGS and inventory, and turn on sales tax. The steps below name the QuickBooks Online account type and detail type for each account, with the Xero equivalent.

1.Create revenue accounts by channel. In QuickBooks Online, add one Income account per channel with the detail type Sales of Product Income, plus a shipping income account. Add sales discounts and refunds and returns accounts with the detail type Discounts/Refunds Given, so discounts show as their own P&L line. In Xero, use the Sales or Revenue type.

2. Add platform fee accounts. Create an Expenses account for payment processing fees (detail type Bank Charges) and another for marketplace fees. Use one fee account per channel, or one shared account with a class per channel. Both use the Expense type in Xero.

3. Create payout clearing accounts. Add one account per payment platform with the account type Bank and the detail type Checking, name it after the platform (for example, Shopify Payments clearing), and leave the opening balance empty. QuickBooks Online already has Undeposited Funds, which holds recorded payments until you deposit them. That account isn’t tied to one platform, so separate clearing accounts keep each payout traceable. Xero uses the Bank type for these accounts. 

QuickBooks Online new account form creating a Shopify Payments clearing account

Creating a clearing account in QuickBooks Online

4. Set up COGS and inventory. Add an inventory account (type Other Current Assets, detail type Inventory) and cost of goods sold accounts for product cost, inbound freight, packaging and fulfillment. The Xero equivalents are the Inventory type for stock and Direct Costs for COGS lines.

5. Set up sales tax. When you set up sales tax for a tax agency in QuickBooks Online, QuickBooks creates a “(Sales tax agency name) Payable” account that can’t be made inactive. Use that account instead of creating a manual duplicate, and add a separate account for marketplace-collected tax. Xero tracks sales tax in a Current Liability account.

Before your first sync, map your connector to the new accounts. QuickBooks Online’s new ecommerce connectors replace the OneSaas apps and the Commerce connectors, and Intuit advises noting your current account mappings before you migrate. Third-party sync apps have their own mapping settings. If you map them to the template first, sales, fees and payouts post to the right accounts from day one.

To create these accounts click by click, follow this walkthrough on setting up a chart of accounts in QuickBooks.

Accounts, sub-accounts or classes?

Add an account when the line must show separately on the P&L or balance sheet; use a class, location or tracking category when you only need a report cut. That test keeps the chart short as you add channels.

When you add Etsy as a channel, ask whether its fees and revenue need their own lines on the P&L. If they do, add a product sales – Etsy account and an Etsy fees account, or sub-accounts under your existing product sales and marketplace fees parent accounts. If you only want to compare channels in a report, keep one product sales account and tag transactions with a QuickBooks class or location, or a Xero tracking category.

  • Account or sub-account: the amount needs its own financial statement line, such as a new clearing account, a new contra-revenue line or a new COGS category.
  • Class, location or tracking category: you need a report by channel, store or region, but the financial statement line stays the same.
  • Neither: a SKU. One account per SKU creates hundreds of accounts; product-level detail belongs in items and inventory reports.
Decision flow for adding an account, a sub-account or a class when you add a sales channel

Review the chart when your business changes, not only at year-end:

  • When you add a sales channel or payment method, add its clearing account and its revenue and fee accounts, or a class.
  • When a platform changes its fee structure, check that new fee types post to the right account.
  • Once a quarter, look for accounts with no activity and make them inactive in QuickBooks Online or archive them in Xero.

Common ecommerce chart of accounts mistakes

Common ecommerce chart of accounts mistakes mix amounts that belong in different accounts: deposits with revenue, sales tax with sales, or fees with income. Each mistake below comes with the fix and the account that makes it possible.

MistakeWhat goes wrongFix
Booking bank deposits as revenueRevenue is wrong by the fees, refunds and tax inside each payoutRecord gross sales in a platform clearing account; record the payout as a transfer
Sales tax inside revenueRevenue is overstated, and the tax you owe isn’t on the balance sheetPost tax collected to Sales Tax Payable (in QuickBooks Online, the agency payable account)
Fees netted out of salesRevenue is understated, and platform costs disappearRecord fees in Payment Processing Fees and Marketplace Fees
One income account for all channelsYou can’t compare channel revenue or marginAdd income accounts by channel, or one account with classes
Hundreds of SKU accountsThe chart becomes unreadable, and reports slow downUse items and inventory reports for SKUs; follow the accounts-vs-classes test above
No clearing accountsPayouts can’t be matched to the sales behind themCreate one clearing account per payment platform

If you switched connectors recently, also check for duplicate entries: an old connector and a new one posting the same sales double your revenue.

How to automate account mapping once the chart is set

To automate account mapping, connect your sales platforms to a sync tool such as Synder and assign an account from your chart to each transaction type. Synder Sync then posts sales, fees, refunds and payouts from 30+ sales platforms to those accounts in QuickBooks Online, Xero and other ledgers.

With the template from this article, the mapping looks like this:

TransactionAccount in the template
SaleProduct Sales – [channel]
DiscountSales Discounts
Shipping chargedShipping Income
Sales tax collectedSales Tax Payable
Payment processing feePayment Processing Fees
RefundRefunds & Returns
PayoutTransfer from the platform’s clearing account to Checking

Synder offers two ways to sync. Per Transaction mode brings each sale, fee and refund into your books as a separate entry. Summary Sync groups them into one entry per day, month or custom period, and on Amazon, eBay, Shopify and Stripe it can also create one entry per payout.

Either way, sales go into the platform’s clearing account, and fees come out of it. If you turn on payouts, Synder also moves each payout from the clearing account to your bank as a transfer. Once everything up to that payout has synced, the clearing account is back at zero, just like in the example above. Before that, its balance shows what the platform still owes you, such as sales that haven’t been paid out yet or money held in reserve.

To keep entries tagged correctly, you can use Smart Rules. They add or fix classes, locations, categories and payment methods in QuickBooks Online, and they’re also available for QuickBooks Desktop and Xero. Smart Rules apply only in Per Transaction mode. In Summary Sync, you decide how transactions are grouped and mapped with mapping groups.

If you sell on Shopify and use QuickBooks Online, Per Transaction mode can also sync discounts as a separate product, such as “Shopify Discount”. When you map that product to your sales discounts account, discounts get their own line on the P&L.

Mapping gets harder when one payment carries several taxes and a fee. Qantu, a Montreal-based bean-to-bar chocolate maker that sells online through Stripe, had to apply different Canadian provincial tax rates and exempt US sales, which QuickBooks’ default settings misassigned. With Smart Rules, Qantu now applies the right provincial rates automatically, and Stripe processing fees post to their own account. Maxime Simard, Owner of Qantu, said:

I use Synder to bring into QuickBooks all the online store sales and apply categorization rules to automatically select the right Canadian tax. With Synder, we manage 4 types of taxes and charge no taxes for international sales made by people from foreign countries online. It also considers the fee paid for Stripe processing, so each payment goes into the right accounts in QuickBooks.

Maxime Simard, Owner of Qantu

If you want to see your own sales, fees and payouts mapped onto this template, book a Synder demo.

Using one template across ecommerce clients

Accounting firms can use one ecommerce chart of accounts template for all clients by fixing a standard core and adding client-specific channel and fee accounts. Keep the numbering the same across clients, so 1100 is always the first clearing account and 4010 is always the first channel’s product sales.

When firms build a chart of accounts for ecommerce company clients, the core stays fixed: checking, inventory, sales tax payable, sales discounts, refunds and returns, the COGS lines and payment processing fees. The parts that change per client are the clearing accounts (one per payment platform the client uses), the channel revenue accounts and the marketplace fee accounts. For clients with several legal entities, use the same numbering in each entity’s file, so consolidated reports line up.

Clients use both QuickBooks Online and Xero, so keep both account types in the template:

Account groupQuickBooks Online typeXero type
Clearing accountsBankBank
InventoryOther Current AssetsInventory
Sales tax and gift card liabilitiesOther Current LiabilitiesCurrent Liability
Channel revenue and shipping incomeIncomeSales or Revenue
Discounts, refunds, chargebacksIncome (Discounts/Refunds Given)Revenue
COGS linesCost of goods soldDirect Costs
Fees and operating expensesExpensesExpense

Summing up

An ecommerce chart of accounts separates what a payout combines: sales at their gross amount, discounts and refunds as contra-revenue, sales tax as a liability, fees as expenses and product costs as COGS. One clearing account per payment platform connects these accounts to the bank, and after each payout its balance matches what the platform still holds, usually $0.

Start with the template, adjust the channel and platform accounts, and map your sync tool to the chart before the first sync. Then test one real payout: if the deposit matches the bank and the clearing balance matches what the platform still holds, the chart is ready.

FAQ

How many clearing accounts do I need?

You need one clearing account per payment platform, such as Shopify Payments, PayPal, Stripe and Amazon. Don’t mix PayPal and Stripe in one account, because each platform pays out separately. After each payout reaches the bank, the clearing balance should match what the platform still holds, usually $0.

What accounts do I need in QuickBooks for my online store?

An online store in QuickBooks Online needs a clearing account per payment platform, product sales accounts by channel, sales discounts and refunds and returns accounts, sales tax payable, inventory, cost of goods sold accounts and a payment processing fees account. The sample template above lists them with numbers and account types.

Which account types does an ecommerce chart of accounts use?

An ecommerce chart of accounts uses the five standard account types: assets, liabilities, equity, revenue and expenses. Clearing accounts are assets, sales tax payable is a liability, and discounts and refunds are contra-revenue accounts that reduce revenue. This chart of accounts example covers the basics of each type.

Where do sales go in the chart of accounts?

Sales go to income accounts in the 4000 series, such as Sales of Product Income in QuickBooks Online, split by channel if you sell in several places. Shipping charged to customers goes to a separate shipping income account, and sales tax goes to a liability account, not to income.

How do I record ecommerce discounts as a separate line on the P&L?

To show ecommerce discounts as a separate P&L line, create a sales discounts contra-revenue account under revenue and post discount codes there instead of reducing the sale amount. In QuickBooks Online, use the Income type with the detail type Discounts/Refunds Given.

How is sales tax payable handled in QuickBooks Online?

Sales tax payable in QuickBooks Online goes to a “(Sales tax agency name) Payable” account that QuickBooks creates when you set up sales tax for a tax agency. The account can’t be made inactive, so use it instead of creating your own sales tax payable account. Tax that marketplaces collect and remit goes to a separate account.

How does a sync map to this chart?

A sync tool posts each sale, fee, refund and payout to the matching account in this chart. The platform’s clearing account carries the balance until the payout moves to the bank. After that, it matches what the platform still holds, such as sales not yet paid out or reserves, usually $0. You can sync every transaction or one summary per period or payout.

How do you do ecommerce accounting?

To do ecommerce accounting, set up an ecommerce chart of accounts, sync sales from each channel, reconcile each clearing account against its payouts, and close the month. Keeping the books on an accrual basis with a month-end inventory valuation matches COGS to the units sold. The full process is laid out in this guide to bookkeeping for ecommerce.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like