# How to record Shopify fees and refunds in Xero

URL: https://www.reconcile.ly/xero/fees-and-refunds

Shopify deducts processing fees and completed refunds before sending each Shopify Payments deposit, which is why your bank deposit is lower than gross sales. Reconcilely posts one Xero invoice per Shopify Payments payout with gross sales, negative refund lines and negative Shopify fee lines already separated, so the invoice total equals your bank deposit.

## How to set up fee and refund accounting in Xero
1. **Map your fee and refund accounts in Account Code Mappings**: Open Mappings in Reconcilely and assign Expense accounts for Shopify Fees, Refunds Fee, Adjustments Fee Amount, Reserved Funds Fee Amount and Retried Payout Fee Amount (default R.Fees). Map Refunds and Tax Exempt Refunds to your sales or returns revenue accounts (default R.Sales and R.ZeroTax).
2. **Keep Shopify Payments Consolidation enabled**: In Direct Order Settings, keep Shopify Payments Consolidation turned on. Reconcilely reads every balance transaction in each payout, deducts Shopify processing fees as negative lines, and validates that the invoice total matches the payout deposit.
3. **Apply cash refunds on negative-payout credit notes**: When refunds exceed sales in a payout period and Shopify debits your bank account, Reconcilely sends an Accounts Receivable credit note (ACCRECCREDIT) to Xero. Open that credit note in Xero and record a cash refund to your bank account so the bank debit line turns green on your Reconcile tab.
4. **Reconcile PayPal and external gateway fees and refunds**: PayPal, Afterpay and Stripe orders export to Xero individually, and refunds on those orders send as individual credit notes (<Order #> Refund: <ID>). Reconcile PayPal fees via Xero's PayPal bank feed (match the order invoice to the sale line, code the separate fee line to Merchant Fees, and transfer withdrawals). On Unlimited ($99/mo), you can also enable Deduct Gateway Fees to apply a percentage and fixed fee formula onto non-Shopify-Payments invoices.

## How each fee and refund type lands in Xero
| Transaction type | What Reconcilely creates in Xero | What you do in Xero | Plan |
| --- | --- | --- | --- |
| Shopify Payments processing fees & fee adjustments | Negative line items (Shopify Fees, Refunds Fee, Adjustments Fee Amount) on the consolidated payout invoice, coded to your mapped expense account (default R.Fees). | Click OK when Xero matches the payout invoice to your bank deposit. | All plans ($9/mo+) |
| Refunds inside a positive Shopify Payments payout | Negative lines on the payout invoice split between taxable Refunds (R.Sales), Tax Exempt Refunds (R.ZeroTax), shipping refunds and gift card adjustments. | Reconciles automatically inside the single payout match. | All plans ($9/mo+) |
| Negative Shopify Payments payout (refunds exceed sales) | An authorised Xero credit note (ACCRECCREDIT) to your Shopify Payments contact equal to the debit amount. | Open the credit note in Xero, apply a cash refund to your bank account, then click OK on the bank feed debit. | All plans ($9/mo+) |
| Refund on a PayPal, Afterpay or Stripe order | An individual Xero credit note numbered <Order #> Refund: <Refund ID>, preserving item lines, shipping refund adjustments and cent rounding. | Match the cash refund on the credit note against the gateway refund line in Xero. | All plans ($9/mo+) |
| PayPal processing fees | Full gross direct-order invoice for each PayPal order (Shopify's API does not expose external gateway payout fees). | Use Xero's PayPal bank feed: match the invoice to the gross sale line and code the PayPal fee line via a Xero bank rule. | All plans ($9/mo+) |
| Configured external gateway fees (Afterpay, Klarna, Stripe) | Optional negative <Gateway> Fees line on each direct-order invoice calculated from the percentage, fixed fee and tax-on-fee formula you enter in Gateway Fees. | Match net settlement lines against the fee-adjusted direct-order invoices. | Unlimited ($99/mo) |

## What to keep in Shopify and Xero
- Record every return, refund or partial refund inside Shopify Admin. Refunds arranged by email or directly inside a gateway dashboard without a Shopify refund record are not visible to Reconcilely.
- Shopify subscription billing charges (your monthly Shopify plan and app bills) are billed to your card or bank separately by Shopify and are not part of Shopify Payments payouts; code those bills directly in Xero.
- Configured Gateway Fees on the Unlimited plan calculate fees from your entered percentage and fixed rate rather than live third-party settlement files, so check variable cross-border or tier surcharges against your gateway statement.

## Shopify fees and refunds in Xero FAQ
### Why does my Shopify bank deposit not match my Shopify sales report?
Shopify deducts card processing fees, refunds, chargeback adjustments and reserved funds before sending each Shopify Payments payout, and settles charges 2 to 5 business days after order capture. Reconcilely builds one Xero invoice per payout containing those exact deductions so the invoice bottom line equals the bank deposit.

### Does Reconcilely record gross sales or net sales in Xero?
Reconcilely records full gross sales in your mapped revenue account and posts Shopify Payments fees and refunds on separate negative lines mapped to your fee expense and refund accounts. Your revenue is not understated by card fees, while the invoice total still matches the net bank deposit.

### What happens when a Shopify payout is negative?
When refunds exceed sales in a payout period, Reconcilely sends a Xero credit note (ACCRECCREDIT) instead of an invoice. In Xero, open that credit note and apply a cash refund to your bank account so it matches the debit line on your bank statement.

### Does Reconcilely pull PayPal or Afterpay fees from Shopify automatically?
No, because Shopify only exposes exact payout fee amounts for Shopify Payments. For PayPal, use Xero's PayPal bank feed to code the separate PayPal fee line. For Afterpay or other gateways, either code fees in Xero or configure a percentage plus fixed fee rule under Deduct Gateway Fees on the Unlimited plan.

### How are gift card purchases and redemptions handled on refunds?
Gift card sales and redemptions map to a dedicated liability clearing account (default R.Giftcard) rather than revenue, so issuing or refunding onto a gift card adjusts your gift card liability without double-counting sales income.
