reconcile-processor-payout-to-booked-revenue
Use when the processor payout lands and must tie back to the books. Reconciles gross charges, fees, refunds and chargebacks from the payout report to booked revenue to the cent.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- reconcile-processor-payout-to-booked-revenue
- description
- Use when the processor payout lands and must tie back to the books. Reconciles gross charges, fees, refunds and chargebacks from the payout report to booked revenue to the cent.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md370 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Reconcile processor payout to booked revenue
The bank deposit is net; your books are gross. The gap is fees, refunds, chargebacks and timing — every cent must be explained or the revenue figure is unproven.
Procedure
-
Pull the processor payout report for the period and the bank credit. The credit equals
gross - fees - refunds - chargebacks - reserves. -
Pull your own booked revenue for the same period: the sum of successful charges in integer minor units.
-
Write the identity to prove:
payout_minor = gross_minor - processor_fee_minor - refund_minor - chargeback_minor - chargeback_fee_minor - reserve_held_minor + reserve_released_minor. -
Compare gross charges processor-side to books-side. Differences are usually timing (a charge authorised late on the last day) or a void/refund not yet booked:
timing_gap = books_gross - processor_gross. -
Worked example, minor units: gross 1,000,000; fee 30,100; refunds 12,000; chargebacks 5,000; cb fee 1,500; reserve held 0.
- expected payout = 1000000 - 30100 - 12000 - 5000 - 1500 = 951400 minor = USD 9,514.00.
-
Tie to the bank: if the credit is 951400 it reconciles exactly; if not, find the missing line before booking.
-
Classify every residual: known-timing (carry forward), error (fix the ledger), or unknown (investigate). Never leave an unexplained residual as a rounding plug.
-
Roll reserves: a rolling reserve is your money held by the processor; track it as an asset, not an expense, and reconcile releases.
-
Run the reconciliation monthly and store the tie-out so an auditor can re-derive it.
-
Store the payout report line ids beside the ledger entries so the tie-out is reproducible without re-downloading.
-
Reconcile the processor's stated fee to the fee you compute from the rate; a divergence means the rate changed mid-month.
-
Split net settlement by currency; a multi-currency payout mixes FX and fees and hides both.
-
Handle refunds that settle in a later period as an explicit carry-forward, not as a plug in the current one.
-
Reconcile the reserve balance to the processor's reserve statement monthly, since it is an asset on your books.
-
Keep the tie-out signed and dated by the reconciler so the audit trail has an owner.
Pitfalls
-
Booking the net payout as revenue understates revenue and hides the fee expense.
-
A "rounding" plug of a few cents is usually an unbooked chargeback fee, not rounding.
-
Ignoring timing gaps and forcing the periods to match creates false breaks next month.
-
Treating a reserve as a cost writes off money you will get back.
-
Reconciling by the summary total while refunds sit in a different report misses the refund row entirely.
-
Re-downloading a new payout report each month with different ids loses the audit link to last month's ledger.
-
Trusting a computed fee over the processor's stated fee hides a rate change until the margin looks wrong.
-
Blending currencies in one payout total hides FX loss and double-counts fees.
-
A refund settling next period booked as a current plug creates a false break next month.
Verification
python3 -c "g=1000000;fee=30100;r=12000;cb=5000;cbf=1500;print(g-fee-r-cb-cbf)"
# 951400 -> must equal the bank credit; any difference is an unclassified line
Report: the payout tie-out bottom line against the bank credit, and the count of unexplained residual lines (target: zero).
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.