← Insights

How I Took Card-Sale Deposits Off a Team Member’s Plate

By Steve Kelly, Books & Bots Advisory ·

Illustration of AI credit card deposits: card sale receipts and a credit card on the left flow through a glowing network to a deposit ledger on the right with every line checked and the total highlighted as matching

Building one credit card deposit used to mean checking every sale in a payout by hand. Now a Claude skill does the tie-out, and a person reviews the result.

If you sell online, your card processor doesn’t pay you one sale at a time. It sends a payout. Each payout is a batch: a stack of cash sales, a few refunds, the processing fees and sometimes a tax adjustment, all netted into one number that lands in the bank.

Somebody has to turn that number back into a deposit in NetSuite.

I’m a financial controller with about 21 years in accounting and finance, and I’ve built about 50 Claude skills across our month-end close. A few weeks ago I wrote about how I taught Claude to do cash application (https://booksandbotsadvisory.com/insights/claude-cash-application/). This one was built for a team member who used to build our credit card deposits by hand. It works the same way, in a different lane.

Here’s how it works, in order.

The old way

On our team, building one card deposit looked like this:

  1. A payout comes in from the card processor.
  2. A team member pulls up the cash sales in NetSuite and checks each transaction in the payout against them, one at a time.
  3. She builds the deposit by hand. Sometimes one deposit bundled more than one payment gateway together.
  4. At month-end, the bank rec has to untangle deposits that rarely match a single payout.

None of it is hard. All of it is repetitive. Every transaction got checked by a person whether it needed one or not. A single payout could hold hundreds of cash sales, and we see about 10-15 payouts a week.

How the skill works

The skill runs one batch at a time, where a batch is one payout. For each one, it does seven things.

  1. Pull the payout from the source. Claude pulls each payout and its line items straight from the processor’s API, read-only. It doesn’t use a CSV export or anyone’s notes, and it never changes anything on the processor side.
  2. Match charges to cash sales. Each charge carries an order number, and that order number ties to a cash sale in NetSuite. When one order shipped in more than one box and has several cash sales, they match when they add up to the charge.
  3. Match refunds to customer refunds. The order reference does the matching. When the reference is missing, it falls back to amount and date, within a few days.
  4. Book the fees and tax lines. Processing fees go to the credit card fee account. Sales tax the processor collects and remits on its own goes to its own liability account.
  5. Run the tie-out. This is the gate. The rules are below.
  6. Post one deposit per payout. The payout ID goes in the deposit memo. That memo is the safety key. If a deposit with that payout ID already exists, Claude skips it, so nothing gets posted twice.
  7. Check its own work. After posting, the bank amount on the deposit has to equal the payout. If it doesn’t, the deposit gets flagged as failed and nothing is deleted.

The tie-out rules before a deposit is created

Nothing posts unless every one of these is true:

  1. It ties to the cent. Cash sales, less refunds, less fees, plus or minus the tax lines, has to equal the payout. There’s no rounding tolerance and no variance account.
  2. The payout is paid. Only payouts the processor shows as paid get posted. Payouts still in transit get logged as pending and picked up on the next run.
  3. No sale has been deposited before. If any cash sale in the payout is already on a deposit, Claude logs the payout as posted by hand and skips it. It never deposits a sale twice.
  4. Oldest first. Payouts post in date order, so a carry from one payout is in place before the payout that clears it.
  5. Anything else gets held. If it doesn’t tie, it doesn’t post. Claude holds the payout for me and says why.

The edge cases we taught it, one real payout at a time

We didn’t write these rules up front. We worked through 60–90 days’ worth of real payouts by hand alongside the skill. Every time one didn’t tie, we figured out why and wrote the rule down with the payout it came from.

  1. An item that never shipped on a split order. The full amount was captured when the first box shipped, but one item never shipped, so it was never billed. The processor refunds it later, and there’s no refund in NetSuite to match. Claude parks the difference in a clearing account with the order number in the memo, then clears it when the refund pays out.
  2. One refund paid out in two pieces. Part went back as store credit and part back to the card, in different payouts. NetSuite holds one refund for the full amount, and we never split it. The remainder carries across payouts through the same clearing account and nets to $0.00.
  3. A small fee the processor collected that never made it into NetSuite. One payout was off by cents. We traced it to a state retail delivery fee the processor collected on the order. That fee now books to the right liability account. Any other mismatch still gets held.
  4. Refunds entered with no order reference. Claude matches on amount and date. We also fixed it upstream: whoever enters a refund now puts the order number in the reference field.
  5. Sales already deposited by hand. This one came from the switchover. For a stretch, a person and the skill both touched the same weeks, so the skill has to check what was already done before it builds anything.

When a new rule gets written, the rules file and the script change together. That way the two never disagree.

The human check

Every payout goes into a shared log as posted, held, pending or posted by hand. Our reviewer has her own columns in that log, Approved or Needs Fix plus her comments, and the automation never writes to them. Posted and held rows she hasn’t reviewed yet are shaded so she can find them fast.

After each run, Claude drafts a short summary email for her. It lists the deposits it posted, each one linked, then anything held or pending and why. I review it and send it.

If she marks something Needs Fix, it comes back to me. Claude doesn’t touch the deposit. I decide the fix, and when the fix is a new rule, it goes into the rules file and the script.

When I run it by hand, it shows me a preview table and waits for my “go.” On its schedule, it posts what passes, holds the rest and drafts the summary.

What it still can’t do

A held payout stays held until a person works it. The next run looks at it again, but it won’t force it through.

Two refunds for the same amount in the same week, with no order reference, are ambiguous. Those get held too.

The results so far

  • Time: building deposits used to take about 3–4 hours a week. The skill now handles the matching and booking, freeing that time for accuracy checks and refining the automation.
  • Volume: 126 payouts posted by the skill in its first 6 weeks.
  • Holds: 3 payouts held for a person, each with the reason written down.
  • Bank rec: each deposit now equals one payout, so the deposits match the bank line for line.

The team member who used to build these deposits now reviews them. The time goes to the payouts that need judgment.

Where to start if you want to try this

  1. Pick one card processor and one bank account.
  2. Pull payouts from the processor’s API. Skip the export.
  3. Make the payout ID your deposit memo, so a payout can only post once.
  4. Set the tie-out rule first: the deposit equals the payout to the cent, or it doesn’t post.
  5. Work real payouts by hand next to it. Every one that doesn’t tie becomes a rule, with the reason written down.
  6. Keep a log with review columns only your reviewer can write to.

Want help setting up something like this for your team? That’s the work I do at Books & Bots Advisory: https://booksandbotsadvisory.com

How does your team build card deposits today: one deposit per payout, or bundled?

Also on X: follow @BooksAndBotsAI for more on AI in the month-end close.

Want a cleaner, faster close?

Tell me about your books and your month-end process. I'll follow up to set up a discovery call.