A customer wants money back, or we owe a supplier a credit. How do we record it right?
Money sometimes goes back the other way. A customer returns goods, a price was wrong, a supplier billed too much, or a card payment comes back. This skill finds which type of credit each one is. It checks the credit against the original invoice or bill, and it checks that the tax on the credit mirrors the original tax.
You tell it the credit, the original invoice and the reason. It reads your books, or the files that you upload. It checks every credit in the month against its original. It writes the journal entry for each credit as a draft, and it lists the credits that nobody used. It never posts an entry, never sends a refund and never changes your books.
Four new credits at Northbrook Trading in September
Northbrook Trading sells goods to other businesses, works in US dollars and charges 7.5% sales tax on its sales. The run is on Wednesday 30 September 2026, for September. Four items come in: a pricing credit, a return of goods, a card chargeback and an unpaid invoice to write off.
| Item | Original invoice | Type and reason | Credit $ | What the skill does |
|---|---|---|---|---|
| CM-0418, Harbor Retail, Tue 8 Sep | 1042, Mon 3 Aug: 16,000 + 1,200 tax = 17,200, unpaid | Customer credit. Pricing error | 1,290.00 | 1,200 + 90 tax. The credit goes against invoice 1042, so 17,200 − 1,290 = 15,910 stays open. Draft E1 |
| CM-0421, Crestline Foods, Mon 14 Sep | 1038, Mon 27 Jul: 40 units × $150 = 6,000 + 450 tax = 6,450, paid | Sales return. 10 units come back, and you say that 2 are broken | 1,612.50 | 1,500 + 112.50 tax. Crestline paid the invoice, so the credit stays on Crestline's account. Draft E2 |
| Lakeside Freight, Tue 22 Sep | 1050, Mon 24 Aug: 2,000 + 150 tax = 2,150, paid by card | Chargeback, still disputed. Processor fee $15 | — | It does not reverse the sale while the dispute is open. Draft E5 |
| Brookfield Gym | 0880, Fri 1 May: 1,000 + 75 tax = 1,075, unpaid for 152 days | Bad-debt write-off. You say that the customer stopped trading | — | It writes the 1,075 off as a bad debt. It does not claim the $75 of tax back. Draft E7 |
One credit memo can need three different entries
A credit memo is a document that reduces what a customer owes you. A price correction, a return of goods and a goodwill credit can all use the same document. The skill uses a different entry for each one. So it asks you for the reason, and it never guesses it from the document.
Sales returns and allowances is a contra-revenue account. It has a debit balance and it reduces your gross sales1. When goods come back and you can sell them again, a second entry puts them back into inventory at their cost1. If the customer keeps the goods and gets a lower price, there is no inventory entry.
Crestline sent back 10 units that cost Northbrook $60 each, so 10 × 60 = $600 comes off the cost of goods sold. You say that 2 units are broken and are worth $20 each now. The skill brings 8 × 60 + 2 × 20 = $520 back into inventory. The other 600 − 520 = $80 is a write-down. If the skill brought the broken goods back at full cost, your inventory would show too much.
The tax stays on a sale that you cancelled
The skill checks every credit in the month, and the new ones too. On Wednesday 9 September, someone at Northbrook recorded credit memo CM-0412 for Acme Corp. The credit cancels all of invoice 1019: 800 + 60 tax = 860. The person put the full 860 against sales and recorded no tax line.
The tax mirrors the original
What the skill expects for CM-0412The tax is inside the net amount
What Northbrook recordedThe skill writes a correcting draft, E4: debit Sales tax payable $60, credit Sales returns and allowances $60. It does not change or delete the original entry. Without the original invoice beside the credit, nobody sees this mistake.
The UK tax office shows the same idea for VAT. When a price falls after the sale, the supplier reduces its output tax, and a VAT-registered customer reduces the tax that it claimed2. The credit note must show the number and date of the original VAT invoice. It uses the tax rate of the original sale2. Northbrook is a US company, so this is only an example from another country.
Every September credit gets four checks
For each credit, the skill asks four questions. Does the original invoice exist? Are all the credits against it, this one and the earlier ones, not more than the original invoice amount? Is the period right? Is the currency the same? Then it checks the tax on the credit against the tax on the original.
| Credit | Problem | The arithmetic | Next step |
|---|---|---|---|
| CM-0409, Summit Hotels, Thu 3 Sep | Credits are more than the original | Invoice 0975: 3,000 + 225 tax = 3,225. Earlier credit CM-0390: 1,075. CM-0409: 2,365. 1,075 + 2,365 = 3,440, which is 215 more than 3,225 | 2,150 of the credit clears invoice 0975, and 215 stays on account. The skill lists the credit as a validation exception. A manager must approve the 215 |
| CM-0412, Acme Corp, Wed 9 Sep | No tax line on the credit | Expected tax 800 × 7.5% = 60. Tax on the credit 0. Difference 60 | Correcting draft E4 |
| CM-0425, Pinnacle Clinics, Fri 18 Sep | No original invoice | A goodwill credit of 250 with no linked invoice | The skill asks you for the business reason and recommends an approval step. No entry until you give a reason |
| VC-0077, Delta Packaging, Thu 10 Sep | Vendor credit in the wrong account | Bill B-5530 went to Packaging Supplies. The 400 credit went to Other Income | Correcting draft E3 |
The Delta problem is a posting problem, and it is not one of the four checks. A supplier gave Northbrook a $400 credit against a bill for packaging. The credit must go back to the account that holds the original cost. When a buyer returns goods, the credit also goes back to the account of the purchase3. That textbook case is about inventory. The skill uses the same idea for any cost account. Draft E3 moves the 400 from Other Income to Packaging Supplies.
A disputed chargeback does not touch your sales
Lakeside Freight paid invoice 1050 by card and then disputed the charge with its card issuer. The card processor took the $2,150 back from Northbrook and charged a $15 fee. Under US law, a cardholder can dispute a billing error in writing within 60 days of the first statement that shows it4. The issuer must resolve the dispute within two billing cycles, and in not more than 90 days4. So the dispute can still go either way.
While the dispute is open, the skill does not reverse the sale. Draft E5 records a chargeback receivable of $2,150 and a fee of $15 against the merchant clearing account: 2,150 + 15 = 2,165. If you have no connected payment processor, you supply the fee and the reference.
Brookfield Gym stopped trading and owes $1,075. Draft E7 moves the full 1,075 from accounts receivable to bad debt expense. The skill does not claim the $75 of sales tax back. Tax relief on a bad debt has its own rules in each country, so the skill flags it for you. It never claims that tax back automatically.
Seven drafts, and each one balances
| Draft | Debits | Credits | Total $ |
|---|---|---|---|
| E1 CM-0418, Harbor | Sales returns & allowances 1,200. Sales tax payable 90 | Accounts receivable 1,290 | 1,290.00 |
| E2 CM-0421, Crestline | Sales returns & allowances 1,500. Sales tax payable 112.50. Inventory 520. Loss on returns 80 | Accounts receivable 1,612.50. Cost of goods sold 600 | 2,212.50 |
| E3 VC-0077, Delta, correction | Other income 400 | Packaging supplies 400 | 400.00 |
| E4 CM-0412, Acme, correction | Sales tax payable 60 | Sales returns & allowances 60 | 60.00 |
| E5 Lakeside chargeback | Chargeback receivable 2,150. Chargeback fees 15 | Merchant clearing 2,165 | 2,165.00 |
| E6 Cedar Point refund, if you refund it | Accounts receivable 300 | Cash 300 | 300.00 |
| E7 Brookfield write-off | Bad debt expense 1,075 | Accounts receivable 1,075 | 1,075.00 |
CM-0418 goes against invoice 1042. The skill tracks that application and proposes no second entry for it. The credit is already in the books from the day that Northbrook issued it. A second entry would count it twice.
$2,750 of supplier credits wait on account
A credit that nobody uses stays on the customer's or the supplier's record. The skill lists these credits in both directions, from the aging detail at the end of the month. It puts the vendor credits first, largest first.
| Who | Credit | Date | Amount $ | Age, days | Suggested step |
|---|---|---|---|---|---|
| Ridgeway Metals (supplier) | VC-0061 | Thu 11 Jun | 2,350.00 | 111 | Check it against the supplier's statement |
| Delta Packaging (supplier) | VC-0077 | Thu 10 Sep | 400.00 | 20 | Apply it to the next Delta bill, after correction E3 |
| Supplier credits | 2,750.00 | ||||
| Crestline Foods | CM-0421 | Mon 14 Sep | 1,612.50 | 16 | Apply it to the next invoice or refund it. You decide |
| Summit Hotels | CM-0409, the extra part | Thu 3 Sep | 215.00 | 27 | Hold for approval |
| Pinnacle Clinics | CM-0425 | Fri 18 Sep | 250.00 | 12 | Hold for the reason |
| Cedar Point Cafe | Payment, not applied | Fri 25 Sep | 300.00 | 5 | A refund of an overpayment, sent to its own path |
| Customer credits | 2,377.50 |
A supplier credit in your books can be money that you can use against the next bill. But some are duplicate entries, and the supplier already refunded others. So the skill asks you to check each old one against the supplier's statement before you claim it.
An overpayment, and a request that it refuses
Cedar Point Cafe paid $300 more than it owed on invoice 1047. That is an unapplied payment, and it is not a credit memo. The skill flags it and gives the refund entry as draft E6. You decide whether to refund it.
Then the owner asks: "Post these and send Crestline its refund." The skill says no, once and plainly. It cannot change data in a connected system. It gives you the drafts so that you can post them yourself in your own system.
Eight items, in one message
The skill asks these first, in one short batch. It asks only for what it cannot already see.
- Use MosoFin for this run, or upload the data yourself?MosoFin is the connection to your books and the other platforms that you link. With it, the skill reads from there. Without it, you upload the files, and the checks are the same. The skill asks this only if your account has the MosoFin tools. If not, it says once that the run is manual.
- What type is it: customer credit, customer refund, vendor credit or chargeback? For a chargeback: still disputed, accepted, or a fraud loss?Each type needs a different entry. The skill never chooses a default type. On the MosoFin path, the type of document in your books narrows it, and the skill asks you if that type is correct.
- The original invoice or bill: its number, date and amount.With the original, the skill can check that it exists, and check its balance, period and currency. If there is no original, the skill flags it and asks for the business reason.
- The credit amount.Required. The skill adds it to the earlier credits and compares the total with the original invoice amount.
- The reason: a return, a price dispute, goodwill, damage or an error.Required, and never guessed. A return changes your inventory. A goodwill credit or a pricing error reduces sales. A write-off of an unpaid balance goes to bad debt.
- The tax place, if the original carried tax.The tax rules of that place decide if you can get tax back on a write-off. On the MosoFin path, the skill reads the tax codes of the original and asks you if they are correct.
- Which period's credits to review?The skill checks every credit in the period, and not only the new one. It names the file for the month.
- Who approves a credit that is more than the original invoice?Such a credit needs a manager's approval. The skill finds these credits itself. A person must give the approval.
Then it reads the plan back and waits for your yes. The skill's own example reads like this:
"Processing credit memo CM-0418 for Northbrook Trading: a customer credit of $1,200 against invoice 1042, reason pricing error, tax under the jurisdiction you named, with the books read from your Mosofin connection. I will also check every credit in September and list unapplied credits in both directions. Shall I go ahead?"
The read-back does not say if $1,200 includes tax. This page reads it as the amount before tax, so the credit is 1,200 + 90 = 1,290.
Connect once, or upload the credit and the original
Say yes, then give it the reason
- It reads back the workspace and the company file by name, and waits for your yes
- It checks for a connected payment processor, which holds the chargeback fee and reference
- It reads the credit memos, refunds and vendor credits, and the original invoices and bills. It also reads the open balances, item costs, tax codes and chart of accounts
- It asks you if it has the correct names for your sales returns, chargeback fee and write-off accounts
- You still give it the reason, if returned goods came back in good condition, the write-off tax rules and the exchange rate. No system holds these
One checklist, in one message
- The credit memo, refund, vendor credit or chargeback, required. PDF or image, or a CSV or XLSX export
- The original invoice or bill, with number, date, amount, balance, currency and tax codes, required if there is one. PDF, image, CSV or XLSX
- The credit type, the reason and the credit amount, required, typed in the chat
- Chart of accounts, CSV or XLSX, required for the draft entries
- The tax place, typed in the chat, required if the original carried tax
- Open credits, and the AR and AP aging with credit balances, CSV or XLSX, recommended for the list of unused credits
- The processor statement with the chargeback fee and reference, and the item cost and condition for a return, when they apply
Six sheets, from the register to the coverage
For a batch, it asks whether you want the sheets as an Excel file, CreditMemos_2026-09.xlsx, before it makes one. If you say no, you get the same sheets as tables in the chat. For one credit, it gives a short summary and the entry inputs in the chat. It waits until you see and approve the results. Then it offers to save your account names and your reasons, with the entry for each reason. It also offers to save your approval limit and your write-off tax position. It never saves customer or supplier names with credit amounts, reasons or dispute details, and it never saves the open credit balance.
Six rules that never bend
- Never reads MosoFin without asking. A connected account is not permission to read it.
- Never reads anything before you answer the intake items and say yes to the read-back.
- Never writes, updates or deletes anything, in any system. Every entry that it makes is a proposal for a person to post.
- Never guesses the reason from the document type. It never chooses a default reason, credit type or tax treatment. In the skill's words: "Three types can share an identical document and need three entries."
- Always mirrors the tax of the original on a separate line. It never claims tax back automatically on a write-off.
- Never proposes a second entry when a person applies a credit. It never applies one company's credit to another company's invoice. It never proposes a refund on test data, which the system marks as mock.
Seven terms, in plain English
- Credit memo
- A document that reduces what a customer owes you. From a supplier, accountants call it a credit note or a vendor credit.
- Sales returns and allowances
- A contra-revenue account: it reduces your sales and does not count as a cost1.
- On account
- A credit that stays on a customer's or supplier's record and that nobody used yet.
- Application
- The use of a credit to pay part of an invoice. It needs no new entry in the general ledger.
- Chargeback
- A customer reverses a card payment through the bank that issued the card4.
- Output tax
- The tax that you charged a customer. A credit reduces it by the same rate as the original sale2.
- NRV
- Net realisable value: what returned goods are worth now. It can be less than their cost.
Where the facts on this page come from
The sources are two sections of an accounting textbook, a UK tax office brief and a US consumer guide. We found each one on 28 October 2026 in search results. We did not open the pages, so follow each link for today's wording. What the skill does comes from the skill's own files.
- OpenStax: Principles of Accounting, Volume 1, 6.4 Analyze and Record Transactions for the Sale of Merchandise Using the Perpetual Inventory SystemSales returns and allowances is a contra-revenue account with a debit balance that reduces gross sales. With a perpetual inventory, a second entry puts goods that come back into inventory and reduces cost of goods sold. An allowance has no inventory entry.
- HMRC: Revenue and Customs Brief 6 (2019): changes in accounting for VAT after prices are alteredWhen a price falls after the sale, the supplier reduces its output tax and a VAT-registered customer reduces its input tax. The credit note shows the number and date of the original VAT invoice and uses the rate of the original supply. This is a UK rule.
- OpenStax: Principles of Accounting, Volume 1, 6.3 Analyze and Record Transactions for Merchandise Purchases Using the Perpetual Inventory SystemA buyer that returns goods credits Merchandise Inventory, the account where it recorded the purchase. Before payment it debits Accounts Payable, and after payment it debits Cash.
- Federal Trade Commission: Using Credit Cards and Disputing ChargesUnder the Fair Credit Billing Act, a cardholder can dispute billing errors in writing within 60 days of the first statement that shows the error. The issuer must resolve the dispute within two billing cycles, and in not more than 90 days. This is a US consumer rule.
No outside authority backs the list of credit types, the four checks, the six sheets, the vendor-first order or the 7.5% rate. They are the skill's own rules and examples. We made up Northbrook Trading and every figure in the example for this page. Northbrook is a US company, and US states set sales tax, so this page cites no US tax rule. The UK source shows the same tax idea in another country.
This page explains credit-memo-and-refund-handler, from the MosoFin finance skills library, MosoFin/mosofin-finance-skills on GitHub. Read the skill on GitHub → The skill is in the card format on the main branch. It merged in PR #1 on 26 October 2026, and a bookkeeping-audit correction followed on 27 October 2026. This page describes that version.